uniname/uniname: Fix -Wshadow warning.
[gnulib.git] / ChangeLog
blob052d965c0c731e4bded714c3063c9202dae189e2
1 2020-09-05  Bruno Haible  <bruno@clisp.org>
3         uniname/uniname: Fix -Wshadow warning.
4         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
5         * modules/uniname/uniname (Depends-on): Add c99.
7 2020-09-05  Bruno Haible  <bruno@clisp.org>
9         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
10         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
11         argument to size_t.
12         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
13         n to size_t.
15 2020-09-05  Bruno Haible  <bruno@clisp.org>
17         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
18         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
19         u32_uctomb): Change type of last argument to ptrdiff_t.
20         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
21         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
23         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
24         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
26 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28         manywarnings: remove -Wchkp and -Wabi from C++ too
29         Suggested by Reuben Thomas in:
30         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
31         At some point somebody should merge the many other manywarnings-c.m4
32         changes into manywarnings-c++.m4 too, e.g.,
33         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
34         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
35         Remove -Wchkp, -Wabi.
37 2020-08-30  Bruno Haible  <bruno@clisp.org>
39         strerrorname_np: Add tests.
40         * tests/test-strerrorname_np.c: New file.
41         * modules/strerrorname_np-tests: New file.
43         strerrorname_np: New module.
44         * lib/string.in.h (strerrorname_np): New declaration.
45         * lib/strerrorname_np.c: New file.
46         * m4/strerrorname_np.m4: New file.
47         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
48         is declared.
49         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
50         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
51         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
52         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
53         * modules/strerrorname_np: New file.
54         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
55         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
56         the glibc 2.32 bug.
58 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
60         perror, strerror_r: remove unportable tests
61         Problem reported by Florian Weimer in:
62         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
63         * tests/test-perror2.c (main):
64         * tests/test-strerror_r.c (main): Omit unportable tests.
66 2020-08-26  Bruno Haible  <bruno@clisp.org>
68         stdint, wchar, wctype-h: Change configure message.
69         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
70         enough..." instead of "checking whether wint_t is too small...".
72 2020-08-26  Bruno Haible  <bruno@clisp.org>
74         time_rz: Change configure message.
75         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
76         near extrema..." instead of "checking whether localtime loops forever
77         near extrema...".
79 2020-08-26  Bruno Haible  <bruno@clisp.org>
81         stdint: Change configure message.
82         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
83         without ISO C predefines..." instead of "checking whether stdint.h
84         predates C++11...".
86 2020-08-26  Bruno Haible  <bruno@clisp.org>
88         socketlib: Change configure message.
89         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
90         instead of "checking if we need to call WSAStartup in winsock2.h and
91         -lws2_32...".
93 2020-08-26  Bruno Haible  <bruno@clisp.org>
95         include_next: Change configure message.
96         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
97         code line length is unlimited..." instead of "checking whether system
98         header files limit the line length...".
100 2020-08-26  Bruno Haible  <bruno@clisp.org>
102         getcwd: Change configure message.
103         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
104         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
105         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
107 2020-08-26  Bruno Haible  <bruno@clisp.org>
109         chdir-long: Change configure message.
110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
111         system supports file names of any length..." instead of "checking
112         whether this system has an arbitrary file name length limit...".
113         Set gl_cv_have_unlimited_file_name_length instead of
114         gl_cv_have_arbitrary_file_name_length_limit.
115         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
117 2020-08-26  Bruno Haible  <bruno@clisp.org>
119         ceill: Change configure message.
120         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
121         instead of "checking whether ceill() breaks with small values...".
123 2020-08-26  Bruno Haible  <bruno@clisp.org>
125         iconv: Change configure message.
126         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
127         with its POSIX signature..." instead of "checking for iconv
128         declaration...". Remove K&R C support.
130 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
132         getcwd: help the merge back into glibc
133         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
134         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
135         The idea is to make it easier for Gnulib lib/getcwd.c to match
136         glibc io/getcwd-generic.c.
137         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
138         Include not-cancel.h.
139         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
140         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
141         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
142         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
143         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
144         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
145         (__getcwd_generic): Rename from __getcwd.
146         Use the abovementioned macros for consistency with glibc.
147         (weak_alias): Remove.
149 2020-08-25  Bruno Haible  <bruno@clisp.org>
151         verify: Avoid warnings when assume(0) is used.
152         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
153         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
154         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
155         the constant 0.
156         * tests/test-verify.c (f): New function.
157         (state): New type.
158         (test_assume_expressions, test_assume_optimization,
159         test_assume_noreturn): New functions.
161 2020-08-25  Bruno Haible  <bruno@clisp.org>
163         fstrcmp: Clarification regarding NOTE_ORDERED.
164         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
166 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
168         diffseq: new option NOTE_ORDERED
169         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
170         * NEWS: Mention this.
171         * lib/diffseq.h (NOTE_ORDERED): New macro.
172         (IF_LINT2): Remove; no longer needed.
173         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
174         subproblem and iterate to do the larger.
176 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
178         sys_types: let Autoconf 2.70 do pid_t
179         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
180         only for Autoconf versions 2.69 and earlier, since 2.70
181         will be fixed.
183 2020-08-23  Bruno Haible  <bruno@clisp.org>
185         tests: Don't assume that pid_t fits in an 'int'.
186         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
187         of 'int'.
188         * tests/test-nonblocking-socket-main.c (main): Likewise.
190         sys_types: Fix definition of pid_t on 64-bit MSVC.
191         * m4/pid_t.m4: New file.
192         * modules/sys_types (Files): Add it.
193         * modules/dirent (Files): Likewise.
194         * modules/fcntl-h (Files): Likewise.
195         * modules/sched (Files): Likewise.
196         * modules/signal-h (Files): Likewise.
197         * modules/spawn (Files): Likewise.
198         * modules/sys_stat (Files): Likewise.
199         * modules/sys_wait (Files): Likewise.
200         * modules/termios (Files): Likewise.
201         * modules/unistd (Files): Likewise.
203 2020-08-23  Bruno Haible  <bruno@clisp.org>
205         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
206         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
207         program.
209 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
211         intprops: be consistent about +X vs X+0
212         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
214         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
215         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
216         is a bit-field, on older GCC or non-GCC compilers where we do
217         things ourselves instead of using __builtin_mul_overflow.
218         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
219         to applying sizeof to a bit-field.
220         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
221         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
223 2020-08-23  Bruno Haible  <bruno@clisp.org>
225         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
226         Reported by Jörg Sonnenberger <joerg@netbsd.org>
227         via Thomas Klausner <tk@giga.or.at> in
228         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
229         * lib/supersede.c (open_supersede): When opening an existing non-regular
230         file on Solaris, use O_CREAT although it should not be necessary.
232 2020-08-23  Bruno Haible  <bruno@clisp.org>
234         verify: Make assume work on bit field expressions (regr. 2020-08-22).
235         Reported by Benno Schulenberg <bensberg@telfort.nl> in
236         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
237         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
238         variable.
240 2020-08-23  Bruno Haible  <bruno@clisp.org>
242         libc-config: Improve comments.
243         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
244         cannot use clang's __diagnose_if__ here.
246 2020-08-22  Bruno Haible  <bruno@clisp.org>
248         verify: Do use __builtin_assume on clang.
249         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
250         variable in a statement expression.
252 2020-08-22  Bruno Haible  <bruno@clisp.org>
254         sig2str: Add more signals.
255         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
257 2020-08-22  Bruno Haible  <bruno@clisp.org>
259         doc: Update for OpenBSD 6.0, 6.7.
260         * doc/*/*.texi: Update.
261         * m4/printf.m4: Update comments and cross-compilation guesses.
262         * m4/ceill.m4: Update comments.
263         * m4/getcwd-abort-bug.m4: Likewise.
264         * m4/ilogb.m4: Likewise.
265         * m4/ilogbf.m4: Likewise.
266         * m4/langinfo_h.m4: Likewise.
267         * m4/modf.m4: Likewise.
268         * m4/modff.m4: Likewise.
270 2020-08-22  Bruno Haible  <bruno@clisp.org>
272         doc: Mention sig2str module.
273         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
275 2020-08-21  Bruno Haible  <bruno@clisp.org>
277         sigdescr_np: Add tests.
278         * tests/test-sigdescr_np.c: New file.
279         * modules/sigdescr_np-tests: New file.
281         sigdescr_np: New module.
282         * lib/string.in.h (sigdescr_np): New declaration.
283         * lib/sigdescr_np.c: New file.
284         * m4/sigdescr_np.m4: New file.
285         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
286         declared.
287         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
288         HAVE_SIGDESCR_NP.
289         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
290         HAVE_SIGDESCR_NP.
291         * modules/sigdescr_np: New file.
292         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
293         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
295 2020-08-20  Bruno Haible  <bruno@clisp.org>
297         sigabbrev_np: Add tests.
298         * tests/test-sigabbrev_np.c: New file.
299         * modules/sigabbrev_np-tests: New file.
301         sigabbrev_np: New module.
302         * lib/string.in.h (sigabbrev_np): New declaration.
303         * lib/sigabbrev_np.c: New file.
304         * m4/sigabbrev_np.m4: New file.
305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
306         declared.
307         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
308         HAVE_SIGABBREV_NP.
309         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
310         HAVE_SIGABBREV_NP.
311         * modules/sigabbrev_np: New file.
312         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
313         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
315 2020-08-20  Bruno Haible  <bruno@clisp.org>
317         stdalign tests: Skip test with AIX xlclang.
318         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
320 2020-08-20  Bruno Haible  <bruno@clisp.org>
322         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
323         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
324         workaround as for GCC versions < 4.9.
326 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
328         Sync up ProjectQuirks comments and documentation
329         Transform the ProjectQuirks comments into a docstring so that it can
330         be accessed from python as ProjectQuirks.__doc__ and harmonize
331         descriptions with the documentation.
332         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
333         Transform comments into a docstring.
334         * doc/vcs-to-changelog.texi: Sync up description with comments.
336         Split ProjectQuirks out into its own file
337         ProjectQuirks is used by external quirks files and importing it from
338         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
339         is cleaner to put it in its own file anyway.
340         * build-aux/vcstocl/projectquirks.py: A new file...
341         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
342         we move ProjectQuirks and import the file.
344 2020-08-19  Bruno Haible  <bruno@clisp.org>
346         uchar: Fix compilation errors in C++ mode on macOS.
347         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
348         system header file before attempting to use 'char16_t' and 'char32_t'.
350 2020-08-19  Bruno Haible  <bruno@clisp.org>
352         ansi-c++-opt: Work around an autoconf macro reordering problem.
353         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
354         section.
356 2020-08-19  Bruno Haible  <bruno@clisp.org>
358         math C++ tests: Fix compilation error in with GCC 10.
359         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
360         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
361         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
363 2020-08-19  Bruno Haible  <bruno@clisp.org>
365         uchar: Fix compilation errors in C++ mode on OpenBSD.
366         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
367         CXX_HAS_UCHAR_TYPES is 1.
368         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
369         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
370         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
372 2020-08-19  Bruno Haible  <bruno@clisp.org>
374         Fix compilation errors in C++ mode on OpenBSD.
375         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
376         OpenBSD with clang, use the approach without C preprocessor macro.
378 2020-08-18  Bruno Haible  <bruno@clisp.org>
380         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
381         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
382         AC_LANG_POP.
384 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
386         verify: avoid __built_assume on Clang
387         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
388         Clang 9 incorrectly diagnoses arguments as having side effects
389         even when they do not.  I guess Clang 9 considers any function
390         call as if it had a side effect here.
392         libc-config: avoid Clang’s __diagnose_if__
393         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
394         For now, do not use __diagnose_if__ here, as this fails
395         on Fedora 31 with Clang 9.0.1, with diagnostic
396         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
397         size than length of destination buffer
398         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
399         for functions that are not called?
401         careadlinkat: speedup for GCC 10 with GCC_LINT
402         Inspired by a suggestion by Bruno Haible in:
403         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
404         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
405         (readlink_stk): New function, with most of the old careadlinkat
406         contents and with a new STACK_BUF arg.  Inline it in GCC 10
407         if GCC_LINT.
408         (careadlinkat): Use the new function for everything but the
409         stack buffer.
411         * build-aux/gcc-warning.spec: Update comments.
413 2020-08-17  Bruno Haible  <bruno@clisp.org>
415         Assume autoconf >= 2.64.
416         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
418 2020-08-17  Bruno Haible  <bruno@clisp.org>
420         Revert autoupdate's revert.
421         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
423 2020-08-17  Bruno Haible  <bruno@clisp.org>
425         uchar C++ tests: Fix build error on FreeBSD 12.
426         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
427         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
428         <cuchar> does not exist.
430 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
432         time_rz: remove unused functions
433         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
435         time_rz: fix issues with mktime_z failures
436         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
437         Use a cheaper tm_yday test for failed mktime.
439 2020-08-16  Bruno Haible  <bruno@clisp.org>
441         intprops test: Strengthen on clang.
442         * tests/test-intprops.c (VERIFY): Use verify_stmt.
444 2020-08-16  Bruno Haible  <bruno@clisp.org>
446         nstrftime: Guide inlining also on clang.
447         * lib/nstrftime.c (iso_week_days): Inline also on clang.
449 2020-08-16  Bruno Haible  <bruno@clisp.org>
451         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
452         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
454 2020-08-16  Bruno Haible  <bruno@clisp.org>
456         log2l: Disable MSVC workaround on clang.
457         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
459 2020-08-16  Bruno Haible  <bruno@clisp.org>
461         argp: Emit a warning also with clang.
462         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
463         clang.
465 2020-08-16  Bruno Haible  <bruno@clisp.org>
467         libc-config: Enable __REDIRECT macro also on clang.
468         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
469         __ASMNAME2): Define on clang like on GCC.
471 2020-08-16  Bruno Haible  <bruno@clisp.org>
473         regex: Use initializer shorthand syntax also with clang.
474         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
475         with clang.
477 2020-08-16  Bruno Haible  <bruno@clisp.org>
479         regex: Use space optimization also with clang.
480         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
481         with clang.
483 2020-08-16  Bruno Haible  <bruno@clisp.org>
485         Use _Static_assert and static_assert primitives when present on clang.
486         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
487         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
488         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
490 2020-08-16  Bruno Haible  <bruno@clisp.org>
492         Use 'throw ()' for optimization in C++ mode also on clang.
493         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
494         * lib/getopt-cdefs.in.h (__THROW): Likewise.
495         * lib/md5.h (__THROW): Likewise.
497 2020-08-16  Bruno Haible  <bruno@clisp.org>
499         absolute-header: Add support for clang.
500         * modules/absolute-header (Makefile.am): Include '__clang__' in the
501         HAVE_INCLUDE_NEXT expression.
503 2020-08-16  Bruno Haible  <bruno@clisp.org>
505         Fix "warning: implicitly declaring library function 'strcasecmp'".
506         * lib/argp-help.c: Include <strings.h>.
508 2020-08-16  Bruno Haible  <bruno@clisp.org>
510         stdio: Don't break attribute 'scanf' on clang.
511         * lib/stdio.in.h (scanf): Treat clang like GCC.
513 2020-08-16  Bruno Haible  <bruno@clisp.org>
515         Use __restrict also on clang.
516         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
517         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
518         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
520 2020-08-16  Bruno Haible  <bruno@clisp.org>
522         pthread-spin: Use GCC built-ins also on clang.
523         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
524         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
525         also on clang.
527 2020-08-16  Bruno Haible  <bruno@clisp.org>
529         asyncsafe-spin tests: Update.
530         * tests/test-asyncsafe-spin2.c: Update to match the change in
531         lib/asyncsafe-spin.c from 2020-08-11.
533 2020-08-16  Bruno Haible  <bruno@clisp.org>
535         setenv: Use tree code also with clang.
536         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
538 2020-08-16  Bruno Haible  <bruno@clisp.org>
540         math: Optimize signbit also on clang.
541         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
542         on clang.
544 2020-08-16  Bruno Haible  <bruno@clisp.org>
546         avltreehash-list, rbtreehash-list: Optimize also on clang.
547         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
548         __builtin_expect also on clang.
550 2020-08-16  Bruno Haible  <bruno@clisp.org>
552         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
553         * lib/socket.c: Use WSASocketW, not WSASocketA.
555         Fix "warning: format specifies type 'unsigned long'".
556         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
557         argument to match the format directive.
559         Fix "warning: no case matching constant switch condition '0'".
560         * tests/test-fcntl.c (check_flags): Add a 'default' case.
562         Fix "warning: integer overflow in expression".
563         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
564         remove a 'long' overflow.
566         Fix "warning: "getpagesize" redefined".
567         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
568         macro.
570         Fix "warning: implicitly declaring library function 'strncasecmp'".
571         * lib/strptime.c: Include <strings.h>.
573         Fix "warning: 'snprintf' macro redefined".
574         * lib/strerror_r.c (snprintf): Undefine before redefining.
576         Fix "warning: address of array 'locale' will always evaluate to 'true'".
577         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
579         Fix "warning: '__stat64' macro redefined".
580         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
582         Fix "warning: 'format' attribute argument not supported: rpl_printf".
583         * lib/stdio.in.h (printf): Treat clang like GCC.
585         Fix "warning: attribute declaration must precede definition" with clang.
586         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
587         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
588         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
589         on non-glibc systems.
590         * lib/netdb.in.h (gai_strerror): Likewise.
591         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
592         * lib/sys_stat.in.h (fstat): Likewise.
593         * lib/utime.in.h (utime): Likewise.
595         Fix undesired warnings.
596         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
597         clang.
599 2020-08-16  Bruno Haible  <bruno@clisp.org>
601         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
602         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
603         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
604         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
605         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
607 2020-08-16  Bruno Haible  <bruno@clisp.org>
609         Don't use Autoconf quadrigraphs.
610         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
611         Autoconf quadrigraph.
612         * m4/free.m4 (gl_FUNC_FREE): Likewise.
613         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
614         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
615         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
617         * m4/math_h.m4 (gl_MATH_H): Likewise.
618         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
620 2020-08-16  Bruno Haible  <bruno@clisp.org>
622         Fix quoting of AC_LANG_PROGRAM arguments.
623         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
624         arguments through [[...]].
625         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
627         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
628         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
629         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
630         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
631         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
632         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
633         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
634         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
635         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
636         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
637         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
639 2020-08-16  Bruno Haible  <bruno@clisp.org>
641         Assume autoconf >= 2.64.
642         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
643         * DEPENDENCIES: Require Autoconf 2.64 or newer.
644         * NEWS: Mention the changed requirement.
645         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
646         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
648         variables.
649         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
650         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
651         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
652         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
653         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
654         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
655         Likewise.
656         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
657         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
658         * m4/configmake.m4: Update comment.
660 2020-08-16  Bruno Haible  <bruno@clisp.org>
662         sys_ioctl: Simplify.
663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
664         AC_INCLUDES_DEFAULT.
666 2020-08-16  Bruno Haible  <bruno@clisp.org>
668         Fix quoting of AC_LANG_SOURCE arguments.
669         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
670         GL_NOCRASH expansion.
671         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
673         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
677 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
679         nstrftime: be more predictable about errno
680         This aligns nstrftime better with draft POSIX 202x strftime.
681         * lib/nstrftime.c: Include errno.h.
682         (width_add, __strftime_internal): Set errno on failure,
683         and preserve it on success.  Check for mktime_z failure.
684         * modules/nstrftime (Depends-on): Add errno.
685         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
686         * tests/test-nstrftime.c: Include intprops.h, limits.h.
687         (errno_test): New test function.
688         (main): Call it.
690 2020-08-15  Bruno Haible  <bruno@clisp.org>
692         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
693         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
694         from dependency analysis first.
696 2020-08-15  Bruno Haible  <bruno@clisp.org>
698         Determine asm output option and filename suffix for MSVC/clang.
699         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
700         clang-cl.
702 2020-08-15  Bruno Haible  <bruno@clisp.org>
704         doc: Update for MSVC/clang.
705         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
706         that MSVC 14 does not have.
708 2020-08-15  Bruno Haible  <bruno@clisp.org>
710         Revert autoupdate's revert.
711         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
713 2020-08-15  Bruno Haible  <bruno@clisp.org>
715         frexpl: Fix configuration test result on MSVC.
716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
717         zero.
719 2020-08-15  Bruno Haible  <bruno@clisp.org>
721         Support compiling without -loldnames on native Windows.
722         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
723         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
724         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
725         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
726         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
728         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
729         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
730         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
731         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
732         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
733         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
734         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
735         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
736         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
737         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
738         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
739         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
740         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
741         Likewise.
742         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
743         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
744         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
745         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
746         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
747         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
748         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
749         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
750         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
751         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
752         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
753         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
754         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
755         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
756         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
757         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
758         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
760         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
761         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
762         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
763         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
765         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
766         * m4/utimens.m4 (gl_UTIMENS): Likewise.
767         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
768         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
769         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
770         test for getcwd.
771         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
772         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
773         with GL_MDA_DEFINES.
774         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
775         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
776         prefixed symbol.
777         * lib/search.in.h (lfind, lsearch): Likewise.
778         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
779         Likewise.
780         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
781         * lib/string.in.h (memccpy, strdup): Likewise.
782         * lib/sys_stat.in.h (chmod, umask): Likewise.
783         * lib/time.in.h (tzset): Likewise.
784         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
785         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
786         read, rmdir, swab, unlink, write): Likewise.
787         * lib/utime.in.h (utime): Likewise.
788         * lib/wchar.in.h (wcsdup): Likewise.
789         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
790         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
791         rpl_-prefixed macro.
792         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
793         * lib/close.c (close_nothrow): On native Windows, use _close.
794         * lib/creat.c (orig_creat): On native Windows, use _creat.
795         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
796         * lib/dup2.c (dup2_nothrow): Use _dup2.
797         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
798         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
799         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
800         * lib/open.c (orig_open): On native Windows, use _open.
801         * lib/read.c (read_nothrow): Use _read.
802         * lib/rmdir.c: On native Windows, use _rmdir.
803         * lib/unlink.c: On native Windows, use _unlink.
804         * lib/write.c (write_nothrow): Use _write.
805         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
806         undefined symbol.
807         * lib/sys_socket.in.h (close): Likewise.
808         * lib/sys_time.in.h (close): Likewise.
809         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
811 2020-08-15  Bruno Haible  <bruno@clisp.org>
813         Fix "unknown pragma ignored" warnings with clang on native Windows.
814         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
815         * lib/cbrtf.c: Likewise.
816         * lib/ceil.c: Likewise.
817         * lib/floor.c: Likewise.
818         * lib/fma.c: Likewise.
819         * lib/fmod.c: Likewise.
820         * lib/rint.c: Likewise.
821         * lib/round.c: Likewise.
822         * lib/trunc.c: Likewise.
823         * tests/test-ceil2.c: Likewise.
824         * tests/test-ceilf2.c: Likewise.
825         * tests/test-floor2.c: Likewise.
826         * tests/test-floorf2.c: Likewise.
827         * tests/test-trunc2.c: Likewise.
828         * tests/test-truncf2.c: Likewise.
829         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
832 2020-08-15  Bruno Haible  <bruno@clisp.org>
834         Fix compilation errors in C++ mode with clang on native Windows.
835         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
836         non-glibc systems.
837         * lib/sched.in.h (sched_yield): Likewise.
839 2020-08-14  Bruno Haible  <bruno@clisp.org>
841         stdnoreturn: Work around problem with MSVC/clang.
842         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
843         system header after <stdnoreturn.h>.
844         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
846 2020-08-14  Bruno Haible  <bruno@clisp.org>
848         utime-h: Generate an utime.h file always.
849         * modules/utime-h (Makefile.am): Generate utime.h always.
850         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
851         GL_GENERATE_UTIME_H.
853 2020-08-14  Bruno Haible  <bruno@clisp.org>
855         mktime, mktime-internal: Remove obsolete code.
856         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
858 2020-08-14  Bruno Haible  <bruno@clisp.org>
860         getcwd: Remove obsolete code.
861         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
864 2020-08-14  Bruno Haible  <bruno@clisp.org>
866         tzset: Assume the function exists.
867         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
868         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
869         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
870         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
871         HAVE_TZSET.
872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
873         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
875         nstrftime: Assume tzset exists.
876         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
877         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
878         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
880         mktime, mktime-internal: Assume tzset exists.
881         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
882         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
884 2020-08-14  Bruno Haible  <bruno@clisp.org>
886         strdup: Assume the function exists.
887         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
888         whether strdup exists.
889         * modules/strdup (Files): Remove lib/strdup.c.
890         (configure.ac): Don't compile strdup.c.
891         * modules/strdup-posix (Depends-on, configure.ac): Don't test
892         ac_cv_func_strdup.
893         * doc/posix-functions/strdup.texi: Update.
894         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
895         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
896         (Depends-on): Remove unistr/u8-strlen.
898 2020-08-13  Bruno Haible  <bruno@clisp.org>
900         sys_random: Work around an uClibc bug.
901         Reported by akater <nuclearspace@gmail.com>
902         via Stefan Kangas <stefan@marxist.se>
903         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
904         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
905         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
906         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
907         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
909 2020-08-12  Bruno Haible  <bruno@clisp.org>
911         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
912         Reported by Florian Weimer in
913         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
914         * lib/gen-uni-tables.c (output_predicate): Change the element type of
915         the level3 array to 'unsigned int'.
916         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
917         * lib/unictype/categ_*.h: Regenerated.
918         * lib/unictype/ctype_*.h: Regenerated.
919         * lib/unictype/pr_*.h: Regenerated.
920         * lib/unictype/sy_*.h: Regenerated.
921         * lib/unicase/cased.h: Regenerated.
922         * lib/unicase/ignorable.h: Regenerated.
924 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
926         stdint: port intptr_t to more-recent MinGW
927         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
928         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
929         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
930         Apparently those two macros were removed in mingwrt-3.22
931         dated 2016-07-14.
933 2020-08-12  Bruno Haible  <bruno@clisp.org>
935         thread-optim: Export function-like macros only.
936         Suggested by Paul Eggert.
937         * lib/thread-optim.h (gl_multithreaded): New macro.
938         (IF_MT_DECL, IF_MT): Remove macros.
939         * doc/multithread.texi (Multithreading Optimizations): Add a small
940         example.
941         * lib/fatal-signal.c: Update all uses.
942         * lib/clean-temp.c: Likewise.
943         * lib/localename.c: Likewise.
944         * modules/localename (Depends-on): Add stdbool.
946 2020-08-12  Bruno Haible  <bruno@clisp.org>
948         Revert autoupdate's revert.
949         * config/srclist.txt: Mark regex.h as needing sync with glibc.
951 2020-08-11  Bruno Haible  <bruno@clisp.org>
953         thread-optim: Fix a compiler warning.
954         * lib/thread-optim.h (IF_MT_DECL): Define differently.
956 2020-08-11  Bruno Haible  <bruno@clisp.org>
958         Use __restrict also on clang.
959         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
960         (__restrict_arr): On clang, define like on GCC.
961         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
962         (_Restrict_arr_): Use _Restrict_ also on clang.
963         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
964         (_Restrict_arr_): Use _Restrict_ also on clang.
966 2020-08-11  Bruno Haible  <bruno@clisp.org>
968         Use flexible array syntax also on clang.
969         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
970         define like for GCC 3.
972 2020-08-11  Bruno Haible  <bruno@clisp.org>
974         fcntl: On native Windows, use _setmode, not setmode.
975         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
976         * lib/binary-io.h: Update comment.
977         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
978         * tests/test-dup2.c: Likewise.
979         * tests/test-dup-safer.c: Likewise.
980         * tests/test-fcntl.c: Likewise.
982 2020-08-11  Bruno Haible  <bruno@clisp.org>
984         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
985         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
986         * lib/spawn-pipe.c (create_pipe): Likewise.
987         * tests/test-nonblocking-pipe-main.c (main): Likewise.
988         * tests/test-nonblocking-socket-main.c (main): Likewise.
989         * lib/wait-process.c: Update comment.
990         * doc/posix-functions/fork.texi: Update.
992 2020-08-11  Bruno Haible  <bruno@clisp.org>
994         asyncsafe-spin: Use GCC built-ins also on clang.
995         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
996         the newer GCC built-ins also on clang.
998 2020-08-11  Bruno Haible  <bruno@clisp.org>
1000         Use expression statements also on clang.
1001         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1002         * lib/obstack.h (__extension__): Likewise.
1003         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1004         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1005         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1006         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1007         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1008         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1010 2020-08-10  Bruno Haible  <bruno@clisp.org>
1012         Use many __attribute__s with clang.
1013         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1014         on clang.
1015         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1016         New macros.
1017         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1018         on clang.
1019         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1020         also on older clang versions.
1021         (__attribute__): Don't define to empty on clang.
1022         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1023         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1024         (__attribute_const__): Use __attribute__ __const__ also on clang.
1025         (__attribute_used__): Use __attribute__ __used__ also on clang.
1026         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1027         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1028         clang.
1029         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1030         clang.
1031         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1032         also on clang.
1033         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1034         (__attribute_warn_unused_result__): Use __attribute__
1035         __warn_unused_result__ also on clang.
1036         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1037         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1038         clang >= 7.
1039         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1040         clang versions.
1041         (_Noreturn): Don't redefine on clang >= 3.5.
1042         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1043         also on clang.
1044         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1045         on clang.
1046         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1047         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1048         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1049         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1050         also on clang.
1051         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1052         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1053         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1054         also on clang.
1055         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1056         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1057         __attribute__ __noreturn__ also on clang.
1058         * lib/obstack.h (__attribute_noreturn__): Likewise.
1059         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1060         clang.
1061         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1062         always_inline also on clang.
1063         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1064         clang.
1066 2020-08-10  Bruno Haible  <bruno@clisp.org>
1068         c-ldtoastr tests: Fix test failure.
1069         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1070         is longer than 'double'.
1072 2020-08-10  Bruno Haible  <bruno@clisp.org>
1074         Revert autoupdate's revert.
1075         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1077 2020-08-09  Bruno Haible  <bruno@clisp.org>
1079         string: Fix build error in C++ mode with clang (regression from today).
1080         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1081         parameters, one for GCC, one for clang.
1082         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1083         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1084         as return type.
1086 2020-08-09  Bruno Haible  <bruno@clisp.org>
1088         ftruncate: Use _chsize, not chsize.
1089         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1090         * lib/ftruncate.c: Test HAVE__CHSIZE.
1091         (chsize_nothrow): Use _chsize, not chsize.
1093 2020-08-09  Bruno Haible  <bruno@clisp.org>
1095         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1096         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1097         clang >= 10.
1098         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1099         * lib/fts.c (FALLTHROUGH): Likewise.
1100         * tests/macros.h (FALLTHROUGH): Likewise.
1101         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1102         * config/srclist.txt: Mark it as needing sync with glibc.
1104 2020-08-09  Bruno Haible  <bruno@clisp.org>
1106         stdbool tests: Enable the stricter tests also on clang.
1107         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1108         (e): Enable the address-to-bool conversion test also on clang.
1110 2020-08-09  Bruno Haible  <bruno@clisp.org>
1112         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1113         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1115 2020-08-09  Bruno Haible  <bruno@clisp.org>
1117         Use attribute __aligned__ with clang.
1118         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1119         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1121 2020-08-09  Bruno Haible  <bruno@clisp.org>
1123         Use __alignof__ with clang.
1124         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1125         on clang.
1126         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1127         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1128         clang.
1129         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1130         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1131         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1132         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1134 2020-08-09  Bruno Haible  <bruno@clisp.org>
1136         ignore-value: Simplify on clang.
1137         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1138         workaround.
1140 2020-08-09  Bruno Haible  <bruno@clisp.org>
1142         Use __typeof__ with clang.
1143         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1144         "clang -std=gnu99".
1145         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1146         * tests/test-stdint.c (verify_same_types): Enable the check also on
1147         clang.
1149 2020-08-09  Bruno Haible  <bruno@clisp.org>
1151         Add ability to emit user-defined warnings and errors with clang.
1152         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1153         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1154         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1155         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1156         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1157         attribute for clang.
1159 2020-08-09  Bruno Haible  <bruno@clisp.org>
1161         intprops: Fix typo in comment.
1162         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1164 2020-08-09  Bruno Haible  <bruno@clisp.org>
1166         Use __builtin_signbit* with clang.
1167         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1168         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1169         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1171         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1172         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1173         not REPLACE_SIGNBIT_USING_GCC.
1175 2020-08-09  Bruno Haible  <bruno@clisp.org>
1177         Use __builtin_isnan with clang.
1178         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1179         not __builtin_isnanf. Also on clang.
1180         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1181         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1182         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1183         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1184         built-in.
1185         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1186         not __builtin_isnanl. Also on clang.
1187         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1188         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1189         * lib/math.in.h (__has_builtin): Remove macro.
1190         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1191         __builtin_isnanf. Also on clang.
1192         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1193         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1194         __builtin_isnanl. Also on clang.
1195         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1196         on clang.
1198 2020-08-09  Bruno Haible  <bruno@clisp.org>
1200         thread-optim: Fix logic error.
1201         Reported by Paul Eggert.
1202         * lib/thread-optim.h (IF_MT): Fix logic error.
1204 2020-08-08  Bruno Haible  <bruno@clisp.org>
1206         localename: Use module 'thread-optim'.
1207         * lib/localename.c: Include thread-optim.h.
1208         (struniq): Use IF_MT macro.
1209         * modules/localename (Depends-on): Add thread-optim.
1211         clean-temp: Use module 'thread-optim'.
1212         * lib/clean-temp.c: Include thread-optim.h.
1213         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1214         register_temp_file, unregister_temp_file, register_temp_subdir,
1215         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1216         close_temp, fclose_variant_temp): Use IF_MT macro.
1217         * modules/clean-temp (Depends-on): Add thread-optim.
1219         fatal-signal: Use module 'thread-optim'.
1220         * lib/fatal-signal.c: Include thread-optim.h.
1221         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1222         macro.
1223         * modules/fatal-signal (Depends-on): Add thread-optim.
1225 2020-08-08  Bruno Haible  <bruno@clisp.org>
1227         New module 'thread-optim'.
1228         * lib/thread-optim.h: New file.
1229         * modules/thread-optim: New file.
1230         * doc/multithread.texi (Multithreading Optimizations): New section.
1232 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1234         doc: more updates for glibc 2.32
1235         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1236         * doc/posix-functions/fchmodat.texi: Update.
1238 2020-08-07  Bruno Haible  <bruno@clisp.org>
1240         doc: Update for glibc 2.32.
1241         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1242         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1243         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1244         * doc/glibc-functions/sigabbrev_np.texi: New file.
1245         * doc/glibc-functions/sigdescr_np.texi: New file.
1246         * doc/glibc-functions/strerrordesc_np.texi: New file.
1247         * doc/glibc-functions/strerrorname_np.texi: New file.
1248         * doc/gnulib.texi: Include them.
1249         (Glibc sys/single_threaded.h): New section.
1250         * doc/pastposix-functions/h_errno.texi: Update.
1251         * doc/posix-functions/*.texi: Likewise.
1252         * doc/glibc-functions/*.texi: Likewise.
1254 2020-08-07  Bruno Haible  <bruno@clisp.org>
1256         alloca: No need to compile alloca.c with clang.
1257         * lib/alloca.c: Skip all code with clang.
1259         Use __builtin_alloca with clang.
1260         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1262 2020-08-06  Bruno Haible  <bruno@clisp.org>
1264         Use __builtin_assume with clang.
1265         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1266         (assume): Use __builtin_assume when available.
1268 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1270         libgmp: add <gmp/gmp.h> support
1271         * m4/libgmp.m4 (gl_LIBGMP):
1272         * modules/libgmp (configure.ac, Makefile.am):
1273         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1274         ‘#include <gmp.h>’.
1276 2020-08-06  Bruno Haible  <bruno@clisp.org>
1278         Consider that clang defines __OPTIMIZE__ like GCC does.
1279         * lib/streq.h: Define the inline functions also on clang.
1280         * lib/c-strcaseeq.h: Likewise.
1281         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1282         the GCC workaround to clang.
1284 2020-08-06  Bruno Haible  <bruno@clisp.org>
1286         safe-alloc: Remove unused code.
1287         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1289 2020-08-06  Bruno Haible  <bruno@clisp.org>
1291         Use __builtin_expect with clang everywhere.
1292         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1293         also on clang.
1295 2020-08-05  Bruno Haible  <bruno@clisp.org>
1297         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1298         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1299         built-in also on clang.
1300         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1301         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1303 2020-08-05  Bruno Haible  <bruno@clisp.org>
1305         Use __builtin_clz{,l,ll} with clang, also on Windows.
1306         * lib/integer_length.c: With clang, use the GCC built-in, not
1307         <intrin.h>.
1308         * lib/integer_length_l.c: Likewise.
1309         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1310         also on clang.
1311         * lib/vasnprintf.c (divide): Likewise.
1313 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1315         Update srclist.txt as per recent glibc changes
1316         * config/srclist.txt: Uncomment lines to reflect recent merges
1317         from Gnulib to glibc.
1319 2020-08-03  Bruno Haible  <bruno@clisp.org>
1321         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1322         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1324 2020-08-03  Bruno Haible  <bruno@clisp.org>
1326         integer_length_ll: Optimize for MSVC in 64-bit mode.
1327         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1328         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1330 2020-08-03  Bruno Haible  <bruno@clisp.org>
1332         integer_length_ll: Optimize for MSVC in 32-bit mode.
1333         * lib/integer_length_l.c: Include <intrin.h>.
1334         (integer_length): Define as inline function, like in
1335         lib/integer_length.c.
1337 2020-08-03  Bruno Haible  <bruno@clisp.org>
1339         integer_length: Optimize for MSVC.
1340         * lib/integer_length.c: Include <intrin.h>.
1341         (integer_length): With MSVC, use the _BitScanReverse built-in.
1343 2020-08-03  Bruno Haible  <bruno@clisp.org>
1345         ffsll: Optimize for MSVC in 64-bit mode.
1346         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1347         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1348         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1350 2020-08-03  Bruno Haible  <bruno@clisp.org>
1352         ffsll: Optimize for MSVC in 32-bit mode.
1353         * lib/ffsl.h: Include <intrin.h>.
1354         (ffs): Define as inline function, like in lib/ffs.c.
1356 2020-08-03  Bruno Haible  <bruno@clisp.org>
1358         ffs: Optimize for MSVC.
1359         * lib/ffs.c: Include <intrin.h>.
1360         (ffs): With MSVC, use the _BitScanForward built-in.
1362 2020-08-03  Bruno Haible  <bruno@clisp.org>
1364         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1366         variable.
1368 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1370         fopen: Avoid undesired interactions with glibc headers.
1371         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1372         __need_FILE, as the latter does not work with glibc.
1374 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1376         fcntl: document some F_SETLK errno variations
1377         * doc/posix-functions/fcntl.texi (fcntl): Document
1378         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1380 2020-08-02  Bruno Haible  <bruno@clisp.org>
1382         oset: Add an 'iterator_atleast' operation.
1383         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1384         extracted from gl_array_search_atleast.
1385         (gl_array_search_atleast): Use it.
1386         (gl_array_iterator_atleast): New function.
1387         (gl_array_oset_implementation): Use it.
1388         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1389         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1390         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1391         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1392         member.
1393         (gl_oset_iterator_atleast): New function.
1394         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1395         (gl_OSet::iterator): Add another auxiliary constructor.
1396         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1397         New functions.
1398         (main): Test also gl_oset_iterator_atleast.
1399         * tests/test-avltree_oset.c (is_at_least): New function.
1400         (main): Test also gl_oset_iterator_atleast.
1401         * tests/test-rbtree_oset.c (is_at_least): New function.
1402         (main): Test also gl_oset_iterator_atleast.
1403         * tests/test-oset-c++.cc (is_at_most): New function.
1404         (main): Test also gl_OSet::begin_atleast.
1406 2020-08-02  Bruno Haible  <bruno@clisp.org>
1408         oset-c++, omap-c++: Remove restriction for search_atleast method.
1409         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1410         a different type than the element.
1411         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1412         a different type than the key.
1414 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1416         gnumakefile: say ‘$(MAKE)’ not ‘make’
1417         * top/GNUmakefile (abort-due-to-no-makefile):
1418         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
1419         This change is backported from Autoconf.
1421 2020-08-01  Bruno Haible  <bruno@clisp.org>
1423         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1424         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
1425         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1426         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1427         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1428         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
1430 2020-08-01  Bruno Haible  <bruno@clisp.org>
1432         libtextstyle-optional: Update tests.
1433         * modules/libtextstyle-optional-tests (configure.ac): Invoke
1434         gl_LIBTEXTSTYLE_OPTIONAL.
1436 2020-08-01  Bruno Haible  <bruno@clisp.org>
1438         parse-datetime: Fix wrong #line statements.
1439         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1440         parse-datetime-gen.h.
1442 2020-08-01  Bruno Haible  <bruno@clisp.org>
1444         libtextstyle[-optional]: Allow requesting a minimum version.
1445         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1446         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1447         gl_LIBTEXTSTYLE_SEARCH): New macros.
1448         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1449         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1450         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1451         * modules/libtextstyle-optional (configure.ac): Don't invoke
1452         gl_LIBTEXTSTYLE_OPTIONAL.
1453         * NEWS: Mention the changes.
1455 2020-07-31  Bruno Haible  <bruno@clisp.org>
1457         _GL_CMP: Improve documentation.
1458         Reported by Paul Eggert in
1459         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1460         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1461         passed.
1463 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1465         largefile: sync with Autoconf master
1466         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1467         Avoid undefined behavior on platforms where off_t is 32 bits.
1468         See: https://bugs.debian.org/742780
1470         alloca: sync with Autoconf master
1471         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1472         Do not define if Autoconf 2.70 or later, since Autoconf master
1473         now matches us.
1475 2020-07-30  Bruno Haible  <bruno@clisp.org>
1477         unicodeio: Add comment.
1478         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1479         different iconv behaviours.
1481 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1483         Work around some Oracle Studio attribute bugs
1484         These were discovered when building bleeding-edge Emacs with
1485         Oracle Studio.
1486         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1487         Port to Oracle Studio 12.6, which mishandles __attribute__
1488         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1489         __has_attribute says they work.
1491 2020-07-29  Bruno Haible  <bruno@clisp.org>
1493         unicodeio: Fix wrong result on musl libc.
1494         Reported by A. Wilcox <awilfox@adelielinux.org> in
1495         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1496         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1497         on musl libc.
1498         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1499         * modules/unicodeio (Files): Add m4/musl.m4.
1501 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1503         fsusage, regex, stat-size: remove Cray support
1504         As near as I can make out this is actually support for UNICOS/mp,
1505         last released 2005, and Cray hasn’t supported that for years.
1506         * config/srclist.txt: Comment out regex.h for now.
1507         * lib/fsusage.c (get_fs_usage):
1508         * lib/regex.h (re_comp, re_exec):
1509         * lib/stat-size.h (ST_NBLOCKSIZE):
1510         Don’t worry about _CRAY.
1512 2020-07-29  Bruno Haible  <bruno@clisp.org>
1514         parse-datetime: Fix compilation error with bison 3.7.
1515         * modules/parse-datetime (Makefile.am): Create a generated header file
1516         parse-datetime-gen.h in the source directory. Correct #include and
1517         #line statements during preprocessing.
1519 2020-07-28  Bruno Haible  <bruno@clisp.org>
1521         fopen-gnu: Create files correctly (regression from 2020-05-24).
1522         * lib/fopen.c (rpl_open): Pass a third argument to open().
1524 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1526         xalloc-die: don’t depend on xalloc
1527         This removes a circular dependency, as xalloc depends on xalloc-die.
1528         * modules/xalloc-die (Files): Add lib/xalloc.h.
1529         (Depends-on): Remove xalloc.
1530         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1532         dfa-tests: port to MSVC
1533         Problem reported by Gisle Vanem in:
1534         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1535         Also, remove an unnecessary dependency on getprogname.
1536         * modules/dfa-tests (Depends-on): Remove getprogname.
1537         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1538         (exit_status): New static var.
1539         (dfawarn): Set it instead of exiting.
1540         Do not declare as _Noreturn, to pacify MSVC.
1541         (main): Return exit_status.
1543 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1545         argz: pacify MSVC
1546         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1547         Problem reported by Gisle Vanem.
1549         libgmp: remove dependency on havelib
1550         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1551         use the more-traditional AC_SEARCH_LIBS approach.
1552         This should work better with GNU Emacs configuration,
1553         which uses pkg-config instead of a havelib-style approach.
1554         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1555         * modules/libgmp (Depends-on): Remove havelib.
1557         libgmp: remove HAVE_GMP, LIB_GMP
1558         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1559         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1561 2020-07-26  Bruno Haible  <bruno@clisp.org>
1563         inttypes: Remove support for AIX 4.
1564         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1565         * m4/inttypes-pri.m4: Remove file.
1566         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1567         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1568         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1569         PRI_MACROS_BROKEN.
1570         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1572 2020-07-26  Bruno Haible  <bruno@clisp.org>
1574         gettimeofday: Remove workaround for Mac OS X 10.0.
1575         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1576         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1577         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1578         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1579         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1580         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1581         * modules/localtime-buffer: Remove file.
1582         * lib/localtime-buffer.h: Remove file.
1583         * lib/localtime-buffer.c: Remove file.
1584         * m4/localtime-buffer.m4: Remove file.
1585         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1587 2020-07-26  Bruno Haible  <bruno@clisp.org>
1589         tzset: Remove workaround for Solaris 2.6.
1590         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1591         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1592         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1593         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1594         * lib/localtime-buffer.c: Likewise.
1595         * lib/localtime.c: Likewise.
1596         * lib/tzset.c: Don't include localtime-buffer.h.
1597         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1598         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1599         is 1.
1600         * modules/tzset (Depends-on): Remove localtime-buffer.
1602 2020-07-26  Bruno Haible  <bruno@clisp.org>
1604         expl: Simplify autoconf test.
1605         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1606         with small values..." test into the "checking whether expl works..."
1607         test.
1609 2020-07-26  Bruno Haible  <bruno@clisp.org>
1611         alloca: Remove Cray-2 and Cray Y-MP support.
1612         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1613         Enable also on Autoconf >= 2.69.
1614         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1615         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1616         i00afunc): Remove.
1618 2020-07-25  Bruno Haible  <bruno@clisp.org>
1620         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1621         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1623 2020-07-25  Bruno Haible  <bruno@clisp.org>
1625         sigprocmask: Small autoconf macro improvement.
1626         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1627         user to override the value of gl_cv_func_sigprocmask.
1628         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1630 2020-07-25  Bruno Haible  <bruno@clisp.org>
1632         Small autoconf macro improvements.
1633         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1634         override the value of gl_cv_func_working_mktime.
1635         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1636         compiler produces multi-arch binaries..." in the configure output.
1637         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1638         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1640 2020-07-25  Bruno Haible  <bruno@clisp.org>
1642         doc: Update for NetBSD 7.1, 8.0, 9.0.
1643         * doc/*/*.texi: Update.
1644         * m4/exp2l.m4: Update comments.
1645         * m4/expl.m4: Likewise.
1646         * m4/ilogb.m4: Likewise.
1647         * m4/ilogbf.m4: Likewise.
1648         * m4/log10l.m4: Likewise.
1649         * m4/logl.m4: Likewise.
1650         * m4/printf.m4: Likewise.
1651         * m4/rintl.m4: Likewise.
1652         * m4/wcwidth.m4: Likewise.
1654 2020-07-24  Bruno Haible  <bruno@clisp.org>
1656         doc: Update for Mac OS X 10.13.
1657         * doc/*/*.texi: Update.
1658         * m4/expm1l.m4: Update comments.
1659         * m4/getgroups.m4: Likewise.
1660         * m4/getlogin_r.m4: Likewise.
1661         * m4/linkat.m4: Likewise.
1662         * m4/printf.m4: Likewise.
1664 2020-07-24  Bruno Haible  <bruno@clisp.org>
1666         doc: Update for Cygwin 2.9.0.
1667         * doc/*/*.texi: Update.
1669 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1671         parse-datetime: modernize doc
1672         * doc/parse-datetime.texi: Use more-current examples.
1673         Don’t lead with 32-bit time_t, as it’s on its way out.
1674         Capitalize “Epoch” to be consistent with POSIX.
1676         timespec: remove dependence on ‘verify’
1677         * lib/timespec.h: Do not include verify.h; no longer needed.
1678         * modules/timespec (Depends-on): Remove ‘verify’.
1680         Optimize a few more three-valued comparisons
1681         * lib/timespec.h (timespec_cmp, timespec_sign):
1682         * lib/utimecmp.c (utimecmpat):
1683         Avoid conditional branches by using _GL_CMP.
1685         Fix _GL_CMP parenthesization typo
1686         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1688 2020-07-24  Bruno Haible  <bruno@clisp.org>
1690         dfa: Revert breaking gawk.
1691         Reported by Arnold Robbins <arnold@skeeve.com>.
1692         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1694 2020-07-23  Bruno Haible  <bruno@clisp.org>
1696         Optimize three-valued comparison between integers.
1697         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1698         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1699         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1700         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1701         * lib/dfa.c (compare): Likewise.
1702         * lib/fts.c (fts_compare_ino): Likewise.
1703         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1704         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1705         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1706         * lib/memcasecmp.c (memcasecmp): Likewise.
1707         * lib/memcmp2.c (memcmp2): Likewise.
1708         * lib/savedir.c (direntry_cmp_inode): Likewise.
1709         * lib/strcasecmp.c (strcasecmp): Likewise.
1710         * lib/strncasecmp.c (strncasecmp): Likewise.
1711         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1713 2020-07-23  Bruno Haible  <bruno@clisp.org>
1715         lchmod: Use /proc on Cygwin.
1716         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1718 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1720         fchmodat: Use /proc on Cygwin
1721         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1723 2020-07-21  Bruno Haible  <bruno@clisp.org>
1725         aligned-malloc: Optionally use aligned_alloc.
1726         * lib/aligned-malloc.h: Verify the alignment.
1727         (aligned_malloc): Use aligned_alloc as an alternative.
1728         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1729         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1730         'aligned-malloc' and 'pagealign_alloc'.
1732 2020-07-21  Bruno Haible  <bruno@clisp.org>
1734         aligned-malloc: Add tests.
1735         * tests/test-aligned-malloc.c: New file.
1736         * modules/aligned-malloc-tests: New file.
1738         aligned-malloc: New module.
1739         * lib/aligned-malloc.h: New file.
1740         * m4/malloc-align.m4: New file.
1741         * modules/aligned-malloc: New file.
1742         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1743         * doc/glibc-functions/memalign.texi: Likewise.
1745 2020-07-21  Bruno Haible  <bruno@clisp.org>
1747         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1748         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1749         sure PRIPTR_PREFIX is defined to "ll", not "l".
1751 2020-07-21  Bruno Haible  <bruno@clisp.org>
1753         printf-posix: Make an autoconf test more future-proof.
1754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1755         using uintptr_t.
1757 2020-07-20  Bruno Haible  <bruno@clisp.org>
1759         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1760         * modules/list (License): Change to LGPLv2+.
1761         * modules/array-list (License): Likewise.
1762         * modules/carray-list (License): Likewise.
1763         * modules/linked-list (License): Likewise.
1764         * modules/avltree-list (License): Likewise.
1765         * modules/rbtree-list (License): Likewise.
1766         * modules/oset (License): Likewise.
1767         * modules/array-oset (License): Likewise.
1768         * modules/avltree-oset (License): Likewise.
1769         * modules/rbtree-oset (License): Likewise.
1770         * modules/omap (License): Likewise.
1771         * modules/array-omap (License): Likewise.
1772         * modules/avltree-omap (License): Likewise.
1773         * modules/rbtree-omap (License): Likewise.
1775 2020-07-20  Bruno Haible  <bruno@clisp.org>
1777         oset: Add an 'update' operation.
1778         * lib/gl_array_oset.c (gl_array_update): New function.
1779         (gl_array_oset_implementation): Use it.
1780         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1781         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1782         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1783         extracted from gl_tree_nx_add_before.
1784         (gl_tree_nx_add_before): Invoke it.
1785         (gl_tree_add_node_after): New function, extracted from
1786         gl_tree_nx_add_after.
1787         (gl_tree_nx_add_after): Invoke it.
1788         (gl_tree_remove_node_no_free): New function, extracted from
1789         gl_tree_remove_node.
1790         (gl_tree_remove_node): Invoke it.
1791         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1792         extracted from gl_tree_nx_add_before.
1793         (gl_tree_nx_add_before): Invoke it.
1794         (gl_tree_add_node_after): New function, extracted from
1795         gl_tree_nx_add_after.
1796         (gl_tree_nx_add_after): Invoke it.
1797         (gl_tree_remove_node_no_free): New function, extracted from
1798         gl_tree_remove_node.
1799         (gl_tree_remove_node): Invoke it.
1800         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1801         from gl_tree_iterator_next.
1802         (gl_tree_iterator_next): Invoke it.
1803         (gl_tree_prev_node, gl_tree_update): New functions.
1804         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1805         (gl_avltree_oset_implementation): Use gl_tree_update.
1806         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1807         (gl_rbtree_oset_implementation): Use gl_tree_update.
1808         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1809         (gl_oset_update): New function.
1810         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1811         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1812         * modules/rbtree-oset (configure.ac): Likewise.
1813         * tests/test-oset-update.h: New file.
1814         * tests/test-array_oset.c: Include test-oset-update.h.
1815         (main): Invoke test_update.
1816         * tests/test-avltree_oset.c: Likewise.
1817         * tests/test-rbtree_oset.c: Likewise.
1818         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1819         * modules/avltree-oset-tests (Files): Likewise.
1820         * modules/rbtree-oset-tests (Files): Likewise.
1821         * tests/test-oset-c++.cc (action): New function.
1822         (main): Test the 'update' member function.
1824 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1826         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1827         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1828         shell if, so that the argument to AC_CHECK_HEADERS is
1829         a simple string that does not require shell evaluation.
1830         This fixes a warning generated by Autoconf 2.69b.
1832 2020-07-12  Bruno Haible  <bruno@clisp.org>
1834         libgmp: Avoid warning when --without-libgmp is used.
1835         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1836         GCC >= 8, not for GCC >= 4.6.
1838 2020-07-12  Bruno Haible  <bruno@clisp.org>
1840         libgmp: Link to the correct shared library.
1841         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1842         * modules/libgmp (Depends-on): Add havelib.
1843         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1844         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1846 2020-07-12  Bruno Haible  <bruno@clisp.org>
1848         libgmp tests: Add some safety checks.
1849         * modules/libgmp-tests (Depends-on): Add verify.
1850         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1851         (main): Verify that gmp.h and libgmp versions match.
1853 2020-07-10  Bruno Haible  <bruno@clisp.org>
1855         unicodeio: Fix wrong result on NetBSD.
1856         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1857         characters also on NetBSD.
1859 2020-07-09  Bruno Haible  <bruno@clisp.org>
1861         unicodeio: Fix wrong result on Solaris 11.
1862         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1863         via Akim Demaille <akim.demaille@gmail.com> in
1864         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1865         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1866         characters on Solaris.
1867         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1868         UTF-8 output or the specified fallback.
1870 2020-07-08  Bruno Haible  <bruno@clisp.org>
1872         unicodeio: Add tests.
1873         * tests/test-unicodeio.c: New file.
1874         * tests/test-unicodeio1.sh: New file.
1875         * tests/test-unicodeio2.sh: New file.
1876         * tests/test-unicodeio3.sh: New file.
1877         * modules/unicodeio-tests: New file.
1879 2020-07-08  Bruno Haible  <bruno@clisp.org>
1881         unicodeio: Document link requirements.
1882         * modules/unicodeio (Link): New section.
1884 2020-07-07  Bruno Haible  <bruno@clisp.org>
1886         doc: Remove support for some very old platforms.
1887         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1888         * doc/posix-functions/memcpy.texi: Likewise.
1889         * doc/posix-functions/memmove.texi: Likewise.
1890         * doc/posix-functions/memset.texi: Likewise.
1891         * doc/posix-functions/getcwd.texi: Likewise.
1893         memchr: Remove support for some very old platforms.
1894         * m4/memchr-obsolete.m4: Remove file.
1895         * modules/memchr-obsolete: Remove file.
1896         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1897         absent. Don't define HAVE_MEMCHR.
1898         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1899         * modules/memchr (Depends-on): Remove memchr-obsolete.
1900         (configure.ac): Assume HAVE_MEMCHR is 1.
1901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1902         HAVE_MEMCHR.
1903         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1904         * doc/posix-functions/memchr.texi: Don't mention module
1905         'memchr-obsolete'.
1906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1907         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1908         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1910         dup2: Remove support for some very old platforms.
1911         * m4/dup2-obsolete.m4: Remove file.
1912         * modules/dup2-obsolete: Remove file.
1913         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1914         Don't define HAVE_DUP2.
1915         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1916         * lib/dup2.c: Likewise.
1917         * modules/dup2 (Depends-on, configure.ac): Likewise.
1918         (Depends-on): Remove dup2-obsolete.
1919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1920         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1921         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1923 2020-07-07  Bruno Haible  <bruno@clisp.org>
1925         canonicalize: Trim module dependencies.
1926         * lib/hash-triple.h: Group declarations.
1927         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1928         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1929         (STREQ): Remove macro.
1930         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1931         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1932         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1933         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1934         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1935         hash-triple-simple.
1936         * modules/file-set (Depends-on): Likewise.
1938 2020-07-07  Bruno Haible  <bruno@clisp.org>
1940         Clarify dependencies to double-slash-root.
1941         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1942         (Depends-on): Add double-slash-root.
1943         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1944         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1946 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1948         libgmp: new module
1949         The idea is to let programs simply include <gmp.h>, and
1950         so long as they live within the mini-gmp subset they need
1951         not worry about whether the GMP libraries are installed.
1952         * MODULES.html.sh: Mention it.
1953         * config/srclist.txt: Mention files copied from GMP source.
1954         * config/srclistvars.sh (GMP): New var.
1955         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1956         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1957         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1959 2020-07-05  Bruno Haible  <bruno@clisp.org>
1961         mkancesdirs: Trim module dependencies.
1962         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1963         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1965 2020-07-05  Bruno Haible  <bruno@clisp.org>
1967         getprogname: Trim module dependencies.
1968         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1969         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1970         basename-lgpl.
1972 2020-07-05  Bruno Haible  <bruno@clisp.org>
1974         filenamecat-lgpl: Trim module dependencies.
1975         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1976         dirname.h.
1977         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1978         basename-lgpl, filename.
1980 2020-07-05  Bruno Haible  <bruno@clisp.org>
1982         backupfile, backup-rename: Trim module dependencies.
1983         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1984         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1985         basename-lgpl.
1986         * modules/backup-rename (Depends-on): Likewise.
1988 2020-07-05  Bruno Haible  <bruno@clisp.org>
1990         argp: Trim module dependencies.
1991         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1992         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1994 2020-07-05  Bruno Haible  <bruno@clisp.org>
1996         basename-lgpl: New module.
1997         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1998         lib/basename-lgpl.c.
1999         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2000         <stdbool.h>, filename.h.
2001         (last_component): Rename a local variable.
2002         * lib/dirname.h: Include basename-lgpl.h.
2003         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2004         (last_component, base_len): Remove declarations.
2005         * modules/basename-lgpl: New file.
2006         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2007         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2008         (Makefile.am): Don't compile basename-lgpl.c.
2009         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2010         not 'dirname'.
2012 2020-07-05  Bruno Haible  <bruno@clisp.org>
2014         dirname, dirname-lgpl: Simplify.
2015         * m4/dirname.m4: Remove file.
2016         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2017         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2018         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2020 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2022         tests: avoid shadowing warning
2023         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2025 2020-07-05  Bruno Haible  <bruno@clisp.org>
2027         supersede: Add tests.
2028         * tests/test-supersede.c: New file.
2029         * tests/test-supersede-open.h: New file.
2030         * tests/test-supersede-fopen.h: New file.
2031         * modules/supersede-tests: New file.
2033         supersede: New module.
2034         * lib/supersede.h: New file.
2035         * lib/supersede.c: New file.
2036         * m4/supersede.m4: New file.
2037         * modules/supersede: New file.
2039 2020-07-05  Bruno Haible  <bruno@clisp.org>
2041         Add some copyright headers.
2042         * lib/dev-ino.h: Add copyright header.
2043         * lib/di-set.h: Likewise.
2044         * lib/fchown-stub.c: Likewise.
2045         * lib/file-set.h: Likewise.
2046         * lib/hash-triple.h: Likewise.
2047         * lib/idcache.h: Likewise.
2048         * lib/ino-map.h: Likewise.
2049         * lib/mkancesdirs.h: Likewise.
2050         * lib/scratch_buffer.h: Likewise.
2051         * lib/se-context.in.h: Likewise.
2052         * lib/stdopen.h: Likewise.
2053         * lib/userspec.h: Likewise.
2055 2020-07-04  Bruno Haible  <bruno@clisp.org>
2057         getrandom: Relicense under LGPLv2+.
2058         Paul Eggert's approval is in
2059         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2060         * modules/getrandom (License): Change to LGPLv2+.
2062 2020-07-04  Bruno Haible  <bruno@clisp.org>
2064         getumask: Add tests.
2065         * tests/test-getumask.c: New file.
2066         * modules/getumask-tests: New file.
2068         getumask: New module.
2069         * lib/sys_stat.in.h (getumask): New declaration.
2070         * lib/getumask.c: New file.
2071         * m4/getumask.m4: New file.
2072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2073         declared.
2074         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2075         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2076         HAVE_GETUMASK.
2077         * modules/getumask: New file.
2078         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2079         * doc/glibc-functions/getumask.texi: New file.
2080         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2082 2020-07-04  Bruno Haible  <bruno@clisp.org>
2084         clean-temp: Add support for temporary files with given mode.
2085         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2086         * lib/clean-temp.c (struct try_create_file_params): New type.
2087         (try_create_file): New function.
2088         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2089         gen_tempname.
2091 2020-07-04  Bruno Haible  <bruno@clisp.org>
2093         clean-temp: Document limitations.
2094         * lib/clean-temp.h: Document limitations.
2096 2020-07-04  Bruno Haible  <bruno@clisp.org>
2098         clean-temp: Add support for temporary files with unpredictable names.
2099         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2100         * lib/clean-temp.c: Include tempname.h.
2101         (gen_register_open_temp): New function.
2102         * modules/tempname (configure.ac): Define a module indicator.
2104 2020-07-04  Bruno Haible  <bruno@clisp.org>
2106         clean-temp: Add support for temporary files anywhere in the file system.
2107         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2108         cleanup_temporary_file): New declarations.
2109         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2110         variables.
2111         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2112         (dir_cleanup_list): Renamed from cleanup_list.
2113         (cleanup_action): Process the file_cleanup_list as well.
2114         (do_init_clean_temp): New function.
2115         (clean_temp_once): New variable.
2116         (init_clean_temp): New function.
2117         (create_temp_dir): Invoke it.
2118         (register_temporary_file, unregister_temporary_file,
2119         cleanup_temporary_file): New functions.
2120         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2121         argument.
2123 2020-07-04  Bruno Haible  <bruno@clisp.org>
2125         clean-temp: Improve comments.
2126         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2127         fwriteerror_temp, close_stream_temp): Clarify intended use.
2128         * lib/clean-temp.c: Likewise.
2130 2020-07-04  Bruno Haible  <bruno@clisp.org>
2132         clean-temp: Make multithread-safe, part 2.
2133         * lib/fatal-signal.h: Include <signal.h>.
2134         (get_fatal_signal_set): New declaration.
2135         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2136         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2137         (struct closeable_fd): New type.
2138         (fatal_signal_set): New variable.
2139         (init_fatal_signal_set): New function.
2140         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2141         (cleanup_action): Invoke asyncsafe_close instead of close.
2142         (create_temp_dir): Invoke init_fatal_signal_set.
2143         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2144         element.
2145         (unregister_fd): Remove function.
2146         (close_temp): Cleanup descriptors list on the fly. Invoke
2147         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2148         (fclose_variant_temp): New function.
2149         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2150         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2152 2020-07-04  Bruno Haible  <bruno@clisp.org>
2154         clean-temp: Make multithread-safe, part 1.
2155         * lib/clean-temp.c: Include glthread/lock.h.
2156         (cleanup_list_lock): New variable.
2157         (register_temp_file, unregister_temp_file, register_temp_subdir,
2158         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2159         (create_temp_dir): Likewise. Don't free the old array.
2160         (descriptors_lock): New variable.
2161         (register_fd, unregister_fd): Use it.
2162         * modules/clean-temp (Depends-on): Add lock.
2164 2020-07-04  Bruno Haible  <bruno@clisp.org>
2166         fatal-signal: Make multithread-safe.
2167         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2168         (do_init_fatal_signal_set): New function, extracted from
2169         init_fatal_signal_set.
2170         (fatal_signal_set_once): New variable.
2171         (init_fatal_signal_set): Use gl_once.
2173 2020-07-03  Bruno Haible  <bruno@clisp.org>
2175         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2176         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2177         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2178         <bcrypt.h>.
2180 2020-07-03  Bruno Haible  <bruno@clisp.org>
2182         dfa tests: Follow common file naming conventions.
2183         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2184         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2185         * tests/test-dfa-invalid-char-class.sh: Renamed from
2186         tests/dfa-invalid-char-class.sh. Update.
2187         * modules/dfa-tests (Files, Makefile.am): Update.
2189 2020-07-03  Bruno Haible  <bruno@clisp.org>
2191         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2192         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2193         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2195 2020-07-03  Bruno Haible  <bruno@clisp.org>
2197         asyncsafe-spin: Reduce code duplication.
2198         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2199         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2200         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2202 2020-07-03  Bruno Haible  <bruno@clisp.org>
2204         lchmod: Simplify after 2020-02-22 change.
2205         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2207 2020-07-03  Bruno Haible  <bruno@clisp.org>
2209         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2210         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2212 2020-07-03  Bruno Haible  <bruno@clisp.org>
2214         dfa: Make sure the compiler does not barf on 'inline'.
2215         * modules/dfa (configure.ac): Require AC_C_INLINE.
2217 2020-07-03  Bruno Haible  <bruno@clisp.org>
2219         bitset: Make sure the compiler does not barf on 'inline'.
2220         * modules/bitset (configure.ac): New section.
2222 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2224         manywarnings: improve port to GCC 10.1
2225         * build-aux/gcc-warning.spec: Also list warnings that are default
2226         or are enabled by already-given flags.  This lets us speed up
2227         checking for attributes, and makes the generated compilation
2228         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2229         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2230         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2231         to shell variables that may have long values.
2232         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2233         consequences of other flags, to speed up checking and
2234         shorten commands.
2236         tests: pacify gcc -fanalyzer on zerosize_ptr
2237         * tests/test-memcasecmp.c (main):
2238         * tests/test-memchr.c (main):
2239         * tests/test-memchr2.c (main):
2240         * tests/test-memcmp.c (main):
2241         * tests/test-memmem.c (main):
2242         * tests/test-memrchr.c (main):
2243         * tests/unistr/test-chr.h (main):
2244         * tests/unistr/test-cmp.h (test_cmp):
2245         Check whether zerosize_ptr returns NULL before using it.
2246         This pacifies GCC 10.1’s new fanalyzer option, and matches
2247         other uses of zerosize_ptr.
2249 2020-07-01  Bruno Haible  <bruno@clisp.org>
2251         asyncsafe-spin: Add tests.
2252         * tests/test-asyncsafe-spin1.c: New file.
2253         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2254         tests/test-pthread-spin.c.
2255         * modules/asyncsafe-spin-tests: New file.
2257 2020-07-01  Bruno Haible  <bruno@clisp.org>
2259         asyncsafe-spin: New module.
2260         * lib/asyncsafe-spin.h: New file.
2261         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2262         * modules/asyncsafe-spin: New file.
2264 2020-07-01  Bruno Haible  <bruno@clisp.org>
2266         windows-spin: Fix race condition on multiprocessor systems.
2267         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2269 2020-07-01  Bruno Haible  <bruno@clisp.org>
2271         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2272         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2273         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2274         an implementation based on other GCC built-ins.
2276 2020-07-01  Bruno Haible  <bruno@clisp.org>
2278         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2279         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2280         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2281         lock byte.
2283 2020-07-01  Bruno Haible  <bruno@clisp.org>
2285         pthread-spin: Add error checking.
2286         * lib/pthread-spin.c: Include <stdbool.h>.
2287         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2288         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2289         the unlocks.
2290         * modules/pthread-spin (Depends-on): Add stdbool.
2292 2020-07-01  Bruno Haible  <bruno@clisp.org>
2294         pthread-spin: Add tests.
2295         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2296         * modules/pthread-spin-tests: New file.
2298 2020-07-01  Bruno Haible  <bruno@clisp.org>
2300         tests: Reduce code duplication.
2301         * tests/atomic-int-posix.h: New file, extracted from
2302         tests/test-pthread-mutex.c.
2303         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2304         * tests/test-pthread-rwlock.c: Likewise.
2305         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2306         * modules/pthread-rwlock-tests (Files): Likewise.
2308 2020-07-01  Bruno Haible  <bruno@clisp.org>
2310         tests: Refactor.
2311         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2312         * tests/test-mtx.c: Include it. Remove the corresponding code.
2313         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2315 2020-07-01  Bruno Haible  <bruno@clisp.org>
2317         tests: Refactor.
2318         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2319         * tests/test-lock.c: Include it. Remove the corresponding code.
2320         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2322 2020-06-29  Bruno Haible  <bruno@clisp.org>
2324         sys_socket: Don't define socklen_t if it is already defined on mingw.
2325         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2326         <https://savannah.gnu.org/bugs/?57725>,
2327         by Rahul Das <bokul_4u@yahoo.com> in
2328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2329         and by Eli Zaretskii <eliz@gnu.org> in
2330         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2331         * lib/sys_socket.in.h (socklen_t): Remove definition.
2333 2020-06-29  Bruno Haible  <bruno@clisp.org>
2335         alloca-opt: Fix warning on mingw.
2336         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2337         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2338         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2339         whether alloca is defined.
2341 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2343         getrandom: do not depend on ‘open’ on mingw
2344         Similarly for at-internal, getloadavg.  These modules do not call
2345         the ‘open’ function when they are compiled on mingw.  On mingw,
2346         this avoids having to compile open.c when building Emacs, which
2347         does its own thing with ‘open’.
2348         * modules/at-internal, modules/getloadavg, modules/getrandom:
2349         (Depends-on): Don’t depend on ‘open’ on mingw.
2350         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2351         * modules/getloadavg (Depends-on):
2352         Depend on intprops, open, stdbool, stdlib only if compiling
2353         getloadavg.c.
2355 2020-06-28  Bruno Haible  <bruno@clisp.org>
2357         doc: Add a note about sigprocmask vs. pthread_sigmask.
2358         * doc/posix-functions/sigprocmask.texi: Add note.
2360 2020-06-28  Bruno Haible  <bruno@clisp.org>
2362         getrandom: Fix compilation errors on older versions of mingw.
2363         Reported by Eli Zaretskii <eliz@gnu.org> in
2364         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2365         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2366         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2367         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2368         BCryptGenRandom ourselves.
2370 2020-06-28  Bruno Haible  <bruno@clisp.org>
2372         clean-temp: Fix wrong errno in error message.
2373         * lib/clean-temp.c (create_temp_dir): Save errno around
2374         unblock_fatal_signals call.
2376 2020-06-27  Bruno Haible  <bruno@clisp.org>
2378         fatal-signal: Make multithread-safe.
2379         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2381 2020-06-27  Bruno Haible  <bruno@clisp.org>
2383         clean-temp: Don't force deletion of temporary files on native Windows.
2384         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2385         argument.
2386         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2387         * NEWS: Mention the change.
2388         * lib/javacomp.c (write_temp_file): Update.
2390 2020-06-27  Bruno Haible  <bruno@clisp.org>
2392         fatal-signal: Make multithread-safe.
2393         * lib/fatal-signal.c: Include glthread/lock.h.
2394         (at_fatal_signal_lock): New variable.
2395         (at_fatal_signal): Use it.
2396         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2397         (block_fatal_signals, unblock_fatal_signals): Use them.
2398         * modules/fatal-signal (Depends-on): Add lock.
2400 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2402         getloadavg: don’t depend on fopen-gnu
2403         This is for Emacs, which does not need fopen-gnu for anything else,
2404         and which would need it only on a NetBSD platform where getloadavg
2405         does not work (does that even happen?).
2406         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2407         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2409         * tests/test-getloadavg.c (main): Fix typo.
2411 2020-06-27  Bruno Haible  <bruno@clisp.org>
2413         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
2414         * modules/tempname (Link): New section.
2415         * modules/mkdtemp (Link): Likewise.
2416         * modules/clean-temp (Link): Likewise.
2417         * modules/mkstemp (Link): Likewise.
2418         * modules/stdlib-safer (Link): Likewise.
2419         * modules/mkstemps (Link): Likewise.
2420         * modules/mkostemp (Link): Likewise.
2421         * modules/mkostemps (Link): Likewise.
2422         * modules/tmpfile (Link): Likewise.
2423         * modules/tmpfile-safer (Link): Likewise.
2424         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
2425         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
2426         $(LIB_GETRANDOM).
2427         * NEWS: Mention the changes.
2429 2020-06-27  Bruno Haible  <bruno@clisp.org>
2431         fopen-gnu: Simplify code.
2432         * lib/fopen.c: Include <stdbool.h>.
2433         (rpl_fopen): Use a single variable open_flags instead of
2434         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
2435         * modules/fopen (Depends-on): Add stdbool.
2437 2020-06-26  Bruno Haible  <bruno@clisp.org>
2439         canonicalize: Improve documentation.
2440         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2441         return convention.
2443 2020-06-26  Bruno Haible  <bruno@clisp.org>
2445         xgetcwd: Improve documentation.
2446         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2448 2020-06-26  Bruno Haible  <bruno@clisp.org>
2450         getcwd: Improve documentation.
2451         * lib/getcwd.c (__getcwd): Document the failure return convention.
2453 2020-06-26  Bruno Haible  <bruno@clisp.org>
2455         fchdir: Improve documentation.
2456         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2457         convention.
2459 2020-06-26  Bruno Haible  <bruno@clisp.org>
2461         filenamecat-lgpl: Set errno upon failure.
2462         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2463         return convention.
2464         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2466 2020-06-26  Bruno Haible  <bruno@clisp.org>
2468         areadlink-with-size: Set errno upon failure.
2469         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2470         fails.
2471         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2473 2020-06-26  Bruno Haible  <bruno@clisp.org>
2475         copy-file: Shrink dependencies.
2476         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2477         qcopy-acl.
2479 2020-06-26  Bruno Haible  <bruno@clisp.org>
2481         doc: Mention declaration fixes implemented by some modules.
2482         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2483         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2484         declaration appear in <unistd.h>.
2485         * doc/posix-functions/dup.texi: Likewise.
2486         * doc/posix-functions/dup2.texi: Likewise.
2487         * doc/posix-functions/gethostname.texi: Likewise.
2488         * doc/posix-functions/isatty.texi: Likewise.
2489         * doc/posix-functions/lseek.texi: Likewise.
2490         * doc/posix-functions/unlink.texi: Likewise.
2491         * doc/posix-functions/read.texi: Mention the module 'read'.
2492         * doc/posix-functions/write.texi: Mention the effects of the module
2493         'write'.
2495 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2497         c-dtoastr, c-ldtoastr: new modules
2498         These modules provide the same functionality as the modules
2499         dtoastr and ldtoastr except for the formatting taking place in the
2500         C locale.
2501         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2502         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2503         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2504         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2505         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2506         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2507         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2508         modules/c-ldtoastr-tests: New files.
2509         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2510         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2512 2020-06-21  Bruno Haible  <bruno@clisp.org>
2514         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2515         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2517 2020-06-16  Bruno Haible  <bruno@clisp.org>
2519         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2520         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2522 2020-06-16  Bruno Haible  <bruno@clisp.org>
2524         thread, thrd: Avoid a compiler warning.
2525         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2527 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2529         windows-thread: Avoid a compiler warning.
2530         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2531         void.
2532         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2534 2020-06-15  Bruno Haible  <bruno@clisp.org>
2536         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2537         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2538         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2539         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2540         first.
2542 2020-06-06  Bruno Haible  <bruno@clisp.org>
2544         calloc-gnu tests: Avoid a test failure with clang.
2545         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2546         'volatile', to defeat compiler optimizations.
2548 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2550         getloadavg: fix double-increment bug
2551         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2552         Linux without glibc, Android, Cygwin.  This fixes a bug I
2553         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2554         Problem and fix reported by Semen Verchenko in:
2555         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2557         tempname: use getrandom, not getentropy
2558         This removes a dependency, as getentropy depends on getrandom.
2559         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2560         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2561         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2563 2020-06-01  Bruno Haible  <bruno@clisp.org>
2565         doc: New chapter 'Multithreading'.
2566         * doc/multithread.texi: New file.
2567         * doc/gnulib.texi: Include it.
2569 2020-06-01  Bruno Haible  <bruno@clisp.org>
2571         doc: Move 'Running self-tests under valgrind' section.
2572         * doc/gnulib.texi (Build Infrastructure Modules): Include
2573         valgrind-tests.texi here...
2574         (Miscellaneous Notes): ... not here.
2576 2020-06-01  Bruno Haible  <bruno@clisp.org>
2578         doc: Move 'Visual Studio Compatibility' section.
2579         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2580         here...
2581         (Build Infrastructure Modules): ... not here.
2583 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2585         doc: improve randomness discussion
2586         Inspired by comments from Jeffrey Walton in:
2587         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2588         * doc/glibc-functions/getentropy.texi (getentropy):
2589         * doc/glibc-functions/getrandom.texi (getrandom):
2590         Improve discussion of problems with "random" data,
2591         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2593 2020-06-01  Bruno Haible  <bruno@clisp.org>
2595         doc: Fix Texinfo syntax error.
2596         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2598 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2600         doc: Change '.' to '@.' where appropriate.
2601         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2602         * doc/glibc-functions/fstatfs.texi: Likewise.
2603         * doc/glibc-functions/fts_children.texi: Likewise.
2604         * doc/glibc-functions/fts_read.texi: Likewise.
2605         * doc/glibc-functions/getdirentries.texi: Likewise.
2606         * doc/glibc-functions/mkostemp.texi: Likewise.
2607         * doc/glibc-functions/mkostemps.texi: Likewise.
2608         * doc/glibc-functions/mkstemps.texi: Likewise.
2609         * doc/glibc-functions/preadv.texi: Likewise.
2610         * doc/glibc-functions/pwritev.texi: Likewise.
2611         * doc/glibc-functions/sendfile.texi: Likewise.
2612         * doc/glibc-functions/statfs.texi: Likewise.
2613         * doc/gnulib-intro.texi: Likewise.
2614         * doc/gnulib-tool.texi: Likewise.
2615         * doc/intprops.texi: Likewise.
2616         * doc/lib-symbol-visibility.texi: Likewise.
2617         * doc/licenses-texi.texi: Likewise.
2618         * doc/pastposix-functions/bcmp.texi: Likewise.
2619         * doc/pastposix-functions/bcopy.texi: Likewise.
2620         * doc/pastposix-functions/bzero.texi: Likewise.
2621         * doc/pastposix-functions/ecvt.texi: Likewise.
2622         * doc/pastposix-functions/fcvt.texi: Likewise.
2623         * doc/pastposix-functions/ftime.texi: Likewise.
2624         * doc/pastposix-functions/gcvt.texi: Likewise.
2625         * doc/pastposix-functions/getwd.texi: Likewise.
2626         * doc/pastposix-functions/index.texi: Likewise.
2627         * doc/pastposix-functions/mktemp.texi: Likewise.
2628         * doc/pastposix-functions/rindex.texi: Likewise.
2629         * doc/pastposix-functions/wcswcs.texi: Likewise.
2630         * doc/posix-functions/aio_cancel.texi: Likewise.
2631         * doc/posix-functions/aio_error.texi: Likewise.
2632         * doc/posix-functions/aio_fsync.texi: Likewise.
2633         * doc/posix-functions/aio_read.texi: Likewise.
2634         * doc/posix-functions/aio_return.texi: Likewise.
2635         * doc/posix-functions/aio_suspend.texi: Likewise.
2636         * doc/posix-functions/aio_write.texi: Likewise.
2637         * doc/posix-functions/creat.texi: Likewise.
2638         * doc/posix-functions/ctime.texi: Likewise.
2639         * doc/posix-functions/daylight.texi: Likewise.
2640         * doc/posix-functions/fgetpos.texi: Likewise.
2641         * doc/posix-functions/fopen.texi: Likewise.
2642         * doc/posix-functions/freopen.texi: Likewise.
2643         * doc/posix-functions/fseeko.texi: Likewise.
2644         * doc/posix-functions/fsetpos.texi: Likewise.
2645         * doc/posix-functions/fstatat.texi: Likewise.
2646         * doc/posix-functions/fstatvfs.texi: Likewise.
2647         * doc/posix-functions/ftello.texi: Likewise.
2648         * doc/posix-functions/ftruncate.texi: Likewise.
2649         * doc/posix-functions/getrlimit.texi: Likewise.
2650         * doc/posix-functions/lio_listio.texi: Likewise.
2651         * doc/posix-functions/localtime.texi: Likewise.
2652         * doc/posix-functions/lseek.texi: Likewise.
2653         * doc/posix-functions/mkstemp.texi: Likewise.
2654         * doc/posix-functions/mktime.texi: Likewise.
2655         * doc/posix-functions/open.texi: Likewise.
2656         * doc/posix-functions/openat.texi: Likewise.
2657         * doc/posix-functions/opendir.texi: Likewise.
2658         * doc/posix-functions/pread.texi: Likewise.
2659         * doc/posix-functions/pwrite.texi: Likewise.
2660         * doc/posix-functions/readdir.texi: Likewise.
2661         * doc/posix-functions/readdir_r.texi: Likewise.
2662         * doc/posix-functions/scandir.texi: Likewise.
2663         * doc/posix-functions/seekdir.texi: Likewise.
2664         * doc/posix-functions/setrlimit.texi: Likewise.
2665         * doc/posix-functions/statvfs.texi: Likewise.
2666         * doc/posix-functions/strftime.texi: Likewise.
2667         * doc/posix-functions/telldir.texi: Likewise.
2668         * doc/posix-functions/timezone.texi: Likewise.
2669         * doc/posix-functions/tmpfile.texi: Likewise.
2670         * doc/posix-functions/truncate.texi: Likewise.
2671         * doc/posix-functions/tzname.texi: Likewise.
2672         * doc/posix-functions/wcsftime.texi: Likewise.
2673         * doc/windows-sockets.texi: Likewise.
2675 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2677         getrandom-tests: do not assume GRND_RANDOM yields short read
2678         * tests/test-getrandom.c (main): Omit assertion that
2679         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2680         when b’s size is 100000.  This assertion fails with Linux kernel
2681         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2682         The separate blocking pool is going away in the Linux kernel, and
2683         they’ve added a flag GRND_INSECURE instead; see:
2684         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2685         The assertion was iffy anyway; what’s to prevent a kernel from
2686         lazily filling a large buffer with random bytes?
2688         read-file-test: pacify --enable-gcc-warnings
2689         * tests/test-read-file.c (test_read_file): Now static.
2691         tempname: merge from glibc and coreutils
2692         Also, merge in Gnulib’s more-recent methods of making it easier
2693         to share between Gnulib and glibc, and fix a few randomness
2694         glitches.
2695         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2696         (__set_errno): Remove; libc-config.h does that for us.
2697         Do not include <sys/time.h>.
2698         (__secure_getenv) [_LIBC]: New macro.
2699         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2700         (RANDOM_BITS): Rewrite.
2701         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2702         (random_value): New typedef.
2703         (try_file, try_dir, try_nocreate): Move up.
2704         (gen_tempname_len, try_tempname_len): New functions.
2705         (gen_tempname_len): Use a constant array rather than a switch.
2706         (try_tempname_len): Don’t assume string length fits in int.
2707         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2708         has enough entropy (it’s a bit short).
2709         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2710         (__try_tempname): Rewrite in terms of try_tempname_len.
2711         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2712         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2713         Add getentropy, libc-config.
2715 2020-05-31  Bruno Haible  <bruno@clisp.org>
2717         getrandom, getentropy: Mention the crypto/gc-random module.
2718         Suggested by Simon Josefsson in
2719         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2720         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2721         crypto/gc-random module.
2722         * doc/glibc-functions/getentropy.texi: Likewise.
2724 2020-05-31  Bruno Haible  <bruno@clisp.org>
2726         getentropy: Enhance tests.
2727         * tests/test-getentropy.c (main): Add one more test.
2728         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2730 2020-05-31  Bruno Haible  <bruno@clisp.org>
2732         getentropy: Work around a macOS and Solaris problem.
2733         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2734         'getentropy' module.
2735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2736         UNISTD_H_HAVE_SYS_RANDOM_H.
2737         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2738         UNISTD_H_HAVE_SYS_RANDOM_H.
2739         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2740         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2741         problem. List more platforms.
2743 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2745         fnmatch: merge from glibc
2746         Also, merge in Gnulib’s more-recent methods of making it easier
2747         to share between Gnulib and glibc.
2748         * lib/fnmatch.c: Reorder includes to match glibc better.
2749         Include libc-config.h instead of config.h.
2750         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2751         Do not include "../locale/elem-hash.h" if _LIBC.
2752         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2753         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2754         Include intprops.h, since glibc has it now.
2755         (SIZE_MAX): Remove; use (size_t) -1 instead.
2756         Omit the "Comment out all this code" ifdef, since Gnulib
2757         has never really needed it.
2758         (STREQ): Remove; no longer used.
2759         (__libc_use_alloca, alloca, alloca_account): Define as
2760         needed if !_LIBC.
2761         (ISWCTYPE): Remove; all uses replaced by iswctype.
2762         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2763         (internal_function): Remove.  All uses removed.
2764         (STRUCT): New macro.
2765         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2766         (WMEMCMP): New macro.
2767         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2768         and <locale/weightwc.h>.
2769         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2770         __builtin_expect.  Check for integer overflow more
2771         systematically.  Account for alloca storage better when
2772         recursive.  Use strnlen instead of strlen for efficiency.
2773         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2774         (struct STRUCT): New type.
2775         (FCT, EXT): New ENDS and ALLOCA_USED args.
2776         All callers changed.
2777         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2778         Simplify by assuming WIDE_CHAR_SUPPORT.
2779         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2780         Cast cold to UCHAR to avoid signedness warning.
2781         (END): Check for invalid pattern.
2782         (EXT): Improve alloca/malloc checking (taken from glibc),
2783         and improve it some more by using intprops.h and checking
2784         for integer overflow and using bool for booleans.
2785         * lib/libc-config.h (compat_symbol): New macro.
2786         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2787         acceptable to non-GCC when a trailing semicolon is added.
2788         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2789         libc-config, strnlen.  Remove alloca.
2791 2020-05-31  Bruno Haible  <bruno@clisp.org>
2793         getrandom: Doc and test tweaks.
2794         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2795         it sets errno when failing.
2796         * tests/test-getrandom.c (main): Disable the high-quality check on those
2797         platforms on which it fails.
2798         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2799         Cygwin to the list of platforms that don't have the function. Add a note
2800         about the quality of the result.
2801         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2802         declaration; this is fixed by module 'getrandom'.
2804 2020-05-31  Bruno Haible  <bruno@clisp.org>
2806         getrandom: Add support for native Windows.
2807         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2808         <wincrypt.h>.
2809         (CRYPT_VERIFY_CONTEXT): New macro.
2810         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2811         'A'.
2812         (GetProcAddress): New macro.
2813         (BCryptGenRandomFuncType): New type.
2814         (BCryptGenRandomFunc, initialized): New variables.
2815         (initialize): New function.
2816         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2817         <wincrypt.h> API as fallback.
2818         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2819         * modules/getrandom (Link): New section.
2820         * modules/getentropy (Link): Likewise.
2821         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2822         $(LIB_GETRANDOM).
2823         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2824         $(LIB_GETRANDOM).
2825         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2826         against $(LIB_GETRANDOM).
2827         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2828         support.
2830 2020-05-31  Bruno Haible  <bruno@clisp.org>
2832         getrandom: Simplify the determination of the random number devices.
2833         Suggested by Paul Eggert in
2834         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2835         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2836         macros.
2837         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2839 2020-05-31  Bruno Haible  <bruno@clisp.org>
2841         crypto/gc-random: Fix list of crypto devices for Solaris.
2842         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2844 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2846         list: fix GCC warnings
2847         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2848         (gl_tree_next_node, gl_tree_node_nx_set_value)
2849         (gl_tree_previous_node, gl_tree_next_node):
2850         Mark unused arguments.
2851         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2852         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2853         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2855         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2856         the same variable name in nested scopes.
2858 2020-05-31  Bruno Haible  <bruno@clisp.org>
2860         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2861         Reported by Akim Demaille in
2862         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2863         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2864         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2865         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2866         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2867         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2869 2020-05-30  Bruno Haible  <bruno@clisp.org>
2871         wmemchr: Relicense under LGPLv2+.
2872         * modules/wmemchr (License): Set to LGPLv2+.
2874 2020-05-30  Bruno Haible  <bruno@clisp.org>
2876         wmempcpy: New module.
2877         Reported by Paul Eggert in
2878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2879         * lib/wchar.in.h (wmempcpy): New declaration.
2880         * lib/wmempcpy.c: New file.
2881         * m4/wmempcpy.m4: New file.
2882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2884         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2885         HAVE_WMEMPCPY.
2886         * modules/wmempcpy: New file.
2887         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2888         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2889         * modules/mempcpy (Description): Fix typo.
2891 2020-05-30  Bruno Haible  <bruno@clisp.org>
2893         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2894         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2896 2020-05-30  Bruno Haible  <bruno@clisp.org>
2898         sys_random: Work around macOS bug.
2899         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2900         <stdlib.h> before <sys/random.h>.
2901         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2902         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2903         first.
2904         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2906 2020-05-30  Bruno Haible  <bruno@clisp.org>
2908         getrandom: Override incompatible system function on Solaris 11.
2909         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2910         * lib/getrandom.c (getrandom): When the system has getrandom, just
2911         invoke it.
2912         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2913         system's getrandom function's prototype is not the expected one.
2914         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2915         REPLACE_GETRANDOM.
2916         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2917         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2918         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2919         EAGAIN.
2920         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2921         Solaris problem.
2923 2020-05-30  Bruno Haible  <bruno@clisp.org>
2925         sys_random: Add C++ tests.
2926         * tests/test-sys_random-c++.cc: New file.
2927         * modules/sys_random-c++-tests: New file.
2928         * modules/sys_random-tests (Depends-on): Depend on it.
2930         sys_random: Add tests.
2931         * tests/test-sys_random.c: New file.
2932         * modules/sys_random-tests: New file.
2934         sys_random: New module.
2935         * lib/sys_random.in.h: Use the common idioms for overridable header
2936         files.
2937         * m4/sys_random_h.m4: New file.
2938         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2939         * modules/sys_random: New file.
2940         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2941         (Depends-on): Add sys_random.
2942         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2943         gl_UNISTD_MODULE_INDICATOR.
2944         (Makefile.am): Don't generate sys/random.h here.
2945         * doc/glibc-headers/sys_random.texi: New file.
2946         * doc/gnulib.texi: Include it.
2948 2020-05-30  Bruno Haible  <bruno@clisp.org>
2950         unistd: Remove conflicting declaration of getrandom().
2951         * lib/unistd.in.h (getrandom): Remove declaration.
2952         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2953         declared.
2954         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2955         HAVE_GETRANDOM.
2956         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2957         HAVE_GETRANDOM.
2959 2020-05-30  Bruno Haible  <bruno@clisp.org>
2961         getrandom: Add tests.
2962         * tests/test-getrandom.c: New file.
2963         * modules/getrandom-tests: New file.
2965 2020-05-30  Bruno Haible  <bruno@clisp.org>
2967         crypto/gc-random: Fix link error on MSVC.
2968         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2969         * modules/crypto/gc-random (Link): New section.
2970         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2971         $(LIB_GC_RANDOM).
2973 2020-05-30  Bruno Haible  <bruno@clisp.org>
2975         Don't assume that UNICODE is not defined.
2976         Many Windows API functions are defined differently (redirecting to a
2977         function with suffix 'W') if the application defines the macro UNICODE
2978         than by default (redirecting to a function with suffix 'A').
2979         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2980         variant with suffix 'A'.
2981         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2982         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2983         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2984         * lib/getlogin.c (GetUserName): Likewise.
2985         * lib/getlogin_r.c (GetUserName): Likewise.
2986         * lib/gettimeofday.c (LoadLibrary): Likewise.
2987         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2988         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2989         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2990         * lib/mountlist.c (GetDriveType): Likewise.
2991         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2992         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2993         Likewise.
2994         * lib/physmem.c (GetModuleHandle): Likewise.
2995         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2996         PeekMessage, DispatchMessage): Likewise.
2997         * lib/progreloc.c (GetModuleFileName): Likewise.
2998         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2999         * lib/read.c (GetNamedPipeHandleState): Likewise.
3000         * lib/readdir.c (FindNextFile): Likewise.
3001         * lib/relocatable.c (GetModuleFileName): Likewise.
3002         * lib/rename.c (MoveFileEx): Likewise.
3003         * lib/rewinddir.c (FindFirstFile): Likewise.
3004         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3005         PeekMessage, DispatchMessage): Likewise.
3006         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3007         * lib/socket.c (WSASocket): Likewise.
3008         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3009         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3010         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3011         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3012         * lib/tmpdir.c (GetTempPath): Likewise.
3013         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3014         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3015         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3016         * lib/windows-cond.c (CreateEvent): Likewise.
3017         * lib/windows-rwlock.c (CreateEvent): Likewise.
3018         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3019         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3020         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3021         * lib/write.c (GetNamedPipeHandleState): Likewise.
3023 2020-05-30  Bruno Haible  <bruno@clisp.org>
3025         physmem: Fix compilation errors on MSVC.
3026         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3027         * modules/physmem (Depends-on): Add unistd.
3029 2020-05-29  Bruno Haible  <bruno@clisp.org>
3031         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3032         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3033         LDADD a second time, after the second occurrence of libtests.a.
3034         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3036 2020-05-29  Bruno Haible  <bruno@clisp.org>
3038         fnmatch: Rely on more gnulib modules.
3039         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3040         wmempcpy, mempcpy.
3041         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3042         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3043         HAVE_MEMPCPY are all 1.
3044         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3045         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3047 2020-05-29  Bruno Haible  <bruno@clisp.org>
3049         Avoid dynamic lookup of Windows API functions when possible.
3050         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3051         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3052         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3053         (use_win32_p): Define differently.
3054         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3055         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3056         for Windows XP or higher.
3058 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3060         read-file: disable buffering if RF_SENSITIVE is set
3061         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3062         Suggested by Glenn Strauss.
3063         (fread_file): Suggest calling setvbuf before calling this
3064         function.  Suggested by Bruno Haible.
3066 2020-05-29  Bruno Haible  <bruno@clisp.org>
3068         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3069         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3070         program.
3071         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3072         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3073         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3074         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3076 2020-05-29  Bruno Haible  <bruno@clisp.org>
3078         Fix compilation error on native Windows (regression from 2020-05-28).
3079         Reported by Daiki Ueno.
3080         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3081         macro when not using dynamic loading.
3082         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3083         QueryFullProcessImageNameFunc): Likewise.
3084         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3085         GetFinalPathNameByHandleFunc): Likewise.
3087 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3089         fopen-gnu-tests: fix "\x" escape usage
3090         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3092 2020-05-28  Bruno Haible  <bruno@clisp.org>
3094         Avoid dynamic loading of Windows API functions when possible.
3095         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3096         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3097         * lib/gettimeofday.c (GetProcAddress,
3098         GetSystemTimePreciseAsFileTimeFuncType,
3099         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3100         define in a build for Windows 8 or higher.
3101         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3102         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3103         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3104         in a build for Windows Vista or higher.
3105         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3106         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3107         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3109 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3111         explicit_bzero-tests: improve -Wmissing-declarations pacification
3112         * tests/test-explicit_bzero.c: Now noinline.
3113         Suggested by Bruno Haible in:
3114         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3116 2020-05-28  Bruno Haible  <bruno@clisp.org>
3118         Fix build errors due to read-file changes (regression from 2020-05-27).
3119         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3120         invocation.
3121         * tests/test-sameacls.c (main): Likewise.
3122         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3123         read_binary_file.
3124         * tests/test-pipe-filter-ii1.c (main): Likewise.
3126 2020-05-28  Bruno Haible  <bruno@clisp.org>
3128         fts: Make more robust in multithreaded applications.
3129         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3130         * modules/fts (Depends-on): Add 'open'.
3132 2020-05-28  Bruno Haible  <bruno@clisp.org>
3134         relocatable-prog: Make more robust in multithreaded applications.
3135         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3136         relocatable-prog-wrapper.
3137         (find_executable): Pass an O_CLOEXEC flag to open().
3138         * modules/relocatable-prog (Depends-on): Add 'open'.
3140 2020-05-28  Bruno Haible  <bruno@clisp.org>
3142         getloadavg: Make more robust in multithreaded applications.
3143         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3144         Simplify use of O_CLOEXEC.
3145         * modules/getloadavg (Depends-on): Add 'open'.
3147 2020-05-28  Bruno Haible  <bruno@clisp.org>
3149         vma-iter: Make more robust in multithreaded applications.
3150         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3151         open().
3152         * modules/vma-iter (Depends-on): Add 'open'.
3154 2020-05-28  Bruno Haible  <bruno@clisp.org>
3156         truncate: Make more robust in multithreaded applications.
3157         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3159 2020-05-28  Bruno Haible  <bruno@clisp.org>
3161         pagealign_alloc: Make more robust in multithreaded applications.
3162         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3163         open().
3164         * modules/pagealign_alloc (Depends-on): Add 'open'.
3166 2020-05-28  Bruno Haible  <bruno@clisp.org>
3168         openat: Make more robust in multithreaded applications.
3169         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3171 2020-05-28  Bruno Haible  <bruno@clisp.org>
3173         at-internal: Make more robust in multithreaded applications.
3174         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3175         open().
3177 2020-05-28  Bruno Haible  <bruno@clisp.org>
3179         mountlist: Make more robust in multithreaded applications.
3180         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3181         open().
3182         * modules/mountlist (Depends-on): Add 'open'.
3184 2020-05-28  Bruno Haible  <bruno@clisp.org>
3186         login_tty: Make more robust in multithreaded applications.
3187         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3188         * modules/login_tty (Depends-on): Add 'open'.
3190 2020-05-28  Bruno Haible  <bruno@clisp.org>
3192         javacomp: Make more robust in multithreaded applications.
3193         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3194         open().
3195         * modules/javacomp (Depends-on): Add 'open'.
3197 2020-05-28  Bruno Haible  <bruno@clisp.org>
3199         getprogname: Make more robust in multithreaded applications.
3200         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3201         * modules/getprogname (Depends-on): Add 'open'.
3203 2020-05-28  Bruno Haible  <bruno@clisp.org>
3205         get_progname_of: Make more robust in multithreaded applications.
3206         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3207         open().
3208         * modules/get_progname_of (Depends-on): Add 'open'.
3210 2020-05-28  Bruno Haible  <bruno@clisp.org>
3212         get_ppid_of: Make more robust in multithreaded applications.
3213         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3214         * modules/get_ppid_of (Depends-on): Add 'open'.
3216 2020-05-28  Bruno Haible  <bruno@clisp.org>
3218         get-rusage-as: Make more robust in multithreaded applications.
3219         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3220         flag to open().
3221         * modules/get-rusage-as (Depends-on): Add 'open'.
3223 2020-05-28  Bruno Haible  <bruno@clisp.org>
3225         crypto/gc: Make more robust in multithreaded applications.
3226         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3227         * modules/crypto/gc (Depends-on): Add 'open'.
3229 2020-05-28  Bruno Haible  <bruno@clisp.org>
3231         copy-file: Make more robust in multithreaded applications.
3232         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3233         open().
3235 2020-05-28  Bruno Haible  <bruno@clisp.org>
3237         chown: Make more robust in multithreaded applications.
3238         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3240 2020-05-28  Bruno Haible  <bruno@clisp.org>
3242         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3243         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3245 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3247         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3248         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3249         specified on Windows.
3250         * tests/test-fopen-gnu.c (DATA): New define.
3251         (main): Add test for reading binary files with an 'e' flag.
3253 2020-05-27  Bruno Haible  <bruno@clisp.org>
3255         Don't assume that UNICODE is not defined.
3256         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3257         differently if the application defines the macro UNICODE.
3258         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3260         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3261         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3262         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3264 2020-05-27  Bruno Haible  <bruno@clisp.org>
3266         Improve pattern for defining _WIN32_WINNT.
3267         Newer versions of the Windows API may not only add, but also remove API
3268         functions. Therefore, when the user is e.g. building for Windows 10, we
3269         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3270         use of APIs that were present in Windows 8 but removed in Windows 10.
3271         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3272         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3273         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3274         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3275         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3277 2020-05-27  Bruno Haible  <bruno@clisp.org>
3279         javacomp: Make more robust in multithreaded applications.
3280         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3281         * modules/javacomp (Depends-on): Add fopen-gnu.
3283 2020-05-27  Bruno Haible  <bruno@clisp.org>
3285         mountlist: Make more robust in multithreaded applications.
3286         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3287         to fopen.
3288         * modules/mountlist (Depends-on): Add fopen-gnu.
3290 2020-05-27  Bruno Haible  <bruno@clisp.org>
3292         sethostname: Make more robust in multithreaded applications.
3293         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3294         * modules/sethostname (Depends-on): Add fopen-gnu.
3296 2020-05-27  Bruno Haible  <bruno@clisp.org>
3298         readutmp: Make more robust in multithreaded applications.
3299         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3300         * modules/readutmp (Depends-on): Add fopen-gnu.
3302 2020-05-27  Bruno Haible  <bruno@clisp.org>
3304         getpass: Make more robust in multithreaded applications.
3305         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3306         * modules/getpass (Depends-on): Add fopen-gnu.
3308 2020-05-27  Bruno Haible  <bruno@clisp.org>
3310         getloadavg: Make more robust in multithreaded applications.
3311         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3312         * modules/getloadavg (Depends-on): Add fopen-gnu.
3314 2020-05-27  Bruno Haible  <bruno@clisp.org>
3316         exclude: Make more robust in multithreaded applications.
3317         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3318         * modules/exclude (Depends-on): Add fopen-gnu.
3320 2020-05-27  Bruno Haible  <bruno@clisp.org>
3322         bitset: Make more robust in multithreaded applications.
3323         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3324         'e' flag to fopen.
3325         * modules/bitset (Depends-on): Add fopen-gnu.
3327 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3329         read-file: add RF_SENSITIVE flag
3330         * lib/read-file.h (RF_SENSITIVE): New define.
3331         * lib/read-file.c (fread_file, read_file): Take into account of
3332         RF_SENSITIVE flag.
3333         * modules/read-file (Depends-on): Add explicit_bzero.
3334         This adds an alternative behavior of those functions to explicitly
3335         clear the internal memory block when it becomes unused.  This is
3336         useful for reading sensitive information from a file.
3338 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3340         read-file: add flags to modify reading behavior
3341         * lib/read-file.h (RF_BINARY): New define.
3342         (fread_file, read_file): Take FLAGS argument.
3343         (read_binary_file): Remove.
3344         * lib/read-file.c (internal_read_file): Merge into ...
3345         (read_file): ... here.
3346         * modules/read-file-tests (Files): Add "tests/macros.h".
3347         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3348         * NEWS: Mention this change.
3350 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3352         doc/gnulib-intro.texi: add missing "to" in sentence
3353         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3354         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3355         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3357 2020-05-26  Bruno Haible  <bruno@clisp.org>
3359         count-one-bits: Fix MSVC specific code.
3360         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3361         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3362         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3363         using GCC.
3364         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3365         (__popcnt64): In 32-bit mode, define as an inline function.
3366         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3368 2020-05-26  Bruno Haible  <bruno@clisp.org>
3370         argz: Avoid name clashes through argz.h.
3371         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3372         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3373         * lib/argz.h: Don't use __ prefixed identifiers.
3374         (const): Remove definition.
3375         (argz_next): Remove inline definitions.
3377 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3379         read-file: make use of fopen-gnu
3380         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3381         (read_binary_file): Likewise.
3382         * modules/read-file (Depends-on): Add fopen-gnu.
3384 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3386         getentropy, getrandom: new modules
3387         * MODULES.html.sh (func_all_modules):
3388         * lib/unistd.in.h (getentropy, getrandom):
3389         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3390         * modules/unistd (unistd.h):
3391         Add support for getentropy, getrandom.
3392         * doc/glibc-functions/getentropy.texi (getentropy):
3393         * doc/glibc-functions/getrandom.texi (getrandom):
3394         These are now fixed on some platforms.
3395         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3396         * m4/getentropy.m4, m4/getrandom.m4:
3397         * modules/getentropy, modules/getentropy-tests:
3398         * modules/getrandom, modules/getrandom-tests:
3399         * tests/test-getentropy.c, tests/test-getrandom.c:
3400         New files.
3402 2020-05-25  Bruno Haible  <bruno@clisp.org>
3404         Add missing C99 dependencies.
3405         Reported by Paul Smith <psmith@gnu.org> in
3406         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3407         * modules/assert (Depends-on): Add c99.
3408         * modules/filenamecat-lgpl (Depends-on): Likewise.
3409         * modules/libc-config (Depends-on): Likewise.
3410         * modules/mktime (Depends-on): Likewise.
3411         * modules/random_r (Depends-on): Likewise.
3412         * modules/regex (Depends-on): Likewise.
3413         * modules/scratch_buffer (Depends-on): Likewise.
3414         * modules/timespec-add (Depends-on): Likewise.
3415         * modules/timespec-sub (Depends-on): Likewise.
3416         * modules/verify (Depends-on): Likewise.
3418 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3420         explicit_bzero-tests: pacify -Wmissing-declarations
3421         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
3422         Now static.
3424 2020-05-24  Bruno Haible  <bruno@clisp.org>
3426         fopen-gnu: Add tests.
3427         * tests/test-fopen-gnu.c: New file.
3428         * modules/fopen-gnu-tests: New file.
3430         fopen-gnu: New module.
3431         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
3432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
3433         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
3434         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
3435         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
3436         * modules/fopen-gnu: New file.
3437         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3439 2020-05-24  Bruno Haible  <bruno@clisp.org>
3441         open, openat: Really support O_CLOEXEC.
3442         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3443         O_CLOEXEC flag to orig_open.
3444         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3445         pass a O_CLOEXEC flag to orig_openat.
3446         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3447         * modules/open-tests (Depends-on): Add fcntl.
3448         * modules/openat-tests (Depends-on): Likewise.
3449         * modules/fcntl-safer-tests (Depends-on): Likewise.
3451 2020-05-24  Bruno Haible  <bruno@clisp.org>
3453         fopen: Fix the trailing slash workaround.
3454         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3455         write access. Pass the right flags to open().
3456         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3458 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3460         assure: new macro ‘affirm’
3461         * lib/assure.h: Include verify.h.
3462         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3463         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3464         and commentary by Bruno Haible in:
3465         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3466         * modules/assure (Depends-on:): Add verify.
3468 2020-05-23  Bruno Haible  <bruno@clisp.org>
3470         calloc-gnu: Make test work in non-flat address spaces.
3471         Uses code by Paul Eggert.
3472         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3473         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3475 2020-05-23  Bruno Haible  <bruno@clisp.org>
3477         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3479         AC_RUN_IFELSE invocations.
3481 2020-05-23  Bruno Haible  <bruno@clisp.org>
3483         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3484         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3485         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3486         don't have it.
3487         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3488         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3489         don't have it.
3490         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3491         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3492         it.
3493         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3494         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3495         it.
3496         * lib/math.in.h (__has_builtin): New macro.
3497         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3498         it.
3499         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3500         it.
3501         (isnan): Don't use the builtins on clang versions that don't have
3502         __builtin_isnanf and __builtin_isnanl.
3504 2020-05-23  Bruno Haible  <bruno@clisp.org>
3506         calloc-gnu: Avoid wrong configure results with clang.
3507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3508         'volatile', to defeat compiler optimizations.
3510 2020-05-23  Bruno Haible  <bruno@clisp.org>
3512         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3513         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3514         'long double' values by reference, with values taken from a statically
3515         allocated array.
3517 2020-05-23  Bruno Haible  <bruno@clisp.org>
3519         findprog-in: Ignore directories.
3520         Reported by Frederick Eaton via Dmitry Goncharov in
3521         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3522         * lib/findprog-in.c (find_in_given_path): When the file found is a
3523         directory, set errno to EACCES and, during a PATH search, continue
3524         searching.
3525         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3527 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3529         verify: document ‘assume’ better
3530         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3532 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3534         gendocs: Clarify licenses for templates.
3535         * doc/gendocs_template: Add a GNU All-Permissive license notice
3536         and bump Parent-Version.
3537         * doc/gendocs_template_min: Add a GNU All-Permissive license
3538         notice and copy the explanatory comment about the license notice
3539         at the bottom from gendocs_template.
3541 2020-05-21  Bruno Haible  <bruno@clisp.org>
3543         group-member: Relicense under LGPLv2+.
3544         Jim Meyering's approval is in
3545         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3546         Paul Eggert's approval is in
3547         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3548         Eric Blake's approval is in
3549         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3550         * modules/group-member (License): Change to LGPLv2+.
3552 2020-05-21  Bruno Haible  <bruno@clisp.org>
3554         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3555         Reported by Tim Rühsen in
3556         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3557         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3559 2020-05-21  Bruno Haible  <bruno@clisp.org>
3561         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3562         Reported by Tim Rühsen in
3563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3564         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3565         before returning with status 0.
3567 2020-05-21  Bruno Haible  <bruno@clisp.org>
3569         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3570         Reported by Tim Rühsen in
3571         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3572         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3574 2020-05-21  Bruno Haible  <bruno@clisp.org>
3576         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3577         Reported by Tim Rühsen in
3578         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3579         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3580         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3581         respectively.
3583 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3585         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3586         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3588 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3590         ftoastr: fix ifndef typo
3591         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3593 2020-05-19  Bruno Haible  <bruno@clisp.org>
3595         havelib: Tweak documentation.
3596         * doc/havelib.texi (Searching for Libraries): Fix typo.
3598 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3600         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3601         This was needed earlier because modules had to import the main script,
3602         but that is no longer true.  Rename the script so that it is
3603         consistent with all other scripts in gnulib and uses hyphens.
3604         * build-aux/vcs_to_changelog.py: Rename to...
3605         * build-aux/vcs-to-changelog.py: ... this.
3606         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3607         * modules/vcs-to-changelog: Likewise.
3609 2020-05-17  Bruno Haible  <bruno@clisp.org>
3611         Clarify intended usage of the license file modules.
3612         Reported by Asher Gordon <AsDaGo@posteo.net> in
3613         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3614         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3615         GNU AGPL. Explain the intended usage of the modules.
3616         * modules/fdl (Notice): Discourage use as a module.
3617         * modules/fdl-1.3 (Notice): Likewise.
3619 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3621         hash: add hash_xinsert
3622         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3624 2020-05-16  Bruno Haible  <bruno@clisp.org>
3626         findprog-lgpl: Fix link error (existing since 2008-09-02).
3627         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3628         findprog-lgpl.c, not findprog.c.
3629         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3630         XNMALLOC.
3632 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3634         c-stack: pacify -Wunused-result when DEBUG
3635         Problem reported by Marc Nieper-Wißkirchen in:
3636         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3637         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3638         Explicitly ignore write failures.
3640 2020-05-13  Jim Meyering  <meyering@fb.com>
3642         announce-gen: improve a comment
3643         * build-aux/announce-gen: Improve comment.
3645 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3647         xalloc: pacify -Wanalyzer-possible-null-argument
3648         Problem reported for GCC 10.1.0 by Bruno Haible in:
3649         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3650         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3651         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3652         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3654 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3656         careadlinkat: fix GCC 10 workaround
3657         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3658         Massage the code so that it’s closer to what it was before
3659         the GCC 10.1.0 workaround was introduced.  This fixes
3660         a loop when !buffer and the bug workaround is in effect.
3661         Remove unnecessary casts.  Defend in a different way
3662         against (buffer && !buffer_size), by adding at least 1
3663         to buf_size each time through the loop.
3665 2020-05-10  Bruno Haible  <bruno@clisp.org>
3667         doc: Mark HP-UX as unsupported.
3668         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3670 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3672         careadlinkat: limit GCC workaround
3673         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3674         10.1.0 and later, since the workaround is pretty bad and the GCC
3675         bug should get fixed.
3677 2020-05-10  Bruno Haible  <bruno@clisp.org>
3679         havelib: Enhance documentation.
3680         * doc/havelib.texi (Searching for Libraries): Mention the bad
3681         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3683 2020-05-10  Bruno Haible  <bruno@clisp.org>
3685         attribute: Clarify list of attributes.
3686         * lib/attribute.h: Reorder the list of attributes, and group them by
3687         purpose.
3689 2020-05-10  Bruno Haible  <bruno@clisp.org>
3691         string: Fix compilation error in C++ mode.
3692         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3693         _GL_WARN_ON_USE.
3694         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3695         instead of _GL_WARN_ON_USE.
3697 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3699         announce-gen: add support for dist-lzip
3700         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3702 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3704         manywarnings: port to GCC 10.1
3705         * build-aux/gcc-warning.spec:
3706         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3707         Add GCC 10.1.0 warnings.
3709         careadlinkat: pacify -Wreturn-local-addr
3710         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3711         Pacify gcc 10’s -Wreturn-local-addr option.
3712         Simplify some of the later code.
3714 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3716         attribute: remove ATTRIBUTE_DEPRECATED
3717         * lib/attribute.h: Improve recently-added comments, mostly
3718         by shortening them (use active voice, etc.).
3719         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3720         Problem reported by Bruno Haible in:
3721         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3723 2020-05-09  Bruno Haible  <bruno@clisp.org>
3725         attribute: Add comments.
3726         * lib/attribute.h: Document each macro.
3728 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3730         bitset: use the attribute module
3731         * modules/bitset: Depend on 'attribute'.
3732         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3733         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3734         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3735         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3737 2020-05-09  Bruno Haible  <bruno@clisp.org>
3739         c-stack: Fix warning when DEBUG is enabled.
3740         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3741         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3742         * lib/c-stack.c: Include <stdio.h>.
3744 2020-05-09  Bruno Haible  <bruno@clisp.org>
3746         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3747         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3748         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3749         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3750         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3751         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3752         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3753         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3754         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3755         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3756         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3757         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3758         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3760 2020-05-09  Bruno Haible  <bruno@clisp.org>
3762         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3763         Reported by Akim Demaille in
3764         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3765         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3766         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3767         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3769 2020-05-09  Bruno Haible  <bruno@clisp.org>
3771         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3772         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3773         that usually comes from m4/gnulib-common.m4.
3774         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3776 2020-05-09  Bruno Haible  <bruno@clisp.org>
3778         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3779         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3780         that usually comes from m4/gnulib-common.m4.
3781         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3782         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3783         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3785 2020-05-09  Bruno Haible  <bruno@clisp.org>
3787         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3788         * lib/uchar.in.h (char16_t): Define as macro if
3789         GNULIB_OVERRIDES_CHAR16_T.
3790         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3791         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3792         (gl_UCHAR_H): Invoke them.
3793         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3794         GNULIB_OVERRIDES_CHAR32_T.
3795         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3796         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3797         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3798         GNULIB_OVERRIDES_CHAR32_T.
3800 2020-05-09  Bruno Haible  <bruno@clisp.org>
3802         Macro tweaks.
3803         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3806 2020-05-08  Bruno Haible  <bruno@clisp.org>
3808         c32rtomb: Avoid compilation failure on Haiku.
3809         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3810         inline definitions.
3811         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3813 2020-05-08  Bruno Haible  <bruno@clisp.org>
3815         mbrtoc32: Avoid compilation failure on Haiku.
3816         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3817         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3818         AC_CHECK_FUNCS_ONCE.
3819         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3821 2020-05-08  Bruno Haible  <bruno@clisp.org>
3823         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3824         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3826 2020-05-08  Bruno Haible  <bruno@clisp.org>
3828         list: Update documentation.
3829         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3830         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3831         * doc/containers.texi (Container data types): Document the new list
3832         operations and their complexity.
3834 2020-05-08  Bruno Haible  <bruno@clisp.org>
3836         ignore-value tests: Use module 'attribute'.
3837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3838         * tests/test-ignore-value.c: Include attribute.h.
3839         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3840         * modules/ignore-value-tests (Depends-on): Add attribute.
3842 2020-05-08  Bruno Haible  <bruno@clisp.org>
3844         uniname/uniname: Use module 'attribute'.
3845         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3846         * lib/uniname/uninames.h: Regenerated.
3847         * lib/uniname/uniname.c: Include attribute.h.
3848         * modules/uniname/uniname (Depends-on): Add attribute.
3850 2020-05-08  Bruno Haible  <bruno@clisp.org>
3852         c32rtomb: Use module 'attribute'.
3853         * lib/c32rtomb.c: Include attribute.h.
3854         (FALLTHROUGH): Remove macro.
3855         * modules/c32rtomb (Depends-on): Add attribute.
3857 2020-05-08  Bruno Haible  <bruno@clisp.org>
3859         xsize: Use module 'attribute'.
3860         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3861         * modules/xsize (Depends-on): Add attribute.
3863 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3865         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3867         * lib/attribute.h: Minor style fixes.
3869         Fix version-etc glitch on OpenIndiana
3870         Problem reported by Mats Erik Andersson in:
3871         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3872         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3873         that now clashes with gnulib-common.h.  All uses changed.
3875 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3877         attribute: new module
3878         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3879         * MODULES.html.sh: Add attribute.
3880         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3881         * doc/gnulib.texi (Particular Modules): Add Attributes.
3882         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3883         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3884         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3885         * lib/vasnprintf.c:
3886         Include attribute.h, and let it define FALLTHROUGH.
3887         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3888         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3889         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3890         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3891         This is a copy since Gawk doesn’t use Gnulib.
3892         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3893         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3894         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3895         Keep the existing FALLTHROUGH definition since Glibc might use it,
3896         and it does no harm to Gnulib’s FALLTHROUGH.
3897         * lib/fts_.h, lib/inttostr.h:
3898         (__GNUC_PREREQ): Remove; no longer needed.
3899         (__attribute_warn_unused_result__): Remove.  All uses
3900         replaced by _GL_ATTRIBUTE_NODISCARD.
3901         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3902         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3903         __attribute__ ((__warn_unused_result__)), for forward
3904         compatibility to C2X.
3905         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3906         _GL_ATTRIBUTE_NODISCARD.
3907         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3908         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3909         replaced by gl_COMMON_BODY’s implementation, which has a
3910         slightly different signature.
3911         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3912         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3913         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3914         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3915         No doubt all uses should be replaced, at some point.
3916         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3917         (_Noreturn): Use it.
3918         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3919         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3920         (_GL_ATTRIBUTE_COLD)
3921         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3922         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3923         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3924         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3925         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3926         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3927         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3928         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3929         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3930         (_GL_ATTRIBUTE_SENTINEL): New macros.
3931         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3932         * modules/fnmatch, modules/freopen-safer, modules/fts:
3933         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3934         * modules/quotearg, modules/savewd:
3935         * modules/unistdio/u16-u16-vasnprintf:
3936         * modules/unistdio/u16-vasnprintf:
3937         * modules/unistdio/u32-u32-vasnprintf:
3938         * modules/unistdio/u32-vasnprintf:
3939         * modules/unistdio/u8-u8-vasnprintf:
3940         * modules/unistdio/u8-vasnprintf:
3941         * modules/unistdio/ulc-vasnprintf:
3942         * modules/unistr/u8-uctomb, modules/vasnprintf:
3943         (Depends-on:): Add attribute module.
3945 2020-05-03  Bruno Haible  <bruno@clisp.org>
3947         bison: Fix today's commit.
3948         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3950 2020-05-03  Bruno Haible  <bruno@clisp.org>
3952         list-c++: Add get_first, get_last, set_first, set_last operations.
3953         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3954         set_first, set_last.
3955         * lib/gl_list.h: Tweak comments.
3957 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3959         bison: rely on bison's %require to check a version requirement
3960         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3961         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3962         enough of not.
3963         So far it is the only know Yacc tool that supports '%require'.
3964         Other yaccs will actually even choke on seeing the -o option after the
3965         input file name.
3966         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3968 2020-05-02  Bruno Haible  <bruno@clisp.org>
3970         list: Add get_first, get_last, set_first, set_last operations.
3971         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3972         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3973         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3975 2020-05-02  Bruno Haible  <bruno@clisp.org>
3977         list: Remove redundant code for remove_first and remove_last operations.
3978         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3979         remove_first, remove_last.
3980         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3981         * lib/gl_array_list.c: Revert last change.
3982         * lib/gl_carray_list.c: Likewise.
3983         * lib/gl_anylinked_list2.h: Likewise.
3984         * lib/gl_linked_list.c: Likewise.
3985         * lib/gl_linkedhash_list.c: Likewise.
3986         * lib/gl_anytree_list2.h: Likewise.
3987         * lib/gl_avltree_list.c: Likewise.
3988         * lib/gl_avltreehash_list.c: Likewise.
3989         * lib/gl_rbtree_list.c: Likewise.
3990         * lib/gl_rbtreehash_list.c: Likewise.
3991         * lib/gl_sublist.c: Likewise.
3993 2020-05-02  Bruno Haible  <bruno@clisp.org>
3995         bison-i18n: Add support for cross-compilation.
3996         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3997         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3998         via Akim Demaille <akim@lrde.epita.fr>.
3999         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4000         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4001         Don't use bison's --print-localedir option when cross-compiling.
4002         Also, fix an error message and a comment.
4004 2020-05-01  Bruno Haible  <bruno@clisp.org>
4006         list: Add remove_first and remove_last operations.
4007         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4008         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4009         * lib/gl_list.h (struct gl_list_implementation): Add fields
4010         remove_first, remove_last.
4011         (gl_list_remove_first, gl_list_remove_last): New functions.
4012         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4013         functions, based on gl_array_remove_at.
4014         (gl_array_list_implementation): Implement the new operations.
4015         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4016         New functions, based on gl_carray_remove_at.
4017         (gl_carray_list_implementation): Implement the new operations.
4018         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4019         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4020         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4021         new operations.
4022         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4023         Likewise.
4024         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4025         New functions, based on gl_tree_remove_at.
4026         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4027         new operations.
4028         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4029         Likewise.
4030         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4031         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4032         Likewise.
4033         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4034         New functions, based on gl_sublist_remove_at.
4035         (gl_sublist_list_implementation): Implement the new operations.
4036         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4037         remove_last.
4038         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4039         gl_list_remove_last.
4040         * tests/test-avltree_list.c (main): Likewise.
4041         * tests/test-avltreehash_list.c (main): Likewise.
4042         * tests/test-carray_list.c (main): Likewise.
4043         * tests/test-linked_list.c (main): Likewise.
4044         * tests/test-linkedhash_list.c (main): Likewise.
4045         * tests/test-rbtree_list.c (main): Likewise.
4046         * tests/test-rbtreehash_list.c (main): Likewise.
4048 2020-05-01  Bruno Haible  <bruno@clisp.org>
4050         parse-datetime: Fix a build failure with an older bison version.
4051         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4052         parse-datetime.tab.c if a suitable version of bison was not found.
4054 2020-05-01  Bruno Haible  <bruno@clisp.org>
4056         bison: New module.
4057         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4058         m4/parse-datetime.m4.
4059         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4060         * modules/bison: New file.
4061         * modules/parse-datetime (Files): Remove m4/bison.m4.
4062         (Depends-on): Add bison.
4064 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4066         Update users.txt.
4067         * users.txt: Add poke.
4069 2020-04-28  Bruno Haible  <bruno@clisp.org>
4071         posix_spawn_file_actions_addfchdir tests: Enhance test.
4072         * tests/test-posix_spawn5.c: Include findprog.h.
4073         (test): New function, extracted from main.
4074         (main): Invoke it. Also, invoke it with a program name such as
4075         "bin/pwd".
4076         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4077         findprog.
4079 2020-04-28  Bruno Haible  <bruno@clisp.org>
4081         posix_spawn_file_actions_addchdir tests: Enhance test.
4082         * tests/test-posix_spawn4.c: Include findprog.h.
4083         (test): New function, extracted from main.
4084         (main): Invoke it. Also, invoke it with a program name such as
4085         "bin/pwd".
4086         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4087         findprog.
4089 2020-04-28  Bruno Haible  <bruno@clisp.org>
4091         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4092         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4093         access elements of the wrong union member.
4095 2020-04-27  Bruno Haible  <bruno@clisp.org>
4097         getdate: Remove deprecated module.
4098         * modules/getdate: Remove file.
4099         * doc/getdate.texi: Remove file.
4100         * lib/getdate.h: Remove file.
4101         * NEWS: Mention the removal.
4103 2020-04-27  Bruno Haible  <bruno@clisp.org>
4105         realloc: Remove deprecated module.
4106         * modules/realloc: Remove file.
4107         * NEWS: Mention the removal.
4109 2020-04-27  Bruno Haible  <bruno@clisp.org>
4111         calloc: Remove deprecated module.
4112         * modules/calloc: Remove file.
4113         * NEWS: Mention the removal.
4115 2020-04-27  Bruno Haible  <bruno@clisp.org>
4117         malloc: Remove deprecated module.
4118         * modules/malloc: Remove file.
4119         * NEWS: Mention the removal.
4121 2020-04-27  Bruno Haible  <bruno@clisp.org>
4123         fnmatch-posix: Remove deprecated module.
4124         * modules/fnmatch-posix: Remove file.
4125         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4126         * NEWS: Mention the removal.
4128 2020-04-27  Bruno Haible  <bruno@clisp.org>
4130         pipe: Remove deprecated module.
4131         * modules/pipe: Remove file.
4132         * lib/pipe.h: Remove file.
4133         * NEWS: Mention the removal.
4135 2020-04-27  Bruno Haible  <bruno@clisp.org>
4137         getopt: Remove deprecated module.
4138         * modules/getopt: Remove file.
4139         * NEWS: Mention the removal.
4141 2020-04-27  Bruno Haible  <bruno@clisp.org>
4143         remove-dest-slash: Remove deprecated module.
4144         * modules/rename-dest-slash: Remove file.
4145         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4146         Update.
4147         * NEWS: Mention the removal.
4149 2020-04-27  Bruno Haible  <bruno@clisp.org>
4151         unictype/bidicategory-*: Remove deprecated modules.
4152         * modules/unictype/bidicategory-all: Remove file.
4153         * modules/unictype/bidicategory-byname: Remove file.
4154         * modules/unictype/bidicategory-name: Remove file.
4155         * modules/unictype/bidicategory-of: Remove file.
4156         * modules/unictype/bidicategory-test: Remove file.
4157         * MODULES.html.sh (Unicode string functions): Update.
4158         * NEWS: Mention the removals.
4160 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4162         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4163         From a suggestion by Askar Safin in:
4164         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4165         * lib/fts.c (fts_build): If file types are known, optimize
4166         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4167         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4168         non-directories.
4170 2020-04-19  Bruno Haible  <bruno@clisp.org>
4172         vasnprintf: Add support for printing wide characters using escapes.
4173         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4174         (wctomb_fallback): New function.
4175         (local_wctomb): New function.
4176         (local_wcrtomb): New function or macro.
4177         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4178         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4179         %lc.
4181 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4183         fts: remove NOSTAT_LEAF_OPTIMIZATION
4184         It caused ‘find’ and ‘du’ to dump core, and it was useful
4185         only for obsolescent Linux filesystems anyway.  Problem reported in:
4186         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4187         Quite possibly there is still a serious underlying fts bug with
4188         tight-loop-check and mutating file systems, but if so this patch
4189         should cause the bug to be triggered less often.
4190         * lib/fts.c (enum leaf_optimization): Remove
4191         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4192         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4193         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4194         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4195         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4196         Remove.  All uses removed.
4198 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4200         explicit_bzero: Improve code style.
4201         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4203 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4205         explicit_bzero: On native Windows, use SecureZeroMemory().
4206         * lib/explicit_bzero.c: Include <windows.h>.
4207         (explicit_bzero): On native Windows, use SecureZeroMemory.
4209 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4211         explicit_bzero: Use memset_s() when available.
4212         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4213         (explicit_bzero): Use memset_s when available.
4214         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4216 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4218         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4219         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4220         free() that overwrite the memory with canaries.
4222 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4224         bootstrap: recommend git submodule update --init
4225         Reported by Bruno Haible.
4226         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4227         * build-aux/bootstrap: recommand "git submodule update --init"
4228         rather than "git submodule init".
4230 2020-04-12  Bruno Haible  <bruno@clisp.org>
4232         explicit_bzero: Add tests.
4233         * tests/test-explicit_bzero.c: New file.
4234         * modules/explicit_bzero-tests: New file.
4236 2020-04-11  Bruno Haible  <bruno@clisp.org>
4238         explicit_bzero: Relicense under LGPLv2+.
4239         Approved by Paul Eggert.
4240         * modules/explicit_bzero (License): Change to LGPLv2+.
4242 2020-04-10  Bruno Haible  <bruno@clisp.org>
4244         findprog, relocatable-prog: Ignore directories during PATH search.
4245         Reported by Frederick Eaton via Dmitry Goncharov in
4246         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4248         * lib/findprog.c (find_in_path): When the file found in a PATH element
4249         is a directory, continue searching.
4250         * modules/findprog (Depends-on): Add sys_stat, stat.
4251         * modules/findprog-lgpl (Depends-on): Likewise.
4253         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4254         element is a directory, continue searching.
4255         * lib/relocwrapper.c: Update comments.
4256         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4257         (configure.ac-early): New section.
4259 2020-04-10  Bruno Haible  <bruno@clisp.org>
4261         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4262         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4263         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4264         * MODULES.html.sh: In a git-less tarball, use the date of the first
4265         ChangeLog entry.
4267 2020-04-04  Bruno Haible  <bruno@clisp.org>
4269         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4270         * m4/gettext.m4: Fix comments regarding the gettext library.
4271         * m4/intl-thread-locale.m4: Likewise.
4272         * m4/intlmacosx.m4: Likewise.
4273         * m4/lcmessage.m4: Likewise.
4274         * m4/nls.m4: Likewise.
4275         * m4/po.m4: Likewise.
4276         * m4/progtest.m4: Likewise.
4278 2020-04-04  Jim Meyering  <meyering@fb.com>
4280         maint: remove a stray inter-word space in a 6x-repeated comment
4281         Induce the changes by running this:
4282           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4283         * build-aux/announce-gen: Change "by  perl" to "by perl".
4284         * build-aux/gitlog-to-changelog: Likewise.
4285         * build-aux/prefix-gnulib-mk: Likewise.
4286         * build-aux/update-copyright: Likewise.
4287         * build-aux/useless-if-before-free: Likewise.
4288         * tests/test-update-copyright.sh: Likewise.
4290 2020-03-28  Bruno Haible  <bruno@clisp.org>
4292         Use module 'filename' instead of module 'dosname'.
4294         * lib/at-func.c: Include filename.h instead of dosname.h.
4295         * lib/unlinkat.c: Likewise.
4296         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4297         * modules/areadlinkat-with-size (Depends-on): Likewise.
4298         * modules/faccessat (Depends-on): Likewise.
4299         * modules/fchmodat (Depends-on): Likewise.
4300         * modules/fchownat (Depends-on): Likewise.
4301         * modules/fstatat (Depends-on): Likewise.
4302         * modules/mkdirat (Depends-on): Likewise.
4303         * modules/mkfifoat (Depends-on): Likewise.
4304         * modules/readlinkat (Depends-on): Likewise.
4305         * modules/selinux-at (Depends-on): Likewise.
4306         * modules/symlinkat (Depends-on): Likewise.
4307         * modules/unlinkat (Depends-on): Likewise.
4308         * modules/utimensat (Depends-on): Likewise.
4310         * lib/at-func2.c: Include filename.h instead of dosname.h.
4311         * modules/linkat (Depends-on): Add filename. Remove dosname.
4312         * modules/renameatu (Depends-on): Likewise.
4314         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4315         * lib/canonicalize-lgpl.c: Likewise.
4316         * modules/canonicalize (Depends-on): Add filename.
4317         * modules/canonicalize-lgpl (Depends-on): Likewise.
4319         * lib/dirname.h: Include filename.h instead of dosname.h.
4320         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4322         * lib/fchdir.c: Include filename.h instead of dosname.h.
4323         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4325         * lib/openat.c: Include filename.h instead of dosname.h.
4326         * modules/openat (Depends-on): Add filename. Remove dosname.
4328         * lib/rmdir.c: Include filename.h instead of dosname.h.
4329         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4331         * lib/savewd.c: Include filename.h instead of dosname.h.
4332         * modules/savewd (Depends-on): Add filename. Remove dosname.
4334         * lib/unlink.c: Include filename.h instead of dosname.h.
4335         * modules/unlink (Depends-on): Add filename. Remove dosname.
4337         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4338         * lib/relocwrapper.c: Update comments.
4340         * modules/lstat (Depends-on): Remove dosname.
4342 2020-03-28  Bruno Haible  <bruno@clisp.org>
4344         dosname: Redirect to 'filename'.
4345         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4347         * lib/dosname.h: Remove all definitions. Just include filename.h.
4348         * modules/dosname (Status, Notice): Mark as deprecated.
4349         (Depends-on): Add 'filename'.
4351 2020-03-28  Bruno Haible  <bruno@clisp.org>
4353         dosname: Change IS_RELATIVE_FILE_NAME.
4354         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4355         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4356         * NEWS: Mention the change.
4358 2020-03-28  Bruno Haible  <bruno@clisp.org>
4360         filename: Copy some definitions from module 'dosname'.
4361         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4362         (HAS_DEVICE): Document macro.
4363         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4364         (IS_ABSOLUTE_FILE_NAME): Consider
4365         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4366         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4367         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4368         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4369         IS_PATH_WITH_DIR.
4370         (DllMain): Update.
4371         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4372         IS_PATH_WITH_DIR.
4373         (find_executable): Update.
4374         * NEWS: Document the deprecations.
4376 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4378         getopt-posix: port __GETOPT_PREFIX to macOS
4379         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4380         Define to work around a problem with asm on macOS (Bug#40205).
4382 2020-03-22  Bruno Haible  <bruno@clisp.org>
4384         MODULES.html.sh: Add support for reproducible builds.
4385         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4386         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4387         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4388         current date.
4390 2020-03-22  Bruno Haible  <bruno@clisp.org>
4392         Several modules: Depend on stat.
4393         * modules/acl-permissions (Depends-on): Add stat.
4394         * modules/canonicalize (Depends-on): Likewise.
4395         * modules/file-has-acl (Depends-on): Likewise.
4396         * modules/fstat (Depends-on): Likewise.
4397         * modules/fstatat (Depends-on): Likewise.
4398         * modules/glob (Depends-on): Likewise.
4399         * modules/javacomp (Depends-on): Likewise.
4400         * modules/linkat (Depends-on): Likewise.
4401         * modules/mkdir (Depends-on): Likewise.
4402         * modules/pt_chown (Depends-on): Likewise.
4403         * modules/ptsname_r (Depends-on): Likewise.
4404         * modules/readlinkat (Depends-on): Likewise.
4405         * modules/rename (Depends-on): Likewise.
4406         * modules/renameatu (Depends-on): Likewise.
4407         * modules/tmpdir (Depends-on): Likewise.
4408         * modules/utimens (Depends-on): Likewise.
4409         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4410         * modules/same (Depends-on): Remove stat.
4412 2020-03-22  Bruno Haible  <bruno@clisp.org>
4414         acl-permissions: Improve autoconf macro.
4415         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
4416         more reliably.
4418 2020-03-22  Bruno Haible  <bruno@clisp.org>
4420         file-has-acl: Fix module description.
4421         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
4422         (Depends-on): Depend on acl-permissions unconditionally.
4424 2020-03-21  Bruno Haible  <bruno@clisp.org>
4426         unlink: Ensure errno also on native Windows.
4427         * modules/unlink (Depends-on): Add malloc-posix.
4429 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4431         unlink: fix malloc errno typo
4432         Problem reported by Tim Rühsen in:
4433         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
4434         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
4436 2020-03-16  Bruno Haible  <bruno@clisp.org>
4438         *printf-posix: Fix m4 error (regression from 2020-03-08).
4439         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4440         brackets in AC_COMPILE_IFELSE invocation.
4442 2020-03-08  Bruno Haible  <bruno@clisp.org>
4444         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4445         * modules/crypto/af_alg (Depends-on): Add fstat.
4446         * modules/renameatu (Depends-on): Likewise.
4447         * modules/same (Depends-on): Likewise.
4448         * modules/term-style-control (Depends-on): Likewise.
4450 2020-03-08  Bruno Haible  <bruno@clisp.org>
4452         *printf-posix: Document why it's overridden on some glibc systems.
4453         Reported by Adrian Bunk <bunk@stusta.de> in
4454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4455         * doc/posix-functions/*printf.texi: Document the problem with the %n
4456         directive on some glibc systems.
4457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4458         the cross-compilation guesses accordingly.
4460 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4462         open, openat: port to (O_RDWR | O_RDONLY) != 0
4463         Potential portability problem reported by Dan Gohman in:
4464         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4465         * lib/open.c (open):
4466         * lib/openat.c (rpl_openat):
4467         Don’t assume O_RDONLY is disjoint from O_RDWR.
4469 2020-03-07  Bruno Haible  <bruno@clisp.org>
4471         openat: Fix theoretically possible issue on GNU/Hurd.
4472         Reported by Dan Gohman <sunfish@mozilla.com> in
4473         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4474         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4475         ignore the bits that are also set in O_RDONLY.
4477 2020-02-24  Bruno Haible  <bruno@clisp.org>
4479         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4480         Reported by Jens Rehsack <sno@netbsd.org> in
4481         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4482         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4483         cross-compiling.
4485 2020-02-24  Bruno Haible  <bruno@clisp.org>
4487         fcntl: Add witness of gnulib override.
4488         Reported by Jens Rehsack <sno@netbsd.org> in
4489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4490         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4491         macros.
4493 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4495         Update users.txt.
4496         * users.txt: Add datamash, time.
4498 2020-02-23  Bruno Haible  <bruno@clisp.org>
4500         uni*/base: Use 'restrict'.
4501         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4502         from lib/regex.h.
4503         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4504         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4505         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4506         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4507         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4508         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4509         '_UC_RESTRICT'.
4510         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4511         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4512         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4513         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4514         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4515         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4516         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4517         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4518         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4519         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4520         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4521         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4522         '_UC_RESTRICT'.
4523         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4524         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4525         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4526         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4527         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4528         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4529         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4530         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4532 2020-02-23  Bruno Haible  <bruno@clisp.org>
4534         glob, spawn: Use improved '_Restrict_' definition.
4535         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4536         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4538 2020-02-23  Bruno Haible  <bruno@clisp.org>
4540         crypto/gc: Use 'restrict'.
4541         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4542         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4544         crypto/hmac-*: Use 'restrict'.
4545         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4546         'restrict'.
4547         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4548         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4549         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4550         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4552         crypto/sm3: Use 'restrict'.
4553         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4554         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4556         crypto/*-buffer: Use 'restrict'.
4557         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4558         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4560         crypto/sha512-buffer: Use 'restrict'.
4561         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4562         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4563         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4565         crypto/sha256-buffer: Use 'restrict'.
4566         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4567         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4568         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4570         crypto/sha1-buffer: Use 'restrict'.
4571         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4572         'restrict'.
4573         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4575         crypto/md5-buffer: Use 'restrict'.
4576         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4577         'restrict'.
4578         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4580         crypto/md4: Use 'restrict'.
4581         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4582         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4584         crypto/md2: Use 'restrict'.
4585         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4586         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4588         crypto/rijndael: Use 'restrict'.
4589         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4590         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4591         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4593         crypto/arctwo: Use 'restrict'.
4594         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4595         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4597         crypto/arcfour: Use 'restrict'.
4598         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4599         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4601         careadlinkat: Use 'restrict'.
4602         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4603         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4604         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4606         regex-quote: Use 'restrict'.
4607         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4608         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4610         system-quote: Use 'restrict'.
4611         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4612         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4614         sh-quote: Use 'restrict'.
4615         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4616         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4618         quotearg: Use 'restrict'.
4619         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4620         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4622         parse-datetime: Use 'restrict'.
4623         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4624         'restrict'.
4625         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4627         nstrftime: Use 'restrict'.
4628         * lib/strftime.h (nstrftime): Use 'restrict'.
4629         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4631         mbstok_r: Use 'restrict'.
4632         * lib/string.in.h (mbstok_r): Use 'restrict'.
4634         xmemcoll: Use 'restrict'.
4635         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4636         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4638         memcoll: Use 'restrict'.
4639         * lib/memcoll.h (memcoll): Use 'restrict'.
4640         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4642         vasnprintf: Use 'restrict'.
4643         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4644         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4646         c-vasnprintf: Use 'restrict'.
4647         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4648         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4650         c-vsnprintf: Use 'restrict'.
4651         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4652         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4654         c-snprintf: Use 'restrict'.
4655         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4656         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4658         astrxfrm: Use 'restrict'.
4659         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4660         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4662         amemxfrm: Use 'restrict'.
4663         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4664         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4666 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4668         fchmodat, lchmod: simplify
4669         It appears that we may have overengineered lchmod and fchmodat,
4670         in that the code was prepared for some hypothetical platforms but
4671         was so complicated that it was hard to understand.  I attempted to
4672         improve the situation by simplifying the code when this
4673         simplification should not hurt on real platforms; we can re-add
4674         complexity later to port to platforms I didn’t know about.
4675         * lib/fchmodat.c (fchmodat):
4676         * lib/lchmod.c (lchmod):
4677         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4678         around the /proc code that needs it.
4679         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4680         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4681         Do not include <config.h> twice.
4682         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4683         lchmod on any known hosts.
4684         (lchmod): Do not defer to fchmodat, so that the lchmod module
4685         need not depend on the fchmodat module (which is a circular
4686         dependency).  Do not use openat, since ‘open’ suffices.
4687         Coalesce calls to lchmod/chmod.
4688         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4689         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4690         * modules/lchmod (Depends-on, configure.ac):
4691         * modules/sys_stat (Depends-on):
4692         Do not worry about replacing lchmod, since that shouldn’t happen.
4693         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4694         Do not worry about whether lchmod works on non-symlinks,
4695         since every known lchmod works on non-symlinks.
4696         * modules/lchmod (Depends-on):
4697         Remove circular dependency on fchmodat.
4699 2020-02-22  Bruno Haible  <bruno@clisp.org>
4701         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4702         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4703         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4705 2020-02-22  Bruno Haible  <bruno@clisp.org>
4707         Use 'restrict' in all POSIX function declarations.
4708         * lib/iconv.in.h (iconv): Use 'restrict'.
4709         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4710         * lib/monetary.in.h (strfmon_l): Likewise.
4711         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4712         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4713         pthread_mutex_timedlock, pthread_rwlock_init,
4714         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4715         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4716         * lib/search.in.h (tdelete): Likewise.
4717         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4718         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4719         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4720         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4721         Likewise.
4722         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4723         strtoull): Likewise.
4724         * lib/string.in.h (strncat): Likewise.
4725         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4726         recvfrom): Likewise.
4727         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4728         * lib/time.in.h (strftime): Likewise.
4729         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4730         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4731         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4732         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4733         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4734         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4735         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4736         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4737         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4738         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4739         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4740         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4742         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4743         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4744         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4745         other *_h.m4 files.
4746         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4748 2020-02-22  Bruno Haible  <bruno@clisp.org>
4750         Update NEWS.
4751         * NEWS: Mention the last change.
4753 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4755         chmodat, chownat: new modules
4756         These are split from fchmodat, fchownat.  GNU Emacs needs the
4757         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4758         lchmodat.  Split the latter two into a new module chmodat.
4759         Similarly for fchownat.  This the same basic idea for why statat
4760         was split from fstatat on 2013-01-23.
4761         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4762         Rename from FCHMODAT_INLINE.  All uses changed.
4763         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4764         Rename from FCHOWNAT_INLINE.  All uses changed.
4765         * lib/openat.h:
4766         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4767         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4768         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4769         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4770         (configure.ac): Remove fchmodat module indicator.
4771         (Makefile.am): Omit chmodat.c.
4772         (Maintainer): Add self.
4773         * modules/fchownat: Similarly, but for chown.
4774         * tests/test-fchownat.c (BASE): Don't define if already defined.
4775         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4777 2020-02-22  Bruno Haible  <bruno@clisp.org>
4779         users.txt: Add groff.
4780         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4781         * users.txt: Add groff.
4783 2020-02-22  Bruno Haible  <bruno@clisp.org>
4785         gnulib-tool: Ensure copied files are writable.
4786         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4787         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4788         * gnulib-tool (func_ensure_writable): New function.
4789         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4790         func_create_testdir, copy-file): Invoke it after copying a file.
4792 2020-02-22  Bruno Haible  <bruno@clisp.org>
4794         users.txt: Update.
4795         * users.txt: Update URLs to projects that have moved or switched to git.
4796         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4797         over the summary view. Add gawk.
4799 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4801         largefile: remove _DARWIN_USE_64_BIT_INODE
4802         It’s not needed in currently-supported macOS versions, and was
4803         problematic anyway in MacOS X 10.5 which was the only version that
4804         could use it.  Problem reported by Peter Eisentraut in:
4805         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4806         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4807         Don’t define _DARWIN_USE_64_BIT_INODE.
4808         This syncs with Autoconf master.
4810         Add ‘extern "C"’ to count-one-bits.h etc.
4811         This ports these .h files to C++.
4812         Problem reported by Simon Marchi in:
4813         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4814         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4815         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4817 2020-02-19  Bruno Haible  <bruno@clisp.org>
4819         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4820         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4821         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4822         * lib/array-mergesort.h: Accept an optional macro definition
4823         STATIC_FROMTO.
4824         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4826 2020-02-16  Bruno Haible  <bruno@clisp.org>
4828         fchmodat: Make more future-proof.
4829         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4830         NEED_FCHMODAT_NONSYMLINK_FIX.
4831         (gl_PREREQ_FCHMODAT): New macro.
4832         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4833         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4834         without lchmod function.
4835         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4837 2020-02-16  Bruno Haible  <bruno@clisp.org>
4839         lchmod: Make more future-proof.
4840         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4841         (gl_PREREQ_LCHMOD): New macro.
4842         * lib/lchmod.c (orig_lchmod): New function.
4843         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4844         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4845         function.
4846         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4848         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4849         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4851 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4853         xnanosleep: prefer pause, and get remaining time
4854         Problem reported by Vladimir Panteleev in:
4855         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4856         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4857         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4858         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4859         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4860         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4862 2020-02-16  Bruno Haible  <bruno@clisp.org>
4864         lchmod: Improve cross-compilation guess.
4865         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4866         cross-compiling, guess depending on the platform.
4868 2020-02-16  Bruno Haible  <bruno@clisp.org>
4870         fstrcmp: Add API to clean up resources.
4871         Reported by Akim Demaille <akim@lrde.epita.fr> in
4872         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4873         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4874         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4876 2020-02-14  Bruno Haible  <bruno@clisp.org>
4878         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4879         Reported by Christian Biesinger in
4880         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4881         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4882         corresponding module is not enabled.
4883         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4884         prototype if the corresponding module is not enabled.
4886 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4888         fchmodat, lchmod: port to buggy Linux filesystems
4889         Problem reported by Florian Weimer in:
4890         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4891         * lib/fchmodat.c (fchmodat):
4892         * lib/lchmod.c (lchmod):
4893         Don’t assume that chmod on the O_PATH-opened fd will do
4894         the right thing on a symbolic link.
4895         * lib/fchmodat.c (fchmodat):
4896         Don’t attempt to special-case
4897         any flag value other than AT_SYMLINK_NOFOLLOW.
4899 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4901         lchmod: pacify Coverity CID 1491216
4902         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4903         not complain about unreachable code at the ‘struct stat st;’
4904         declaration.
4906 2020-02-10  Bruno Haible  <bruno@clisp.org>
4908         copysignf: Fix link error on HP-UX with cc.
4909         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4910         HP-UX, set COPYSIGNF_LIBM to -lm.
4912 2020-02-10  Bruno Haible  <bruno@clisp.org>
4914         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4915         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4916         with $(LIB_SEMAPHORE).
4917         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4918         with $(LIB_SEMAPHORE).
4920 2020-02-10  Bruno Haible  <bruno@clisp.org>
4922         ptsname_r-tests: Avoid unused function warning.
4923         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4925 2020-02-08  Bruno Haible  <bruno@clisp.org>
4927         lchmod: Add tests.
4928         * tests/test-lchmod.c: New file.
4929         * modules/lchmod-tests: New file.
4931 2020-02-08  Bruno Haible  <bruno@clisp.org>
4933         lchmod: Ensure declaration on HP-UX.
4934         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4935         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4937 2020-02-08  Bruno Haible  <bruno@clisp.org>
4939         fchmodat: Strengthen tests.
4940         * tests/test-fchmodat.c (BASE): New macro.
4941         (main): Use it, to avoid conflicts with other unit tests. Verify that
4942         fchmodat changed the file permission bits.
4944 2020-02-08  Bruno Haible  <bruno@clisp.org>
4946         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4947         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4948         '#undef __need_system_sys_stat_h'.
4950 2020-02-08  Bruno Haible  <bruno@clisp.org>
4952         fchmodat: Improve cross-compilation guesses.
4953         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4954         cross-compiling, guess depending on the platform.
4955         * doc/posix-functions/fchmodat.texi: Clarify.
4957 2020-02-08  Bruno Haible  <bruno@clisp.org>
4959         Fix compilation errors in a testdir created with --with-c++-tests.
4960         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4961         since it does not work any more with g++ >= 4.4.
4963 2020-02-08  Bruno Haible  <bruno@clisp.org>
4965         doc: Update for glibc 2.31.
4966         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4967         * doc/gnulib.texi: Include it.
4968         * doc/pastposix-functions/h_errno.texi: Update.
4969         * doc/posix-functions/*.texi: Likewise.
4971 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4973         mountlist: consider smb3 file systems as remote
4974         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4975         "smb3" as remote.
4977 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4979         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4980         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4981         they act like chmod on non-symlinks.
4982         * NEWS:
4983         * doc/glibc-functions/lchmod.texi (lchmod):
4984         * doc/posix-functions/fchmodat.texi (fchmodat):
4985         Mention this.
4986         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4987         config.h, and undef it after including sys/stat.h the first time.
4988         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4989         sys/stat.h a second time after defining orig_fchmodat.
4990         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4991         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4992         * lib/lchmod.c: New file.
4993         * lib/sys_stat.in.h (fchmodat, lchmod):
4994         Support replacing these functions.
4995         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4996         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4997         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4998         Test that lchmod works on non-symlinks.
4999         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5000         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5001         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5002         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5003         * modules/lchmod (Files): Add lib/lchmod.c.
5004         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5005         (configure.ac): Compile lchmod.c if needed.
5006         (lib_SOURCES): Add lchmod.c.
5007         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5008         and REPLACE_LCHMOD.
5009         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5010         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5012 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5014         mountlist: Consider AFS filesystems as remote
5015         df --local relies on the ME_REMOTE macro to determine if a given
5016         mount entry should be considered "local".  There is special logic
5017         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5018         kernel's kafs module or AuriStorFS is treated as a local mount.
5019         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5020         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5022 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5024         Port _Noreturn to older Clang
5025         Problem reported by Jeffery Walton in:
5026         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5027         * lib/_Noreturn.h (_Noreturn):
5028         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5029         Assume _Noreturn works in Clang 3.5 and later.
5030         It is documented to work in Clang 3.5:
5031         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5032         and is not documented in Clang 3.4:
5033         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5034         Apple sets __clang_version__ to a different value, so use
5035         __apple_build_version__ there.  See:
5036         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5038 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5040         test-canonicalize: avoid unused function warning
5041         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5042         with the same guard as that used to protect usage of the null_ptr
5043         function, so that one doesn't get a -Wunused warning.
5044         * tests/test-canonicalize-lgpl.c: Likewise.
5046 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5048         libc-config: port to Apple’s Clang variant
5049         * lib/libc-config.h (__glibc_clang_prereq):
5050         Port to Apple’s Clang variant, which uses a different
5051         numbering scheme for __clang_major__.
5053 2020-02-02  Bruno Haible  <bruno@clisp.org>
5055         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5056         * doc/containers.texi: Document these new modules.
5058 2020-02-02  Bruno Haible  <bruno@clisp.org>
5060         omap-c++: Add tests.
5061         * tests/test-omap-c++.cc: New file.
5062         * modules/omap-c++-tests: New file.
5064         omap-c++: New module.
5065         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5066         * modules/omap-c++: New file.
5068 2020-02-02  Bruno Haible  <bruno@clisp.org>
5070         map-c++: Add tests.
5071         * tests/test-map-c++.cc: New file.
5072         * modules/map-c++-tests: New file.
5074         map-c++: New module.
5075         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5076         * modules/map-c++: New file.
5078 2020-02-02  Bruno Haible  <bruno@clisp.org>
5080         oset-c++: Add tests.
5081         * tests/test-oset-c++.cc: New file.
5082         * modules/oset-c++-tests: New file.
5084         oset-c++: New module.
5085         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5086         * modules/oset-c++: New file.
5088 2020-02-02  Bruno Haible  <bruno@clisp.org>
5090         set-c++: Add tests.
5091         * tests/test-set-c++.cc: New file.
5092         * modules/set-c++-tests: New file.
5094         set-c++: New module.
5095         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5096         * modules/set-c++: New file.
5098 2020-02-02  Bruno Haible  <bruno@clisp.org>
5100         list-c++: Add tests.
5101         * tests/test-list-c++.cc: New file.
5102         * modules/list-c++-tests: New file.
5104         list-c++: New module.
5105         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5106         * modules/list-c++: New file.
5108 2020-02-02  Bruno Haible  <bruno@clisp.org>
5110         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5111         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5112         '_Noreturn'.
5113         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5115 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5117         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5118         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5119           error: argument 2 value '18446744073709551615'
5120           exceeds maximum object size 9223372036854775807
5121           [-Werror=alloc-size-larger-than=]
5122         The details of this restriction are discussed at:
5123         https://stackoverflow.com/q/42574890/4421
5124         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5126 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5128         sysctl.h: avoid including on glibc
5129         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5130         * lib/physmem.c: Likewise.
5132 2020-02-02  Bruno Haible  <bruno@clisp.org>
5134         list, set, oset, map, omap: Avoid imperative voice in documentation.
5135         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5136         in the specification of functions.
5137         * lib/gl_set.h: Likewise.
5138         * lib/gl_oset.h: Likewise.
5139         * lib/gl_map.h: Likewise.
5140         * lib/gl_omap.h: Likewise.
5141         * lib/gl_*.h: Likewise.
5143 2020-02-01  Bruno Haible  <bruno@clisp.org>
5145         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5146         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5147         does.
5149 2020-01-29  Bruno Haible  <bruno@clisp.org>
5151         array-map, hash-map, linkedhash-map: Fix module description.
5152         * modules/array-map (Description): Fix description.
5153         * modules/hash-map (Description): Likewise.
5154         * modules/linkedhash-map (Description): Likewise.
5156 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5158         dfa: do not depend on isblank
5159         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5160         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5161         * modules/dfa (Depends-on): Remove isblank.
5162         * modules/isblank: Add a module indicator, for lib/dfa.c.
5164         dfa: do not assume 64-bit int
5165         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5166         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5167         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5168         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5169         Fall back to 32-bit words.
5170         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5171         of 4 64-bit args.  All uses changed.
5173 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5175         regex: remove limits-h dependency
5176         * modules/regex (Depends-on): Remove limits-h, since the
5177         code no longer depends on ULONG_WIDTH already being defined.
5179         regex: port to non-GCC pre-IEC-60559
5180         Problem reported by Arnold Robbins in:
5181         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5182         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5184 2020-01-25  Bruno Haible  <bruno@clisp.org>
5186         c32isxdigit: Add tests.
5187         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5188         * tests/test-c32isxdigit.sh: New file.
5189         * modules/c32isxdigit-tests: New file.
5191         c32isxdigit: New module.
5192         * lib/c32isxdigit.c: New file.
5193         * modules/c32isxdigit: New file.
5194         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5196 2020-01-25  Bruno Haible  <bruno@clisp.org>
5198         c32isupper: Add tests.
5199         * tests/test-c32isupper.c: New file.
5200         * tests/test-c32isupper.sh: New file.
5201         * modules/c32isupper-tests: New file.
5203         c32isupper: New module.
5204         * lib/c32isupper.c: New file.
5205         * modules/c32isupper: New file.
5206         * doc/posix-functions/iswupper.texi: Mention the new module.
5208 2020-01-25  Bruno Haible  <bruno@clisp.org>
5210         c32isspace: Add tests.
5211         * tests/test-c32isspace.c: New file.
5212         * tests/test-c32isspace.sh: New file.
5213         * modules/c32isspace-tests: New file.
5215         c32isspace: New module.
5216         * lib/c32isspace.c: New file.
5217         * modules/c32isspace: New file.
5218         * doc/posix-functions/iswspace.texi: Mention the new module.
5220 2020-01-25  Bruno Haible  <bruno@clisp.org>
5222         c32ispunct: Add tests.
5223         * tests/test-c32ispunct.c: New file.
5224         * tests/test-c32ispunct.sh: New file.
5225         * modules/c32ispunct-tests: New file.
5227         c32ispunct: New module.
5228         * lib/c32ispunct.c: New file.
5229         * modules/c32ispunct: New file.
5230         * doc/posix-functions/iswpunct.texi: Mention the new module.
5232 2020-01-25  Bruno Haible  <bruno@clisp.org>
5234         c32isprint: Add tests.
5235         * tests/test-c32isprint.c: New file.
5236         * tests/test-c32isprint.sh: New file.
5237         * modules/c32isprint-tests: New file.
5239         c32isprint: New module.
5240         * lib/c32isprint.c: New file.
5241         * modules/c32isprint: New file.
5242         * doc/posix-functions/iswprint.texi: Mention the new module.
5244 2020-01-25  Bruno Haible  <bruno@clisp.org>
5246         c32islower: Add tests.
5247         * tests/test-c32islower.c: New file.
5248         * tests/test-c32islower.sh: New file.
5249         * modules/c32islower-tests: New file.
5251         c32islower: New module.
5252         * lib/c32islower.c: New file.
5253         * modules/c32islower: New file.
5254         * doc/posix-functions/iswlower.texi: Mention the new module.
5256 2020-01-25  Bruno Haible  <bruno@clisp.org>
5258         c32isgraph: Add tests.
5259         * tests/test-c32isgraph.c: New file.
5260         * tests/test-c32isgraph.sh: New file.
5261         * modules/c32isgraph-tests: New file.
5263         c32isgraph: New module.
5264         * lib/c32isgraph.c: New file.
5265         * modules/c32isgraph: New file.
5266         * doc/posix-functions/iswgraph.texi: Mention the new module.
5268 2020-01-25  Bruno Haible  <bruno@clisp.org>
5270         c32isdigit: Add tests.
5271         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5272         * tests/test-c32isdigit.sh: New file.
5273         * modules/c32isdigit-tests: New file.
5275         c32isdigit: New module.
5276         * lib/c32isdigit.c: New file.
5277         * modules/c32isdigit: New file.
5278         * doc/posix-functions/iswdigit.texi: Mention the new module.
5280 2020-01-25  Bruno Haible  <bruno@clisp.org>
5282         c32iscntrl: Add tests.
5283         * tests/test-c32iscntrl.c: New file.
5284         * tests/test-c32iscntrl.sh: New file.
5285         * modules/c32iscntrl-tests: New file.
5287         c32iscntrl: New module.
5288         * lib/c32iscntrl.c: New file.
5289         * modules/c32iscntrl: New file.
5290         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5292 2020-01-25  Bruno Haible  <bruno@clisp.org>
5294         c32isblank: Add tests.
5295         * tests/test-c32isblank.c: New file.
5296         * tests/test-c32isblank.sh: New file.
5297         * modules/c32isblank-tests: New file.
5299         c32isblank: New module.
5300         * lib/c32isblank.c: New file.
5301         * modules/c32isblank: New file.
5302         * doc/posix-functions/iswblank.texi: Mention the new module.
5304 2020-01-25  Bruno Haible  <bruno@clisp.org>
5306         c32isalpha: Add tests.
5307         * tests/test-c32isalpha.c: New file.
5308         * tests/test-c32isalpha.sh: New file.
5309         * modules/c32isalpha-tests: New file.
5311         c32isalpha: New module.
5312         * lib/c32isalpha.c: New file.
5313         * modules/c32isalpha: New file.
5314         * doc/posix-functions/iswalpha.texi: Mention the new module.
5316 2020-01-25  Bruno Haible  <bruno@clisp.org>
5318         c32isalnum: Add tests.
5319         * tests/test-c32isalnum.c: New file.
5320         * tests/test-c32isalnum.sh: New file.
5321         * modules/c32isalnum-tests: New file.
5323         c32isalnum: New module.
5324         * lib/c32isalnum.c: New file.
5325         * lib/c32is-impl.h: New file.
5326         * modules/c32isalnum: New file.
5327         * doc/posix-functions/iswalnum.texi: Mention the new module.
5329 2020-01-25  Bruno Haible  <bruno@clisp.org>
5331         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5332         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5333         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5334         c32isupper, c32isxdigit): New declarations.
5335         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5336         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5337         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5338         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5339         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5340         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5341         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5342         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5343         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5344         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5345         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5346         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5347         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5349 2020-01-25  Bruno Haible  <bruno@clisp.org>
5351         mbchar, wctype: Use the corrected iswxdigit function.
5352         * modules/mbchar (Depends-on): Add iswxdigit.
5353         * modules/wctype (Depends-on): Likewise.
5355         iswxdigit: Add tests.
5356         * tests/test-iswxdigit.c: New file.
5357         * tests/test-iswxdigit.sh: New file.
5358         * modules/iswxdigit-tests: New file.
5360         iswxdigit: New module.
5361         * m4/iswxdigit.m4: New file.
5362         * lib/wctype.in.h (iswxdigit): Potentially override.
5363         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5364         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5365         * lib/iswxdigit.c: New file.
5366         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5367         REPLACE_ISWXDIGIT.
5368         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5369         REPLACE_ISWXDIGIT.
5370         * modules/iswxdigit: New file.
5371         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5373 2020-01-25  Bruno Haible  <bruno@clisp.org>
5375         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5376         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5377         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5378         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5379         off_t on mingw, invoke _lseeki64 instead of lseek.
5381 2020-01-25  Bruno Haible  <bruno@clisp.org>
5383         iswdigit tests: Avoid test failure on Cygwin.
5384         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5385         byte sequence, return 0.
5387         iswdigit: Fix test failure on native Windows.
5388         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5390         mbchar, wctype: Use the corrected iswdigit function.
5391         * modules/mbchar (Depends-on): Add iswdigit.
5392         * modules/wctype (Depends-on): Likewise.
5394         iswdigit: Add tests.
5395         * tests/test-iswdigit.c: New file.
5396         * tests/test-iswdigit.sh: New file.
5397         * modules/iswdigit-tests: New file.
5399         iswdigit: New module.
5400         * m4/iswdigit.m4: New file.
5401         * lib/wctype.in.h (iswdigit): Potentially override.
5402         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5403         * lib/iswdigit.c: New file.
5404         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5405         REPLACE_ISWDIGIT.
5406         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5407         REPLACE_ISWDIGIT.
5408         * modules/iswdigit: New file.
5409         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5411 2020-01-25  Bruno Haible  <bruno@clisp.org>
5413         hard-locale tests: Make it easy to reuse the musl test.
5414         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
5415         * modules/hard-locale-tests (Files): Add it.
5416         (configure.ac): Invoke gl_MUSL_LIBC.
5418 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5420         regex: port to Gawk on nonstandard platforms
5421         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
5422         This is useful for Gawk, which does not use the Gnulib stdlib-h
5423         module.  Problem reported by Arnold Robbins in:
5424         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
5426 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5428         regex: fix bug with >=16 subexpressions
5429         * lib/regex_internal.h (struct re_backref_cache_entry):
5430         Use bitset_word_t as the type of eps_reachable_subexps_map,
5431         instead of unsigned short int.  This fixes a bug I introduced
5432         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
5433         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
5434         Remove unused member 'unused'.
5436         regex: simplify definition of BITSET_WORD_BITS
5437         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5438         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5439         * lib/regex_internal.h (BITSET_WORD_BITS):
5440         * modules/regex (Depends-on): Add limits-h.
5441         Simplify now that we can use ULONG_WIDTH.
5443 2020-01-20  Bruno Haible  <bruno@clisp.org>
5445         mbrtoc32: Add note about FreeBSD 12.
5446         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5447         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5448         affected.
5450 2020-01-20  Bruno Haible  <bruno@clisp.org>
5452         unistr/u8-uctomb: Fix warning.
5453         Reported by Andreas Schwab <schwab@suse.de> in
5454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5455         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5456         (u8_uctomb): Add FALLTHROUGH markers.
5458 2020-01-20  Bruno Haible  <bruno@clisp.org>
5460         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5461         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5462         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5463         (glthread_once): Use it.
5465 2020-01-19  Bruno Haible  <bruno@clisp.org>
5467         threadlib: Disable use of weak symbols on FreeBSD 11.
5468         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5469         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5470         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5471         against a bug in FreeBSD 11.
5473 2020-01-19  Bruno Haible  <bruno@clisp.org>
5475         iconv_open: Improve z/OS support.
5476         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5477         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5478         Remove mapping for EUC-TW.
5480 2020-01-18  Bruno Haible  <bruno@clisp.org>
5482         Rename ~~gnulib.m4 to zzgnulib.m4.
5483         Suggested by Paul Eggert.
5484         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5485         * gnulib-tool (func_get_filelist): Update.
5486         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5488 2020-01-18  Bruno Haible  <bruno@clisp.org>
5490         doc: Update license notices.
5491         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5492         reference to a section or to a "file as part of this distribution".
5494 2020-01-18  Bruno Haible  <bruno@clisp.org>
5496         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5497         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5498         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5499         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5500         AC_EGREP_CPP.
5502 2020-01-18  Bruno Haible  <bruno@clisp.org>
5504         Ensure Automake does not drop ~~gnulib.m4.
5505         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5506         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5508 2020-01-18  Bruno Haible  <bruno@clisp.org>
5510         Fix major regression from 2020-01-10.
5511         Reported by Paul Eggert in
5512         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5513         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5514         Don't AC_REQUIRE anything.
5515         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5516         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5517         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5518         use ac_compile instead.
5519         (AC_CHECK_DECL): Remove override.
5520         * m4/~~gnulib.m4: New file.
5521         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5522         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5524 2020-01-17  Bruno Haible  <bruno@clisp.org>
5525             Paul Eggert  <eggert@cs.ucla.edu>
5527         glob: Fix use-after-free bug.
5528         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5529         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5530         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5531         end_name.
5533 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5535         vcs-to-changelog: Fix parsing of fndecl without args.
5536         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5537         for empty arguments.
5539 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5541         vcs-to-changelog: Add documentation.
5542         * doc/vcs-to-changelog.texi: New file.
5543         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5544         section.
5546 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5548         vcs-to-changelog: Allow loading of custom quirks file.
5549         * build-aux/vcs_to_changelog.py: New commandline option -q.
5551 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5553         vcs-to-changelog: Fix formatting of ChangeLog output.
5554         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5555         output.
5557 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5559         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5560         Reported in
5561         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5562         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5564 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5566         crypto/gc-pbkdf2: New module.
5567         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5568         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5569         * lib/gc-pbkdf2.c: New file.
5570         * lib/gc-pbkdf2-sha1.c: Use new interface.
5571         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5572         * modules/crypto/gc-pbkdf2: New file.
5573         * modules/crypto/gc-pbkdf2-tests: New file.
5574         * tests/test-gc-pbkdf2.c: New file.
5576 2020-01-12  Bruno Haible  <bruno@clisp.org>
5578         c32stombs: Add tests.
5579         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5580         * tests/test-c32stombs-1.sh: New file, based on
5581         tests/test-c32srtombs-1.sh.
5582         * tests/test-c32stombs-2.sh: New file, based on
5583         tests/test-c32srtombs-2.sh.
5584         * tests/test-c32stombs-3.sh: New file, based on
5585         tests/test-c32srtombs-3.sh.
5586         * tests/test-c32stombs-4.sh: New file, based on
5587         tests/test-c32srtombs-4.sh.
5588         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5590         c32stombs: New module.
5591         * lib/uchar.in.h (c32stombs): New declaration.
5592         * lib/c32stombs.c: New file.
5593         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5594         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5595         * modules/c32stombs: New file.
5596         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5597         * doc/posix-functions/wcstombs.texi: Mention the new module.
5599 2020-01-11  Jim Meyering  <meyering@fb.com>
5601         perl: require the "warnings" module
5602         * m4/perl.m4: Also "use warnings", so we reject the perl found
5603         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5604         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5606 2020-01-10  Bruno Haible  <bruno@clisp.org>
5608         Fix major regression from 2020-01-04.
5609         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5610         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5611         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5612         AC_DEFUN_ONCE.
5613         (AC_CHECK_DECL): Invoke, not require, it.
5615 2020-01-10  Bruno Haible  <bruno@clisp.org>
5617         c32snrtombs: Add tests.
5618         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5619         * tests/test-c32snrtombs-1.sh: New file, based on
5620         tests/test-wcsnrtombs1.sh.
5621         * tests/test-c32snrtombs-2.sh: New file, based on
5622         tests/test-wcsnrtombs2.sh.
5623         * tests/test-c32snrtombs-3.sh: New file, based on
5624         tests/test-wcsnrtombs3.sh.
5625         * tests/test-c32snrtombs-4.sh: New file, based on
5626         tests/test-wcsnrtombs4.sh.
5627         * modules/c32snrtombs-tests: New file, based on
5628         modules/wcsnrtombs-tests.
5630         c32snrtombs: New module.
5631         * lib/uchar.in.h (c32snrtombs): New declaration.
5632         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5633         INTERNAL_STATE, WCRTOMB.
5634         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5635         * lib/c32snrtombs.c: New file.
5636         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5637         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5638         * modules/c32snrtombs: New file.
5639         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5640         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5642 2020-01-09  Bruno Haible  <bruno@clisp.org>
5644         c32srtombs: Add tests.
5645         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5646         * tests/test-c32srtombs-1.sh: New file, based on
5647         tests/test-wcsrtombs1.sh.
5648         * tests/test-c32srtombs-2.sh: New file, based on
5649         tests/test-wcsrtombs2.sh.
5650         * tests/test-c32srtombs-3.sh: New file, based on
5651         tests/test-wcsrtombs3.sh.
5652         * tests/test-c32srtombs-4.sh: New file, based on
5653         tests/test-wcsrtombs4.sh.
5654         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5656         c32srtombs: New module.
5657         * lib/uchar.in.h (c32srtombs): New declaration.
5658         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5659         INTERNAL_STATE, WCRTOMB.
5660         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5661         * lib/c32srtombs.c: New file.
5662         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5663         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5664         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5665         * modules/c32srtombs: New file.
5666         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5667         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5669 2020-01-08  Bruno Haible  <bruno@clisp.org>
5671         c32tob: Make consistent with mbrtoc32.
5672         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5673         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5674         use c32rtomb, not wctob.
5675         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5676         (Depends-on): Add c32rtomb.
5677         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5679 2020-01-08  Bruno Haible  <bruno@clisp.org>
5681         c32rtomb: Add tests.
5682         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5683         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5684         * tests/test-c32rtomb-w32.c: New file, based on
5685         tests/test-wcrtomb-w32.c.
5686         * tests/test-c32rtomb-w32-1.sh: New file, based on
5687         tests/test-wcrtomb-w32-1.sh.
5688         * tests/test-c32rtomb-w32-2.sh: New file, based on
5689         tests/test-wcrtomb-w32-2.sh.
5690         * tests/test-c32rtomb-w32-3.sh: New file, based on
5691         tests/test-wcrtomb-w32-3.sh.
5692         * tests/test-c32rtomb-w32-4.sh: New file, based on
5693         tests/test-wcrtomb-w32-4.sh.
5694         * tests/test-c32rtomb-w32-5.sh: New file, based on
5695         tests/test-wcrtomb-w32-5.sh.
5696         * tests/test-c32rtomb-w32-6.sh: New file, based on
5697         tests/test-wcrtomb-w32-6.sh.
5698         * tests/test-c32rtomb-w32-7.sh: New file, based on
5699         tests/test-wcrtomb-w32-7.sh.
5700         * modules/c32rtomb-tests: New file.
5702         c32rtomb: New module.
5703         * lib/uchar.in.h (c32rtomb): New declaration.
5704         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5705         * m4/c32rtomb.m4: New file.
5706         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5707         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5708         REPLACE_C32RTOMB.
5709         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5710         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5711         * modules/c32rtomb: New file.
5712         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5713         * doc/posix-functions/c32rtomb.texi: Document the new module.
5714         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5716 2020-01-08  Bruno Haible  <bruno@clisp.org>
5718         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5719         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5720         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5721         but is not working.
5722         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5723         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5724         differ, use the system's mbrtoc32, adding workarounds.
5725         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5726         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5727         Windows problem.
5728         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5729         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5730         use mbrtoc32, not btowc.
5731         * modules/btoc32 (Depends-on): Add mbrtoc32.
5732         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5733         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5734         * modules/mbsrtoc32s (Depends-on): Update conditions.
5735         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5736         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5737         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5738         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5739         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5741 2020-01-07  Bruno Haible  <bruno@clisp.org>
5743         wcrtomb: Make multithread-safe, except possibly on IRIX.
5744         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5745         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5746         WCRTOMB_RETVAL_BUG.
5747         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5748         wctomb only on IRIX.
5750 2020-01-05  Jim Meyering  <meyering@fb.com>
5752         tests: skip thread-using tests when threading is disabled
5753         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5754         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5755         of those, so they are skipped in this case.
5756         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5757         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5758         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5760 2020-01-05  Bruno Haible  <bruno@clisp.org>
5762         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5763         Reported by Jim Meyering in
5764         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5765         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5766         (GNULIB_defined_ptsname_r): New macro.
5767         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5768         (main): Disable the NULL argument test if canonicalize_file_name does
5769         not come from gnulib.
5770         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5771         (main): Disable the NULL argument test if canonicalize_file_name does
5772         not come from gnulib.
5773         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5774         (test_errors): Disable the NULL argument test if ptsname_r does not come
5775         from gnulib.
5777 2020-01-04  Jim Meyering  <meyering@fb.com>
5779         update-copyright: reenable its always-skipped test
5780         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5781         on 2019-06-15. Without those, an internal preliminary test would
5782         fail, causing this test always to be skipped.
5783         Verify that the test is now run and passes via this:
5784           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5786 2020-01-05  Bruno Haible  <bruno@clisp.org>
5788         mbstoc32s: Add tests.
5789         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5790         * tests/test-mbstoc32s-1.sh: New file, based on
5791         tests/test-mbsrtoc32s-1.sh.
5792         * tests/test-mbstoc32s-2.sh: New file, based on
5793         tests/test-mbsrtoc32s-2.sh.
5794         * tests/test-mbstoc32s-3.sh: New file, based on
5795         tests/test-mbsrtoc32s-3.sh.
5796         * tests/test-mbstoc32s-4.sh: New file, based on
5797         tests/test-mbsrtoc32s-4.sh.
5798         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5800         mbstoc32s: New module.
5801         * lib/uchar.in.h (mbstoc32s): New declaration.
5802         * lib/mbstoc32s.c: New file.
5803         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5804         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5805         * modules/mbstoc32s: New file.
5806         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5807         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5809 2020-01-05  Bruno Haible  <bruno@clisp.org>
5811         Tweak recently added tests.
5812         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5813         * tests/test-mbsrtoc32s.c: Likewise.
5814         * tests/test-mbsnrtoc32s.c: Likewise.
5816 2020-01-04  Bruno Haible  <bruno@clisp.org>
5818         mbsnrtoc32s: Add tests.
5819         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5820         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5821         tests/test-mbsnrtowcs1.sh.
5822         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5823         tests/test-mbsnrtowcs2.sh.
5824         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5825         tests/test-mbsnrtowcs3.sh.
5826         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5827         tests/test-mbsnrtowcs4.sh.
5828         * modules/mbsnrtoc32s-tests: New file, based on
5829         modules/mbsnrtowcs-tests.
5831         mbsnrtoc32s: New module.
5832         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5833         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5834         INTERNAL_STATE, MBRTOWC.
5835         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5836         * lib/mbsnrtoc32s.c: New file.
5837         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5838         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5839         * modules/mbsnrtoc32s: New file.
5840         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5841         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5843 2020-01-04  Bruno Haible  <bruno@clisp.org>
5845         mbsrtoc32s tests: Enhance test.
5846         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5847         test strings for UTF-8 and GB18030.
5849 2020-01-04  Bruno Haible  <bruno@clisp.org>
5851         mbsrtoc32s: Fix bug.
5852         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5853         that SMALL_WCHAR_T is defined.
5855 2020-01-04  Bruno Haible  <bruno@clisp.org>
5857         mbsrtoc32s: Add tests.
5858         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5859         * tests/test-mbsrtoc32s-1.sh: New file, based on
5860         tests/test-mbsrtowcs1.sh.
5861         * tests/test-mbsrtoc32s-2.sh: New file, based on
5862         tests/test-mbsrtowcs2.sh.
5863         * tests/test-mbsrtoc32s-3.sh: New file, based on
5864         tests/test-mbsrtowcs3.sh.
5865         * tests/test-mbsrtoc32s-4.sh: New file, based on
5866         tests/test-mbsrtowcs4.sh.
5867         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5869         mbsrtoc32s: New module.
5870         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5871         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5872         INTERNAL_STATE, MBRTOWC.
5873         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5874         * lib/mbsrtoc32s.c: New file.
5875         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5876         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5877         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5878         * modules/mbsrtoc32s: New file.
5879         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5880         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5882 2020-01-04  Bruno Haible  <bruno@clisp.org>
5884         mbrtowc, mbrtoc32: Tighten dependendies.
5885         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5886         REPLACE_MBSTATE_T is 1.
5887         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5888         REPLACE_MBSTATE_T is 0.
5889         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5890         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5891         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5892         REPLACE_MBSTATE_T is 0.
5894 2020-01-04  Bruno Haible  <bruno@clisp.org>
5896         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5897         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5898         * modules/uchar (Files): Add stdint.m4.
5899         (Makefile.am): Substitute SMALL_WCHAR_T.
5900         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5902 2020-01-04  Bruno Haible  <bruno@clisp.org>
5904         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5905         Reported by Martin Storsjö <martin@martin.st> in
5906         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5907         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5908         New macros.
5909         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5911 2020-01-04  Bruno Haible  <bruno@clisp.org>
5913         btoc32: Add tests.
5914         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5915         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5916         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5917         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5919         btoc32: New module.
5920         * lib/uchar.in.h (btoc32): New declaration.
5921         * lib/btoc32.c: New file.
5922         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5923         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5924         * modules/btoc32: New file.
5925         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5926         * doc/posix-functions/btowc.texi: Mention the new module.
5928 2020-01-03  Bruno Haible  <bruno@clisp.org>
5930         uchar tests: Avoid compilation error with HP cc.
5931         * tests/test-uchar.c: Disable a test when HP cc is in use.
5933 2020-01-03  Bruno Haible  <bruno@clisp.org>
5935         mbrtoc32: Add tests.
5936         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5937         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5938         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5939         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5940         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5941         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5942         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5943         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5944         tests/test-mbrtowc-w32-1.sh.
5945         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5946         tests/test-mbrtowc-w32-2.sh.
5947         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5948         tests/test-mbrtowc-w32-3.sh.
5949         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5950         tests/test-mbrtowc-w32-4.sh.
5951         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5952         tests/test-mbrtowc-w32-5.sh.
5953         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5954         tests/test-mbrtowc-w32-6.sh.
5955         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5956         tests/test-mbrtowc-w32-7.sh.
5957         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5959         mbrtoc32: New module.
5960         * lib/uchar.in.h (mbrtoc32): New declaration.
5961         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5962         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5963         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5964         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5965         REPLACE_MBRTOC32.
5966         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5967         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5968         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5969         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5970         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5971         $(LIB_MBRTOWC).
5972         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5973         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5975 2020-01-03  Bruno Haible  <bruno@clisp.org>
5977         mbrtowc: Refactor to share code with mbrtoc32.
5978         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5979         * lib/mbrtowc-impl-utf8.h: Likewise.
5980         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5981         mbrtowc-impl.h.
5982         * modules/mbrtowc (Files): Add the new files.
5984 2020-01-03  Jim Meyering  <meyering@fb.com>
5986         doc: fix time.texi wording
5987         * doc/posix-headers/time.texi (time.h): Typo.
5989 2020-01-03  Bruno Haible  <bruno@clisp.org>
5991         mbrtowc: Refactor locale charset dispatching.
5992         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5993         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5994         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5995         localcharset.h, streq.h.
5996         (enc_t): Remove type.
5997         (locale_enc): Remove function.
5998         (cached_locale_enc): Remove variable.
5999         (locale_enc_cached): Remove function.
6000         (mbrtowc): Invoke locale_encoding_classification.
6001         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6002         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6003         lc-charset-dispatch.c.
6004         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6006 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6008         doc: mention 32-bit time_t issue
6009         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6010         * doc/posix-headers/time.texi (time.h): Mention 2038.
6012 2020-01-03  Bruno Haible  <bruno@clisp.org>
6014         mbrtowc: Ensure the mbtowc_lock is unique.
6015         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6016         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6017         lib/setlocale_null.c.
6018         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6019         glthread/lock.h. Include mbtowc-lock.h.
6020         (mbtowc_lock): Remove declaration.
6021         (mbrtowc): Use mbtowc_with_lock.
6022         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6023         threads.h. Set LIB_MBRTOWC.
6024         (gl_PREREQ_MBTOWC_LOCK): New macro.
6025         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6026         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6027         (Depends-on): Remove lock.
6028         (configure.ac): Arrange to compile mbtowc-lock.c.
6029         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6030         * modules/acl (Link): Likewise.
6031         * modules/argmatch (Link): Likewise.
6032         * modules/backup-rename (Link): Likewise.
6033         * modules/backupfile (Link): Likewise.
6034         * modules/closein (Link): Likewise.
6035         * modules/closeout (Link): Likewise.
6036         * modules/copy-file (Link): Likewise.
6037         * modules/csharpcomp (Link): Likewise.
6038         * modules/csharpexec (Link): Likewise.
6039         * modules/dfa (Link): Likewise.
6040         * modules/exclude (Link): Likewise.
6041         * modules/fnmatch (Link): Likewise.
6042         * modules/fnmatch-gnu (Link): Likewise.
6043         * modules/fnmatch-posix (Link): Likewise.
6044         * modules/glob (Link): Likewise.
6045         * modules/human (Link): Likewise.
6046         * modules/javacomp (Link): Likewise.
6047         * modules/javaexec (Link): Likewise.
6048         * modules/javaversion (Link): Likewise.
6049         * modules/mbfile (Link): Likewise.
6050         * modules/mbiter (Link): Likewise.
6051         * modules/mbmemcasecmp (Link): Likewise.
6052         * modules/mbmemcasecoll (Link): Likewise.
6053         * modules/mbrlen (Link): Likewise.
6054         * modules/mbscasecmp (Link): Likewise.
6055         * modules/mbscasestr (Link): Likewise.
6056         * modules/mbschr (Link): Likewise.
6057         * modules/mbscspn (Link): Likewise.
6058         * modules/mbsinit (Link): Likewise.
6059         * modules/mbslen (Link): Likewise.
6060         * modules/mbsncasecmp (Link): Likewise.
6061         * modules/mbsnlen (Link): Likewise.
6062         * modules/mbsnrtowcs (Link): Likewise.
6063         * modules/mbspbrk (Link): Likewise.
6064         * modules/mbspcasecmp (Link): Likewise.
6065         * modules/mbsrchr (Link): Likewise.
6066         * modules/mbsrtowcs (Link): Likewise.
6067         * modules/mbssep (Link): Likewise.
6068         * modules/mbsspn (Link): Likewise.
6069         * modules/mbsstr (Link): Likewise.
6070         * modules/mbstok_r (Link): Likewise.
6071         * modules/mbswidth (Link): Likewise.
6072         * modules/mbuiter (Link): Likewise.
6073         * modules/mkdir-p (Link): Likewise.
6074         * modules/propername (Link): Likewise.
6075         * modules/quote (Link): Likewise.
6076         * modules/quotearg (Link): Likewise.
6077         * modules/quotearg-simple (Link): Likewise.
6078         * modules/regex-quote (Link): Likewise.
6079         * modules/rpmatch (Link): Likewise.
6080         * modules/sh-quote (Link): Likewise.
6081         * modules/system-quote (Link): Likewise.
6082         * modules/trim (Link): Likewise.
6083         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6084         * modules/unistdio/ulc-fprintf (Link): Likewise.
6085         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6086         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6087         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6088         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6089         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6090         * modules/xfreopen (Link): Likewise.
6091         * modules/xmemcoll (Link): Likewise.
6092         * modules/yesno (Link): Likewise.
6093         * modules/regex (Link): Add $(LIB_MBRTOWC).
6094         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6095         instead of $(LIBTHREAD).
6096         * modules/argmatch-tests (Makefile.am): Likewise.
6097         * modules/closein-tests (Makefile.am): Likewise.
6098         * modules/copy-file-tests (Makefile.am): Likewise.
6099         * modules/dfa-tests (Makefile.am): Likewise.
6100         * modules/fnmatch-tests (Makefile.am): Likewise.
6101         * modules/glob-tests (Makefile.am): Likewise.
6102         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6103         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6104         * modules/mbrtowc-tests (Makefile.am): Likewise.
6105         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6106         * modules/mbscasestr-tests (Makefile.am): Likewise.
6107         * modules/mbschr-tests (Makefile.am): Likewise.
6108         * modules/mbscspn-tests (Makefile.am): Likewise.
6109         * modules/mbsinit-tests (Makefile.am): Likewise.
6110         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6111         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6112         * modules/mbspbrk-tests (Makefile.am): Likewise.
6113         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6114         * modules/mbsrchr-tests (Makefile.am): Likewise.
6115         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6116         * modules/mbsspn-tests (Makefile.am): Likewise.
6117         * modules/mbsstr-tests (Makefile.am): Likewise.
6118         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6119         * modules/quotearg-tests (Makefile.am): Likewise.
6120         * modules/readtokens-tests (Makefile.am): Likewise.
6121         * modules/sh-quote-tests (Makefile.am): Likewise.
6122         * modules/system-quote-tests (Makefile.am): Likewise.
6123         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6124         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6125         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6126         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6127         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6128         * modules/yesno-tests (Makefile.am): Likewise.
6129         * modules/exclude-tests (Makefile.am): Link the programs with
6130         $(LIB_MBRTOWC).
6131         * modules/regex-tests (Makefile.am): Likewise.
6132         * modules/regex-quote-tests (Makefile.am): Likewise.
6134 2020-01-03  Bruno Haible  <bruno@clisp.org>
6136         getopt-posix: Fix compilation failure in testdirs.
6137         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6138         when the gnulib module 'getopt-posix' is enabled.
6139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6140         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6141         module indicator.
6142         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6144 2020-01-03  Bruno Haible  <bruno@clisp.org>
6146         doc: Mention the 64-bit inode number problem.
6147         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6148         64-bit inode number problem.
6149         * doc/posix-functions/stat.texi: Mention that this module fixes the
6150         64-bit inode number problem.
6151         * doc/posix-functions/lstat.texi: Likewise.
6152         * doc/posix-functions/fstat.texi: Likewise.
6153         * doc/posix-functions/readdir.texi: Add more details.
6154         * doc/posix-functions/readdir_r.texi: Likewise.
6156 2020-01-02  Bruno Haible  <bruno@clisp.org>
6158         wcrtomb: Add more tests.
6159         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6160         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6161         locale_charset() returns the expected value; otherwise, skip the test.
6162         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6163         * tests/test-wcrtomb-w32-7.sh: Likewise.
6164         * modules/wcrtomb-tests (Files): Add these files.
6165         (Depends-on): Add localcharset.
6166         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6168 2020-01-02  Bruno Haible  <bruno@clisp.org>
6170         mbrtowc: Add more tests.
6171         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6172         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6173         locale_charset() returns the expected value; otherwise, skip the test.
6174         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6175         * tests/test-mbrtowc-w32-7.sh: Likewise.
6176         * modules/mbrtowc-tests (Files): Add these files.
6177         (Depends-on): Add localcharset.
6178         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6180 2020-01-02  Bruno Haible  <bruno@clisp.org>
6182         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6183         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6184         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6185         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6186         MBRTOWC_STORES_INCOMPLETE_BUG.
6187         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6189 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6191         doc: mention glibc bug 24269
6192         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6193         Reformat slightly so that it looks nicer in the Grep manual.
6195 2020-01-02  Bruno Haible  <bruno@clisp.org>
6197         mbrtowc: Don't replace mbstate_t on MSVC.
6198         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6199         a missing mbsinit function on native Windows.
6200         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6201         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6202         MSVC bug.
6203         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6205 2020-01-02  Bruno Haible  <bruno@clisp.org>
6207         setlocale-null: Avoid crashing the MSVC linker.
6208         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6209         MSVC.
6211 2020-01-02  Bruno Haible  <bruno@clisp.org>
6213         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6214         * modules/wchar (Depends-on): Add inttypes-incomplete.
6215         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6216         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6217         of strtoimax.
6219 2020-01-02  Bruno Haible  <bruno@clisp.org>
6221         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6222         * lib/mbrtowc.c: Include <stdint.h>.
6223         * modules/mbrtowc (Depends-on): Add stdint.
6225 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6227         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6228         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6229         which will auto enable use of openssl, only for >= version 3,
6230         which is newly licensed under the Apache Software License.
6232 2020-01-01  Bruno Haible  <bruno@clisp.org>
6234         mbrtowc: Include function name in macro names.
6235         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6236         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6237         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6238         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6239         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6240         C_LOCALE_MAYBE_EILSEQ.
6242 2020-01-01  Bruno Haible  <bruno@clisp.org>
6244         c32tob: New module.
6245         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6246         (c32tob): New declaration.
6247         * lib/c32tob.c: New file.
6248         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6249         macros.
6250         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6251         * modules/uchar (Depends-on): Add snippet/c++defs.
6252         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6253         uchar.h.
6254         * modules/c32tob: New file.
6255         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6256         defined.
6257         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6258         c32tob.
6259         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6260         * doc/posix-functions/wctob.texi: Mention the new module.
6262 2020-01-01  Bruno Haible  <bruno@clisp.org>
6264         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6265         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6266         $(LIB_SETLOCALE).
6268 2020-01-01  Bruno Haible  <bruno@clisp.org>
6270         hard-locale tests: Fix a conflict with the C++ tests.
6271         * modules/hard-locale-tests (Makefile.am): Build a program named
6272         'current-locale', not 'locale'.
6274 2020-01-01  Bruno Haible  <bruno@clisp.org>
6276         doc: Update documentation about wchar_t.
6277         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6278         wchar_t type.
6280 2020-01-01  Bruno Haible  <bruno@clisp.org>
6282         mbrtowc tests: Fix typos.
6283         * tests/test-mbrtowc.c (main): Fix typo.
6284         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6286 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6288         maint: update copyright notices
6289         Before doing the following changes done by hand, I also ran ‘make
6290         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6291         to do most of the copyright years automatically.  A few upstream
6292         sources are still in 2019 but these should eventually be changed
6293         automatically too.
6294         * build-aux/declared.sh (func_version):
6295         * build-aux/libtool-next-version (func_version):
6296         * build-aux/run-test (func_version):
6297         Update these notices by hand.  Put just the last year
6298         in output of programs, as per GNU coding standards.
6300 2019-12-31  Bruno Haible  <bruno@clisp.org>
6302         uchar: Add C++ tests.
6303         * tests/test-uchar-c++.cc: New file.
6304         * tests/test-uchar-c++2.cc: New file.
6305         * modules/uchar-c++-tests: New file.
6307         uchar: Add tests.
6308         * tests/test-uchar.c: New file.
6309         * modules/uchar-tests: New file.
6311         uchar: New module.
6312         * lib/uchar.in.h: New file.
6313         * m4/uchar.m4: New file.
6314         * modules/uchar: New file.
6315         * doc/posix-headers/uchar.texi: Mention the new module.
6317 2019-12-30  Jim Meyering  <meyering@fb.com>
6319         localeinfo: ->simple would be wrong for LC_ALL=C
6320         That would lead to using unnecessary and expensive code paths in dfa.c.
6321         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6322         error that would have made grep many times slower in the C locale.
6323         With this change, and a file created like this:
6324           yes 00 | head -10000000 > in
6325         Running grep as follows becomes more than 40 times faster:
6326           LC_ALL=C grep -Fw 0 in
6328 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6330         doc: document trouble with back-references
6331         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6333 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6335         doc: use “back-reference” for \1 etc.
6336         * doc/regex.texi: Consistently spell “back-reference” with
6337         a hyphen, since that’s how POSIX does it.
6339 2019-12-26  Jim Meyering  <meyering@fb.com>
6341         test-framework-sh: tighten an internal grep regexp
6342         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6343         that helps test for a working printf.
6345 2019-12-26  Bruno Haible  <bruno@clisp.org>
6347         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6348         Reported by Paul Eggert in
6349         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6350         Simplification by Jim Meyering.
6351         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6352         octal escape sequence in a UTF-8 locale.
6354 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6356         mbrtowc: port better to narrow-wchar_t platforms
6357         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6358         wchar_t is too narrow to represent all the Unicode characters,
6359         consider a byte sequence for an out-of-wchar_t-range character to
6360         be an encoding error.  This fixes grep’s surrogate-pair test
6361         failure on AIX 7.2.
6363 2019-12-24  Bruno Haible  <bruno@clisp.org>
6365         localcharset: Avoid referencing rpl_setlocale on native Windows.
6366         * lib/localcharset.c (setlocale): Undefine.
6368 2019-12-24  Bruno Haible  <bruno@clisp.org>
6370         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6371         * m4/semaphore.m4: New file.
6372         * modules/lock-tests (Files): Add it.
6373         (configure.ac): Require gl_SEMAPHORE.
6374         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6376 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6378         strptime: fix typo in previous patch
6379         Problem and fix reported by Bruno Haible in:
6380         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6381         * lib/strptime.c (day_of_the_week): Fix paren bug.
6383 2019-12-24  Bruno Haible  <bruno@clisp.org>
6385         setlocale-null: Make it easy to rely on the lock in another library.
6386         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6387         defined.
6389 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6391         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6392         Performanced analyzed by Bruno Haible in:
6393         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6394         * config/srclist.txt: Do not sync mktime.c for now.
6395         * lib/mktime.c (shr, ydhms_diff):
6396         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6397         * lib/strptime.c (day_of_the_week):
6398         * lib/xtime.h (xtime_sec):
6399         Redo with neither ‘%’ nor conditional branches.
6401 2019-12-23  Bruno Haible  <bruno@clisp.org>
6403         setlocale-null: Export the lock function also on non-Windows platforms.
6404         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6405         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6406         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6407         * modules/setlocale-null (configure.ac): Invoke it.
6408         (Files): Add m4/visibility.m4.
6410 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6412         gethrxtime: fix rounding bug with negative args
6413         Problem reported by Bruno Haible in:
6414         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
6415         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
6416         with negative rounding.  Common platforms can compute / and % with
6417         a single instruction, so the simplified code should be shorter and
6418         faster on these platforms anyway.
6420 2019-12-22  Bruno Haible  <bruno@clisp.org>
6422         gethrxtime: remove incorrect overflow detection
6423         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
6424         integer overflow, as it didn’t suffice.  This reverts the xtime.h
6425         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
6426         cannot now see the need for anyway (even in cases where it works),
6427         as the patch is helpful only when the signs of S and NS disagree,
6428         and all callers pass nonnegative values for S and NS.
6430 2019-12-22  Bruno Haible  <bruno@clisp.org>
6432         setlocale-null: Add standalone include file.
6433         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
6434         * lib/locale.in.h: Include setlocale_null.h.
6435         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
6436         setlocale_null): Remove declarations.
6437         * lib/setlocale_null.c: Include setlocale_null.h.
6438         * lib/localename.c: Likewise.
6439         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6440         (Depends-on): Add snippet/arg-nonnull.
6441         (Include): Allow either "setlocale_null.h" or <locale.h>.
6443 2019-12-22  Bruno Haible  <bruno@clisp.org>
6445         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6446         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6447         AC_RUN_IFELSE test.
6448         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6449         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6450         problem.
6452 2019-12-22  Bruno Haible  <bruno@clisp.org>
6454         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6455         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6456         unconditional AC_LIBOBJ.
6457         * modules/selinux-at: Likewise.
6458         * modules/xmemdup0: Likewise.
6459         * modules/xstrtoll: Likewise.
6461 2019-12-22  Bruno Haible  <bruno@clisp.org>
6463         longlong: Mark module obsolete.
6464         * modules/longlong (Status, Notice): New sections.
6466         stdint: Assume that the compiler supports 'long long'.
6467         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6468         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6469         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6470         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6471         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6472         * modules/stdint (Files): Remove longlong.m4.
6473         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6474         HAVE_UNSIGNED_LONG_LONG_INT.
6476         inttypes-incomplete: Assume that the compiler supports 'long long'.
6477         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6478         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6479         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6480         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6481         HAVE_LONG_LONG_INT to be 1.
6482         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6483         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6485         malloca: Assume that the compiler supports 'long long'.
6486         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6487         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6488         * modules/malloca (Files): Remove longlong.m4.
6489         * modules/relocatable-prog-wrapper (Files): Likewise.
6491         atoll: Assume that the compiler supports 'long long'.
6492         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6493         * modules/atoll (Files): Remove longlong.m4.
6495         strtoll: Assume that the compiler supports 'long long'.
6496         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6497         * modules/strtoll (Files): Remove longlong.m4.
6499         strtoull: Assume that the compiler supports 'long long'.
6500         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6501         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6502         * modules/strtoull (Files): Remove longlong.m4.
6504         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6505         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6506         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6507         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6508         AC_TYPE_LONG_LONG_INT.
6509         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6510         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6511         * modules/strtoimax (Files): Remove longlong.m4.
6512         * modules/strtoumax (Files): Likewise.
6514         xstrtoll: Assume that the compiler supports 'long long'.
6515         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6516         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6518         vasnprintf: Assume that the compiler supports 'long long'.
6519         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6520         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6521         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6522         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6523         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6524         require AC_TYPE_LONG_LONG_INT.
6525         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6526         gl_PREREQ_VASNPRINTF): Likewise.
6527         * modules/vasnprintf (Files): Remove longlong.m4.
6528         * modules/c-vasnprintf (Files): Likewise.
6529         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6530         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6531         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6532         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6533         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6534         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6535         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6537         gethrxtime: Assume that the compiler supports 'long long'.
6538         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6539         (XTIME_PRECISION): Define to 1000000000 always.
6540         (xtime_make, xtime_sec): Optimize accordingly.
6541         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6542         * modules/gethrxtime (Files): Remove longlong.m4.
6544         integer_length*: Assume that the compiler supports 'long long'.
6545         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6546         * modules/integer_length (Files): Remove longlong.m4.
6547         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6548         * modules/integer_length_l (Files): Remove longlong.m4.
6549         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6550         * modules/integer_length_ll (Files): Remove longlong.m4.
6551         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6553         count-one-bits: Assume that the compiler supports 'long long'.
6554         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6555         * m4/count-one-bits.m4: Remove file.
6556         * modules/count-one-bits (Files): Remove it.
6557         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6558         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6559         unconditionally.
6561         count-trailing-zeros: Assume that the compiler supports 'long long'.
6562         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6563         unconditionally.
6564         * m4/count-trailing-zeros.m4: Remove file.
6565         * modules/count-trailing-zeros (Files): Remove it.
6566         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6567         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6568         unconditionally.
6570         count-leading-zeros: Assume that the compiler supports 'long long'.
6571         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6572         unconditionally.
6573         * m4/count-leading-zeros.m4: Remove file.
6574         * modules/count-leading-zeros (Files): Remove it.
6575         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6576         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6577         unconditionally.
6579 2019-12-22  Bruno Haible  <bruno@clisp.org>
6581         localcharset: Update support for OpenBSD.
6582         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6584 2019-12-21  Bruno Haible  <bruno@clisp.org>
6586         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6587         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6588         NetBSD.
6589         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6591 2019-12-21  Bruno Haible  <bruno@clisp.org>
6593         threadlib: Improve code structure.
6594         * m4/threadlib.m4: Reorder macros. Add comments.
6596 2019-12-21  Bruno Haible  <bruno@clisp.org>
6598         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6599         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6600         here from m4/threads.m4).
6601         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6602         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6603         (gl_STDTHREADLIB): New macro.
6604         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6605         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6607 2019-12-21  Bruno Haible  <bruno@clisp.org>
6609         sched_yield: Don't depend on threadlib and yield.
6610         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6611         LIB_SCHED_YIELD.
6612         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6613         m4/yield.m4).
6614         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6615         gl_THREADLIB and gl_YIELD.
6616         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6617         based on $(LIB_SCHED_YIELD).
6618         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6619         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6620         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6621         (Depends-on): Remove threadlib.
6622         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6623         * modules/threads-h (Files): Remove m4/yield.m4.
6624         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6625         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6626         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6627         * modules/pthread-once-tests (Makefile.am): Likewise.
6628         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6629         * modules/pthread-tss-tests (Makefile.am): Likewise.
6631 2019-12-21  Bruno Haible  <bruno@clisp.org>
6633         threads-h: Don't depend on threadlib.
6634         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6635         not gl_THREADLIB_EARLY.
6637 2019-12-21  Bruno Haible  <bruno@clisp.org>
6639         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6640         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6641         with $(LIB_SETLOCALE).
6643 2019-12-21  Bruno Haible  <bruno@clisp.org>
6645         threadlib: Remove unused dependency (left over from 2019-07-06).
6646         * modules/threadlib (Depends-on): Remove havelib.
6648 2019-12-21  Bruno Haible  <bruno@clisp.org>
6650         New convention for multithread-safety tests.
6651         * tests/test-setlocale_null-mt-one.c: Renamed from
6652         tests/test-setlocale_null-one.c.
6653         * tests/test-setlocale_null-mt-all.c: Renamed from
6654         tests/test-setlocale_null-all.c.
6655         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6657 2019-12-21  Bruno Haible  <bruno@clisp.org>
6659         quotearg tests: Fix conflict with hard-locale tests.
6660         * tests/testlocale: Renamed from tests/locale.
6661         * modules/quotearg-tests (Files): Update.
6662         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6664 2019-12-21  Bruno Haible  <bruno@clisp.org>
6666         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6667         Reported by Daniel Richard G. in
6668         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6669         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6670         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6671         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6672         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6673         alternative to PTHREAD_RWLOCK_INITIALIZER.
6674         * lib/glthread/lock.c: Likewise.
6676 2019-12-21  Bruno Haible  <bruno@clisp.org>
6678         memcmp tests: Work around the clang bug.
6679         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6680         the clang optimization.
6682 2019-12-20  Bruno Haible  <bruno@clisp.org>
6684         localcharset: Add support for z/OS encoding names.
6685         * lib/localcharset.h: Mention which encodings are used as locale
6686         encodings on z/OS.
6688 2019-12-20  Bruno Haible  <bruno@clisp.org>
6690         iconv_open: Add support for z/OS encoding names.
6691         Reported by Daniel Richard G. in
6692         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6693         * lib/iconv_open-zos.gperf: New file.
6694         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6695         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6696         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6697         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6698         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6700 2019-12-20  Bruno Haible  <bruno@clisp.org>
6702         doc: Document the problem of the per-thread locale functions on z/OS.
6703         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6704         * doc/posix-functions/newlocale.texi: Likewise.
6705         * doc/posix-functions/duplocale.texi: Likewise.
6706         * doc/posix-functions/freelocale.texi: Likewise.
6708 2019-12-20  Bruno Haible  <bruno@clisp.org>
6710         localename, gettext: Fix host_os value for z/OS.
6711         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6712         cross-configuration code.
6714 2019-12-19  Jim Meyering  <meyering@fb.com>
6716         nstrftime: avoid a shadowing warning
6717         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6718         to avoid shadowing an "i" declared hundreds of lines above.
6720 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6722         dfa: struct dfamust now uses flexible array
6723         * lib/dfa.c: Include flexmember.h.
6724         (dfamust, dfamustfree): Adjust to struct dfamust change.
6725         This saves a call to malloc+free.
6726         * lib/dfa.h (struct dfamust): Make the final member a
6727         flexible array member.
6728         * modules/dfa (Depends-on): Add flexmember.
6730         dfa: fast->small for array elements
6731         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6732         since this type is used in arrays.  This change is more for
6733         documentation than for any practical effect, since the two types
6734         are the same on all known platforms.
6736 2019-12-19  Bruno Haible  <bruno@clisp.org>
6738         iconv tests: Test canonicalized, not system-dependent, encoding names.
6739         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6740         * modules/iconv-tests (Depends-on): Add iconv_open.
6742 2019-12-18  Bruno Haible  <bruno@clisp.org>
6744         localename: Fix test failure on AIX 7.2.
6745         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6746         locales on AIX.
6747         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6748         locales on AIX.
6750 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6752         Improve port of AC_C_RESTRICT to Oracle C++
6753         Problem reported by Christian Biesinger in:
6754         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6755         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6756         Oracle Developer Studio C++ 12.5 or later.
6758 2019-12-18  Bruno Haible  <bruno@clisp.org>
6760         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6761         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6763 2019-12-18  Bruno Haible  <bruno@clisp.org>
6765         localename: Ensure multithread-safety in future changes.
6766         * lib/localename.c (setlocale): Reference the system's setlocale().
6767         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6768         (gl_locale_name_posix): Likewise.
6769         * modules/localename (Depends-on): Add setlocale-null.
6771 2019-12-18  Bruno Haible  <bruno@clisp.org>
6773         setlocale-null: Make API more useful.
6774         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6775         callers changed.
6776         (setlocale_null): New declaration.
6777         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6778         extracted from setlocale_null_unlocked.
6779         (setlocale_null_unlocked): Invoke it.
6780         (setlocale_null_r): Renamed from setlocale_null.
6781         (setlocale_null): New function, extracted from setlocale_mtsafe in
6782         setlocale.c.
6783         * lib/setlocale.c: Don't include <errno.h>.
6784         (setlocale_mtsafe): Invoke setlocale_null.
6785         * lib/setlocale-lock.c: Update comments.
6786         * doc/posix-functions/setlocale.texi: Mention both functions.
6788 2019-12-18  Bruno Haible  <bruno@clisp.org>
6790         localename: Optimize code for native Windows.
6791         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6792         category (not allowed here).
6794 2019-12-18  Bruno Haible  <bruno@clisp.org>
6796         setlocale: Make calls with NULL argument multithread-safe.
6797         * lib/setlocale.c: Include <errno.h>.
6798         (setlocale_mtsafe): New function.
6799         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6800         (setlocale_improved): Renamed from rpl_setlocale.
6801         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6802         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6803         LIB_SETLOCALE.
6804         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6805         (Link): New section.
6806         * tests/locale.c: Undefine setlocale.
6807         * tests/test-setlocale_null-one.c: Likewise.
6808         * tests/test-setlocale_null-all.c: Likewise.
6809         * modules/setlocale-tests (Makefile.am): Link the test programs with
6810         $(LIB_SETLOCALE).
6811         * modules/astrxfrm-tests (Makefile.am): Likewise.
6812         * modules/btowc-tests (Makefile.am): Likewise.
6813         * modules/c-ctype-tests (Makefile.am): Likewise.
6814         * modules/c-snprintf-tests (Makefile.am): Likewise.
6815         * modules/c-strcase-tests (Makefile.am): Likewise.
6816         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6817         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6818         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6819         * modules/dfa-tests (Makefile.am): Likewise.
6820         * modules/duplocale-tests (Makefile.am): Likewise.
6821         * modules/hard-locale-tests (Makefile.am): Likewise.
6822         * modules/localcharset-tests (Makefile.am): Likewise.
6823         * modules/localename-tests (Makefile.am): Likewise.
6824         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6825         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6826         * modules/mbrtowc-tests (Makefile.am): Likewise.
6827         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6828         * modules/mbscasestr-tests (Makefile.am): Likewise.
6829         * modules/mbschr-tests (Makefile.am): Likewise.
6830         * modules/mbscspn-tests (Makefile.am): Likewise.
6831         * modules/mbsinit-tests (Makefile.am): Likewise.
6832         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6833         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6834         * modules/mbspbrk-tests (Makefile.am): Likewise.
6835         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6836         * modules/mbsrchr-tests (Makefile.am): Likewise.
6837         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6838         * modules/mbsspn-tests (Makefile.am): Likewise.
6839         * modules/mbsstr-tests (Makefile.am): Likewise.
6840         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6841         * modules/quotearg-tests (Makefile.am): Likewise.
6842         * modules/regex-tests (Makefile.am): Likewise.
6843         * modules/strfmon_l-tests (Makefile.am): Likewise.
6844         * modules/strtod-tests (Makefile.am): Likewise.
6845         * modules/strtold-tests (Makefile.am): Likewise.
6846         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6847         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6848         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6849         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6850         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6851         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6852         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6853         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6854         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6855         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6856         * modules/wcrtomb-tests (Makefile.am): Likewise.
6857         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6858         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6859         * modules/wcwidth-tests (Makefile.am): Likewise.
6860         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6861         safety fix is also available in module 'setlocale'.
6863 2019-12-18  Bruno Haible  <bruno@clisp.org>
6865         hard-locale: Make multithread-safe.
6866         * lib/hard-locale.h (hard_locale): Move documentation to here.
6867         * lib/hard-locale.c: Don't include <stdlib.h>.
6868         (GLIBC_VERSION): Remove macro.
6869         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6870         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6871         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6872         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6873         (Link): New section.
6874         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6875         $(LIB_HARD_LOCALE).
6877 2019-12-18  Bruno Haible  <bruno@clisp.org>
6879         hard-locale: Avoid test failure on Haiku.
6880         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6882 2019-12-18  Bruno Haible  <bruno@clisp.org>
6884         setlocale-null: Handle NULL result from setlocale.
6885         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6886         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6887         from setlocale or _wsetlocale.
6889 2019-12-18  Bruno Haible  <bruno@clisp.org>
6891         hard-locale: Add test.
6892         * tests/test-hard-locale.c: New file.
6893         * tests/locale.c: New file.
6894         * modules/hard-locale-tests: New file.
6896 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6898         dfa: do not match invalid UTF-8
6899         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6900         from 5 to 9 tokens; this is needed due to the changes to
6901         add_utf8_anychar.
6902         (charclass_index): 2nd arg is now pointer-to-const.
6903         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6904         instead of allowing overlong encodings or surrogate halves.
6906         dfa: simplify charclass by assuming C99
6907         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6908         (charclass_word): Now always uint_fast64_t.
6909         (CHARCLASS_PAIR): Remove.
6910         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6912         fts: tune via calloc
6913         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6915         dfa: tune via xzalloc
6916         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6918 2019-12-17  Bruno Haible  <bruno@clisp.org>
6920         localcharset: Fix multithread-safety bug on Windows and OS/2.
6921         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6922         invalid.
6923         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6924         assemble the result.
6926 2019-12-17  Bruno Haible  <bruno@clisp.org>
6928         localcharset: Optimize code for native Windows.
6929         * lib/localcharset.c (locale_charset): Don't bother calling
6930         setlocale (LC_ALL, NULL) since we're not interested in its result.
6932 2019-12-17  Bruno Haible  <bruno@clisp.org>
6934         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6935         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6936         setlocale.
6937         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6938         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6939         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6941 2019-12-17  Bruno Haible  <bruno@clisp.org>
6943         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6944         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6945         stack-allocated buffer to assemble each result and different static
6946         buffers to return it.
6947         * tests/test-nl_langinfo-mt.c: New file.
6948         * modules/nl_langinfo-tests (Files): Add it.
6949         (Depends-on): Add thread, nanosleep.
6950         (Makefile.am): Build test-nl_langinfo-mt test.
6952 2019-12-17  Bruno Haible  <bruno@clisp.org>
6954         langinfo: Document more details.
6955         * doc/posix-headers/langinfo.texi: List platform details.
6956         * doc/posix-functions/nl_langinfo.texi: Likewise.
6958 2019-12-17  Bruno Haible  <bruno@clisp.org>
6960         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6961         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6962         and Martin Storsjö <martin@martin.st>
6963         in <https://savannah.gnu.org/bugs/?57406>.
6964         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6965         mingw.
6967 2019-12-17  Bruno Haible  <bruno@clisp.org>
6969         glob: Avoid warning on mingw.
6970         Reported by Christian Biesinger <cbiesinger@google.com> in
6971         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6972         * lib/glob.c (__stat64): Undefine first.
6974 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6976         xalloc: tune xzalloc for fresh allocations
6977         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6978         because when the memory is freshly allocated from the OS via sbrk
6979         or mmap, calloc can avoid doing the memset.
6981         dfa: new function dfacopysyntax
6982         * lib/dfa.c (struct dfa): Move syntax member later so
6983         that dfacopysyntax can easily clear earlier members.
6984         (dfacopysyntax): New function, used by Gawk.
6986 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6988         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6989         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6990         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6991         if not already defined.
6993         dfa: remove one dependency on MB_CUR_MAX
6994         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6996         dfa: remove struct lexer_state.cur_mb_len
6997         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6998         as it’s not needed and the code is simpler without it.
6999         All uses removed.
7001 2019-12-16  Bruno Haible  <bruno@clisp.org>
7003         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7004         Reported by Arnold Robbins <arnold@skeeve.com>.
7005         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7006         copied from lib/glthread/lock.h.
7007         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7008         (setlocale_null_with_lock): If pthread_in_use() is false, use
7009         setlocale_null_unlocked directly.
7010         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7011         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7012         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7013         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7014         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7015         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7017 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7019         dfa: make dfasyntax thread-safe
7020         Problem reported by Bruno Haible in:
7021         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7022         * lib/dfa.c: Do not include locale.h.
7023         (struct dfa): Remove simple_locale member.
7024         All uses replaced by localeinfo.simple.
7025         (using_simple_locale): Remove; now present (with some
7026         changes) in localeinfo.c.
7027         (dfasyntax): No need to initialize removed member.
7029         localeinfo: record whether locale is simple
7030         * lib/localeinfo.c (using_simple_locale): New function,
7031         copied here from lib/dfa.c but with a change: it uses
7032         strcoll for its heuristic, instead of using setlocale.
7033         This lets it be thread-safe.
7034         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7036 2019-12-15  Bruno Haible  <bruno@clisp.org>
7038         duplocale: Fix multithread-safety bug on AIX.
7039         * lib/duplocale.c: Don't include <stdlib.h>.
7040         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7041         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7042         Set LIB_DUPLOCALE.
7043         * modules/duplocale (Depends-on): Add setlocale-null.
7044         (Link): New section.
7045         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7046         $(LIB_DUPLOCALE).
7048 2019-12-15  Bruno Haible  <bruno@clisp.org>
7050         setlocale-null: Add tests.
7051         * tests/test-setlocale_null.c: New file.
7052         * tests/test-setlocale_null-one.c: New file.
7053         * tests/test-setlocale_null-all.c: New file.
7054         * modules/setlocale-null-tests: New file.
7056         setlocale-null: New module.
7057         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7058         setlocale_null): New declarations.
7059         * lib/setlocale_null.c: New file.
7060         * lib/setlocale-lock.c: New file.
7061         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7062         * m4/setlocale_null.m4: New file.
7063         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7064         GNULIB_SETLOCALE_NULL.
7065         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7066         * modules/setlocale-null: New file.
7067         * doc/posix-functions/setlocale.texi: Mention the new module.
7069 2019-12-15  Bruno Haible  <bruno@clisp.org>
7071         lock tests: Skip test when no multithreading is enabled.
7072         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7074 2019-12-14  Bruno Haible  <bruno@clisp.org>
7076         locale, duplocale, localename: Fix last patch.
7077         Reported by Daniel Richard G. in
7078         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7079         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7080         Don't define if locale_t does not exist.
7082 2019-12-13  Bruno Haible  <bruno@clisp.org>
7084         locale, duplocale, localename: Fix errors if locale_t does not exist.
7085         Reported by Daniel Richard G. in
7086         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7087         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7088         macros.
7089         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7090         HAVE_NEWLOCALE.
7091         * tests/test-localename.c: Likewise.
7092         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7093         HAVE_DUPLOCALE.
7094         * tests/test-locale-c++.cc: Likewise.
7096 2019-12-13  Bruno Haible  <bruno@clisp.org>
7098         wcstok: Fix test failure on HP-UX.
7099         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7100         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7102 2019-12-12  Bruno Haible  <bruno@clisp.org>
7104         strtod, strtold tests: Avoid test failure on AIX 7.2.
7105         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7106         '.' both are radix characters.
7107         * tests/test-strtold1.c (main): Likewise.
7109 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7111         dfa: prefer ptrdiff_t for API, too
7112         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7113         but do this only for internal use for now.
7114         * NEWS: Mention the API change.
7115         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7116         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7117         values known to be nonnegative.
7118         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7119         Prefer idx_t or ptrdiff_t to size_t for API.
7120         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7121         Prefer ptrdiff_t to size_t for API.
7123         stdalign: port to xlclang 16.01
7124         Problem reportd by Bruno Haible in:
7125         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7126         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7127         ((__aligned__ (...))) with xlclang, as a top-level
7128         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7129         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7131 2019-12-12  Bruno Haible  <bruno@clisp.org>
7133         duplocale: Fix test failure on AIX 7.2 with xlclang.
7134         * lib/duplocale.c: Include <stdlib.h>.
7135         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7136         value.
7138 2019-12-12  Bruno Haible  <bruno@clisp.org>
7140         stddef: Document the AIX xlc issue.
7141         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7143 2019-12-12  Bruno Haible  <bruno@clisp.org>
7145         duplocale: Don't attempt to override if locale_t does not exist.
7146         Reported by Daniel Richard G. in
7147         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7148         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7149         HAVE_DUPLOCALE to 0.
7151 2019-12-12  Bruno Haible  <bruno@clisp.org>
7153         wcwidth: Avoid test failure on AIX 7.2.
7154         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7155         negative.
7156         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7158 2019-12-12  Bruno Haible  <bruno@clisp.org>
7160         ilogbl: Work around Cygwin bug.
7161         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7162         correct.
7163         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7165 2019-12-12  Bruno Haible  <bruno@clisp.org>
7167         strtold: Work around Cygwin bug.
7168         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7169         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7170         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7171         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7172         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7174 2019-12-12  Bruno Haible  <bruno@clisp.org>
7176         strtold: Fix autoconf test.
7177         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7179 2019-12-11  Bruno Haible  <bruno@clisp.org>
7181         fsync tests: Skip test that is known to fail.
7182         * doc/posix-functions/fsync.texi: Update list of platforms.
7183         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7184         that is known to fail on AIX and Cygwin.
7186 2019-12-11  Bruno Haible  <bruno@clisp.org>
7188         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7190         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7191         HAVE_GETADDRINFO as a C macro.
7192         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7193         declare as replacement functions.
7194         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7195         define as no-op overrides.
7196         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7197         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7198         * modules/getaddrinfo (Depends-on, configure.ac): Test
7199         REPLACE_GETADDRINFO.
7200         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7201         problem.
7202         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7203         convention problems.
7205 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7207         dfa: prefer signed integers for internals
7208         Signed integers can be checked more easily for integer overflow.
7209         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7210         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7211         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7212         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7213         (replace, state_index, epsclosure, charclass_context)
7214         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7215         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7216         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7217         (comsubs, inboth, allocmust):
7218         Prefer a signed to an unsigned integer when calculating indexes,
7219         unless the integer is part of the external API (a bigger deal,
7220         and to be done later).
7222         dfa: fix index overflow
7223         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7224         very large regular expressions.
7226         dfa: update commentary for previous change
7227         * NEWS: Mention the change.
7228         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7230 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7232         dfa: separate parse and compile phase
7233         ‘dfamust’ must be called after parsing and before tokens are
7234         reordered, but both are executed in the compilation phase.
7235         Token reordering was introduced in Gnulib commit
7236         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7237         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7238         * lib/dfa.c (dfaparse): Change it to global function.
7239         (dfacomp): If first argument is NULL, skip parse.
7240         * lib/dfa.h: (dfaparse): Add a prototype.
7242 2019-12-11  Bruno Haible  <bruno@clisp.org>
7244         unistd tests: Fix link error on MSVC.
7245         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7246         $(LIB_GETLOGIN).
7248 2019-12-11  Bruno Haible  <bruno@clisp.org>
7250         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7251         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7252         and POSIX substitutes are supported in C++ mode.
7253         * NEWS: Likewise.
7255 2019-12-11  Bruno Haible  <bruno@clisp.org>
7257         stddef: Fix compilation error in C++ mode on MSVC.
7258         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7259         instead, include <cstddef>.
7261 2019-12-11  Bruno Haible  <bruno@clisp.org>
7263         unistd: Fix compilation error in C++ mode on MSVC.
7264         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7265         does not have <unistd.h>.
7267 2019-12-11  Bruno Haible  <bruno@clisp.org>
7269         locale: Fix compilation error in C++ mode on MSVC.
7270         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7271         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7272         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7273         int_n_sep_by_space): Define as macros on MSVC.
7275 2019-12-11  Bruno Haible  <bruno@clisp.org>
7277         wchar: Fix compilation error in C++ mode on MSVC.
7278         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7280 2019-12-11  Bruno Haible  <bruno@clisp.org>
7282         pthread-thread: Fix compilation error in C++ mode on MSVC.
7283         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7284         _GL_CXXALIAS_RPL invocation.
7286 2019-12-08  Bruno Haible  <bruno@clisp.org>
7288         Fix compilation errors in C++ mode on Haiku.
7289         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7290         non-glibc systems.
7291         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7292         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7293         posix_spawnattr_setschedparam): Likewise.
7294         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7295         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7296         * lib/unistd.in.h (usleep): Likewise.
7298 2019-12-08  Bruno Haible  <bruno@clisp.org>
7300         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7301         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7302         * modules/fseeko (configure.ac-early): Require it instead of
7303         AC_FUNC_FSEEKO.
7304         * modules/ftello (configure.ac-early): Likewise.
7305         * modules/fflush (configure.ac-early): Likewise.
7307 2019-12-08  Bruno Haible  <bruno@clisp.org>
7309         Fix compilation error in C++ mode on HP-UX 11.
7310         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7311         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7313 2019-12-08  Bruno Haible  <bruno@clisp.org>
7315         Fix compilation errors on HP-UX 11/ia64.
7316         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7317         _GL_FUNCDECL_SYS.
7319 2019-12-08  Bruno Haible  <bruno@clisp.org>
7321         Fix compilation error in C++ mode on OpenBSD.
7322         * lib/signal.in.h (signal): Declare on OpenBSD.
7324 2019-12-08  Bruno Haible  <bruno@clisp.org>
7326         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7327         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7328         instead of #error.
7330 2019-12-08  Bruno Haible  <bruno@clisp.org>
7332         Fix compilation errors in C++ mode on FreeBSD.
7333         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7334         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7335         * lib/threads.in.h (thrd_exit): Likewise.
7336         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7338 2019-12-08  Bruno Haible  <bruno@clisp.org>
7340         Fix compilation errors in C++ mode on macOS and FreeBSD.
7341         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7342         or FreeBSD with clang, use the approach without C preprocessor macro.
7344 2019-12-07  Bruno Haible  <bruno@clisp.org>
7346         Fix compilation errors in C++ mode on AIX with xlclang++.
7347         Reported by Christian Biesinger <cbiesinger@google.com> in
7348         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7349         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7351 2019-12-07  Bruno Haible  <bruno@clisp.org>
7353         Document compilation error in C++ mode on NetBSD 8.0.
7354         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7356 2019-12-07  Bruno Haible  <bruno@clisp.org>
7358         Fix compilation errors in C++ mode on Solaris 10.
7359         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7360         to non-empty on Solaris with a non-GCC compiler.
7361         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7363 2019-12-07  Bruno Haible  <bruno@clisp.org>
7365         Reword NEWS entry.
7366         * NEWS: Reword the latest NEWS entry.
7368 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7370         Move xstrtol_fatal to a new xstrtol-error module.
7371         * lib/xstrtol.h: Stop including <getopt.h>.
7372         (xstrtol_fatal): Move ...
7373         * lib/xstrtol-error.h: ... here.  New file.
7374         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7375         * tests/test-xstrtol.c: Likewise.
7376         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7377         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7378         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7379         * modules/xstrtol-error: New file.
7380         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7381         * MODULES.html.sh: Add xstrtol-error.
7382         * NEWS: Document the change.
7384 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7386         nstrftime: better width support for %N, %z
7387         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7388         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7389         a new WIDTH parameter.
7390         (add, add1, cpy): Use these macros.
7391         (width_add): Do not treat digits == 0 as a special case,
7392         do not pad if padding is ‘-’, and do not use a negative width.
7393         (__strftime_internal): Redo formatting of nanoseconds and numeric
7394         timezones to avoid buffer misuse in unusual cases, and so that
7395         widths make more sense.  Add support for widths greater than 9 to
7396         the %N format; they are zero filled on the right.
7397         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7399 2019-12-05  Bruno Haible  <bruno@clisp.org>
7401         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7402         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7403         set REPLACE_ISFINITE to 1.
7404         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7405         REPLACE_ISINF to 1.
7406         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7407         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7408         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7409         * lib/threads.in.h (call_once): Likewise.
7410         * lib/iconv.in.h (iconv): Likewise.
7412 2019-12-05  Bruno Haible  <bruno@clisp.org>
7414         wchar: Add more C++ tests.
7415         Reported by Christian Biesinger <cbiesinger@google.com> in
7416         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7417         * tests/test-wchar-c++3.cc: New file.
7418         * modules/wchar-c++-tests (Files): Add it.
7419         (Makefile.am): Compile it.
7421 2019-12-05  Bruno Haible  <bruno@clisp.org>
7423         Add more C++ tests.
7425         assert-h: Add C++ tests.
7426         * tests/test-assert-h-c++.cc: New file.
7427         * tests/test-assert-h-c++2.cc: New file.
7428         * modules/assert-h-c++-tests: New file.
7429         * modules/assert-h-tests: New file.
7431         ctype: Add C++ tests.
7432         * tests/test-ctype-c++.cc: New file.
7433         * tests/test-ctype-c++2.cc: New file.
7434         * modules/ctype-c++-tests: New file.
7435         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
7437         errno: Add C++ tests.
7438         * tests/test-errno-c++.cc: New file.
7439         * tests/test-errno-c++2.cc: New file.
7440         * modules/errno-c++-tests: New file.
7441         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7443         float: Add C++ tests.
7444         * tests/test-float-c++.cc: New file.
7445         * tests/test-float-c++2.cc: New file.
7446         * modules/float-c++-tests: New file.
7447         * modules/float-tests (Depends-on): Add float-c++-tests.
7449         inttypes: Add more C++ tests.
7450         * tests/test-inttypes-c++2.cc: New file.
7451         * modules/inttypes-c++-tests (Files): Add it.
7452         (Makefile.am): Compile it.
7454         limits-h: Add C++ tests.
7455         * tests/test-limits-h-c++.cc: New file.
7456         * tests/test-limits-h-c++2.cc: New file.
7457         * modules/limits-h-c++-tests: New file.
7458         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7460         stdarg: Add C++ tests.
7461         * tests/test-stdarg-c++.cc: New file.
7462         * tests/test-stdarg-c++2.cc: New file.
7463         * modules/stdarg-c++-tests: New file.
7464         * modules/stdarg-tests: New file.
7466         stdbool: Add C++ tests.
7467         * tests/test-stdbool-c++.cc: New file.
7468         * tests/test-stdbool-c++2.cc: New file.
7469         * modules/stdbool-c++-tests: New file.
7470         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7472         stddef: Add C++ tests.
7473         * tests/test-stddef-c++.cc: New file.
7474         * tests/test-stddef-c++2.cc: New file.
7475         * modules/stddef-c++-tests: New file.
7476         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7478         stdint: Add C++ tests.
7479         * tests/test-stdint-c++.cc: New file.
7480         * tests/test-stdint-c++2.cc: New file.
7481         * modules/stdint-c++-tests: New file.
7482         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7484         wchar: Add more C++ tests.
7485         * tests/test-wchar-c++2.cc: New file.
7486         * modules/wchar-c++-tests (Files): Add it.
7487         (Makefile.am): Compile it.
7489         wctype-h: Add more C++ tests.
7490         * tests/test-wctype-h-c++2.cc: New file.
7491         * modules/wctype-h-c++-tests (Files): Add it.
7492         (Makefile.am): Compile it.
7494 2019-12-04  Bruno Haible  <bruno@clisp.org>
7496         Fix compilation errors in C++ mode with xlclang++ on AIX.
7497         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7498         C++ mode on AIX.
7499         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7500         without C preprocessor macro.
7501         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7502         _GL_CXXALIAS_SYS.
7503         * lib/threads.in.h (thrd_exit): Likewise.
7505 2019-12-04  Bruno Haible  <bruno@clisp.org>
7507         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7508         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7509         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7511 2019-12-04  Bruno Haible  <bruno@clisp.org>
7513         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7514         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7515         _GL_CXXALIASWARN invocation on non-glibc systems.
7516         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7517         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7518         iswctype, towlower, towupper): Likewise.
7520 2019-12-03  Bruno Haible  <bruno@clisp.org>
7522         Avoid hassles caused by [[noreturn]] in C++.
7523         Reported by Christian Biesinger <cbiesinger@google.com> in
7524         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7526         * lib/_Noreturn.h: Likewise.
7528 2019-12-02  Bruno Haible  <bruno@clisp.org>
7530         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7531         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7532         LIBMULTITHREAD.
7533         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7534         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7535         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7536         gl_THREADLIB.
7537         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7539 2019-12-02  Bruno Haible  <bruno@clisp.org>
7541         Fix some more link errors with --enable-threads=isoc.
7542         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7543         * modules/pthread-rwlock (Depends-on): Likewise.
7545 2019-12-02  Bruno Haible  <bruno@clisp.org>
7547         Fix link errors with --enable-threads=posix on AIX.
7548         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7549         program with $(LIBTHREAD).
7550         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7551         program with $(LIBTHREAD).
7553 2019-12-02  Bruno Haible  <bruno@clisp.org>
7555         Fix link errors with --enable-threads=posix on AIX.
7556         * modules/mbrtowc (Link): New section.
7557         * modules/acl (Link): Likewise.
7558         * modules/argmatch (Link): Likewise.
7559         * modules/backup-rename (Link): Likewise.
7560         * modules/backupfile (Link): Likewise.
7561         * modules/closein (Link): Likewise.
7562         * modules/closeout (Link): Likewise.
7563         * modules/copy-file (Link): Likewise.
7564         * modules/csharpcomp (Link): Likewise.
7565         * modules/csharpexec (Link): Likewise.
7566         * modules/dfa (Link): Likewise.
7567         * modules/exclude (Link): Likewise.
7568         * modules/fnmatch (Link): Likewise.
7569         * modules/fnmatch-gnu (Link): Likewise.
7570         * modules/fnmatch-posix (Link): Likewise.
7571         * modules/glob (Link): Likewise.
7572         * modules/human (Link): Likewise.
7573         * modules/javacomp (Link): Likewise.
7574         * modules/javaexec (Link): Likewise.
7575         * modules/javaversion (Link): Likewise.
7576         * modules/mbfile (Link): Likewise.
7577         * modules/mbiter (Link): Likewise.
7578         * modules/mbmemcasecmp (Link): Likewise.
7579         * modules/mbmemcasecoll (Link): Likewise.
7580         * modules/mbrlen (Link): Likewise.
7581         * modules/mbscasecmp (Link): Likewise.
7582         * modules/mbscasestr (Link): Likewise.
7583         * modules/mbschr (Link): Likewise.
7584         * modules/mbscspn (Link): Likewise.
7585         * modules/mbsinit (Link): Likewise.
7586         * modules/mbslen (Link): Likewise.
7587         * modules/mbsncasecmp (Link): Likewise.
7588         * modules/mbsnlen (Link): Likewise.
7589         * modules/mbsnrtowcs (Link): Likewise.
7590         * modules/mbspbrk (Link): Likewise.
7591         * modules/mbspcasecmp (Link): Likewise.
7592         * modules/mbsrchr (Link): Likewise.
7593         * modules/mbsrtowcs (Link): Likewise.
7594         * modules/mbssep (Link): Likewise.
7595         * modules/mbsspn (Link): Likewise.
7596         * modules/mbsstr (Link): Likewise.
7597         * modules/mbstok_r (Link): Likewise.
7598         * modules/mbswidth (Link): Likewise.
7599         * modules/mbuiter (Link): Likewise.
7600         * modules/mkdir-p (Link): Likewise.
7601         * modules/propername (Link): Likewise.
7602         * modules/quote (Link): Likewise.
7603         * modules/quotearg (Link): Likewise.
7604         * modules/quotearg-simple (Link): Likewise.
7605         * modules/regex-quote (Link): Likewise.
7606         * modules/rpmatch (Link): Likewise.
7607         * modules/sh-quote (Link): Likewise.
7608         * modules/system-quote (Link): Likewise.
7609         * modules/trim (Link): Likewise.
7610         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7611         * modules/unistdio/ulc-fprintf (Link): Likewise.
7612         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7613         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7614         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7615         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7616         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7617         * modules/xfreopen (Link): Likewise.
7618         * modules/xmemcoll (Link): Likewise.
7619         * modules/yesno (Link): Likewise.
7620         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7621         * modules/argmatch-tests (Makefile.am): Likewise.
7622         * modules/closein-tests (Makefile.am): Likewise.
7623         * modules/copy-file-tests (Makefile.am): Likewise.
7624         * modules/dfa-tests (Makefile.am): Likewise.
7625         * modules/fnmatch-tests (Makefile.am): Likewise.
7626         * modules/glob-tests (Makefile.am): Likewise.
7627         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7628         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7629         * modules/mbrtowc-tests (Makefile.am): Likewise.
7630         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7631         * modules/mbscasestr-tests (Makefile.am): Likewise.
7632         * modules/mbschr-tests (Makefile.am): Likewise.
7633         * modules/mbscspn-tests (Makefile.am): Likewise.
7634         * modules/mbsinit-tests (Makefile.am): Likewise.
7635         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7636         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7637         * modules/mbspbrk-tests (Makefile.am): Likewise.
7638         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7639         * modules/mbsrchr-tests (Makefile.am): Likewise.
7640         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7641         * modules/mbsspn-tests (Makefile.am): Likewise.
7642         * modules/mbsstr-tests (Makefile.am): Likewise.
7643         * modules/quotearg-tests (Makefile.am): Likewise.
7644         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7645         * modules/readtokens-tests (Makefile.am): Likewise.
7646         * modules/regex-quote-tests (Makefile.am): Likewise.
7647         * modules/sh-quote-tests (Makefile.am): Likewise.
7648         * modules/system-quote-tests (Makefile.am): Likewise.
7649         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7650         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7651         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7652         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7653         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7654         * modules/yesno-tests (Makefile.am): Likewise.
7656 2019-12-02  Bruno Haible  <bruno@clisp.org>
7658         Simplify link sections.
7659         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7660         * modules/lock (Link): Likewise.
7661         * modules/cond (Link): Likewise.
7662         * modules/tls (Link): Likewise.
7663         * modules/yield (Link): Likewise.
7664         * modules/regex (Link): Likewise.
7665         * modules/localename (Link): Likewise.
7666         * modules/unicase/locale-language (Link): Likewise.
7667         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7669 2019-12-02  Bruno Haible  <bruno@clisp.org>
7671         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7672         * tests/test-thread_self.c (main): Disable test on AIX.
7674 2019-12-01  Bruno Haible  <bruno@clisp.org>
7676         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7677         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7678         gl_THREADLIB_EARLY_BODY.
7679         (gl_THREADLIB_EARLY_BODY): Invoke it.
7680         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7681         (gl_THREADLIB_BODY): Invoke it.
7682         (gl_PTHREADLIB): New macro.
7683         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7684         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7685         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7686         * modules/pthread-h (Files): Add threadlib.m4.
7687         (Depends-on): Remove threadlib.
7688         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7689         and _THREAD_SAFE here.
7690         (Link): Use LIBPTHREAD, not LIBTHREAD.
7691         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7692         LIBMULTITHREAD.
7693         * modules/pthread-once (Link): Likewise.
7694         * modules/pthread-mutex (Link): Likewise.
7695         * modules/pthread-rwlock (Link): Likewise.
7696         * modules/pthread-cond (Link): Likewise.
7697         * modules/pthread-tss (Link): Likewise.
7698         * modules/pthread-spin (Link): Likewise.
7699         * modules/pthread (Link): Likewise.
7700         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7701         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7702         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7703         test_pthread_once2_LDADD): Likewise.
7704         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7705         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7706         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7707         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7709 2019-12-01  Bruno Haible  <bruno@clisp.org>
7711         cond: State linking requirements.
7712         * modules/cond (Link): New section.
7714 2019-12-01  Bruno Haible  <bruno@clisp.org>
7716         threadlib: Remove unnecessary file (left over from 2019-07-06).
7717         * modules/threadlib (Files): Remove config.rpath.
7719 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7721         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7722         Reported by Dagobert Michelsen <dam@opencsw.org> in
7723         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7724         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7725         list of strings instead of one string.
7726         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7727         * pygnulib/GLImport.py (execute): Likewise.
7729 2019-11-27  Bruno Haible  <bruno@clisp.org>
7731         openpty, forkpty: Fix build error on Solaris 11.4.
7732         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7733         also in <termios.h>.
7734         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7735         of the function also in <termios.h>.
7736         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7737         * doc/glibc-functions/forkpty.texi: Likewise.
7739 2019-11-27  Bruno Haible  <bruno@clisp.org>
7741         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7742         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7743         --enable-threads=isoc and --enable-threads=isoc+posix.
7744         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7745         When both the ISO C and the POSIX threads API are available, choose
7746         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7747         --enable-threads=isoc+posix was specified. When only the ISO C threads
7748         API is available and --enable-threads=iso was specified, choose
7749         USE_ISOC_THREADS.
7750         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7751         USE_ISOC_AND_POSIX_THREADS.
7752         * lib/glthread/lock.c: Likewise.
7753         * lib/glthread/cond.h: Likewise.
7754         * lib/glthread/cond.c: Likewise.
7755         * lib/glthread/tls.h: Likewise.
7756         * lib/glthread/tls.c: Likewise.
7757         * lib/glthread/yield.h: Likewise.
7758         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7759         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7760         * lib/glthread/thread.c: Likewise.
7761         * lib/glthread/threadlib.c: Likewise.
7762         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7763         USE_ISOC_AND_POSIX_THREADS.
7764         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7765         USE_ISOC_AND_POSIX_THREADS.
7766         * tests/test-tls.c: Likewise.
7767         * tests/test-thread_create.c (main): Likewise.
7768         * tests/test-pthread-cond.c: Likewise.
7769         * tests/test-pthread-mutex.c: Likewise.
7770         * tests/test-pthread-once2.c: Likewise.
7771         * tests/test-pthread-rwlock.c: Likewise.
7772         * tests/test-pthread-tss.c: Likewise.
7773         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7774         USE_POSIX_THREADS.
7776 2019-11-24  Bruno Haible  <bruno@clisp.org>
7778         mbrtowc: Modernize autoconf test.
7779         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7780         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7781         try a UTF-8 locale.
7782         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7784 2019-11-24  Bruno Haible  <bruno@clisp.org>
7786         Fix errors in C++ mode on mingw.
7787         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7788         instead of _GL_CXXALIAS_SYS.
7789         * lib/signal.in.h (pthread_sigmask): Likewise.
7790         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7791         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7792         Likewise.
7793         * lib/wchar.in.h (btowc): Likewise.
7795 2019-11-24  Bruno Haible  <bruno@clisp.org>
7797         sys_time: Fix errors in C++ mode on mingw.
7798         * lib/sys_time.in.h (timeval): Restore the redirection
7799         '#define timeval rpl_timeval', for when the symbol timeval is being used
7800         outside the 'gnulib' namespace.
7801         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7802         'struct timeval'.
7804 2019-11-24  Bruno Haible  <bruno@clisp.org>
7806         iswctype: Fix errors in C++ mode on mingw.
7807         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7808         is 1.
7809         * lib/iswctype.c (iswctype): Add another implementation, for the
7810         GNULIB_defined_wint_t case.
7811         * modules/iswctype (configure.ac): Compile iswctype.c also if
7812         GNULIB_OVERRIDES_WINT_T is 1.
7814 2019-11-24  Bruno Haible  <bruno@clisp.org>
7816         windows-timedmutex: Fix errors in C++ mode on mingw.
7817         * lib/windows-timedmutex.h: Add closing brace.
7819 2019-11-24  Bruno Haible  <bruno@clisp.org>
7821         Fix errors in C++ mode on Cygwin.
7822         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7823         _GL_CXXALIAS_SYS.
7825 2019-11-24  Bruno Haible  <bruno@clisp.org>
7827         time_r: Fix for mingw (regression from 2019-11-16).
7828         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7829         AC_LINK_IFELSE test only if the function does not appear to exist.
7831 2019-11-24  Bruno Haible  <bruno@clisp.org>
7833         wcstok: Add tests.
7834         * tests/test-wcstok.c: New file.
7835         * modules/wcstok-tests: New file.
7837 2019-11-24  Bruno Haible  <bruno@clisp.org>
7839         wcstok: Work around wrong signature on native Windows.
7840         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7841         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7842         REPLACE_WCSTOK.
7843         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7844         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7845         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7846         * doc/posix-functions/wcstok.texi: Mention the problem.
7848 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7850         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7851         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7852         remove workaround for GCC bug 91450 as the bug should be fixed
7853         there too.
7855 2019-11-21  Bruno Haible  <bruno@clisp.org>
7857         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7858         Reported by Christian Biesinger <cbiesinger@google.com> in
7859         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7860         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7861         non-glibc systems.
7862         * lib/locale.in.h (localeconv, setlocale): Likewise.
7863         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7864         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7865         rint, round, trunc): Likewise.
7866         * lib/monetary.in.h (strfmon_l): Likewise.
7867         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7868         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7869         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7870         pthread_spin_destroy): Likewise.
7871         * lib/signal.in.h (raise, signal): Likewise.
7872         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7873         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7874         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7875         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7876         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7877         Likewise.
7878         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7879         Likewise.
7880         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7881         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7882         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7883         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7884         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7885         wcsftime): Likewise.
7886         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7888 2019-11-21  Bruno Haible  <bruno@clisp.org>
7890         Fix various errors in _GL_CXXALIAS_SYS invocations.
7891         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7892         _GL_CXXALIAS_SYS.
7893         * lib/pthread.in.h (pthread_mutexattr_gettype,
7894         pthread_mutexattr_getrobust): Likewise.
7895         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7896         * lib/sys_socket.in.h (recv, send): Likewise.
7897         * lib/unistd.in.h (getdtablesize): Likewise.
7898         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7899         'struct timeval'.
7901 2019-11-21  Bruno Haible  <bruno@clisp.org>
7903         math tests: Update after 2019-08-28 change.
7904         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7905         return type of 'bool', not 'int'.
7907 2019-11-21  Bruno Haible  <bruno@clisp.org>
7909         pthread-spin: Fix errors in C++ mode.
7910         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7911         functions as nonexistent when <pthread.h> exists but does not define
7912         the pthread_spinlock_t type.
7914 2019-11-21  Bruno Haible  <bruno@clisp.org>
7916         pthread-mutex: Fix errors in C++ mode.
7917         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7918         pthread_mutexattr_getrobust exists. If not, define
7919         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7920         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7921         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7922         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7923         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7924         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7925         definition.
7927 2019-11-19  Bruno Haible  <bruno@clisp.org>
7929         threads-h tests: Fix typo.
7930         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7932 2019-11-19  Bruno Haible  <bruno@clisp.org>
7934         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7935         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7936         to 'const pthread_attr_t *'.
7937         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7938         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7940 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7942         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7943         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7944         work around GCC bug 91450 as the bug should be fixed there.
7946 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7948         glob: get closer to glibc glob.c
7949         Omit differences from glibc when the differences don’t matter.
7950         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7951         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7952         (glob_lstat): New function.
7953         (glob_in_dir): Use it.
7954         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7955         Use changed.
7957 2019-11-18  Bruno Haible  <bruno@clisp.org>
7959         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7960         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7961         UINTPTR_MAX): Consider _WIN64.
7962         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7963         a pointer.
7965 2019-11-18  Bruno Haible  <bruno@clisp.org>
7967         stdint: Fix value of WINT_MAX when we override wint_t.
7968         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7969         when GNULIB_OVERRIDES_WINT_T is 1.
7971 2019-11-18  Bruno Haible  <bruno@clisp.org>
7973         vcs-to-changelog: New module.
7974         * modules/vcs-to-changelog: New file.
7975         * MODULES.html.sh (func_all_modules): Add it.
7977 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7979         vcs-to-changelog: New script to generate ChangeLog-like output.
7980         Discussion:
7981         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7982         * build-aux/vcs_to_changelog.py: New file.
7983         * build-aux/vcstocl/frontend_c.py: New file.
7984         * build-aux/vcstocl/misc_util.py: New file.
7985         * build-aux/vcstocl/vcs_git.py: New file.
7987 2019-11-18  Bruno Haible  <bruno@clisp.org>
7989         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7990         Reported by Keith Marshall <keith@users.osdn.me> in
7991         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7992         and <https://osdn.net/projects/mingw/ticket/39677>.
7993         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7994         already been defined by mingw's <crtdefs.h>.
7996 2019-11-18  Bruno Haible  <bruno@clisp.org>
7998         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7999         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8000         conditionally enabled.
8002 2019-11-18  Bruno Haible  <bruno@clisp.org>
8004         gc: Mirror libgcrypt.m4 from libgcrypt.
8005         * config/srclistvars.sh (LIBGCRYPT): New variable.
8006         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8008 2019-11-17  Bruno Haible  <bruno@clisp.org>
8010         locale, localename: Improve z/OS support.
8011         Reported by Daniel Richard G. in
8012         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8013         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8014         gl_LOCALE_H.
8015         (gl_LOCALE_H): Require it.
8016         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8017         defined, don't even check for newlocale, duplocale, freelocale.
8018         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8019         locale_t is not defined.
8021 2019-11-17  Bruno Haible  <bruno@clisp.org>
8023         havelib: Make libdirstems processing more flexible.
8024         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8025         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8026         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8027         patch from 2017-02-19).
8028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8029         libdirs, even when the first one exists as a directory.
8031 2019-11-17  Bruno Haible  <bruno@clisp.org>
8033         havelib: Match the bitness when searching for libraries.
8034         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8035         acl_is_expected_elfclass.
8036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8037         file exists, in ELF, also test whether it has the ELF class that
8038         corresponds to the host's bitness.
8040 2019-11-17  Bruno Haible  <bruno@clisp.org>
8042         host-cpu-c-abi: Add support for unknown CPUs.
8043         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8044         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8045         32-bit or 64-bit.
8047 2019-11-17  Bruno Haible  <bruno@clisp.org>
8049         havelib: Remove redundant code.
8050         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8051         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8053 2019-11-17  Bruno Haible  <bruno@clisp.org>
8055         havelib: Fix a bug in dependency processing.
8056         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8057         of .la files, don't overwrite the value of additional_libdir for the
8058         next rounds.
8060 2019-11-16  Bruno Haible  <bruno@clisp.org>
8062         wctype-h: When overriding wint_t, override also the related functions.
8063         Reported by Christian Biesinger <cbiesinger@google.com> in
8064         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8065         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8066         REPLACE_ISWCNTRL to 1.
8067         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8068         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8069         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8070         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8071         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8072         on mingw.
8073         * doc/posix-headers/wctype.texi: Likewise.
8075 2019-11-16  Bruno Haible  <bruno@clisp.org>
8077         time_r: Fix for mingw.
8078         Reported by Christian Biesinger <cbiesinger@google.com> in
8079         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8080         * lib/time.in.h: On mingw, include <unistd.h>.
8081         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8082         <time.h>. Test for localtime_r in a way that works when it is defined
8083         as an inline function.
8085 2019-11-13  Bruno Haible  <bruno@clisp.org>
8087         havelib: Revert last change.
8088         * build-aux/config.rpath: Revert last change. We can add msys2 support
8089         when it has been added to libtool.m4 upstream.
8091 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8093         config: add msys support
8094         Requested by Arnold Robbins in:
8095         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8096         He also requested a change to config.guess, which I’ll forward
8097         upstream.
8098         * build-aux/ar-lib (func_file_conv):
8099         * build-aux/compile (func_file_conv):
8100         * build-aux/config.rpath (wl, with_gnu_ld)
8101         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8102         Treat msys like cygwin.
8104 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8106         regex: now back in sync with glibc
8107         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8108         regexec.c got merged into glibc and are now copies again.
8110 2019-10-27  Bruno Haible  <bruno@clisp.org>
8112         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8113         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8114         statement.
8115         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8116         32-bit CPUs.
8118 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8120         timespec-add, timespec-sub: simplify
8121         * lib/timespec-add.c (timespec_add):
8122         * lib/timespec-sub.c (timespec_sub):
8123         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8124         work on unsigned integers.
8126 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8128         nstrftime: speed up integer overflow checking
8129         * lib/nstrftime.c: Include intprops.h.
8130         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8131         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8132         instead of doing it by hand.
8133         * modules/nstrftime (Depends-on): Add intprops.
8135         Port better to GCC under macOS
8136         Work around macOS header that has ‘#define __has_builtin(x) 0’
8137         when compiled by GCC.  Apple really, really doesn’t want you to
8138         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8139         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8140         The fix is to not trust __has_builtin when being compiled by
8141         recent-enough GCC.
8142         * lib/intprops.h (__has_builtin)
8143         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8144         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8145         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8146         Remove.  All uses removed.
8147         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8148         directly, if defined and if not newer GCC.
8149         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8150         New macro, that use __has_builtin directly, if defined and if
8151         not newer GCC.
8152         (assume): Use them.
8154 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8156         maintainer-makefile: update rule for argmatch.
8157         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8159 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8161         bitset: let freeing functions accept NULL.
8162         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8163         given NULL.
8164         * lib/bitset.h: Document that.
8165         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8167 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8169         inttypes: use more-robust test for int range
8170         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8171         Problem reported by Dagobert Michelsen in:
8172         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8173         * lib/inttypes.in.h: Rely only on limits.h when checking
8174         int range.
8176 2019-10-15  Bruno Haible  <bruno@clisp.org>
8178         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8179         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8180         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8181         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8182         term_ostream_set_hyperlink): New functions.
8183         (term_styled_ostream_get_hyperlink_ref,
8184         term_styled_ostream_get_hyperlink_id,
8185         term_styled_ostream_set_hyperlink): New function aliases.
8187 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8189         update-copyright: use en dashes in .texi ranges
8190         * build-aux/update-copyright: Match year ranges like "1998--2019",
8191         which are used in the Autoconf manual.  Also, update ranges in
8192         .tex, .texi, and .texinfo files to use en dashes instead of
8193         hyphens.
8195 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8197         * config/srclist.txt: Remove posix/regex_internal.c for now.
8199 2019-10-13  Bruno Haible  <bruno@clisp.org>
8201         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8202         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8203         contents to the empty string.
8205 2019-10-12  Bruno Haible  <bruno@clisp.org>
8207         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8208         * tests/test-intprops.c (main): Disable two more tests when using
8209         HP-UX cc.
8211 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8213         Simplify and regularize regex use of ‘assert’
8214         Also, tell GCC about the asserts even when compiling without
8215         debugging, to give it further optimization opportunities.
8216         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8217         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8218         (parse_expression, parse_bracket_exp):
8219         * lib/regex_internal.c (build_wcs_buffer)
8220         (build_wcs_upper_buffer, re_string_reconstruct)
8221         (re_string_context_at):
8222         * lib/regexec.c (re_search_stub, re_copy_regs)
8223         (re_search_internal, prune_impossible_nodes, check_matching)
8224         (check_halt_state_context, set_regs, sift_states_backward)
8225         (build_sifted_states, transit_state_mb, transit_state_bkref)
8226         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8227         (match_ctx_add_subtop):
8228         Use it instead of plain ‘assert’.
8230 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8232         regex: omit debug assignment when not debugging
8233         * lib/regexec.c (re_search_internal) [!DEBUG]:
8234         Remove unnecessary assignment.
8236         regex: tell compiler there’s at most 256 arcs out
8237         Partly this is to help the reader (and maybe help GCC);
8238         partly this is to pacify Coverity.
8239         * lib/regex_internal.h: Include verify.h.
8240         * lib/regexec.c (group_nodes_into_DFAstates):
8241         Tell the compiler that ndests cannot exceed SBC_MAX.
8242         * modules/regex (Depends-on): Add ‘verify’.
8244         regex: simplify by assuming C99
8245         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8246         temporarily.
8247         * lib/regex_internal.h (lock_define, re_match_context_t):
8248         Simplify by assuming C99 macros and const.
8249         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8250         initializers.  Remove unnecessary assignment, as mctx is now
8251         safely initialized earlier.
8253         regex: avoid copying of uninitialized storage
8254         * config/srclist.txt: Comment out regcomp.c temporarily.
8255         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8256         Initialize even when not checking for lint, as the behavior is
8257         arguably undefined otherwise and Coverity warns about it.
8259 2019-10-06  Bruno Haible  <bruno@clisp.org>
8261         access tests: Fix test failure when run as root.
8262         * tests/test-access.c: Include root-uid.h.
8263         (geteuid): Define fallback.
8264         (main): Don't expect that writing to a read-only file would fail when
8265         running as root. Also, remove the created files at the end.
8266         * modules/access-tests (Depends-on): Add root-uid.
8267         (configure.ac): Test whether geteuid exists.
8269 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8271         users.txt: add GNU nano
8272         Nano has been making use of gnulib since March 2017, version 2.8.0.
8274 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8276         bootstrap: simplify debugging of wget failures
8277         Problem reported by Tim Rühsen in:
8278         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8279         * build-aux/bootstrap (po_download_command_format):
8280         Invoke wget with -nv instead of -q, to make debugging easier.
8282 2019-09-29  Bruno Haible  <bruno@clisp.org>
8284         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8285         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8286         'const' attribute.
8288 2019-09-29  Bruno Haible  <bruno@clisp.org>
8290         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8291         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8293 2019-09-28  Bruno Haible  <bruno@clisp.org>
8295         Update comments that refer to POSIX.
8296         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8297         sentence about trailing slashes.
8298         * lib/fflush.c: Clarify the reasoning.
8299         * tests/test-fflush2.c: Cite the relevant sentence.
8301 2019-09-28  Bruno Haible  <bruno@clisp.org>
8303         access: Document limitations on Windows.
8304         Suggested by Zaretskii <eliz@gnu.org>.
8305         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8307 2019-09-28  Bruno Haible  <bruno@clisp.org>
8309         findprog-in: Fix comment.
8310         Reported by Eli Zaretskii <eliz@gnu.org>.
8311         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8312         condition.
8313         * lib/stat.c (rpl_stat): Fix typo in comment.
8314         * lib/utime.c (_gl_utimens_windows): Likewise.
8316 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8318         Update URLs and associated text
8319         (Thanks to Bruno Haible for proofreading this patch.)
8320         Prefer https: to http: in URLs where either will do, for the usual
8321         security reasons.  I also updated broken and/or moved URLs
8322         discovered during the process. In a few places I had to resort to
8323         archive.org, since I didn't find the originals elsewhere.
8325 2019-09-15  Paul Smith  <psmith@gnu.org>
8326             Bruno Haible  <bruno@clisp.org>
8328         findprog-in: Set errno when the search fails.
8329         * lib/findprog-in.c: Include <errno.h>.
8330         (find_in_given_path): Set errno before returning NULL.
8331         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8332         Define the term "slash".
8334 2019-09-15  Bruno Haible  <bruno@clisp.org>
8336         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8337         * modules/findprog (Depends-on): Add access.
8338         * modules/findprog-lgpl (Depends-on): Likewise.
8339         * modules/findprog-in (Depends-on): Likewise.
8341 2019-09-15  Bruno Haible  <bruno@clisp.org>
8343         access: Add tests.
8344         * tests/test-access.c: New file.
8345         * modules/access-tests: New file.
8347         access: New module.
8348         * lib/unistd.in.h (access): New declaration.
8349         * lib/access.c: New file.
8350         * m4/access.m4: New file.
8351         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8352         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8353         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8354         REPLACE_ACCESS.
8355         * modules/access: New file.
8356         * tests/test-unistd-c++.cc (access): Check signature.
8357         * doc/posix-functions/access.texi: Mention the new module.
8359 2019-09-15  Bruno Haible  <bruno@clisp.org>
8361         fcntl-h: Fix compilation error of creat.c on MSVC.
8362         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8363         defined.
8365 2019-09-15  Bruno Haible  <bruno@clisp.org>
8367         creat: Add tests.
8368         * tests/test-creat.c: New file, based on tests/test-open.h.
8369         * modules/creat-tests: New file.
8371         creat: New module.
8372         * lib/fcntl.in.h (creat): New declaration.
8373         * lib/creat.c: New file, based on lib/open.c.
8374         * m4/creat.m4: New file.
8375         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8376         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8377         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8378         * modules/open (Files): Add m4/open-slash.m4.
8379         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8380         REPLACE_CREAT.
8381         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8382         * modules/creat: New file.
8383         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8384         * doc/posix-functions/creat.texi: Mention the new module.
8386 2019-09-15  Bruno Haible  <bruno@clisp.org>
8388         open tests: Enhance test.
8389         * tests/test-open.h (test_open): Test the creation of an executable
8390         regular file. Also improve initial cleanup.
8392 2019-09-15  Bruno Haible  <bruno@clisp.org>
8394         intprops tests: Avoid build failure with HP-UX cc.
8395         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8396         "error 4018: Macro param too large after substitution - use -H option.".
8398 2019-09-14  Bruno Haible  <bruno@clisp.org>
8400         Make autoconf tests work with -Werror=implicit-function-declaration.
8401         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8402         towupper() declaration.
8403         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8404         declaration.
8406 2019-09-14  Bruno Haible  <bruno@clisp.org>
8408         findprog-in: Better mimic the system on native Windows.
8409         Reported by Paul Smith <psmith@gnu.org>.
8410         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8411         non-empty suffixes when the file name already contains a '.'.
8413 2019-09-10  Bruno Haible  <bruno@clisp.org>
8415         wctob: Fix autoconf test.
8416         Based on patch by Florian Weimer <fweimer@redhat.com>.
8417         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
8419 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
8421         xhash: provide hash_xinitialize.
8422         Suggested by Egor Pugin <egor.pugin@gmail.com>
8423         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
8424         * modules/xhash, lib/xhash.c: New.
8425         * lib/hash.h (hash_xinitialize): New.
8427 2019-09-09  Bruno Haible  <bruno@clisp.org>
8429         findprog-in: Make exec optimization optional.
8430         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
8431         (find_in_given_path): Add optimize_for_exec parameter.
8432         * lib/findprog-in.c (find_in_given_path): Likewise.
8434 2019-09-08  Bruno Haible  <bruno@clisp.org>
8436         Add option to assume the best, not the worst, when cross-compiling.
8437         Suggested by Jonas Termansen <sortie@maxsi.org>.
8438         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8439         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8440         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8441         lt_cv_sys_argz_works.
8442         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8443         ac_cv_func_calloc_0_nonnull.
8444         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8445         --enable-cross-guesses for gl_cv_func_realpath_works.
8446         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8447         gl_cv_func_cbrtl_ieee.
8448         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8449         gl_cv_func_ceil_ieee.
8450         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8451         gl_cv_func_ceilf_ieee.
8452         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8453         gl_cv_func_ceill_ieee.
8454         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8455         ac_cv_func_chown_works.
8456         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8457         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8458         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8459         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8460         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8461         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8462         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8463         gl_cv_func_expl_works.
8464         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8465         gl_cv_func_expm1_ieee.
8466         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8467         gl_cv_func_expm1l_works.
8468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8469         gl_cv_func_open_directory_works.
8470         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8471         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8472         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8473         gl_cv_func_fchownat_empty_filename_works.
8474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8475         gl_cv_func_fdopendir_works.
8476         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8477         gl_cv_func_floor_ieee.
8478         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8479         gl_cv_func_floorf_ieee.
8480         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8481         gl_cv_func_fma_works.
8482         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8483         gl_cv_func_fmaf_works.
8484         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8485         gl_cv_func_fmal_works.
8486         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8487         gl_cv_func_fmod_ieee.
8488         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8489         gl_cv_func_fmodf_ieee.
8490         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8491         gl_cv_func_fmodl_ieee.
8492         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8493         gl_cv_func_fpurge_works.
8494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8495         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8496         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8497         gl_cv_func_getcwd_null.
8498         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8499         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8500         gl_cv_func_working_getdelim.
8501         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8502         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8503         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8504         gl_cv_func_getgroups_works.
8505         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8506         am_cv_func_working_getline.
8507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8508         for gl_cv_func_getopt_gnu.
8509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8510         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8511         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8512         gl_cv_func_hypot_ieee.
8513         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8514         gl_cv_func_hypotf_ieee.
8515         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8516         gl_cv_func_hypotl_ieee.
8517         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8518         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8519         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8520         gl_cv_func_link_works.
8521         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8522         gl_cv_func_linkat_slash.
8523         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8524         gl_cv_func_log_ieee.
8525         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8526         gl_cv_func_logf_ieee.
8527         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8528         gl_cv_func_logl_works.
8529         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8530         gl_cv_func_log10_ieee.
8531         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8532         gl_cv_func_log10f_ieee.
8533         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8534         gl_cv_func_log10l_works.
8535         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8536         gl_cv_func_log1p_ieee.
8537         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8538         gl_cv_func_log1pf_ieee.
8539         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8540         gl_cv_func_log1pl_ieee.
8541         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8542         gl_cv_func_log2_ieee.
8543         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8544         gl_cv_func_log2f_ieee.
8545         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8546         --enable-cross-guesses for
8547         gl_cv_func_lstat_dereferences_slashed_symlink.
8548         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8549         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8550         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8551         gl_cv_C_locale_sans_EILSEQ.
8552         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8553         gl_cv_func_memchr_works.
8554         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8555         gl_cv_func_memmem_works_always.
8556         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8557         gl_cv_func_memmem_works_fast.
8558         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8559         gl_cv_func_mkdir_trailing_slash_works,
8560         gl_cv_func_mkdir_trailing_dot_works.
8561         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8562         gl_cv_func_mkfifo_works.
8563         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8564         gl_cv_func_mknod_works.
8565         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8566         gl_cv_func_working_mkstemp.
8567         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8568         gl_cv_func_working_mktime.
8569         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8570         gl_cv_func_modf_ieee.
8571         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8572         gl_cv_func_modff_ieee.
8573         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8574         gl_cv_func_modfl_ieee.
8575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8576         gl_cv_func_nanosleep.
8577         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8578         gl_cv_func_perror_works.
8579         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8580         gl_cv_func_printf_sizes_c99.
8581         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8582         gl_cv_func_printf_infinite.
8583         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8584         gl_cv_func_printf_infinite_long_double.
8585         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8586         gl_cv_func_printf_directive_a.
8587         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8588         gl_cv_func_printf_directive_f.
8589         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8590         gl_cv_func_printf_flag_zero.
8591         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8592         gl_cv_func_printf_enomem.
8593         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8594         gl_cv_func_snprintf_truncation_c99.
8595         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8596         gl_cv_func_snprintf_retval_c99.
8597         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8598         gl_cv_func_snprintf_directive_n.
8599         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8600         gl_cv_func_vsnprintf_zerosize_c99.
8601         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8602         gl_cv_func_pselect_detects_ebadf.
8603         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8604         Obey --enable-cross-guesses for
8605         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8606         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8607         gl_cv_func_ptsname_sets_errno.
8608         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8609         gl_cv_func_svid_putenv.
8610         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8611         gl_cv_func_readlink_works.
8612         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8613         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8614         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8615         gl_cv_func_re_compile_pattern_working.
8616         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8617         gl_cv_func_remainder_ieee.
8618         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8619         gl_cv_func_remainderf_ieee.
8620         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8621         gl_cv_func_remainderl_ieee.
8622         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8623         gl_cv_func_rintl_works.
8624         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8625         gl_cv_func_rmdir_works.
8626         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8627         gl_cv_func_round_ieee.
8628         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8629         gl_cv_func_roundf_ieee.
8630         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8631         gl_cv_func_roundl_ieee.
8632         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8633         gl_cv_func_select_detects_ebadf.
8634         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8635         gl_cv_func_setenv_works.
8636         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8637         gl_cv_func_unsetenv_works.
8638         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8639         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8640         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8641         gl_cv_func_sleep_works.
8642         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8643         gl_cv_func_stat_file_slash.
8644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8645         gl_cv_func_stpncpy.
8646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8647         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8648         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8649         gl_cv_func_strcasestr_linear.
8650         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8651         gl_cv_func_working_strerror.
8652         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8653         gl_cv_func_strerror_0_works.
8654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8655         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8656         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8657         gl_cv_func_strstr_works_always.
8658         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8659         gl_cv_func_strstr_linear.
8660         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8661         gl_cv_func_strtod_works.
8662         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8663         gl_cv_func_strtold_works.
8664         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8665         gl_cv_func_symlink_works.
8666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8667         gl_cv_func_symlinkat_works.
8668         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8669         gl_cv_func_trunc_ieee.
8670         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8671         gl_cv_func_truncf_ieee.
8672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8673         gl_cv_func_truncl_ieee.
8674         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8675         gl_cv_func_tzset_clobber.
8676         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8677         gl_cv_func_ungetc_works.
8678         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8679         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8680         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8681         gl_cv_func_usleep_works.
8682         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8683         gl_cv_func_futimesat_works.
8684         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8685         gl_cv_func_working_utimes.
8686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8687         gl_cv_func_wcwidth_works.
8688         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8689         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8690         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8691         links for testing. Obey --enable-cross-guesses for
8692         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8693         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8695 2019-09-08  Bruno Haible  <bruno@clisp.org>
8697         Clarify that cross-compilation guesses are guesses.
8698         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8699         cross-compiling.
8701 2019-09-08  Bruno Haible  <bruno@clisp.org>
8703         chown: Fix configure output (regression from 2019-03-23).
8704         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8705         gl_cv_func_chown_follows_symlink variable.
8707 2019-09-08  Bruno Haible  <bruno@clisp.org>
8709         findprog-in: New module.
8710         Suggested by Paul Smith <psmith@gnu.org>.
8711         * lib/findprog.h (find_in_given_path): New declaration.
8712         * lib/findprog-in.c: New file, based on lib/findprog.c.
8713         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8714         * modules/findprog-in: New file.
8716 2019-09-08  Bruno Haible  <bruno@clisp.org>
8718         findprog: Remove unused dependency.
8719         * modules/findprog (Depends-on): Remove strdup.
8721 2019-09-08  Bruno Haible  <bruno@clisp.org>
8723         findprog: Remove test that is obsolete since 2006-04-24.
8724         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8726 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8728         bitset: style changes
8729         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8730         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8731         xzalloc to xcalloc.
8732         Suggested by Paul Eggert.
8734 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8736         bitset: check memory allocation
8737         Reported by 江 祖铭 (Zu-Ming Jiang).
8738         With help from Paul Eggert.
8739         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8740         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8741         instead of realloc.
8742         When shrinking, accept failures.
8743         * lib/bitset/vector.c (vbitset_resize): Likewise.
8745 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8747         scratch_buffer: sync from glibc
8748         * config/srclist.txt: Add the scratch_buffer source
8749         code from glibc, since these should be in sync.
8750         Autoupdate.
8752 2019-09-07  Bruno Haible  <bruno@clisp.org>
8754         doc: Update for glibc 2.30.
8755         * doc/glibc-functions/gettid.texi: New file.
8756         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8757         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8758         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8759         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8760         * doc/glibc-functions/sem_clockwait.texi: New file.
8761         * doc/glibc-functions/tgkill.texi: New file.
8762         * doc/glibc-functions/twalk_r.texi: New file.
8763         * doc/gnulib.texi: Include them.
8764         (Glibc semaphore.h): New section.
8765         * doc/pastposix-functions/h_errno.texi: Update.
8766         * doc/posix-functions/*.texi: Likewise.
8768 2019-09-06  Bruno Haible  <bruno@clisp.org>
8770         symlink tests: Avoid test failure on Linux with Lustre file system.
8771         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8772         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8773         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8775 2019-09-01  Bruno Haible  <bruno@clisp.org>
8777         gitsub.sh: Add support for shallow-cloning of subdirectories.
8778         * top/gitsub.sh (func_usage): Document allowed git options with
8779         'git pull'.
8780         (func_pull): Accept GIT_OPTIONS argument.
8781         (pull): Parse git options before complaining about too many arguments.
8782         Pass the git options to func_pull.
8784 2019-08-29  Bruno Haible  <bruno@clisp.org>
8786         lock: Fix cross-compilation guesses.
8787         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8788         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8789         platforms.
8791 2019-08-28  Bruno Haible  <bruno@clisp.org>
8793         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8794         Reported by Martin Storsjö <martin@martin.st> in
8795         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8796         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8797         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8798         files from GCC 6 or newer, use an override through '#define', because
8799         the inline definitions in the platform's <cmath> cannot be overridden
8800         in another way.
8802 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8804         Revert macOS INT_MULTIPLY_WRAPV patch
8805         Problem reported by Bruno Haible in:
8806         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8807         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8808         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8809         Go back to working around the Clang bug on macOS.
8811 2019-08-27  Bruno Haible  <bruno@clisp.org>
8813         libtool-next-version: Fix error output.
8814         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8815         name.
8817 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8819         Speed up INT_MULTIPLY_WRAPV on macOS
8820         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8821         Mattias Engdegård says it’s safe to assume the relevant library
8822         is always available there.
8823         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8824         New temporary internal macro.
8825         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8826         No need to work around the Clang bug on macOS.
8828 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8830         intprops.h, verify.h: port better to clang
8831         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8832         with Clang.  Problem reported privately by Mattias Engdegård.
8833         Also, insulate intprops.h and verify.h better against each other’s
8834         definitions of __has_builtin on non-Clang hosts.
8835         * lib/intprops.h (__has_builtin): Define a temporary substitute
8836         if __has_builtin is not already defined.
8837         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8838         New temporary internal macros.
8839         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8840         Now two separate macros, replacing the old
8841         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8842         __builtin_mul_overflow is like the rest.  All uses changed.
8843         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8844         Adjust to above changes.
8845         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8846         longer relevant.  All uses changed.
8847         * lib/verify.h (__has_builtin): Treat like intprops.h,
8848         so that the two .h files do not collide with each other.
8849         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8850         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8852 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8854         intprops: say why not Clang __builtin_add_overflow
8855         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8856         Mention Clang in comment, responding to a query from
8857         Mattias Engdegård.
8859 2019-08-24  Bruno Haible  <bruno@clisp.org>
8861         doc: Document most of the files outside of modules.
8862         * doc/gnulib.texi (Build Infrastructure Files,
8863         Release Management Files): New chapters.
8865 2019-08-24  Bruno Haible  <bruno@clisp.org>
8867         bootstrap: Keep in sync with the 'gettext' module.
8868         Reported by Assaf Gordon in
8869         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8870         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8871         * build-aux/po/remove-potcdate.sin: Likewise.
8873 2019-08-24  Bruno Haible  <bruno@clisp.org>
8875         crypto/gc-sha512: Add tests.
8876         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8877         * modules/crypto/gc-sha512-tests: New file.
8879         crypto/gc-sha256: Add tests.
8880         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8881         * modules/crypto/gc-sha256-tests: New file.
8883         crypto/gc-sha256, crypto/gc-sha512: New modules.
8884         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8885         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8886         (MAX_DIGEST_SIZE): Set to 64.
8887         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8888         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8889         (gc_sha256, gc_sha512): New functions.
8890         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8891         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8892         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8894 2019-08-24  Bruno Haible  <bruno@clisp.org>
8896         crypto/gc-sha1 tests: Improve output when the test fails.
8897         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8898         output.
8900 2019-08-24  Bruno Haible  <bruno@clisp.org>
8902         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8903         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8904         LIBGCRYPT_HAS_MD_SM3.
8905         * lib/gc-libgcrypt.c: Include sm3.h.
8906         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8907         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8908         implementation if libgcrypt does not support SM3.
8910 2019-08-24  Bruno Haible  <bruno@clisp.org>
8912         crypto/gc-md2: Optimize and clarify code.
8913         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8914         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8915         is not needed.
8917 2019-08-24  Bruno Haible  <bruno@clisp.org>
8919         crypto/gc-md2: Add comment.
8920         * lib/gc-libgcrypt.c: Add comment.
8922 2019-08-24  Bruno Haible  <bruno@clisp.org>
8924         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8925         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8926         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8927         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8928         variable.
8930 2019-08-24  Bruno Haible  <bruno@clisp.org>
8932         crypto/gc: Fix link error with --with-libgcrypt.
8933         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8934         AC_LIB_HAVE_LINKFLAGS invocation.
8936 2019-08-24  Bruno Haible  <bruno@clisp.org>
8938         crypto/gc: Access the module indicators correctly.
8939         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8940         * lib/gc-libgcrypt.c: Likewise.
8942 2019-08-24  Bruno Haible  <bruno@clisp.org>
8944         crypto/gc: Fix configuration with --with-libgcrypt.
8945         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8946         * modules/crypto/gc (Files): Add it.
8947         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8949 2019-08-24  Bruno Haible  <bruno@clisp.org>
8951         Remove unused file.
8952         * m4/stat-macros.m4: Remove file.
8954 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8956         New strip-trailing-space option for srclist-update
8957         * config/srclist-update (fixfile): Support new option.
8958         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8959         Use it.
8961 2019-08-20  Eric Blake  <eblake@redhat.com>
8963         accept4: Support SOCK_NONBLOCK, if defined
8964         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8966         accept4: Fix compilation when native accept4() exists.
8967         Reported by Richard W.M. Jones <rjones@redhat.com> in
8968         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8969         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8971 2019-08-18  Bruno Haible  <bruno@clisp.org>
8973         Defeat -flto GCC optimization in math autoconf tests.
8974         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8975         at <https://savannah.gnu.org/bugs/?56109>.
8976         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8977         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8978         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8979         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8980         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8981         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8982         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8983         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8984         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8985         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8986         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8987         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8989 2019-08-17  Bruno Haible  <bruno@clisp.org>
8991         windows-spin: Implement declared functions.
8992         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8993         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8994         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8995         name.
8997 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8999         intprops: port to Oracle Developer Studio 12.6
9000         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9001         typos that were in a section not compiled by GCC.
9003 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9005         intprops: support uchar, ushort _WRAPV dests
9006         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9007         when __builtin_add_overflow etc. and _Generic are not used.
9008         (_GL_INT_OP_WRAPV): Use it to support destinations that
9009         are unsigned char or unsigned short, even in compilers
9010         that lack __typeof__ and are not C11-compatible.
9012         intprops: pacify picky GCC
9013         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9014         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9015         possibly-incorrect result.
9016         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9017         about (A) used as a boolean, when A is an expression like 3 * 4.
9019         intprops: support unsigned *_WRAPV results
9020         Add support for unsigned, unsigned long, and unsigned long long
9021         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9022         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9023         bug with unsigned inputs reported by Eli Zaretskii in:
9024         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9025         * config/srclist.txt: Break the glibc connection for intprops.h
9026         temporarily, while more testing is done in Gnulib-using apps.
9027         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9028         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9029         Support unsigned results no narrower than unsigned int.  Report
9030         overflow correctly if some arguments are unsigned.
9031         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9032         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9033         the right thing with narrow args.
9034         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9035         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9036         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9037         * tests/test-intprops.c: Check for bugs and test new behavior.
9039 2019-08-14  Bruno Haible  <bruno@clisp.org>
9041         get_progname_of: New module.
9042         * lib/get_progname_of.h: New file.
9043         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9044         * lib/getprogname.c (getprogname): Tweak coding style.
9045         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9046         * modules/get_progname_of: New file.
9048 2019-08-14  Bruno Haible  <bruno@clisp.org>
9050         get_ppid_of: New module.
9051         * lib/get_ppid_of.h: New file.
9052         * lib/get_ppid_of.c: New file.
9053         * modules/get_ppid_of: New file.
9055 2019-08-13  Bruno Haible  <bruno@clisp.org>
9057         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9058         * tests/test-libtextstyle.c (main): Do not emit styling when the
9059         environment variable NO_COLOR is set.
9061 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9063         verify: improve diagnostic quality in recent GCC
9064         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9065         useful line number containing the top-level caller of the macro.
9066         So, bring back the older way of issuing a diagnostic containing
9067         the top-level call’s arg, so that it is easier to diagnose
9068         ‘verify’ failures with recent GCC.
9069         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9070         Bring back DIAGNOSTIC arg.  All callers changed.
9071         (verify): Just use _GL_VERIFY.
9073 2019-08-11  Bruno Haible  <bruno@clisp.org>
9075         localcharset: Add more aliases for OS/2.
9076         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9077         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9078         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9080 2019-08-10  Eric Blake  <eblake@redhat.com>
9082         configmake: Update advice on usage.
9083         * modules/configmake (Include): No longer necessary to include
9084         last, since configmake.h itself worries about collision avoidance.
9086 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9088         parse-datetime: fix 'T' military timezone handling
9089         * lib/parse-datetime.y (zone):
9090         follow-up to the previous commit: the 'T' case is handled outside the
9091         conversion table (used as either military timezone UTC-7 or ISO8601
9092         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9093         timezone letters.
9095 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9097         parse-datetime: fix military timezone letters
9098         Problem and trivial fix reported by Neil Hoggarth in:
9099         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9100         * lib/parse-datetime.y (military_table):
9101         Do it the right way, not the RFC 822 way.
9103 2019-08-08  Eric Blake  <eblake@redhat.com>
9105         configmake: Avoid namespace pollution issue on mingw.
9106         * modules/configmake (Makefile.am): If the project uses
9107         <winsock2.h>, include that header before defining DATADIR.
9109 2019-07-28  Bruno Haible  <bruno@clisp.org>
9111         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9112         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9114 2019-07-24  Bruno Haible  <bruno@clisp.org>
9116         pthread-h: Fix definitions of types and macros on mingw.
9117         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9118         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9119         not in use.
9120         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9121         'pthread-once' is not in use.
9122         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9123         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9124         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9125         in use.
9126         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9127         Define also when module 'pthread-rwlock' is not in use.
9128         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9129         also when module 'pthread-cond' is not in use.
9130         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9131         'pthread-tss' is not in use.
9132         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9133         use.
9135 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9137         crypto/gc: Cope with libgcrypt without SM3.
9138         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9140 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9142         backupfile: fix resource leak on memory failure
9143         Problem found by Coverity (CID 1484214).
9144         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9146 2019-07-22  Bruno Haible  <bruno@clisp.org>
9148         Avoid missing-declarations warning in various tests.
9149         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9150         test6, test_optional, test7, test8, test9, test10, test11, test12,
9151         test13, test14, test15, test_fun): Declare static.
9152         * tests/test-cnd.c (test_cnd_wait): Likewise.
9153         * tests/test-cond.c (test_cond): Likewise.
9155 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9157         pthread tests: Avoid missing-declarations warning.
9158         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9160 2019-07-19  Bruno Haible  <bruno@clisp.org>
9162         parse-datetime: Avoid warnings from bison versions >= 3.3.
9163         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9164         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9166 2019-07-19  Bruno Haible  <bruno@clisp.org>
9168         parse-datetime: Require Bison 2.4 or newer.
9169         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9170         Code taken from gettext's intl.m4.
9171         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9172         of YACC.
9174 2019-07-19  Bruno Haible  <bruno@clisp.org>
9176         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9177         * lib/areadlink-with-size.c: Include <string.h>.
9178         * lib/areadlinkat-with-size.c: Likewise.
9179         * lib/xgethostname.c: Likewise.
9180         * lib/xgetdomainname.c: Likewise.
9182 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9184         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9185         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9186         "%pure-parser".  The former is available since Bison 2.3b (2008),
9187         while the latter is marked as obsolete since version 3.4 (May 2019).
9189 2019-07-16  Bruno Haible  <bruno@clisp.org>
9191         update-copyright: Make it work again (regression from 2019-06-15).
9192         Reported by Brian C. Lane <bcl@redhat.com>.
9193         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9195 2019-07-14  Bruno Haible  <bruno@clisp.org>
9197         doc: Update info about <pthread.h>.
9198         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9199         of 'pthread'.
9201 2019-07-14  Bruno Haible  <bruno@clisp.org>
9203         pthread_sigmask tests: Use new multithread modules.
9204         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9205         glthread/thread.h.
9206         (main_thread, killer_thread): Change type to pthread_t.
9207         (main): Update accordingly.
9208         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9209         thread.
9211 2019-07-14  Bruno Haible  <bruno@clisp.org>
9213         pthread-tss: Add tests.
9214         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9215         tests/test-tss.c.
9216         * modules/pthread-tss-tests: New file.
9218 2019-07-14  Bruno Haible  <bruno@clisp.org>
9220         pthread-cond: Add tests.
9221         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9222         tests/test-cnd.c.
9223         * modules/pthread-cond-tests: New file.
9225 2019-07-14  Bruno Haible  <bruno@clisp.org>
9227         pthread-rwlock: Add tests.
9228         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9229         * modules/pthread-rwlock-tests: New file.
9231 2019-07-14  Bruno Haible  <bruno@clisp.org>
9233         pthread-mutex: Add tests.
9234         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9235         tests/test-mtx.c.
9236         * modules/pthread-mutex-tests: New file.
9238 2019-07-14  Bruno Haible  <bruno@clisp.org>
9240         pthread-once: Add tests.
9241         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9242         tests/test-call_once.c.
9243         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9244         tests/test-mtx.c.
9245         * modules/pthread-once-tests: New file.
9247 2019-07-14  Bruno Haible  <bruno@clisp.org>
9249         pthread-thread: Add tests.
9250         * tests/test-pthread-thread.c: New file, based on
9251         tests/test-thread_create.c and tests/test-thrd_create.c.
9252         * modules/pthread-thread-tests: New file.
9254 2019-07-14  Bruno Haible  <bruno@clisp.org>
9256         pthread: Turn into a convenience module.
9257         * lib/pthread.in.h: Remove declarations for extern inline functions.
9258         * lib/pthread.c: Remove file.
9259         * modules/pthread (Files): Remove it.
9260         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9261         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9262         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9263         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9264         GNULIB_PTHREAD.
9265         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9267 2019-07-14  Bruno Haible  <bruno@clisp.org>
9269         pthread-spin: New module.
9270         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9271         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9272         inline definitions.
9273         * lib/pthread-spin.c: New file.
9274         * m4/pthread-spin.m4: New file.
9275         * modules/pthread-spin: New file.
9276         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9277         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9278         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9279         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9280         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9282 2019-07-14  Bruno Haible  <bruno@clisp.org>
9284         pthread-tss: New module.
9285         * lib/pthread-tss.c: New file.
9286         * m4/pthread-tss.m4: New file.
9287         * modules/pthread-tss: New file.
9288         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9289         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9290         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9291         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9293 2019-07-14  Bruno Haible  <bruno@clisp.org>
9295         pthread-cond: New module.
9296         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9297         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9298         * lib/pthread-cond.c: New file.
9299         * m4/pthread-cond.m4: New file.
9300         * modules/pthread-cond: New file.
9301         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9302         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9303         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9304         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9305         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9306         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9307         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9308         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9310 2019-07-14  Bruno Haible  <bruno@clisp.org>
9312         pthread-rwlock: New module.
9313         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9314         * m4/pthread-rwlock.m4: New file.
9315         * modules/pthread-rwlock: New file.
9316         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9317         and the Android problem.
9318         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9319         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9320         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9321         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9322         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9323         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9324         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9325         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9326         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9327         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9329 2019-07-14  Bruno Haible  <bruno@clisp.org>
9331         pthread-mutex: New module.
9332         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9333         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9334         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9335         pthread_mutex_unlock): Remove inline definitions.
9336         * lib/pthread-mutex.c: New file.
9337         * m4/pthread-mutex.m4: New file.
9338         * modules/pthread-mutex: New file.
9339         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9340         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9341         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9342         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9343         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9344         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9345         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9346         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9347         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9348         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9349         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9350         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9352 2019-07-14  Bruno Haible  <bruno@clisp.org>
9354         pthread-once: New module.
9355         * lib/pthread-once.c: New file.
9356         * m4/pthread-once.m4: New file.
9357         * modules/pthread-once: New file.
9358         * doc/posix-functions/pthread_once.texi: Mention the new module.
9360 2019-07-14  Bruno Haible  <bruno@clisp.org>
9362         pthread-thread: New module.
9363         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9364         inline definitions.
9365         * lib/pthread-thread.c: New file.
9366         * m4/pthread-thread.m4: New file.
9367         * modules/pthread-thread: New file.
9368         * doc/posix-functions/pthread_create.texi: Mention the new module.
9369         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9370         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9371         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9372         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9373         * doc/posix-functions/pthread_self.texi: Likewise.
9374         * doc/posix-functions/pthread_equal.texi: Likewise.
9375         * doc/posix-functions/pthread_detach.texi: Likewise.
9376         * doc/posix-functions/pthread_join.texi: Likewise.
9377         * doc/posix-functions/pthread_exit.texi: Likewise.
9379 2019-07-14  Bruno Haible  <bruno@clisp.org>
9381         pthread-h: Prepare for adding new modules.
9382         * lib/pthread.in.h: Define the types and macros for each of the
9383         facilities separately.
9384         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9385         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9386         HAVE_PTHREAD_PROCESS_SHARED.
9387         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9388         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9389         HAVE_PTHREAD_PROCESS_SHARED.
9390         * modules/pthread-h (Makefile.am): Substitute
9391         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9392         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9394 2019-07-14  Bruno Haible  <bruno@clisp.org>
9396         pthread-h: Add declarations of essential pthread functions.
9397         * lib/pthread.in.h: Include snippets.
9398         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9399         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9400         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9401         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9402         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9403         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9404         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9405         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9406         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9407         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9408         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9409         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9410         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9411         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9412         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
9413         pthread_key_create, pthread_setspecific, pthread_getspecific,
9414         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
9415         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
9416         declarations.
9417         (pthread_mutex_timedlock): Move declaration.
9418         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
9419         declared.
9420         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
9421         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
9422         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
9423         HAVE_* and REPLACE_* variables for the new functions.
9424         * modules/pthread-h (Depends-on): Add snippet/c++defs,
9425         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
9426         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
9427         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
9428         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
9429         variables for the new functions. Split the sed script, to avoid the
9430         limit of 99 commands of HP-UX sed.
9431         * tests/test-pthread-c++.cc: Check the signature of the new functions.
9433 2019-07-14  Bruno Haible  <bruno@clisp.org>
9435         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
9436         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
9437         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9438         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9439         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9440         * modules/pthread-h (Depends-on): Add threadlib.
9441         (Link): Change to $(LIBTHREAD).
9442         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9443         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9445 2019-07-14  Bruno Haible  <bruno@clisp.org>
9447         pthread-h: Add C++ tests.
9448         * tests/test-pthread-c++.cc: New file.
9449         * modules/pthread-h-c++-tests: New file.
9451 2019-07-14  Bruno Haible  <bruno@clisp.org>
9453         pthread-h: Add tests.
9454         * tests/test-pthread.c: New file.
9455         * modules/pthread-h-tests: New file.
9457 2019-07-14  Bruno Haible  <bruno@clisp.org>
9459         pthread-h: New module.
9460         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9461         is 1.
9462         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9463         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9464         <pthread.h> pollutes the namespace; instead, prepare for generating a
9465         pthread.h always. Substitute HAVE_PTHREAD_H here.
9466         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9467         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9468         * modules/pthread-h: New file, based on modules/pthread.
9469         * modules/pthread: Rely on 'pthread-h'.
9470         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9471         Update.
9472         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9473         pthread.
9475 2019-07-14  Bruno Haible  <bruno@clisp.org>
9477         sched_yield: New module.
9478         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9479         (sched_yield): New declaration.
9480         * lib/sched_yield.c: New file.
9481         * m4/sched_yield.m4: New file.
9482         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9483         provide a replacement sched.h always. Test whether sched_yield is
9484         declared.
9485         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9486         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9487         (Makefile.am): Provide a replacement sched.h always. Substitute
9488         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9489         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9490         * modules/sched_yield: New file.
9491         * doc/posix-functions/sched_yield.texi: Mention the new module.
9493 2019-07-14  Bruno Haible  <bruno@clisp.org>
9495         windows-spin: New module.
9496         * lib/windows-spin.h: New file.
9497         * lib/windows-spin.c: New file.
9498         * modules/windows-spin: New file.
9500 2019-07-14  Bruno Haible  <bruno@clisp.org>
9502         windows-timedrwlock: New module.
9503         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9504         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9505         windows-cond.c.
9506         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9507         redefinition conflict with windows-timedrwlock.h.
9508         * modules/windows-timedrwlock: New file.
9510 2019-07-14  Bruno Haible  <bruno@clisp.org>
9512         windows-rwlock: New module.
9513         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9514         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9515         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9516         windows-initguard.h.
9517         (gl_rwlock_t): Define using glwthread_rwlock_t.
9518         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9519         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9520         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9521         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9522         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9523         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9524         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9525         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9526         glthread_rwlock_destroy_func): Remove declarations.
9527         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9528         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9529         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9530         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9531         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9532         functions.
9533         * modules/windows-rwlock: New file.
9534         * modules/lock (Depends-on): Add windows-rwlock.
9536 2019-07-14  Bruno Haible  <bruno@clisp.org>
9538         windows-thread: Add support for creating a thread in detached state.
9539         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9540         (glwthread_thread_create): Add attr argument.
9541         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9542         * lib/glthread/thread.h (glthread_create): Update.
9543         * lib/thrd.c (thrd_create): Update.
9545 2019-07-14  Bruno Haible  <bruno@clisp.org>
9547         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9548         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9549         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9550         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9551         * lib/windows-mutex.h: Update.
9552         * lib/windows-recmutex.h: Likewise.
9553         * lib/windows-timedmutex.h: Likewise.
9554         * lib/windows-timedrecmutex.h: Likewise.
9555         * lib/windows-cond.h: Likewise.
9556         * lib/glthread/lock.h: Likewise.
9557         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9558         lib/windows-spinlock.h.
9559         * modules/windows-recmutex (Files): Likewise.
9560         * modules/windows-timedmutex (Files): Likewise.
9561         * modules/windows-timedrecmutex (Files): Likewise.
9562         * modules/windows-cond (Files): Likewise.
9563         * modules/threads-h (Files): Likewise.
9565 2019-07-14  Bruno Haible  <bruno@clisp.org>
9567         doc: Fix info about pthread API in HP-UX.
9568         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9570 2019-07-14  Bruno Haible  <bruno@clisp.org>
9572         threads-h: Fix generation of threads.h.
9573         * modules/threads-h (Makefile.am): Insert the required header file
9574         snippets.
9576 2019-07-09  Bruno Haible  <bruno@clisp.org>
9578         striconveh test: Fix a compilation failure when iconv is not available.
9579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9580         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9581         HAVE_ICONV.
9583 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9585         argmatch: adjust columns for help2man.
9586         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9587         requires column 20 or more, return 20.
9589 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9591         areadlink-with-size: avoid realloc when size==0
9592         * lib/areadlink-with-size.c (areadlink_with_size):
9593         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9594         Reallocate at the end to the actual size, to avoid memory waste,
9595         as suggested by Bruno Haible.  But when the guessed size is zero -
9596         useful when the size is unknown - do the initial small readlink
9597         into the stack, to avoid that realloc in the usual case.
9599 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9601         areadlink-with-size: guess a buffer size with 0 size
9602         The size is usually taken from st_size, which can be zero,
9603         resulting in inefficient operation.
9604         Instead let zero select an initial memory allocation
9605         of 128 bytes, which most symlinks fit within.
9606         * lib/areadlink-with-size.c (areadlink_with_size):
9607         Start with a 128 byte buffer, for SIZE == 0.
9608         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9610 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9612         Replace manually crafted hex regexes with [:xdigit:]
9613         * build-aux/gitlog-to-changelog (parse_amend_file)
9614         (git_dir_option):
9615         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9616         This patch is backported from Emacs (Bug#36167).
9618 2019-07-06  Bruno Haible  <bruno@clisp.org>
9620         error: Fix documentation.
9621         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9622         module provides.
9623         * doc/glibc-functions/error_message_count.texi: Likewise.
9624         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9625         * doc/glibc-functions/error_print_progname.texi: Likewise.
9627 2019-07-06  Bruno Haible  <bruno@clisp.org>
9629         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9630         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9631         and older is unsupported.
9632         * doc/**/*.texi: Update.
9634 2019-07-06  Bruno Haible  <bruno@clisp.org>
9636         doc: Remove documentation of Linux libc5 as a supported platform.
9637         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9638         to Linux libc5.
9639         * doc/posix-functions/iswalpha.texi: Likewise.
9640         * doc/posix-functions/iswblank.texi: Likewise.
9641         * doc/posix-functions/iswcntrl.texi: Likewise.
9642         * doc/posix-functions/iswdigit.texi: Likewise.
9643         * doc/posix-functions/iswgraph.texi: Likewise.
9644         * doc/posix-functions/iswlower.texi: Likewise.
9645         * doc/posix-functions/iswprint.texi: Likewise.
9646         * doc/posix-functions/iswpunct.texi: Likewise.
9647         * doc/posix-functions/iswspace.texi: Likewise.
9648         * doc/posix-functions/iswupper.texi: Likewise.
9649         * doc/posix-functions/iswxdigit.texi: Likewise.
9650         * doc/posix-functions/snprintf.texi: Likewise.
9651         * doc/posix-functions/vsnprintf.texi: Likewise.
9653 2019-07-06  Bruno Haible  <bruno@clisp.org>
9655         doc: Remove documentation of Tandem/NSK as a supported platform.
9656         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9657         Tandem/NSK.
9658         * doc/**/*.texi: Update.
9660 2019-07-06  Bruno Haible  <bruno@clisp.org>
9662         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9663         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9664         and older is unsupported.
9665         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9666         Mac OS X 10.4 and older.
9667         * doc/posix-functions/asinl.texi: Likewise.
9668         * doc/posix-functions/atanl.texi: Likewise.
9669         * doc/posix-functions/cosl.texi: Likewise.
9670         * doc/posix-functions/expl.texi: Likewise.
9671         * doc/posix-functions/frexpl.texi: Likewise.
9672         * doc/posix-functions/gettimeofday.texi: Likewise.
9673         * doc/posix-functions/logl.texi: Likewise.
9674         * doc/posix-functions/mkstemp.texi: Likewise.
9675         * doc/posix-functions/sinl.texi: Likewise.
9676         * doc/posix-functions/sqrtl.texi: Likewise.
9677         * doc/posix-functions/tanl.texi: Likewise.
9678         * doc/posix-functions/wcswidth.texi: Likewise.
9679         * doc/**/*.texi: Update.
9681 2019-07-06  Bruno Haible  <bruno@clisp.org>
9683         doc: Remove documentation of AIX 4 as a supported platform.
9684         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9685         unsupported.
9686         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9687         workarounds.
9688         * doc/posix-functions/strnlen.texi: Likewise.
9689         * doc/posix-headers/inttypes.texi: Likewise.
9690         * doc/**/*.texi: Update.
9692 2019-07-06  Bruno Haible  <bruno@clisp.org>
9694         doc: Remove documentation of HP-UX 10 as a supported platform.
9695         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9696         unsupported.
9697         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9698         workarounds.
9699         * doc/posix-functions/gmtime_r.texi: Likewise.
9700         * doc/posix-functions/localtime_r.texi: Likewise.
9701         * doc/posix-functions/mkstemp.texi: Likewise.
9702         * doc/**/*.texi: Update.
9704 2019-07-06  Bruno Haible  <bruno@clisp.org>
9706         doc: Remove documentation of Interix 3.5 as a supported platform.
9707         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9708         unsupported.
9709         * doc/posix-functions/select.texi: Don't mention Interix specific
9710         workarounds.
9711         * doc/posix-headers/signal.texi: Likewise.
9712         * doc/**/*.texi: Update.
9714 2019-07-06  Bruno Haible  <bruno@clisp.org>
9716         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9717         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9718         unsupported.
9719         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9720         workarounds.
9721         * doc/posix-functions/nl_langinfo.texi: Likewise.
9722         * doc/posix-functions/remainder.texi: Likewise.
9723         * doc/posix-functions/towlower.texi: Likewise.
9724         * doc/posix-functions/towupper.texi: Likewise.
9725         * doc/posix-functions/vsnprintf.texi: Likewise.
9726         * doc/posix-functions/wcscat.texi: Likewise.
9727         * doc/posix-functions/wcschr.texi: Likewise.
9728         * doc/posix-functions/wcscmp.texi: Likewise.
9729         * doc/posix-functions/wcscpy.texi: Likewise.
9730         * doc/posix-functions/wcscspn.texi: Likewise.
9731         * doc/posix-functions/wcslen.texi: Likewise.
9732         * doc/posix-functions/wcsncat.texi: Likewise.
9733         * doc/posix-functions/wcsncmp.texi: Likewise.
9734         * doc/posix-functions/wcsncpy.texi: Likewise.
9735         * doc/posix-functions/wcspbrk.texi: Likewise.
9736         * doc/posix-functions/wcsrchr.texi: Likewise.
9737         * doc/posix-functions/wcsspn.texi: Likewise.
9738         * doc/posix-headers/langinfo.texi: Likewise.
9739         * doc/posix-headers/signal.texi: Likewise.
9740         * doc/posix-headers/wchar.texi: Likewise.
9741         * doc/posix-headers/wctype.texi: Likewise.
9742         * doc/**/*.texi: Update.
9744 2019-07-05  Bruno Haible  <bruno@clisp.org>
9746         doc: Remove documentation of OSF/1 as supported platform.
9747         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9748         unsupported.
9749         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9750         workarounds.
9751         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9752         * doc/glibc-functions/ptsname_r.texi: Likewise.
9753         * doc/posix-functions/ceil.texi: Likewise.
9754         * doc/posix-functions/ceilf.texi: Likewise.
9755         * doc/posix-functions/ceill.texi: Likewise.
9756         * doc/posix-functions/fchdir.texi: Likewise.
9757         * doc/posix-functions/floor.texi: Likewise.
9758         * doc/posix-functions/floorf.texi: Likewise.
9759         * doc/posix-functions/fmod.texi: Likewise.
9760         * doc/posix-functions/fmodf.texi: Likewise.
9761         * doc/posix-functions/fmodl.texi: Likewise.
9762         * doc/posix-functions/log.texi: Likewise.
9763         * doc/posix-functions/logf.texi: Likewise.
9764         * doc/posix-functions/logl.texi: Likewise.
9765         * doc/posix-functions/log10.texi: Likewise.
9766         * doc/posix-functions/log10f.texi: Likewise.
9767         * doc/posix-functions/log10l.texi: Likewise.
9768         * doc/posix-functions/log2.texi: Likewise.
9769         * doc/posix-functions/log2f.texi: Likewise.
9770         * doc/posix-functions/log2l.texi: Likewise.
9771         * doc/posix-functions/mbrtowc.texi: Likewise.
9772         * doc/posix-functions/recv.texi: Likewise.
9773         * doc/posix-functions/recvfrom.texi: Likewise.
9774         * doc/posix-functions/remainder.texi: Likewise.
9775         * doc/posix-functions/remainderf.texi: Likewise.
9776         * doc/posix-functions/remainderl.texi: Likewise.
9777         * doc/posix-functions/round.texi: Likewise.
9778         * doc/posix-functions/roundf.texi: Likewise.
9779         * doc/posix-functions/roundl.texi: Likewise.
9780         * doc/posix-functions/send.texi: Likewise.
9781         * doc/posix-functions/sendto.texi: Likewise.
9782         * doc/posix-functions/setenv.texi: Likewise.
9783         * doc/posix-functions/snprintf.texi: Likewise.
9784         * doc/posix-functions/tcgetsid.texi: Likewise.
9785         * doc/posix-functions/trunc.texi: Likewise.
9786         * doc/posix-functions/truncf.texi: Likewise.
9787         * doc/posix-functions/truncl.texi: Likewise.
9788         * doc/posix-functions/ttyname_r.texi: Likewise.
9789         * doc/posix-functions/unsetenv.texi: Likewise.
9790         * doc/posix-functions/wcsrtombs.texi: Likewise.
9791         * doc/posix-headers/sys_select.texi: Likewise.
9792         * doc/posix-headers/wchar.texi: Likewise.
9793         * doc/posix-headers/wctype.texi: Likewise.
9794         * doc/**/*.texi: Update.
9796 2019-07-05  Bruno Haible  <bruno@clisp.org>
9798         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9799         * doc/**/*.texi: Update.
9801 2019-07-05  Bruno Haible  <bruno@clisp.org>
9803         doc: Remove documentation of Solaris 8 and older as supported platforms.
9804         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9805         unsupported.
9806         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9807         workarounds.
9808         * doc/posix-functions/memcmp.texi: Likewise.
9809         * doc/posix-functions/rename.texi: Likewise.
9810         * doc/posix-functions/tzset.texi: Likewise.
9811         * doc/posix-headers/wctype.texi: Likewise.
9812         * doc/**/*.texi: Update.
9814 2019-07-05  Bruno Haible  <bruno@clisp.org>
9816         doc: Remove documentation of Interix 3.5 as a supported platform.
9817         * doc/**/*.texi: Update.
9819 2019-07-05  Bruno Haible  <bruno@clisp.org>
9821         doc: Remove documentation of BeOS as a supported platform.
9822         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9823         unsupported.
9824         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9825         * doc/posix-functions/getdelim.texi: Likewise.
9826         * doc/**/*.texi: Update.
9828 2019-07-05  Bruno Haible  <bruno@clisp.org>
9830         thread, lock, cond, tls: Remove support for Pth threads.
9831         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9832         --enable-threads=pth any more.
9833         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9835         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9836         threads and ISO C11 threads.
9837         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9838         * lib/glthread/lock.h: Likewise.
9839         * lib/glthread/lock.c: Likewise.
9840         * lib/glthread/cond.h: Likewise.
9841         * lib/glthread/cond.c: Likewise.
9842         * lib/glthread/tls.h: Likewise.
9843         * lib/glthread/tls.c: Likewise.
9844         * lib/glthread/yield.h: Likewise.
9845         * lib/regex_internal.h: Likewise.
9846         * tests/test-thread_create.c: Likewise.
9847         * tests/test-lock.c: Likewise.
9848         * tests/test-cond.c: Likewise.
9849         * tests/test-tls.c: Likewise.
9850         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9851         (main): Sleep without calling gl_thread_yield.
9853 2019-07-05  Bruno Haible  <bruno@clisp.org>
9855         thread, lock, cond, tls: Remove support for old Solaris threads.
9856         Solaris >= 2.5.1 has POSIX threads.
9857         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9858         --enable-threads=solaris any more.
9859         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9860         * lib/glthread/thread.c: Update comment.
9861         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9862         * lib/glthread/lock.h: Likewise.
9863         * lib/glthread/lock.c: Likewise.
9864         * lib/glthread/cond.h: Likewise.
9865         * lib/glthread/cond.c: Likewise.
9866         * lib/glthread/tls.h: Likewise.
9867         * lib/glthread/tls.c: Likewise.
9868         * lib/glthread/yield.h: Likewise.
9869         * lib/regex_internal.h: Likewise.
9870         * tests/test-thread_create.c: Likewise.
9871         * tests/test-lock.c: Likewise.
9872         * tests/test-cond.c: Likewise.
9873         * tests/test-tls.c: Likewise.
9875 2019-07-05  Bruno Haible  <bruno@clisp.org>
9877         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9878         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9879         needed size is equal to the allocated size.
9880         * lib/getcwd.c (__getcwd): Likewise.
9882 2019-07-05  Bruno Haible  <bruno@clisp.org>
9884         xgetdomainname: Don't return an excessive memory allocation.
9885         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9886         before returning it.
9888 2019-07-05  Bruno Haible  <bruno@clisp.org>
9890         xgethostname: Don't return an excessive memory allocation.
9891         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9892         returning it.
9894 2019-07-05  Bruno Haible  <bruno@clisp.org>
9896         areadlinkat-with-size: Don't return an excessive memory allocation.
9897         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9898         before returning it.
9900 2019-07-05  Bruno Haible  <bruno@clisp.org>
9902         areadlink-with-size: Don't return an excessive memory allocation.
9903         Reported by Andreas Dilger <adilger@whamcloud.com>.
9904         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9905         before returning it.
9907 2019-07-03  Bruno Haible  <bruno@clisp.org>
9909         renameatu: Fix test failure on MSVC.
9910         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9911         empty string.
9913 2019-07-03  Bruno Haible  <bruno@clisp.org>
9915         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9916         * lib/mbrtowc.c: Include glthread/lock.h.
9917         (mbtowc_lock): New variable.
9918         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9919         encodings, explicitly reset the internal state of mbtowc, and protect
9920         this through a lock.
9921         * modules/mbrtowc (Depends-on): Add lock.
9923 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9925         argmatch: don't define _ in the header.
9926         Reported by Jim Meyering.
9927         * lib/argmatch.h (N_, _): Don't define.
9928         Use gettext instead.
9929         * lib/argmatch.h (_): Define.
9930         * tests/test-argmatch.c (N_): Define.
9932 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9934         verify: document ‘assume’ better
9935         * lib/verify.h: Reword doc (Bug#36370).
9937 2019-07-02  Bruno Haible  <bruno@clisp.org>
9939         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9940         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9941         "CPutf8".
9942         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9944 2019-07-02  Bruno Haible  <bruno@clisp.org>
9946         getcwd: Fix crash when invoked with size = 0 on MSVC.
9947         * lib/getcwd.c: Include msvc-inval.h.
9948         (getcwd_nothrow): New function/macro.
9949         (getcwd_system): New macro.
9950         (__getcwd): Use it instead of getcwd.
9951         * modules/getcwd (Depends-on): Add msvc-inval.
9952         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9954 2019-07-02  Bruno Haible  <bruno@clisp.org>
9956         nonblocking-pipe tests: Fix test failure on MSVC.
9957         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9958         native Windows.
9960 2019-07-02  Bruno Haible  <bruno@clisp.org>
9962         usleep: Implement with millisecond resolution on native Windows.
9963         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9964         * doc/pastposix-functions/usleep.texi: Update accordingly.
9966 2019-07-02  Bruno Haible  <bruno@clisp.org>
9968         lstat tests: Fix test failure on MSVC.
9969         * tests/test-lstat.h (test_lstat_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         stat tests: Fix test failure on MSVC.
9975         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9976         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9978 2019-07-02  Bruno Haible  <bruno@clisp.org>
9980         getaddrinfo tests: Fix test failure on MSVC.
9981         * tests/test-getaddrinfo.c: Include sockets.h.
9982         (main): Invoke gl_sockets_startup.
9983         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9985 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9987         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9988         * lib/poll.c: Call Windows native select() with Windows native timeval.
9990 2019-06-30  Bruno Haible  <bruno@clisp.org>
9992         argmatch: Fix compilation errors.
9993         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9994         * tests/test-argmatch.c (main): Update after last-minute function names
9995         change.
9997 2019-06-30  Bruno Haible  <bruno@clisp.org>
9999         Include <stdlib.h> when needed.
10000         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10001         * lib/fcntl.c: Likewise.
10002         * lib/mbscasestr.c: Likewise.
10003         * lib/mbssep.c: Likewise.
10004         * lib/mbsstr.c: Likewise.
10005         * lib/openat.c: Include <stdlib.h>, needed for free().
10006         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10007         abort().
10009 2019-06-30  Bruno Haible  <bruno@clisp.org>
10011         Include <stdlib.h> when needed.
10012         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10013         * lib/faccessat.c: Likewise.
10014         * lib/fchmodat.c: Likewise.
10015         * lib/fchownat.c: Likewise.
10016         * lib/fstatat.c: Likewise.
10017         * lib/mkfifoat.c: Likewise.
10018         * lib/mknodat.c: Likewise.
10019         * lib/readlinkat.c: Likewise.
10020         * lib/symlinkat.c: Likewise.
10021         * lib/utimensat.c: Likewise.
10022         * lib/mkdirat.c: Likewise. Include also the specification header.
10024 2019-06-30  Bruno Haible  <bruno@clisp.org>
10026         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10027         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10028         from gl_PREREQ_SYS_H_SOCKET.
10029         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10030         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10031         gl_PREREQ_SYS_H_WS2TCPIP.
10032         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10033         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10034         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10036 2019-06-30  Bruno Haible  <bruno@clisp.org>
10038         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10039         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10040         REPLACE_INET_NTOP to 1 always.
10041         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10042         REPLACE_INET_PTON to 1 always.
10044 2019-06-30  Bruno Haible  <bruno@clisp.org>
10046         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10047         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10048         not REPLACE_INET_NTOP.
10050 2019-06-30  Bruno Haible  <bruno@clisp.org>
10052         poll: Add comment.
10053         * lib/poll.c: Add comment about WSAPoll.
10055 2019-06-30  Bruno Haible  <bruno@clisp.org>
10057         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10058         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10059         * lib/poll.in.h: Include <winsock2.h>.
10060         (POLL*, pollfd): Override on native Windows.
10061         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10062         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10063         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10065 2019-06-28  Bruno Haible  <bruno@clisp.org>
10067         accept4: Fix compilation error on OpenIndiana.
10068         Reported by Michal Nowak <mnowak@startmail.com>
10069         via Mark H Weaver <mhw@netris.org>.
10070         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10071         whether it exists as a function.
10073 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10075         strverscmp: sync from glibc
10076         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10077         comments, include libc-config.h, define __strverscmp to be
10078         strverscmp, and don’t assume types line uint8_t and int8_t that
10079         that C99 doesn’t guarantee.
10080         [!_LIBC]: Include libc-config.h; define __strverscmp.
10081         Include stdint.h.
10082         (__strverscmp): Assume C99.  Use uint_least8_t
10083         and int_least8_t instead of unsigned char and signed char.
10084         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10086 2019-06-25  Bruno Haible  <bruno@clisp.org>
10088         tss tests: Add tests for destructors and races.
10089         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10090         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10091         functions.
10092         (main): Invoke them.
10093         * modules/tls-tests (Depends-on): Add mtx.
10095 2019-06-25  Bruno Haible  <bruno@clisp.org>
10097         tls tests: Add tests for destructors and races.
10098         * tests/test-tls.c: Include glthread/lock.h.
10099         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10100         functions.
10101         (main): Invoke them.
10102         * modules/tls-tests (Depends-on): Add lock.
10104 2019-06-25  Bruno Haible  <bruno@clisp.org>
10106         windows-tls: Implement TLS key destructors for native Windows.
10107         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10108         declaration.
10109         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10110         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10111         (dtor_table_init_once, dtor_table_lock: New variables.
10112         (struct dtor): New type.
10113         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10114         dtor_processing_threads): New variables.
10115         (dtor_table_initialize, dtor_table_ensure_initialized,
10116         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10117         functions.
10118         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10119         handle non-NULL destructors.
10120         * modules/windows-tls (Depends-on): Add windows-once.
10121         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10122         Use the functions declared in windows-tls.h.
10123         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10124         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10125         * lib/windows-thread.c: Include windows-tls.h.
10126         (wrapper_func, glwthread_thread_exit): Invoke
10127         glwthread_tls_process_destructors.
10128         * modules/windows-thread (Depends-on): Add windows-tls.
10130 2019-06-25  Bruno Haible  <bruno@clisp.org>
10132         threadlib: Avoid autoconf warning "was expanded before it was required".
10133         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10135 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10137         argmatch: remove duplicate const qualifier
10138         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10140 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10142         unistd: stddef.h and sys/types.h namespace cleanup
10143         * lib/unistd.in.h [__GLIBC__]:
10144         Do not include stddef.h or sys/types.h.
10145         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10146         supposed to declare off_t and ssize_t.  Problem found when looking
10147         at why @GNULIB_PWRITE@ was different from the newly-added
10148         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10150 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10152         maintainer-makefile: restore portability to non-GNU awks
10153         Reported by Tim Rühsen.
10154         * top/maint.mk (AWK): New variable.  Use it.
10155         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10157 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10159         Document setvbuf _IOLBF problem
10160         * doc/posix-functions/setvbuf.texi (setvbuf):
10161         Document MS-Windows portability problem with _IOLBF.
10163         Document lseek SEEK_DATA/SEEK_HOLE
10164         * doc/posix-functions/lseek.texi (lseek):
10165         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10167 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10169         argmatch: put all the docs member last.
10170         Reported by Bruno Haible.
10171         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10172         member before the docs done.
10173         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10175 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10177         argmatch: add support to generate the usage message.
10178         * lib/argmatch.c: Move some #includes and gettext support to...
10179         * lib/argmatch.h: here.
10180         (ARGMATCH_DEFINE_GROUP): New macro.
10181         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10182         (argmatch_backup_group): New.
10183         (CHECK): New.
10184         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10185         argmatch_backup_argument and argmatch_backup_usage.
10186         * modules/argmatch: We depend on c99.
10187         * doc/argmatch.texi (Recognizing Option Arguments): New.
10188         * doc/gnulib.texi: Use it.
10190 2019-06-21  Bruno Haible  <bruno@clisp.org>
10192         thrd: Add comment.
10193         * lib/thrd.c (pthread_main_func): Add comment.
10195 2019-06-21  Bruno Haible  <bruno@clisp.org>
10197         threads-h: Define 'thread_local' if and only if it actually works.
10198         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10199         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10200         Oracle Solaris Studio C. Compile a simple program, to see whether
10201         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10202         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10203         * lib/threads.in.h (thread_local): Undefine if it does not work.
10204         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10205         (Link): Mention LIBTHREADLOCAL.
10206         * tests/test-threads.c: Don't check that thread_local is defined.
10207         * tests/test-thread_local.c: New file.
10208         * modules/threads-h-tests (Files): Add it and macros.h.
10209         (Depends-on): Add thrd and stdint.
10210         (configure.ac): Test whether 'alarm' is declared.
10211         (Makefile.am): Arrange to build and link test-thread_local.
10212         * doc/posix-headers/threads.texi: Mention the platforms that don't
10213         support 'thread_local'.
10215 2019-06-20  Bruno Haible  <bruno@clisp.org>
10217         threads-h: Simplify link dependencies.
10218         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10219         Don't set LTLIBSTDTHREAD.
10220         * modules/thrd (Link): Simplify accordingly.
10221         * modules/mtx (Link): Likewise.
10222         * modules/cnd (Link): Likewise.
10223         * modules/tss (Link): Likewise.
10224         * modules/threads (Link): Likewise.
10226 2019-06-20  Bruno Haible  <bruno@clisp.org>
10228         threads-h: Fix link error on FreeBSD 11.
10229         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10230         also with -lpthread.
10232 2019-06-20  Bruno Haible  <bruno@clisp.org>
10234         threadlib: Fix typo (regression from today).
10235         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10237 2019-06-20  Bruno Haible  <bruno@clisp.org>
10239         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10240         * lib/windows-thread.c: Include <errno.h>.
10241         * lib/windows-tls.c: Likewise.
10243 2019-06-20  Bruno Haible  <bruno@clisp.org>
10245         tss tests: Small improvement.
10246         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10248 2019-06-20  Bruno Haible  <bruno@clisp.org>
10250         threads: New module.
10251         * modules/threads: New file.
10253 2019-06-20  Bruno Haible  <bruno@clisp.org>
10255         tss: Add tests.
10256         * tests/test-tss.c: New file, based on tests/test-tls.c.
10257         * modules/tss-tests: New file.
10259 2019-06-20  Bruno Haible  <bruno@clisp.org>
10261         cnd: Add tests.
10262         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10263         * modules/cnd-tests: New file.
10265 2019-06-20  Bruno Haible  <bruno@clisp.org>
10267         mtx: Add tests.
10268         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10269         * tests/test-call_once.c: New file, based on tests/test-once.c.
10270         * modules/mtx-tests: New file.
10272 2019-06-20  Bruno Haible  <bruno@clisp.org>
10274         thrd: Add tests.
10275         * tests/test-thrd_create.c: New file, based on
10276         tests/test-thread_create.c.
10277         * tests/test-thrd_current.c: New file, based on
10278         tests/test-thread_self.c.
10279         * modules/thrd-tests: New file.
10281 2019-06-20  Bruno Haible  <bruno@clisp.org>
10283         tss: New module.
10284         * lib/tss.c: New file.
10285         * modules/tss: New file.
10286         * doc/posix-functions/tss_create.texi: Mention the new module.
10287         * doc/posix-functions/tss_set.texi: Likewise.
10288         * doc/posix-functions/tss_get.texi: Likewise.
10289         * doc/posix-functions/tss_delete.texi: Likewise.
10291 2019-06-20  Bruno Haible  <bruno@clisp.org>
10293         cnd: New module.
10294         * lib/cnd.c: New file.
10295         * modules/cnd: New file.
10296         * doc/posix-functions/cnd_init.texi: Mention the new module.
10297         * doc/posix-functions/cnd_wait.texi: Likewise.
10298         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10299         * doc/posix-functions/cnd_signal.texi: Likewise.
10300         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10301         * doc/posix-functions/cnd_destroy.texi: Likewise.
10303 2019-06-20  Bruno Haible  <bruno@clisp.org>
10305         mtx: New module.
10306         * lib/mtx.c: New file.
10307         * modules/mtx: New file.
10308         * doc/posix-functions/call_once.texi: Mention the new module.
10309         * doc/posix-functions/mtx_init.texi: Likewise.
10310         * doc/posix-functions/mtx_lock.texi: Likewise.
10311         * doc/posix-functions/mtx_trylock.texi: Likewise.
10312         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10313         * doc/posix-functions/mtx_unlock.texi: Likewise.
10314         * doc/posix-functions/mtx_destroy.texi: Likewise.
10316 2019-06-20  Bruno Haible  <bruno@clisp.org>
10318         thrd: New module.
10319         * lib/thrd.c: New file.
10320         * m4/thrd.m4: New file.
10321         * modules/thrd: New file.
10322         * doc/posix-functions/thrd_current.texi: Mention the new module.
10323         * doc/posix-functions/thrd_detach.texi: Likewise.
10324         * doc/posix-functions/thrd_equal.texi: Likewise.
10325         * doc/posix-functions/thrd_exit.texi: Likewise.
10326         * doc/posix-functions/thrd_sleep.texi: Likewise.
10327         * doc/posix-functions/thrd_yield.texi: Likewise.
10328         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10329         AIX bug.
10330         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10331         AIX and Solaris bugs.
10333 2019-06-20  Bruno Haible  <bruno@clisp.org>
10335         threads-h: Add tests.
10336         * tests/test-threads.c: New file.
10337         * modules/threads-h-tests: New file.
10338         * tests/test-threads-c++.cc: New file.
10339         * modules/threads-h-c++-tests: New file.
10341 2019-06-20  Bruno Haible  <bruno@clisp.org>
10343         threads-h: New module.
10344         * lib/threads.in.h: New file.
10345         * m4/threads.m4: New file.
10346         * m4/yield.m4 (gl_YIELD): Update comment.
10347         * modules/threads-h: New file.
10348         * modules/yields (configure.ac): Use AC_REQUIRE.
10349         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10350         bugs.
10352 2019-06-20  Bruno Haible  <bruno@clisp.org>
10354         windows-thread: New module.
10355         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10356         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10357         * lib/glthread/thread.h: Include windows-thread.h.
10358         (gl_thread_t): Define using glwthread_thread_t.
10359         (glthread_create): Define using glwthread_thread_create.
10360         (glthread_join): Define using glwthread_thread_join.
10361         (gl_thread_self): Define using glwthread_thread_self.
10362         (gl_thread_exit): Define using glwthread_thread_exit.
10363         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10364         gl_thread_exit_func): Remove declarations.
10365         * lib/glthread/thread.c (self_key): Remove variable.
10366         (do_init_self_key, init_self_key): Remove functions.
10367         (struct gl_thread_struct): Remove type.
10368         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10369         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10370         functions.
10371         * modules/windows-thread: New file.
10372         * modules/thread (Depends-on): Add windows-thread.
10374 2019-06-20  Bruno Haible  <bruno@clisp.org>
10376         windows-tls: New module.
10377         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10378         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10379         * lib/glthread/tls.h: Include windows-tls.h.
10380         (gl_tls_key_t): Define using glwthread_tls_key_t.
10381         * modules/windows-tls: New file.
10382         * modules/tls (Depends-on): Add windows-tls.
10384 2019-06-20  Bruno Haible  <bruno@clisp.org>
10386         windows-cond: New module.
10387         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10388         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10389         * lib/glthread/cond.h: Include windows-cond.h.
10390         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10391         (gl_cond_t): Define using glwthread_cond_t.
10392         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10393         (glthread_cond_init): Define using glwthread_cond_init.
10394         (glthread_cond_wait): Define using glwthread_cond_wait.
10395         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10396         (glthread_cond_signal): Define using glwthread_cond_signal.
10397         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10398         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10399         (glthread_cond_init_func, glthread_cond_wait_func,
10400         glthread_cond_timedwait_func, glthread_cond_signal_func,
10401         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10402         declarations.
10403         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10404         types.
10405         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10406         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10407         glthread_cond_init_func, glthread_cond_wait_func,
10408         glthread_cond_timedwait_func, glthread_cond_signal_func,
10409         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10410         functions.
10411         * modules/windows-cond: New file.
10412         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
10414 2019-06-20  Bruno Haible  <bruno@clisp.org>
10416         windows-timedrecmutex: New module.
10417         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
10418         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
10419         * modules/windows-timedrecmutex: New file.
10421 2019-06-20  Bruno Haible  <bruno@clisp.org>
10423         windows-timedmutex: New module.
10424         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
10425         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
10426         * modules/windows-timedmutex: New file.
10428 2019-06-20  Bruno Haible  <bruno@clisp.org>
10430         windows-recmutex: New module.
10431         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
10432         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
10433         * lib/glthread/lock.h: Include windows-recmutex.h.
10434         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
10435         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
10436         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
10437         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10438         (glthread_recursive_lock_unlock): Define using
10439         glwthread_recmutex_unlock.
10440         (glthread_recursive_lock_destroy): Define using
10441         glwthread_recmutex_destroy.
10442         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10443         glthread_recursive_lock_unlock_func,
10444         glthread_recursive_lock_destroy_func): Remove declarations.
10445         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10446         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10447         glthread_recursive_lock_destroy_func): Remove functions.
10448         * modules/windows-recmutex: New file.
10449         * modules/lock (Depends-on): Add windows-recmutex.
10451 2019-06-20  Bruno Haible  <bruno@clisp.org>
10453         windows-mutex: New module.
10454         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10455         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10456         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10457         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10458         (gl_spinlock_t): Remove type.
10459         (gl_lock_t): Define using glwthread_mutex_t.
10460         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10461         (glthread_lock_init): Define using glwthread_mutex_init.
10462         (glthread_lock_lock): Define using glwthread_mutex_lock.
10463         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10464         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10465         (glthread_lock_init_func, glthread_lock_lock_func,
10466         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10467         declarations.
10468         Use glwthread_spinlock_t instead of gl_spinlock_t.
10469         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10470         GLWTHREAD_SPINLOCK_INIT.
10471         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10472         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10473         functions.
10474         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10475         gl_spinlock_t.
10476         * modules/windows-mutex: New file.
10477         * modules/lock (Depends-on): Add windows-mutex.
10479 2019-06-20  Bruno Haible  <bruno@clisp.org>
10481         windows-once: New module.
10482         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10483         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10484         * lib/glthread/lock.h: Include windows-once.h.
10485         (gl_once_t): Define using glwthread_once_t.
10486         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10487         (glthread_once): Define using glwthread_once.
10488         (glthread_once_func): Remove declaration.
10489         * lib/glthread/lock.c (glthread_once_func): Remove function.
10490         * modules/windows-once: New file.
10491         * modules/lock (Depends-on): Add windows-once.
10493 2019-06-20  Bruno Haible  <bruno@clisp.org>
10495         lock, cond: Avoid possible counter wraparound on Windows.
10496         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10497         field of the guard unchanged if it was already positive.
10498         (glthread_rwlock_rdlock_func): Likewise.
10499         (glthread_rwlock_wrlock_func): Likewise.
10500         (glthread_recursive_lock_lock_func): Likewise.
10501         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10502         (glthread_cond_timedwait_func): Likewise.
10504 2019-06-20  Bruno Haible  <bruno@clisp.org>
10506         cond: Make glthread_cond_timedwait more reliable on Windows.
10507         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10508         condition variable before looking at the current time.
10510 2019-06-20  Bruno Haible  <bruno@clisp.org>
10512         pthread_mutex_timedlock: New module.
10513         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10514         new declaration.
10515         * lib/pthread_mutex_timedlock.c: New file.
10516         * m4/pthread_mutex_timedlock.m4: New file.
10517         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10518         whether pthread_mutex_timedlock is declared.
10519         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10520         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10521         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10522         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10523         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10524         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10525         * modules/pthread_mutex_timedlock: New file.
10526         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10527         module.
10529 2019-06-20  Bruno Haible  <bruno@clisp.org>
10531         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10532         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10533         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10534         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10535         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10536         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10537         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10538         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10539         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10540         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10542 2019-06-20  Bruno Haible  <bruno@clisp.org>
10544         tls tests: Small improvements.
10545         * tests/test-tls.c: Include <stdint.h>.
10546         (worker_thread): Avoid gcc warning on 64-bit mingw.
10547         (test_tls): Pass a different id to each thread.
10548         * modules/tls-tests (Depends-on): Add stdint.
10550 2019-06-20  Bruno Haible  <bruno@clisp.org>
10552         cond tests: Simplify.
10553         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10555 2019-06-20  Bruno Haible  <bruno@clisp.org>
10557         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10558         * tests/test-lock.c (test_once): Don't reference fire_signal if
10559         !ENABLE_LOCKING.
10561 2019-06-19  Bruno Haible  <bruno@clisp.org>
10563         nanosleep: Relicense under LGPLv2+.
10564         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10565         * modules/nanosleep (License): Change to LGPLv2+.
10567 2019-06-19  Bruno Haible  <bruno@clisp.org>
10569         Reorder pieces of header in perl scripts.
10570         The desired order is
10571         - Prologue part 1 (2 lines with #!)
10572         - Program short description
10573         - Copyright and license notice
10574         - Written-by notice
10575         - Program short description (optional)
10576         - Program long description (optional)
10577         - Prologue part 2
10578         - Time stamp
10579         - Code
10580         Reported by Paul Eggert.
10581         * build-aux/announce-gen: Reorder header.
10582         * build-aux/gitlog-to-changelog: Likewise.
10583         * build-aux/useless-if-before-free: Likewise.
10584         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10585         description.
10586         * build-aux/update-copyright: Likewise. Add short description. Bump
10587         time-stamp-line-limit to 200.
10589 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10591         verify-tests: work around xlc bug
10592         Problem reported by Bruno Haible in:
10593         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10594         * tests/test-verify.c (item): Move the arithmetic inside the
10595         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10597 2019-06-16  Bruno Haible  <bruno@clisp.org>
10599         Restore Emacs time-stamp hook applicability.
10600         Reported by Darshit Shah <darnir@gnu.org>.
10601         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10602         * build-aux/announce-gen: Likewise.
10603         * build-aux/gitlog-to-changelog: Likewise.
10604         * build-aux/prefix-gnulib-mk: Likewise.
10605         * build-aux/update-copyright: Likewise.
10607 2019-06-15  Bruno Haible  <bruno@clisp.org>
10609         Fix scripts to have valid executable format on Alpine Linux.
10610         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10611         Idea by Paul Eggert.
10612         * build-aux/useless-if-before-free: Use a prologue that starts with
10613         '#!/bin/sh'.
10614         * build-aux/announce-gen: Likewise.
10615         * build-aux/gitlog-to-changelog: Likewise.
10616         * build-aux/prefix-gnulib-mk: Likewise.
10617         * build-aux/update-copyright: Likewise.
10618         * tests/test-update-copyright.sh: Update test program accordingly.
10620 2019-06-10  Bruno Haible  <bruno@clisp.org>
10622         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10623         Reported by Nikita Ermakov <arei@altlinux.org> in
10624         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10625         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10626         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10628 2019-06-10  Bruno Haible  <bruno@clisp.org>
10630         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10631         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10632         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10633         a copy of the path argument.
10634         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10635         it.
10637 2019-06-10  Bruno Haible  <bruno@clisp.org>
10639         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10640         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10641         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10642         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10643         a copy of the path argument.
10644         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10645         it.
10647 2019-06-10  Bruno Haible  <bruno@clisp.org>
10649         posix_spawn_file_actions_addfchdir: Add tests.
10650         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10651         * tests/test-posix_spawn5.c: New file.
10652         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10654 2019-06-10  Bruno Haible  <bruno@clisp.org>
10656         posix_spawn_file_actions_addfchdir: New module.
10657         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10658         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10659         union member 'fchdir_action'.
10660         * lib/spawn_faction_addfchdir.c: New file.
10661         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10662         * m4/posix_spawn_faction_addfchdir.m4: New file.
10663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10664         'posix_spawn_file_actions_addfchdir' is present and whether
10665         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10666         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10667         posix_spawn_file_actions_addfchdir is declared.
10668         (gl_SPAWN_H_DEFAULTS): Initialize
10669         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10670         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10671         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10672         * modules/spawn (Makefile.am): Substitute
10673         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10674         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10675         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10676         * modules/posix_spawn_file_actions_addfchdir: New file.
10677         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10678         signature.
10679         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10680         * doc/posix-functions/posix_spawnp.texi: Likewise.
10681         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10682         Likewise.
10684 2019-06-10  Bruno Haible  <bruno@clisp.org>
10686         doc: Document existence of posix_spawn_file_actions_addchdir module.
10687         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10688         the posix_spawn_file_actions_addchdir module.
10690 2019-06-10  Bruno Haible  <bruno@clisp.org>
10692         posix_spawn-internal: Fix module description.
10693         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10694         from here...
10695         * modules/posix_spawnp (configure.ac): ... and here...
10696         * modules/posix_spawn-internal (configure.ac): ... to here.
10698 2019-06-10  Bruno Haible  <bruno@clisp.org>
10700         doc: Update and improve documentation of glibc functions.
10701         This is a series of commits that
10702         - updates the documentation to the state of glibc 2.29,
10703         - adds references to Linux man pages and glibc documentation,
10704         - marks Linux specific functions as such.
10705         These are the commits:
10706         doc: Update after removal of crypt functions from glibc 2.28.
10707         doc: Remove mention of function vm86 (does not exist on x86_64).
10708         doc: Remove mention of functions that are gone from glibc.
10709         doc: Mention that glibc no longer provides h_errno.
10710         doc: Mention the availability of specific functions in glibc versions.
10711         doc: Mention eaccess.
10712         doc: Add references to Linux man pages.
10713         doc: Add references to glibc documentation.
10714         doc: Mention inotify_* functions.
10715         doc: Mention ppoll.
10716         doc: Mention sched_getcpu.
10717         doc: Mention sync_file_range.
10718         doc: Mention epoll_pwait.
10719         doc: Mention eventfd, eventfd_read, eventfd_write.
10720         doc: Mention signalfd.
10721         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10722         doc: Mention epoll_create1.
10723         doc: Mention getauxval.
10724         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10725         doc: Mention nextdown, nextup.
10726         doc: Mention more ISO TS 18661-1 <math.h> functions.
10727         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10728         doc: Mention getrandom, getentropy.
10729         doc: Mention strfromf, strfromd, strfroml.
10730         doc: Mention preadv2, pwritev2.
10731         doc: Mention copy_file_range.
10732         doc: Mention memfd_create.
10733         doc: Mention mlock2.
10734         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10735         doc: Mention more ISO TS 18661-1 <math.h> functions.
10736         doc: Mention renameat2.
10737         doc: Mention statx.
10738         doc: Mention the ISO C11 multithreading header and functions.
10739         doc: Mention getcpu.
10740         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10741         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10742         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10743         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10744         doc: Some glibc functions also exist on Solaris 11.
10745         doc: Some glibc functions also exist on Solaris 11.4.
10746         doc: Some glibc functions also exist on FreeBSD.
10747         doc: Some glibc functions also exist on BeOS.
10748         doc: Some glibc functions also exist on Haiku.
10749         doc: Mark functions which exist only on Linux.
10750         doc: Mark functions which exist only on Linux and illumos.
10752 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10754         copy-file: fix typo
10755         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10757         copy-file-range: simplify into a stub
10758         Based on a comment by Florian Weimer in:
10759         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10760         It turns out that Emacs (which will use this module) won’t need an
10761         emulation and I suspect other programs won’t either, because these
10762         programs will need to fall back on read+write anyway.  Perhaps I
10763         am wrong and other programs will be able to use an emulation; if
10764         so, this patch can be reverted.
10765         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10766         Just call it copy_file_range.
10767         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10768         Check via AC_LINK_IFELSE.
10769         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10771 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10773         copy-file: prefer copy_file_range
10774         * lib/copy-file.c: Do not include xalloc.h.
10775         (qcopy_file_preserving): Allocate a buffer only if
10776         copy_file_range does not suffice.  If the allocation fails
10777         don't give up; just use a small stack-based buffer.
10778         Prefer copy_file_range if it works.
10779         * modules/copy-file (Depends-on): Add copy-file-range.
10780         Remove xalloc.
10782         copy-file-range: new module
10783         * MODULES.html.sh: Add copy-file-range.
10784         * lib/copy-file-range.c, m4/copy-file-range.m4:
10785         * modules/copy-file-range: New files.
10786         * lib/unistd.in.h (copy_file_range): Declare.
10787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10788         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10789         * modules/unistd (unistd.h): Substitute them.
10791 2019-05-28  Bruno Haible  <bruno@clisp.org>
10793         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10794         Reported by KO Myung-Hun <komh78@gmail.com> in
10795         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10796         * lib/binary-io.h (__gl_setmode_check): Remove function.
10797         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10798         * lib/binary-io.c (__gl_setmode_check): Remove function.
10799         (set_binary_mode): Define here on DJGPP and EMX. Inline
10800         __gl_setmode_check. In case of a tty, don't return an error code.
10802 2019-05-28  James Youngman  <jay@gnu.org>
10804         dirent-safer: Make opendir_safer usable from C++.
10805         * lib/dirent-safer.h: use extern "C".
10807 2019-05-28  James Youngman  <jay@gnu.org>
10809         canonicalize: Make canonicalize_filename_mode usable from C++.
10810         * lib/canonicalize.h: use extern "C".
10812 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10814         prefix-gnulib-mk: Fix CPPFLAGS migration.
10815         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10816         _a part of the library name.
10818 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10820         flexmember: update comments again
10821         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10823         flexmember: update comment
10824         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10826 2019-05-20  Bruno Haible  <bruno@clisp.org>
10828         setlocale: Improve fallback on macOS.
10829         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10830         invocation.
10831         (locales_with_principal_territory): New array.
10832         (langcmp, get_main_locale_with_same_language): New functions.
10833         (locales_with_principal_language): New array.
10834         (terrcmp, get_main_locale_with_same_territory): New functions.
10835         (rpl_setlocale): When setlocale_single failed, try again with a locale
10836         that is more likely to exist. Don't warn if the environment variable
10837         SETLOCALE_VERBOSE is not set.
10839 2019-05-19  Bruno Haible  <bruno@clisp.org>
10841         localename: Fix default on macOS.
10842         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10843         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10844         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10845         HAVE_CFLOCALECOPYCURRENT.
10846         * lib/localename.h (gl_locale_name_default): Update.
10848 2019-05-19  Karl Berry  <karl@freefriends.org>
10850         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10851         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10852         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10854 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10856         maintainer-makefile: catch uses of $< in non-implicit rules
10857         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10859 2019-05-18  Bruno Haible  <bruno@clisp.org>
10861         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10862         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10863         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10864         gl_use_threads accordingly.
10866 2019-05-18  Bruno Haible  <bruno@clisp.org>
10868         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10869         Reported by Tim Rühsen in
10870         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10871         and Michele Locati in
10872         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10874         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10875         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10876         in use and regardless which threads API is chosen.
10878 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10880         close-stream, closein, closeout: simplify
10881         I noticed this opportunity for simplification while drafting a
10882         new, related module that I haven’t had time to finish yet.
10883         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10884         * modules/close-stream (Files): Remove m4/close-stream.m4.
10885         (configure.ac): Omit gl_CLOSE_STREAM.
10886         * modules/closein (Files): Remove m4/closein.m4
10887         (configure.ac): Omit gl_CLOSEIN.
10888         * modules/closeout (Files): Remove m4/closeout.m4.
10889         (configure.ac): Omit gl_CLOSEOUT.
10891 2019-05-12  Bruno Haible  <bruno@clisp.org>
10893         libtool-next-version: New program.
10894         * build-aux/libtool-next-version: New file.
10896 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10897             Bruno Haible  <bruno@clisp.org>
10899         version-etc: Ease translation.
10900         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10901         URLs and formatting newlines out of translatable string.
10903 2019-05-11  Bruno Haible  <bruno@clisp.org>
10905         gnupload: Explain how to create symlinks.
10906         * build-aux/gnupload (usage): Add an example that creates symlinks.
10908 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10910         fpucw: port to gcc -pedantic
10911         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10912         Use __extension__ if using ({ ... }).
10914         crypto/af_alg: port to strict C compilers
10915         * lib/af_alg.c: Include af_alg.h regardless, so that the
10916         compilation unit is nonempty.
10918 2019-05-10  Bruno Haible  <bruno@clisp.org>
10920         base64: Avoid false positive warning from Coverity.
10921         Reported by Kamil Dudka <kdudka@redhat.com>.
10922         Idea by Paul Eggert.
10923         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10924         '& 0x3f' to the array index expressions. This convinces Coverity that
10925         there is no out-of-bounds array reference, regardless of the input.
10927 2019-05-09  Bruno Haible  <bruno@clisp.org>
10929         gettext: Update to gettext 0.20.
10930         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10931         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10932         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10933         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10934         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10935         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10936         (configure.ac): Request infrastructure compatible with gettext 0.20.
10937         * m4/glibc2.m4: Remove file.
10938         * m4/intdiv0.m4: Remove file.
10939         * m4/intl.m4: Remove file.
10940         * m4/intldir.m4: Remove file.
10941         * m4/intmax.m4: Remove file.
10942         * m4/printf-posix.m4: Remove file.
10943         * m4/uintmax_t.m4: Remove file.
10944         * m4/gettext.m4: Update from gettext 0.20.
10945         * m4/po.m4: Likewise.
10947 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10949         verify: remove verify_true
10950         * NEWS: Mention this.
10951         * lib/verify.h (verify_true): Remove.
10952         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10954         Support C2X and C++17 static_assert
10955         C2X and C++17 finally added support for a simple, single-argument
10956         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10957         doing back in 2005.  Implement static_assert on older platforms.
10958         The only remaining advantage of ‘verify’ is a shorter name.
10959         * doc/posix-headers/assert.texi (assert.h):
10960         * doc/verify.texi (Compile-time Assertions):
10961         Modernize for C2X and C++17.
10962         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10963         New macros.
10964         (_GL_HAVE__STATIC_ASSERT): Remove.
10965         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10966         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10967         string.  All callers changed.
10968         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10969         are used.  All callers changed.
10970         (_Static_assert): Allow either 1 or 2 args, and define if
10971         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10972         !_GL_HAVE__STATIC_ASSERT.
10973         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10974         of defining if !_GL_HAVE_STATIC_ASSERT.
10975         (verify_expr, verify): Don’t bother trying to copy the expression
10976         into the diagnostic, since 1-argument static_assert doesn’t.
10977         (verify): Prefer 1-argument _Static_assert if it works.
10978         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10980 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10982         Fix _GL_HAVE__STATIC_ASSERT typo
10983         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10984         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10986 2019-05-05  Bruno Haible  <bruno@clisp.org>
10988         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10989         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10990         via Akim Demaille <akim.demaille@gmail.com>.
10991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10992         en_US.UTF-8 locale, since that is more likely to be present than an
10993         fr_FR.UTF-8 locale.
10994         * tests/test-wcwidth.c (main): Check the width of U+2202.
10995         * doc/posix-functions/wcwidth.texi: Mention the issue.
10997 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10999         Port manywarnings to GCC 9
11000         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11001         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11002         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11003         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11004         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11005         --help=warnings output.
11006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11007         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11008         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11010 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11012         Sync lib/mktime-internal.h from glibc
11013         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11014         * lib/mktime-internal.h: Autoupdate.
11016 2019-04-28  Bruno Haible  <bruno@clisp.org>
11018         tls tests: Prevent that the test takes too long.
11019         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11020         (main): Let the test fail if it takes more than 10 minutes.
11021         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11023 2019-04-27  Bruno Haible  <bruno@clisp.org>
11025         lock tests: Prevent that the test takes too long.
11026         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11027         (main): Let the test fail if it takes more than 10 minutes.
11028         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11030 2019-04-27  Bruno Haible  <bruno@clisp.org>
11032         localename: Fix crash on mingw (regression from 2018-11-23).
11033         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11034         locale name that is null.
11036 2019-04-27  Bruno Haible  <bruno@clisp.org>
11038         Fix gcc warnings on 64-bit mode mingw.
11039         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11040         * lib/gl_array_list.c: Likewise.
11041         * lib/gl_array_map.c: Likewise.
11042         * lib/gl_array_set.c: Likewise.
11043         * lib/gl_carray_list.c: Likewise.
11044         * lib/gl_sublist.c: Likewise.
11045         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11046         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11047         * lib/gl_hash_map.c (uintptr_t): Likewise.
11048         * lib/gl_hash_set.c (uintptr_t): Likewise.
11049         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11050         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11051         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11052         * lib/iconv.c (uintptr_t): Likewise.
11053         * lib/iconv_close.c (uintptr_t): Likewise.
11054         * tests/test-lock.c: Include <stdint.h>.
11055         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11056         'long'.
11057         * modules/clean-temp (Depends-on): Add stdint.
11058         * modules/array-list (Depends-on): Likewise.
11059         * modules/array-map (Depends-on): Likewise.
11060         * modules/array-set (Depends-on): Likewise.
11061         * modules/carray-list (Depends-on): Likewise.
11062         * modules/sublist (Depends-on): Likewise.
11063         * modules/lock-tests (Depends-on): Likewise.
11065 2019-04-27  Bruno Haible  <bruno@clisp.org>
11067         error: Tweak indentation.
11068         * lib/error.c: Correct indentation.
11070 2019-04-27  Bruno Haible  <bruno@clisp.org>
11072         term-style-control: Fix gcc warning on mingw.
11073         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11074         of i.
11076 2019-04-26  Bruno Haible  <bruno@clisp.org>
11078         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11079         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11081 2019-04-26  Bruno Haible  <bruno@clisp.org>
11083         relocatable-prog: Fix gcc warning on mingw.
11084         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11085         on EMX.
11087 2019-04-02  Bruno Haible  <bruno@clisp.org>
11089         gitsub.sh: New file.
11090         * top/gitsub.sh: New file.
11092 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11094         argmatch: use void* for raw memory pointers
11095         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11096         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11097         to "values", keep char* for strings.
11099 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11101         prefix-gnulib-mk: fix the support for gnulib-po
11102         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11103         Don't touch HAVE_* variables.
11104         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11106 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11108         di-set: allow free with 'ino_map' being NULL.
11109         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11110         is NULL.  Bug introduced in commit 3703dbbe88dd.
11111         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11112         as a test.
11114 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11116         * lib/str-two-way.h: Fix comment typo.
11118 2019-04-13  Bruno Haible  <bruno@clisp.org>
11120         x-to-1: Restore ability to use original calling convention.
11121         * build-aux/x-to-1.in: Add comments. Accept the original form of
11122         HELP2MAN argument as well as the form expected since 2012-12-12.
11124 2019-04-13  Bruno Haible  <bruno@clisp.org>
11126         x-to-1: Avoid failure due to missing perl modules.
11127         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11128         needs are installed.
11130 2019-04-13  Bruno Haible  <bruno@clisp.org>
11132         openmp-init: New module.
11133         * modules/openmp-init: New file.
11134         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11135         the changes from 2019-04-09.
11137 2019-04-12  Bruno Haible  <bruno@clisp.org>
11139         signbit: Fix compilation error when gnulib's math.h exists twice.
11140         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11142 2019-04-12  Bruno Haible  <bruno@clisp.org>
11144         openmp: Fix compilation error on platforms without OpenMP.
11145         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11147 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11149         mountlist: make parsing /proc/self/mountinfo more robust
11150         Cater for the following issues with mountinfo parsing (the first
11151         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11152         in <https://bugs.gnu.org/35137>).
11153         1. The fields source, target, mntroot and fstype may contain characters
11154         like '\r'; sscanf(3) fails to read such values with the %s format
11155         specifier because it would stop at such characters.
11156         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11157         The only true separator in that file is the ' ' character.
11158         2. The source field may be an empty string, which happens e.g. with
11159         "mount -t tmpfs '' /target".
11160         3. The fstype field may contain mangled characters as well which need
11161         unescaping.
11162         * lib/mountlist.c (terminate_at_blank): Add utility function.
11163         (read_file_system_list): In the block trying to read the mountinfo file,
11164         avoid using sscanf(3) with %s format; instead, parse the above fields
11165         separated by spaces one by one.
11166         This also handles the case when the source field is an empty string.
11167         Unescape the fstype field.
11169 2019-04-09  Bruno Haible  <bruno@clisp.org>
11171         openmp: Add workaround for 32-bit programs on AIX.
11172         * lib/omp.in.h: New file.
11173         * lib/omp-init.c: New file, based on lib/nproc.c.
11174         * m4/omp_h.m4: New file.
11175         * modules/openmp (Files): Add them.
11176         (Depends-on): Add include_next, c-ctype, setenv.
11177         (configure.ac): Invoke gl_OMP_H.
11178         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11179         (Include): Mention <omp.h>.
11181 2019-04-09  Bruno Haible  <bruno@clisp.org>
11183         nproc: Fix return value for privileged processes.
11184         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11185         getpid().
11187 2019-04-07  Bruno Haible  <bruno@clisp.org>
11189         Add copyright notices in several files.
11190         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11191         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11192         * lib/libunistring.valgrind: Likewise.
11193         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11194         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11195         * lib/memchr.valgrind: Likewise.
11196         * lib/memchr2.valgrind: Likewise.
11197         * lib/rawmemchr.valgrind: Likewise.
11198         * lib/relocatable.valgrind: Likewise.
11199         * lib/strchrnul.valgrind: Likewise.
11201 2019-03-25  Bruno Haible  <bruno@clisp.org>
11203         term-style-control tests: Fix link error.
11204         Reported by Tom G. Christensen in
11205         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11206         * modules/term-style-control-tests (Makefile.am): Link
11207         test-term-style-control-hello and test-term-style-control-yes against
11208         LIBINTL.
11210 2019-03-24  Bruno Haible  <bruno@clisp.org>
11212         term-style-control: Add tests.
11213         * tests/test-term-style-control-hello.c: New file.
11214         * tests/test-term-style-control-yes.c: New file.
11215         * modules/term-style-control-tests: New file.
11217         term-style-control: New module.
11218         * lib/term-style-control.h: New file, based on libtextstyle's
11219         term-ostream.oo.h and term-ostream.oo.c.
11220         * lib/term-style-control.c: New file, based on libtextstyle's
11221         term-ostream.oo.c.
11222         * modules/term-style-control: New file.
11224 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11226         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11227         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11228         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11230 2019-03-23  Bruno Haible  <bruno@clisp.org>
11232         Support cross-compilation to musl libc.
11233         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11234         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11235         musl libc.
11236         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11237         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11238         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11239         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11240         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11241         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11243         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11244         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11245         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11246         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11248         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11249         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11250         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11251         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11252         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11253         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11255         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11256         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11258         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11259         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11261         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11262         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11263         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11264         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11265         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11266         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11267         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11268         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11269         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11270         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11271         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11272         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11273         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11274         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11275         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11276         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11277         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11278         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11280         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11281         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11282         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11283         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11284         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11285         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11286         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11287         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11288         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11289         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11290         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11291         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11292         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11293         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11294         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11295         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11296         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11297         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11299         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11300         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11301         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11303         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11304         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11305         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11306         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11307         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11308         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11309         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11310         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11311         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11312         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11315 2019-03-23  Bruno Haible  <bruno@clisp.org>
11317         posix_spawn_file_actions_*: Document musl libc bugs.
11318         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11319         the bug.
11320         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11321         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11322         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11323         cross-compiling to a musl system, guess no.
11324         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11325         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11327 2019-03-23  Bruno Haible  <bruno@clisp.org>
11329         futimens: Document musl libc bug.
11330         * doc/posix-functions/futimens.texi: Mention the bug.
11331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11332         cross-compiling, guess no on glibc and musl systems.
11334 2019-03-23  Bruno Haible  <bruno@clisp.org>
11336         Clarify that cross-compilation guesses are guesses.
11337         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11338         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11339         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11340         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11341         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11342         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11343         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11344         gl_cv_glob_lists_symlinks.
11345         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11346         'guessing ' to ac_cv_func_malloc_0_nonnull.
11347         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11348         'guessing ' to ac_cv_func_realloc_0_nonnull.
11349         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11350         'guessing ' to gl_cv_func_poll.
11351         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11352         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11353         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11355 2019-03-23  Bruno Haible  <bruno@clisp.org>
11357         strtold: Fix typo.
11358         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11360 2019-03-23  Bruno Haible  <bruno@clisp.org>
11362         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11363         Reported by Akim Demaille.
11364         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11365         [[noreturn]] would not work, use _Noreturn instead.
11367 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11369         libtextstyle-optional: Fix compiler warnings.
11370         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11371         as unused.
11373 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11375         bitset: fix memory leaks
11376         Reported by Bruno Haible.
11377         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11378         * lib/bitset/vector.c (vbitset_free): New.
11379         (vbitset_vtable): Use it.
11381 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11383         bitset: minor changes
11384         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11385         * lib/bitset/table.c: Formatting changes.
11386         Remove useless braces.
11387         Prefer using else in cascades of if/else-if with returns.
11388         * lib/bitset/vector.c: Reduce scopes.
11390 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11392         bitset: expose bitset_resize
11393         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11394         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11395         (main): Use a variable bitset as reference, since fixed does not support resize.
11397 2019-03-19  Bruno Haible  <bruno@clisp.org>
11399         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11400         Reported by Akim Demaille.
11401         * doc/noreturn.texi: New file.
11402         * doc/gnulib.texi: Include it.
11404 2019-03-19  Bruno Haible  <bruno@clisp.org>
11406         doc: Document how to use 'static inline'.
11407         * doc/static-inline.texi: New file.
11408         * doc/gnulib.texi: Include it.
11410 2019-03-19  Bruno Haible  <bruno@clisp.org>
11412         libtextstyle-optional: Add tests.
11413         * tests/test-libtextstyle.c: New file, based on libtextstyle's
11414         adhoc-tests/hello.c.
11415         * tests/test-libtextstyle-default.css: New file, copied from
11416         libtextstyle's adhoc-tests/hello-default.css.
11417         * modules/libtextstyle-optional-tests: New file.
11419         libtextstyle-optional: New module.
11420         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
11421         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
11422         * modules/libtextstyle-optional: New file.
11424 2019-03-19  Bruno Haible  <bruno@clisp.org>
11426         c-stack: Make signal handlers more reliable.
11427         * lib/c-stack.c (progname): New variable.
11428         (die): Use it.
11429         (c_stack_action): Initialize it.
11430         (segv_handler): Save and restore errno.
11432 2019-03-19  Bruno Haible  <bruno@clisp.org>
11434         Help making signal handlers more reliable.
11435         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
11436         _GL_ASYNC_SAFE into config.h.
11437         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11438         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11439         argument.
11440         * lib/fatal-signal.c (action_t, uninstall_handlers,
11441         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11442         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11443         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11444         _GL_ASYNC_SAFE.
11445         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11446         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11448 2019-03-18  Bruno Haible  <bruno@clisp.org>
11450         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11451         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11452         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11454 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11456         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11457         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11458         GCC 4.8.
11460 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11462         fts: minor simplification
11463         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11465 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11467         bitset, timevar: Depend on c99.
11468         Reported by Bruno Haible.
11469         * modules/bitset, modules/timevar (Depends-on): Add c99.
11471 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11473         bitset: a bit (...) more tests
11474         * tests/test-bitset.c (check_attributes): Check zero and ones.
11476 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11478         bitset: fix overflows.
11479         Reported by Bruno Haible.
11480         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11481         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11482         the bit in the array of bitset_word, so be sure to take its modulo
11483         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11484         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11486 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11488         bitset: style changes.
11489         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11490         Formatting changes.
11491         (tbitset_list): Reduce scopes.
11493 2019-03-16  Bruno Haible  <bruno@clisp.org>
11495         fatal-signal: Pass the signal number to the action.
11496         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11497         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11498         (fatal_signal_handler): Pass the signal number to the action.
11499         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11500         signal number as parameter.
11501         (create_temp_dir): Update.
11502         * lib/wait-process.c (cleanup_slaves_action): New function.
11503         (register_slave_subprocess): Update at_fatal_signal invocation.
11504         * NEWS: Mention the change.
11506 2019-03-16  Bruno Haible  <bruno@clisp.org>
11508         fatal-signal: Add function that lists the fatal signals.
11509         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11510         * lib/fatal-signal.c (get_fatal_signals): New function.
11512 2019-03-14  Bruno Haible  <bruno@clisp.org>
11514         isatty: Make it return true in Cygwin consoles on native Windows.
11515         * lib/isatty.c: Include <string.h>.
11516         (GetProcAddress): New macro.
11517         (GetNamedPipeClientProcessIdFuncType): New type.
11518         (GetNamedPipeClientProcessIdFunc): New variable.
11519         (QueryFullProcessImageNameFuncType): New type.
11520         (QueryFullProcessImageNameFunc): New variable.
11521         (initialized): New variable.
11522         (initialize): New function.
11523         (IsCygwinConsoleHandle): New function.
11524         (isatty): Invoke it.
11525         * doc/posix-functions/isatty.texi: Mention the issue.
11527 2019-03-14  Bruno Haible  <bruno@clisp.org>
11529         all: Update URLs to msdn.microsoft.com.
11530         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11531         was moved to docs.microsoft.com.
11533 2019-03-13  Bruno Haible  <bruno@clisp.org>
11535         gnulib-tool: Clarify the coding style.
11536         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11537         * gnulib-tool: Add comment about coding style.
11539 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11541         strtod: fix clash with strtold
11542         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11543         * lib/strtod.c (compute_minus_zero, minus_zero):
11544         Simplify by remving the macro / external variable,
11545         and having just a function.  User changed.  This avoids
11546         the need for an external variable that might clash.
11548 2019-03-10  Bruno Haible  <bruno@clisp.org>
11550         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11551         Reported by Eli Zaretskii <eliz@gnu.org>.
11552         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11553         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11554         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11556 2019-03-10  Bruno Haible  <bruno@clisp.org>
11558         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11559         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11560         is in use.
11561         * tests/test-printf-posix2.c: Likewise.
11563 2019-03-10  Bruno Haible  <bruno@clisp.org>
11565         uninorm tests: Free allocated memory.
11566         * tests/uninorm/test-u32-normalize-big.h
11567         (struct normalization_test_file): Remove 'const' from allocated member.
11568         (free_normalization_test_file): New declaration.
11569         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11570         memory.
11571         (free_normalization_test_file): New function.
11572         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11573         'struct normalization_test_file' contents.
11574         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11575         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11576         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11578 2019-03-10  Bruno Haible  <bruno@clisp.org>
11580         di-set: Fix memory leak.
11581         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11582         not free().
11584 2019-03-10  Bruno Haible  <bruno@clisp.org>
11586         tests: Free allocated memory.
11587         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11588         * tests/test-astrxfrm.c (main): Free allocated memory.
11589         * tests/test-bitset.c (compare, check_attributes): Free allocated
11590         bitsets.
11591         * tests/test-filenamecat.c (main): Free allocated memory.
11592         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11593         * tests/test-freadptr.c (main): Likewise.
11594         * tests/test-freadptr2.c (main): Free allocated memory.
11595         * tests/test-freadseek.c (main): Likewise.
11596         * tests/test-gc-arcfour.c (main): Close allocated context.
11597         * tests/test-gc-arctwo.c (main): Likewise.
11598         * tests/test-gc-des.c (main): Close all allocated contexts.
11599         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11600         * tests/test-pipe-filter-ii1.c (main): Likewise.
11601         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11602         allocated file actions.
11603         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11604         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11605         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11606         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11607         * tests/test-strfmon_l.c (main): Free allocated locales.
11608         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11609         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11610         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11611         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11612         * tests/unistr/test-chr.h (main): Free input32.
11613         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11615 2019-03-10  Bruno Haible  <bruno@clisp.org>
11617         tests: Prepare for using valgrind.
11618         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11619         * tests/*/*.sh: Likewise.
11620         * tests/test-freadptr.c (main): Update accordingly.
11621         * tests/test-freadseek.c (main): Likewise.
11623 2019-03-09  Bruno Haible  <bruno@clisp.org>
11625         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11626         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11627         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11628         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11629         before exiting.
11631 2019-03-09  Jim Meyering  <meyering@fb.com>
11633         test-userspec.c: don't print NULL
11634         * tests/test-userspec.c (main): A test release of gcc,
11635         9.0.1 20190310, warned that this test would attempt to
11636         print a NULL pointer via a %s printf format.  Fix that
11637         and remove the unnecessary preceding "!diag" conjunct.
11638         Also add a comment.
11640 2019-03-03  Bruno Haible  <bruno@clisp.org>
11642         getloadavg: Write NULL for the null pointer.
11643         Reported by Michal Privoznik <mprivozn@redhat.com>.
11644         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11646 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11648         alloca, tsearch-tests: Write NULL for the null pointer.
11649         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11650         * tests/test-tsearch.c (mangle_tree): Likewise.
11652 2019-03-09  Bruno Haible  <bruno@clisp.org>
11654         strfmon_l: Fix -fsanitize=address finding.
11655         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11656         <string.h>.
11657         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11658         (directive_t, directives_t): New types.
11659         (fmon_parse): New function.
11660         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11661         format string. Consume 'long double' arguments in places where the
11662         format string indicates so.
11663         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11665 2019-03-09  Bruno Haible  <bruno@clisp.org>
11667         crypto/des: Fix undefined behaviour.
11668         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11669         shift operations on 'int'.
11671 2019-03-09  Bruno Haible  <bruno@clisp.org>
11673         Fix undefined behaviour.
11674         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11675         'unsigned int', to avoid shift operations on 'int'.
11676         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11677         * tests/test-count-leading-zeros.c (main): Use a random number that has
11678         as many bits as TYPE, not only 2*15 or 2*31 bits.
11679         * tests/test-count-trailing-zeros.c (main): Likewise.
11680         * tests/test-count-one-bits.c (main): Likewise.
11681         * tests/test-memmem.c: Don't include "null-ptr.h".
11682         (main): Use zerosize_ptr() instead of null_ptr().
11683         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11685 2019-03-08  Bruno Haible  <bruno@clisp.org>
11687         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11688         Reported by Jeffrey Walton <noloader@gmail.com>.
11689         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11690         invoke memset with a zero size.
11691         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11692         Likewise.
11693         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11694         Adjust accordingly.
11696 2019-03-08  Bruno Haible  <bruno@clisp.org>
11698         unistr/*, uniconv/*: Fix undefined behaviour.
11699         Reported by Jeffrey Walton <noloader@gmail.com>.
11700         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11701         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11702         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11703         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11705 2019-03-08  Bruno Haible  <bruno@clisp.org>
11707         unistr/u8-cmp: Fix undefined behaviour.
11708         Reported by Jeffrey Walton <noloader@gmail.com>.
11709         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11711 2019-03-08  Bruno Haible  <bruno@clisp.org>
11713         unictype/numeric: Fix undefined behaviour.
11714         Reported by Jeffrey Walton <noloader@gmail.com>.
11715         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11716         on shift overflow, caught by "gcc -fsanitize=undefined".
11717         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11718         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11719         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11721 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11723         git-version-gen: fix --version copyright year
11724         * build-aux/git-version-gen, build-aux/move-if-change (version):
11725         --version output copyright year is now taken from script year,
11726         so that it no longer needs to be updated by hand.
11728 2019-03-04  Bruno Haible  <bruno@clisp.org>
11730         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11731         This approach supports relocatable installation of shared libraries
11732         which depend on other shared libraries from the same package.
11733         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11734         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11735         wrapper around the original LIBTOOL.
11736         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11737         token '@loader_path' instead of '$ORIGIN'.
11738         * build-aux/libtool-reloc: New file.
11739         * modules/relocatable-prog (Files): Add it.
11740         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11741         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11742         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11743         Makefile.am, not in configure.ac.
11745 2019-03-04  Bruno Haible  <bruno@clisp.org>
11747         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11748         * build-aux/install-reloc: Revert change.
11749         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11751 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11753         nstrftime: support the ‘+’ flag
11754         * lib/nstrftime.c (add, __strftime_internal):
11755         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11756         (__strftime_internal): New arg ‘width’.  All uses changed.
11757         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11759 2019-02-24  Bruno Haible  <bruno@clisp.org>
11761         relocatable-prog: Improve verbose output.
11762         * build-aux/install-reloc (func_verbose): Escape characters that would
11763         be interpreted by the shell.
11765 2019-02-24  Bruno Haible  <bruno@clisp.org>
11767         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11768         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11769         "sys/stat.h".
11770         * lib/lstat.c: Likewise.
11771         * lib/fstat.c: Likewise.
11772         * lib/fstatat.c: Likewise.
11774 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11776         long-options: add parse_gnu_standard_options_only
11777         Discussed in https://bugs.gnu.org/33468 .
11779         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11780         (parse_gnu_standard_options_only): Add function to process
11781         the GNU default options --help and --version and fail for
11782         any other unknown long or short option. See
11783         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11784         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11785         * modules/long-options (depends-on): Add stdbool, exitfail.
11786         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11787         syntax-check rule, add new function name.
11789 2019-02-23  Bruno Haible  <bruno@clisp.org>
11791         relocatable-prog: Update documentation.
11792         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11793         the recent changes.
11795 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11797         nstrftime: tweak arg order
11798         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11799         All callers changed.  Suggested by TAMUKI Shoichi in:
11800         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11802 2019-02-23  Bruno Haible  <bruno@clisp.org>
11804         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11805         Reported by Paul Smith <psmith@gnu.org>.
11806         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11807         (func_relativize): New function, from gnulib-tool.
11808         Handle mode 'macosx' through invocations of 'otool' and
11809         'install_name_tool'.
11810         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11811         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11812         'install-reloc' invocation with mode 'macosx'.
11814 2019-02-23  Bruno Haible  <bruno@clisp.org>
11816         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11817         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11818         Hurd with glibc >= 2.27.
11820 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11822         nstrftime: merge glibc strftime changes
11823         This incorporates:
11824         2019-02-11 Fix a few whitespace arrangement inconsistencies
11825         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11826         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11827         2019-01-11 strftime: use the "L_" macro with character literals
11828         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11829         callers changed.  Default width of %Ey is now 2.  This is needed
11830         for proper handling of Japanese dates starting on 2019-05-01.
11832 2019-02-19  Bruno Haible  <bruno@clisp.org>
11834         relocatable-prog: Use $ORIGIN trick on more platforms.
11835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11836         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11837         Solaris >= 10, Haiku. But don't use it on Android.
11838         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11839         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11841 2019-02-19  Bruno Haible  <bruno@clisp.org>
11843         progreloc: Speed up executable lookup on various platforms.
11844         * lib/progreloc.c: Include <errno.h>.
11845         (safe_read, full_read): New functions.
11846         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11847         prefer the information from the /proc file system to a PATH search.
11849 2019-02-19  Bruno Haible  <bruno@clisp.org>
11851         progreloc: Simplify code for Android.
11852         * lib/progreloc.c (executable_fd): Don't define on Android.
11853         (maybe_executable, find_executable): Don't use executable_fd on Android.
11855 2019-02-15  Bruno Haible  <bruno@clisp.org>
11857         gnulib-tool: Support --import with just a few tests, not --with-tests.
11858         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11859         'inctests' when generating files; use 'inctests' only for computing the
11860         transitive closure.
11862 2019-02-14  Bruno Haible  <bruno@clisp.org>
11864         gnulib-tool: Improve handling of multiple --local-dir options.
11865         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11866         options work.
11867         * gnulib-tool (func_path_prepend): Remove function.
11868         (func_path_foreach): Make IFS handling more robust.
11869         (local_gnulib_path): Collect --local-dir values using func_path_append,
11870         not func_path_prepend.
11871         (func_determine_path_separator): Make IFS handling more robust.
11872         (func_lookup_file_cb): New function.
11873         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11874         func_lookup_local_file. Apply the patches in the reverse order of their
11875         origin in $local_gnulib_path.
11876         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11877         * NEWS: Mention that the first --local-dir option is the one with
11878         highest priority.
11880 2019-02-10  Bruno Haible  <bruno@clisp.org>
11882         libtextstyle: New module.
11883         * m4/libtextstyle.m4: New file.
11884         * modules/libtextstyle: New file.
11886 2019-02-05  Bruno Haible  <bruno@clisp.org>
11888         declared.sh: Fix bug with variables of pointer type.
11889         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11890         before the symbol to be omitted if the preceding character is a '*'.
11892 2019-02-04  Bruno Haible  <bruno@clisp.org>
11894         Add script for running tests under valgrind.
11895         * build-aux/run-test: New file, from GNU libunistring.
11896         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11897         as well.
11899 2019-02-04  Bruno Haible  <bruno@clisp.org>
11901         declared.sh: Fix --version output.
11902         * build-aux/declared.sh (func_version): Update package name.
11904 2019-02-03  Bruno Haible  <bruno@clisp.org>
11906         Add script for determining the set of symbols to export from a library.
11907         * build-aux/declared.sh: New file, from GNU libunistring.
11908         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11909         Mention it.
11911 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11913         vla: add commentary about VLA_ELEMS
11914         * lib/vla.h (VLA_ELEMS): Add commentary,
11915         some inspired by Bruno Haible’s proposal in:
11916         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11918         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11919         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11920         assume the C99 signatures for strtod and strtold.  Programs that
11921         require stricter adherence to C99 should also use the strtod and
11922         strtold modules as needed, and we no longer need the
11923         HAVE_C99_STRTOLD macro.
11924         * NEWS: Mention this.
11925         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11926         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11927         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11928         (Files): Remove m4/c-strtod.m4.
11929         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11930         exists.
11932 2019-02-02  Bruno Haible  <bruno@clisp.org>
11934         fma: Improve code style.
11935         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11937 2019-02-02  Colin Watson  <cjwatson@debian.org>
11939         *-map tests: Fix compilation error.
11940         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11941         * tests/test-hash_map.c: Likewise.
11942         * tests/test-linkedhash_map.c: Likewise.
11944 2019-01-31  Bruno Haible  <bruno@clisp.org>
11946         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11947         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11948         GNULIB_defined_strtold_function): New macros.
11949         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11950         (STRTOD): Ignore HAVE_C99_STRTOLD.
11951         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11952         deemed buggy. But do use it on platforms where uselocale exists and is
11953         usable.
11954         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11955         deemed buggy. On platforms where uselocale exists and is usable, use
11956         uselocale and strtod/strtold.
11957         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11958         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11959         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11960         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11961         (Depends-on): Add strtod.
11962         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11963         (Depends-on): Add strtold.
11965 2019-01-31  Bruno Haible  <bruno@clisp.org>
11967         strtod, strtold: Use the locale's decimal point.
11968         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11969         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11970         (parse_number): Add a radixchar argument. Use it instead of '.'.
11971         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11972         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11973         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11974         * tests/test-strtod1.c: New file.
11975         * tests/test-strtod1.sh: New file.
11976         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11977         locale-fr.m4 and its dependencies.
11978         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11979         (Makefile.am): Arrange to compile test-strtod1.c and run
11980         test-strtod1.sh.
11981         * tests/test-strtold1.c: New file.
11982         * tests/test-strtold1.sh: New file.
11983         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11984         locale-fr.m4 and its dependencies.
11985         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11986         (Makefile.am): Arrange to compile test-strtold1.c and run
11987         test-strtold1.sh.
11989 2019-01-31  Bruno Haible  <bruno@clisp.org>
11991         strtod, strtold tests: Simplify tests.
11992         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11993         * tests/test-strtold.c (main): Likewise.
11995 2019-01-31  Bruno Haible  <bruno@clisp.org>
11997         strtod, strtold: Avoid unnecessary rounding errors.
11998         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11999         decimal to DOUBLE conversion.
12001 2019-01-31  Bruno Haible  <bruno@clisp.org>
12003         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12004         * lib/strtod.c (STRTOD): When there is an extra character after the
12005         exponent marker 'p', reparse the number.
12006         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12007         * doc/posix-functions/strtold.texi: Likewise.
12009 2019-01-29  Bruno Haible  <bruno@clisp.org>
12011         strtold: Add tests.
12012         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12013         * modules/strtold-tests: New file.
12015 2019-01-29  Bruno Haible  <bruno@clisp.org>
12017         strtold: New module.
12018         * lib/stdlib.in.h (strtold): New declaration.
12019         * lib/strtold.c: New file.
12020         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12021         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12022         USE_LDEXP): New macros.
12023         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12024         USE_LONG_DOUBLE.
12025         (underlying_strtod): Remove function. Replace with some macros.
12026         Re-add the code for a missing underlying function that was removed on
12027         2013-02-19.
12028         * m4/strtold.m4: New file.
12029         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12030         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12031         REPLACE_STRTOLD.
12032         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12033         REPLACE_STRTOLD.
12034         * modules/strtold: New file.
12035         * doc/posix-functions/strtold.texi: Document the new module.
12037 2019-01-29  Bruno Haible  <bruno@clisp.org>
12039         strtod: Fix compilation error on IRIX 6.5.
12040         * modules/strtod (Depends-on): Add 'math'.
12042 2019-01-28  Bruno Haible  <bruno@clisp.org>
12044         Fix build error when building a shared libunistring on Android.
12045         * tests/uninorm/test-nfc.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-nfd.c (n): Don't define on Android.
12049         (main): Add 'volatile', to defeat a GCC optimization that would
12050         eliminate the reference.
12051         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12052         (main): Add 'volatile', to defeat a GCC optimization that would
12053         eliminate the reference.
12054         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12055         (main): Add 'volatile', to defeat a GCC optimization that would
12056         eliminate the reference.
12058 2019-01-27  Bruno Haible  <bruno@clisp.org>
12060         Avoid build errors due to wrong references between modules.
12061         * lib/uninorm/canonical-decomposition.c: Include
12062         "uninorm/decomposition-table.h", not "decomposition-table.h".
12063         * lib/uninorm/decomposition.c: Likewise.
12064         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12065         not "decompose-internal.h".
12066         * lib/uninorm/u16-normalize.c: Likewise.
12067         * lib/uninorm/u32-normalize.c: Likewise.
12068         * lib/uninorm/uninorm-filter.c: Likewise.
12069         * lib/uninorm/nfkc.c: Likewise.
12070         * lib/uninorm/nfkd.c: Likewise.
12071         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12072         "caseprop.h".
12073         * lib/unicase/u8-ct-totitle.c: Likewise.
12074         * lib/unicase/u8-prefix-context.c: Likewise.
12075         * lib/unicase/u8-suffix-context.c: Likewise.
12076         * lib/unicase/u16-casemap.c: Likewise.
12077         * lib/unicase/u16-ct-totitle.c: Likewise.
12078         * lib/unicase/u16-prefix-context.c: Likewise.
12079         * lib/unicase/u16-suffix-context.c: Likewise.
12080         * lib/unicase/u32-casemap.c: Likewise.
12081         * lib/unicase/u32-ct-totitle.c: Likewise.
12082         * lib/unicase/u32-prefix-context.c: Likewise.
12083         * lib/unicase/u32-suffix-context.c: Likewise.
12084         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12085         "unicasemap.h".
12086         * lib/unicase/u8-toupper.c: Likewise.
12087         * lib/unicase/u8-ct-tolower.c: Likewise.
12088         * lib/unicase/u8-ct-toupper.c: Likewise.
12089         * lib/unicase/u16-tolower.c: Likewise.
12090         * lib/unicase/u16-toupper.c: Likewise.
12091         * lib/unicase/u16-ct-tolower.c: Likewise.
12092         * lib/unicase/u16-ct-toupper.c: Likewise.
12093         * lib/unicase/u32-tolower.c: Likewise.
12094         * lib/unicase/u32-toupper.c: Likewise.
12095         * lib/unicase/u32-ct-tolower.c: Likewise.
12096         * lib/unicase/u32-ct-toupper.c: Likewise.
12097         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12098         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12099         * lib/unicase/u16-ct-casefold.c: Likewise.
12100         * lib/unicase/u32-ct-casefold.c: Likewise.
12102 2019-01-27  Bruno Haible  <bruno@clisp.org>
12104         gperf: Fix error when this module is required by some test module.
12105         * modules/gperf (Applicability): Set to 'all'.
12107 2019-01-27  Bruno Haible  <bruno@clisp.org>
12109         tmpfile: Add support for Android.
12110         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12111         works.
12112         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12113         Android.
12114         * modules/tmpfile (Depends-on): Add 'stdbool'.
12115         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12116         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12118 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12120         bitsetv: allow free on NULL.
12121         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12123 2019-01-27  Bruno Haible  <bruno@clisp.org>
12125         test-framework-sh: Improve maintainability.
12126         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12128 2019-01-27  Bruno Haible  <bruno@clisp.org>
12130         tests: Don't assume that /tmp exists.
12131         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12132         * tests/test-copy-acl-1.sh: Likewise.
12133         * tests/test-file-has-acl-1.sh: Likewise.
12134         * tests/test-copy-file-1.sh: Likewise.
12136 2019-01-27  Bruno Haible  <bruno@clisp.org>
12138         tests: Accommodate a shell that is not in /bin/sh.
12139         * tests/init.sh (setup_): Set srcdir and builddir.
12140         (BOURNE_SHELL): New variable.
12141         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12142         * modules/file-has-acl-tests (Depends-on): Likewise.
12143         * modules/copy-file-tests (Depends-on): Likewise.
12144         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12145         scripts through $BOURNE_SHELL.
12146         * tests/test-set-mode-acl-2.sh: Likewise.
12147         * tests/test-copy-acl-1.sh: Likewise.
12148         * tests/test-copy-acl-2.sh: Likewise.
12149         * tests/test-file-has-acl-1.sh: Likewise.
12150         * tests/test-file-has-acl-2.sh: Likewise.
12151         * tests/test-copy-file-1.sh: Likewise.
12152         * tests/test-copy-file-2.sh: Likewise.
12153         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12154         invoker.
12155         * tests/test-copy-acl.sh (builddir): Likewise.
12156         * tests/test-file-has-acl.sh (builddir): Likewise.
12157         * tests/test-copy-file.sh (builddir): Likewise.
12158         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12159         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12160         * tests/test-vc-list-files-git.sh: Likewise.
12162 2019-01-27  Bruno Haible  <bruno@clisp.org>
12164         tests: Fix some "unused variable" warnings.
12165         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12166         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12167         * tests/test-striconveh.c (main): Move some variable into the
12168         '#if HAVE_ICONV'.
12169         * tests/test-striconveha.c (main): Likewise.
12170         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12171         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12172         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12173         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12174         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12175         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12176         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12177         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12178         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12179         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12180         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12181         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12182         * tests/test-tsearch.c (main): Move some variable into the
12183         '#if HAVE_INITSTATE'.
12185 2019-01-27  Bruno Haible  <bruno@clisp.org>
12187         unigbrk/uc-grapheme-breaks: Fix build failure.
12188         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12189         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12191 2019-01-27  Bruno Haible  <bruno@clisp.org>
12193         mountlist: Merge two .m4 files.
12194         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12195         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12196         * m4/ls-mntd-fs.m4: Remove file.
12197         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12199 2019-01-27  Bruno Haible  <bruno@clisp.org>
12201         tests: Enable Linux specific tests on Android.
12202         * tests/test-flock.c (main): Treat Android like Linux.
12203         * tests/test-openat-safer.c (main): Likewise.
12205 2019-01-27  Bruno Haible  <bruno@clisp.org>
12207         relocatable-prog: Use Linux code on Android.
12208         * lib/progreloc.c: Treat Android like Linux.
12210 2019-01-26  Bruno Haible  <bruno@clisp.org>
12212         getloadavg: Add support for Android.
12213         * lib/getloadavg.c: Treat Android like Linux.
12215 2019-01-26  Bruno Haible  <bruno@clisp.org>
12217         vma-iter: Add support for Android.
12218         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12219         * lib/vma-iter.c: Treat Android like Linux.
12220         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12222 2019-01-26  Bruno Haible  <bruno@clisp.org>
12224         fts: Optimize on Android.
12225         * lib/fts.c: Treat Android like Linux.
12227 2019-01-26  Bruno Haible  <bruno@clisp.org>
12229         fts: Add support for Android.
12230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12231         defined by this module and the ones in libc.
12232         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12234 2019-01-26  Bruno Haible  <bruno@clisp.org>
12236         mountlist: Use Linux code on Android.
12237         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12238         (unescape_tab, read_file_system_list): Enable Linux code on Android
12239         as well.
12240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12241         and endmntent.
12242         * modules/mountlist (Depends-on): Add 'getline'.
12244 2019-01-26  Bruno Haible  <bruno@clisp.org>
12246         localename tests: Fix test failure on Android.
12247         * modules/localename-tests (Depends-on): Add 'setlocale'.
12249 2019-01-26  Bruno Haible  <bruno@clisp.org>
12251         mountlist: Port better to Android.
12252         * lib/mountlist.c (MOUNTED): Redefine on Android.
12253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12254         Android.
12256 2019-01-26  Bruno Haible  <bruno@clisp.org>
12258         striconveh: Fix use of uninitialized iconv_t.
12259         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12260         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12261         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12263 2019-01-26  Bruno Haible  <bruno@clisp.org>
12265         nonblocking-socket-tests: Fix test failure on Android 4.3.
12266         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12267         also on Android.
12269 2019-01-26  Bruno Haible  <bruno@clisp.org>
12271         sh-filename: Add support for Android 4.3.
12272         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12274 2019-01-26  Bruno Haible  <bruno@clisp.org>
12276         ptsname_r: Work around bug on Android 4.3.
12277         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12278         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12279         correct.
12280         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12281         is defined, just fix the return value.
12282         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12283         The behaviour of musl libc is nothing to be "fixed", since it is
12284         compliant with the next POSIX standard.
12286 2019-01-26  Bruno Haible  <bruno@clisp.org>
12288         ttyname_r: Work around bug on Android 4.3.
12289         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12290         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12291         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12292         * doc/posix-functions/ttyname.texi: Likewise.
12294 2019-01-25  Bruno Haible  <bruno@clisp.org>
12296         getprogname: Port to Android 4.3.
12297         * lib/getprogname.c (getprogname): On Android, take only the last
12298         component of __progname.
12300 2019-01-25  Bruno Haible  <bruno@clisp.org>
12302         wcrtomb: Work around bug on Android 4.3.
12303         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12304         the C locale.
12305         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12306         which does not have the 'wctomb' function.
12307         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12308         * tests/test-wcrtomb.c (main): Accept argument '5'.
12309         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12311 2019-01-25  Bruno Haible  <bruno@clisp.org>
12313         setlocale: Work around bug on Android 4.3.
12314         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12315         the "C" locale.
12316         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12317         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12319 2019-01-24  Bruno Haible  <bruno@clisp.org>
12321         memchr: Work around bug on Android <= 5.0.
12322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12323         * doc/posix-functions/memchr.texi: Mention the Android bug.
12325 2019-01-24  Bruno Haible  <bruno@clisp.org>
12327         random: Fix compilation error on Android 4.3.
12328         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12329         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12330         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12331         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12332         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12334         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12335         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12336         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12337         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12338         REPLACE_INITSTATE, REPLACE_SETSTATE.
12339         * doc/posix-functions/random.texi: Correct the description of the
12340         situation on Android.
12341         * doc/posix-functions/srandom.texi: Likewise.
12342         * doc/posix-functions/rand.texi: Likewise.
12343         * doc/posix-functions/srand.texi: Likewise.
12345 2019-01-24  Bruno Haible  <bruno@clisp.org>
12347         mbtowc: Fix compilation error on Android 4.3.
12348         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12349         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12350         HAVE_MBTOWC.
12351         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12352         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12353         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12354         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12355         * doc/posix-functions/mbtowc.texi: Mention the change.
12357 2019-01-24  Bruno Haible  <bruno@clisp.org>
12359         fdatasync: Fix compilation error on Android 4.3.
12360         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12361         test whether fdatasync() exists.
12363 2019-01-24  Bruno Haible  <bruno@clisp.org>
12365         unlinkat: Fix compilation error on Android 4.3.
12366         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12367         also on Android.
12368         * doc/posix-functions/unlinkat.texi: Mention the issue.
12370 2019-01-24  Bruno Haible  <bruno@clisp.org>
12372         renameat: Fix compilation error on Android 4.3.
12373         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12374         * doc/posix-functions/renameat.texi: Mention the issue.
12376 2019-01-24  Bruno Haible  <bruno@clisp.org>
12378         fchownat: Fix compilation error on Android 4.3.
12379         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12380         use.
12381         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12382         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12383         * doc/posix-functions/fchownat.texi: Mention the issue.
12385 2019-01-23  Bruno Haible  <bruno@clisp.org>
12387         gnulib-tool: Support running testdirs on Android.
12388         * build-aux/test-driver.diff: New file.
12389         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12390         build-aux/test-driver after running automake.
12392 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12394         relocatable-prog: avoid warnings from Automake
12395         * modules/relocatable-prog: Don't declare PHONY dependencies in
12396         Automake conditionals.
12398 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12400         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12401         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12403 2019-01-23  Bruno Haible  <bruno@clisp.org>
12405         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12406         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12407         preceding -Wl,--as-needed option. Don't check whether the linker
12408         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12410 2019-01-23  Bruno Haible  <bruno@clisp.org>
12412         thread: Force linking with -lpthread, even when --as-needed is in use.
12413         Reported by Richard W.M. Jones <rjones@redhat.com> in
12414         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
12415         * lib/glthread/thread.h (pthread_create): Don't declare weak.
12417 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
12418             Bruno Haible  <bruno@clisp.org>
12420         relocatable: avoid compiler warnings (-Wshadow)
12421         * lib/relocatable.c (compute_curr_prefix): Rename local variables
12422         to avoid name collisions with global variables.
12424 2019-01-22  Bruno Haible  <bruno@clisp.org>
12426         vasnprintf: Don't use %n on Android.
12427         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
12428         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
12429         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
12431 2019-01-22  Bruno Haible  <bruno@clisp.org>
12433         *printf: Support cross-compilation to Android.
12434         * m4/printf.m4: Add cross-compilation guesses for Android.
12436 2019-01-21  Bruno Haible  <bruno@clisp.org>
12438         diacrit: Mark deprecated.
12439         * modules/diacrit (Status, Notice): Mark as deprecated.
12440         * NEWS: Mention it.
12442 2019-01-20  Bruno Haible  <bruno@clisp.org>
12444         rintl: Override broken implementation on NetBSD.
12445         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12446         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12447         REPLACE_RINTL.
12448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12449         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12450         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12451         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12453 2019-01-20  Bruno Haible  <bruno@clisp.org>
12455         log10l: Work around inaccurate implementation on NetBSD.
12456         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12457         * lib/log10l.c: Comment out too simplistic override.
12458         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12460 2019-01-20  Bruno Haible  <bruno@clisp.org>
12462         logl: Work around inaccurate implementation on NetBSD.
12463         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12464         * lib/logl.c: Comment out unused code.
12465         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12467 2019-01-20  Bruno Haible  <bruno@clisp.org>
12469         expm1l: Work around inaccurate implementation on NetBSD.
12470         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12471         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12472         REPLACE_EXPM1L.
12473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12474         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12475         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12476         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12478 2019-01-20  Bruno Haible  <bruno@clisp.org>
12480         expl: Work around inaccurate implementation on NetBSD.
12481         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12482         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12483         REPLACE_EXPL.
12484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12485         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12486         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12487         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12489 2019-01-20  Bruno Haible  <bruno@clisp.org>
12491         exp2l: Work around inaccurate implementation on NetBSD.
12492         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12493         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12495 2019-01-20  Bruno Haible  <bruno@clisp.org>
12497         floor, floorl: Avoid autoconf warnings.
12498         * modules/floor (configure.ac): Use AC_REQUIRE.
12499         * modules/floorl (configure.ac): Likewise.
12501 2019-01-20  Bruno Haible  <bruno@clisp.org>
12503         Defeat current GCC optimizations in math autoconf tests.
12504         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12505         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12506         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12507         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12508         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12509         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12510         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12511         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12512         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12513         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12514         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12515         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12516         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12517         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12518         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12519         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12520         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12521         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12522         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12523         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12524         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12525         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12526         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12527         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12528         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12529         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12530         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12531         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12532         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12533         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12534         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12535         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12538         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12539         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12543 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12545         gettext: support disabling use of VLAs
12546         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12548 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12550         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12551         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12553 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12555         fcntl: Fix syntax error (regression from 2018-10-05).
12556         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12558 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12560         relocatable: improve documentation.
12561         * doc/relocatable-maint.texi (Supporting Relocation): For
12562         substitutions performed by config.status, we need more variables
12563         (for instance datarootdir defaults to '${prefix}/share' so we need
12564         prefix).
12566 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12568         backup: update dependencies
12569         * modules/backup-rename (Depends-on): It now depends on opendirat
12570         instead of opendir.  It also uses stdint, and xalloc-oversized.
12571         But no longer dirfd.
12572         * modules/backupfile (Depends-on): Add xalloc-oversized.
12574 2019-01-13  Bruno Haible  <bruno@clisp.org>
12576         getcwd: Fix test failure when building on a Linux 9p file system.
12577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12578         EINVAL from mkdir like ENAMETOOLONG.
12579         * tests/test-getcwd.c (test_long_name): Likewise.
12581 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12583         Fix typos found by codespell.
12584         * lib/*.[hc]: Fix typos in comments.
12585         * pygnulib/*.py: Fix typos in error messages and comments.
12587 2019-01-12  Bruno Haible  <bruno@clisp.org>
12589         doc: Fix documentation about container data types.
12590         Reported by Werner Lemberg <wl@gnu.org>.
12591         * doc/containers.texi (Container data types): Fix typo.
12593 2019-01-10  Bruno Haible  <bruno@clisp.org>
12595         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12596         Reported by Reuben Thomas <rrt@sc3d.org>.
12597         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12599 2019-01-06  Bruno Haible  <bruno@clisp.org>
12601         maintainer-makefile: Make the configure.ac section optional.
12602         * top/maint.mk (GREP, SED): Define if not defined.
12604 2019-01-06  Bruno Haible  <bruno@clisp.org>
12606         localename: Assume setlocale function.
12607         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12608         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12610 2019-01-06  Bruno Haible  <bruno@clisp.org>
12612         doc: Add documentation about container data types.
12613         * doc/containers.texi: New file.
12614         * doc/gnulib.texi (Particular Modules): Include it.
12616 2019-01-06  Bruno Haible  <bruno@clisp.org>
12618         doc: Update documentation about 'progname' module.
12619         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12620         title. Rewrite.
12621         * doc/gnulib.texi (Particular Modules): Update.
12623 2019-01-06  Bruno Haible  <bruno@clisp.org>
12625         doc: Document the xstdopen and *-safer modules.
12626         * doc/xstdopen.texi: New file.
12627         * doc/gnulib.texi (Particular Modules): Include it.
12629 2019-01-06  Bruno Haible  <bruno@clisp.org>
12631         xstdopen: Add tests.
12632         * tests/test-xstdopen.c: New file.
12633         * tests/test-xstdopen.sh: New file.
12634         * modules/xstdopen-tests: New file.
12636         xstdopen: New module.
12637         * lib/xstdopen.h: New file.
12638         * lib/xstdopen.c: New file.
12639         * modules/xstdopen: New file.
12641 2019-01-06  Bruno Haible  <bruno@clisp.org>
12643         stdopen: Fix compilation error with IRIX cc.
12644         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12646 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12648         xfreopen need not include stdio--.h
12649         * lib/xfreopen.c: Do not include stdio--.h.
12651         xfreopen need not depend on freopen-safer
12652         * modules/xfreopen (Depends-on):
12653         Depend on freopen, not freopen-safer.
12655         stdopen: modernize and simplify
12656         * lib/stdopen.c: Update copyright date
12657         Do not include sys/types.h; no longer needed these days.
12658         (stdopen): Use C99-style decl in loop.  Return int errno
12659         value, rather than just a bool.  Do not worry about fd mismatches,
12660         since the caller cares only if 0, 1, 2 are occupied.
12661         * lib/stdopen.h: No need to include <stdbool.h>.
12662         * m4/stdopen.m4: Remove.
12663         * modules/stdopen: New file.
12665         stdopen: copy from last use in coreutils
12666         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12667         New files, taken from their last commit in coreutils
12668         2007-07-23T12:35:58Z!jim@meyering.net
12669         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12671 2019-01-05  Bruno Haible  <bruno@clisp.org>
12673         argp: Don't pass an invalid argument to dgettext().
12674         Reported by He X <xw897002528@gmail.com>.
12675         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12676         dgettext().
12678 2019-01-05  Bruno Haible  <bruno@clisp.org>
12680         argp: Don't pass an invalid argument to dgettext().
12681         Reported by He X <xw897002528@gmail.com>.
12682         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12683         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12684         dgettext().
12686 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12688         stdioext: port to newer 32-bit Android
12689         Problem reported by Tom Yan in:
12690         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12691         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12692         (fp_) [__ANDROID__]: Use it.
12694 2019-01-04  Bruno Haible  <bruno@clisp.org>
12696         lock: Fix link error with --enable-threads=pth.
12697         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12698         Mark as weak.
12700 2019-01-04  Bruno Haible  <bruno@clisp.org>
12702         Fix link errors in unit tests.
12703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12704         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12705         * modules/array-map-tests (Makefile.am): Link test-array_map against
12706         libintl.
12707         * modules/array-set-tests (Makefile.am): Link test-array_set against
12708         libintl.
12709         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12710         libintl.
12711         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12712         libintl.
12713         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12714         against libintl.
12715         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12716         against libintl.
12718 2019-01-04  Bruno Haible  <bruno@clisp.org>
12720         Fix incorrect 'Link' sections.
12721         * modules/regex (Link): Mention the link requirement of module 'lock'.
12722         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12724 2019-01-04  Bruno Haible  <bruno@clisp.org>
12726         Fix some 'Link' sections.
12727         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12728         dependency.
12729         * modules/getaddrinfo (Link): Likewise.
12731 2019-01-04  Bruno Haible  <bruno@clisp.org>
12733         Remove redundant 'Link' sections.
12734         * modules/canon-host (Link): Remove section.
12735         * modules/timevar (Link): Likewise.
12737 2019-01-04  Bruno Haible  <bruno@clisp.org>
12739         Remove incorrect 'Link' sections.
12740         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12741         the dependencies instead.
12742         * modules/crypto/md5 (Link): Likewise.
12743         * modules/crypto/sha1 (Link): Likewise.
12744         * modules/crypto/sha256 (Link): Likewise.
12745         * modules/crypto/sha512 (Link): Likewise.
12746         * modules/faccessat (Link): Likewise.
12747         * modules/fdutimensat (Link): Likewise.
12748         * modules/iconv_open-utf (Link): Likewise.
12749         * modules/propername (Link): Likewise.
12750         * modules/qacl (Link): Likewise.
12751         * modules/unicodeio (Link): Likewise.
12752         * modules/utimecmp (Link): Likewise.
12753         * modules/utimensat (Link): Likewise.
12754         * modules/xstriconv (Link): Likewise.
12755         * modules/xstriconveh (Link): Likewise.
12757 2019-01-04  Bruno Haible  <bruno@clisp.org>
12759         gnulib-tool: New option --extract-recursive-link-directive.
12760         * gnulib-tool (func_usage): Document the new options
12761         --extract-recursive-dependencies, --extract-recursive-link-directive.
12762         (func_verify_module): Document output variables.
12763         (func_get_dependencies_recursively): New function.
12764         (func_get_link_directive_recursively): New function.
12765         Use them to implement the new options
12766         --extract-recursive-dependencies, --extract-recursive-link-directive.
12767         * doc/gnulib-tool.texi (Link-time requirements): New section.
12769 2019-01-04  Bruno Haible  <bruno@clisp.org>
12771         Clarify meaning of 'Link' section in module description.
12772         * doc/gnulib.texi (Module description): Clarify the meaning of the
12773         'Link' section versus the one of the dependencies.
12774         * NEWS: Mention the change.
12776 2019-01-04  Bruno Haible  <bruno@clisp.org>
12778         pselect: Fix module description.
12779         * modules/pselect (Link): Put one link option per line.
12781 2019-01-04  Bruno Haible  <bruno@clisp.org>
12783         cosl: Fix module description.
12784         * modules/cosl (Link): Fix typo.
12785         * modules/mathl (configure.ac): Likewise.
12787 2019-01-04  Bruno Haible  <bruno@clisp.org>
12789         c-xvasprintf: Fix module dependencies.
12790         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12792 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12794         bootstrap: die when some submodules are not initialized
12795         * build-aux/bootstrap: Make sure all submodules are initialized.
12797 2019-01-04  Bruno Haible  <bruno@clisp.org>
12799         bitsetv: Fix module dependencies.
12800         * lib/bitsetv.c: Include xalloc.h.
12801         * modules/bitsetv (Depends-on): Add 'xalloc'.
12803 2019-01-04  Bruno Haible  <bruno@clisp.org>
12805         xmemdup0: Remove redundant code.
12806         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12808 2019-01-04  Bruno Haible  <bruno@clisp.org>
12810         backupfile: Fix module dependencies.
12811         * modules/backupfile (Depends-on): Add 'xalloc'.
12813 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12815         bitset, crypto/gc: fix conflicts with Solaris 11
12816         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12817         avoid clash with Solaris 11 <sys/bitset.h>.
12818         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12819         with Solaris 11 <xorg/gc.h>.
12821 2019-01-04  Bruno Haible  <bruno@clisp.org>
12823         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12824         Reported by Andy Fiddaman <andy@omniosce.org>.
12825         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12827 2019-01-03  Eric Blake  <eblake@redhat.com>
12829         maintainer-makefile: fix typo in previous patch
12830         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12831         of Roman's work.
12833 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12835         maintainer-makefile: prefer $(GREP) over grep
12836         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12837         defined.
12838         * top/maint.mk: Use it everywhere.
12840         maintainer-makefile: split long argument lines
12841         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12842         it would be too long for exec limits on BSD.
12844 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12846         mkfifo: bring back HAVE_MKFIFO macro
12847         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12848         Problem reported by Andrew Janke in:
12849         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12851 2018-12-21  Bruno Haible  <bruno@clisp.org>
12853         Assume Autoconf >= 2.63.
12854         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12855         versions < 2.60.
12857 2018-12-21  Bruno Haible  <bruno@clisp.org>
12859         memcmp: Mention the clang bug.
12860         * tests/test-memcmp.c: Add comment about a known test failure.
12861         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12863 2018-12-20  Jim Meyering  <meyering@fb.com>
12865         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12866         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12867           echo '123-x'|LC_ALL=C grep -E '.\bx'
12868         The goal is to revert the first, but reverting it requires to restore
12869         the function deleted in the second. I ran this to restore the deleted
12870         function:
12871           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12872             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12873             | patch -R -p1
12874         * lib/dfa.c (charclass_context): Restore deleted function.
12875         Reverting the primary commit removes this change:
12876         dfa: Simplify a building state
12877         * lib/dfa.c (build_state): Simplify a building state.
12879 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12881         version-etc: allow zero authors
12882         * lib/version-etc.c (version_etc_arn): If no authors are given,
12883         omit authorship info instead of dumping core.
12885 2018-12-19  Bruno Haible  <bruno@clisp.org>
12887         lchown tests: Be more permissive regarding errno values.
12888         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12889         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12890         alternative to ENOSYS.
12891         * modules/lchown-tests (Depends-on): Add 'errno'.
12892         * modules/fchownat-tests (Depends-on): Likewise.
12894 2018-12-18  Bruno Haible  <bruno@clisp.org>
12896         duplocale: Avoid test failure on AIX 7.
12897         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12898         (configure.ac): Invoke gt_FUNC_USELOCALE.
12899         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12900         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12901         works.
12903 2018-12-18  Bruno Haible  <bruno@clisp.org>
12905         localename: Fix test failure on AIX 7.
12906         Reported by Assaf Gordon in
12907         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12908         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12909         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12910         instead of ac_cv_func_uselocale.
12911         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12912         HAVE_USELOCALE.
12913         * lib/localename-table.h: Likewise.
12914         * lib/localename-table.c: Likewise.
12915         * tests/test-localename.c: Likewise.
12916         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12918 2018-12-18  Bruno Haible  <bruno@clisp.org>
12920         localename: Update comments regarding Cygwin.
12921         * lib/localename.c: Update comment.
12922         * doc/posix-functions/uselocale.texi: Update platforms list.
12923         * doc/posix-functions/newlocale.texi: Likewise.
12924         * doc/posix-functions/duplocale.texi: Likewise.
12925         * doc/posix-functions/freelocale.texi: Likewise.
12927 2018-12-16  Bruno Haible  <bruno@clisp.org>
12929         c-stack: Fix for Linux/sparc.
12930         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12931         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12933 2018-12-16  Bruno Haible  <bruno@clisp.org>
12935         localename: Avoid test failure on some glibc systems.
12936         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12937         Unset environment variables that might disturb the first setlocale call,
12938         and verify that this setlocale call succeeds.
12940 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12942         random: Fix build error on native Windows (regression from 2018-06-21).
12943         * lib/random.c (__srandom, __initstate, __setstate, __random,
12944         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12945         to the symbols without '__' prefix.
12947 2018-12-16  Bruno Haible  <bruno@clisp.org>
12949         obstack, libc-config: Support HP-UX cc in C99 mode.
12950         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12951         compiler, even when in C99 mode.
12952         * lib/cdefs.h (__flexarr): Likewise.
12953         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12955 2018-12-16  Bruno Haible  <bruno@clisp.org>
12957         localename: Fix test failure on OpenBSD >= 6.2.
12958         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12959         locale system. Define HAVE_FAKE_LOCALES in this case.
12960         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12961         HAVE_USELOCALE.
12962         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12963         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12964         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12965         platforms list.
12966         * doc/posix-functions/newlocale.texi: Likewise.
12967         * doc/posix-functions/duplocale.texi: Update platforms list.
12968         * doc/posix-functions/freelocale.texi: Likewise.
12970 2018-12-16  Bruno Haible  <bruno@clisp.org>
12972         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12973         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12974         of the test, on platforms without <monetary.h>.
12976 2018-12-16  Bruno Haible  <bruno@clisp.org>
12978         localename: Update comments.
12979         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12981 2018-12-15  Jim Meyering  <meyering@fb.com>
12983         regex: fix indentation
12984         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12986 2018-12-15  Bruno Haible  <bruno@clisp.org>
12988         openat-safer tests: Avoid test failure on NetBSD 8.
12989         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12990         on Linux.
12992 2018-12-15  Jim Meyering  <meyering@fb.com>
12994         regex: work around a bug in glibc-2.27 and prior
12995         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12996         assertion for /0|()0|\1|0/.
12997         * tests/test-regex.c (main): Add the same test here.
12999 2018-12-15  Bruno Haible  <bruno@clisp.org>
13001         localename: Fix use of uninitialized shell variable.
13002         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13003         gt_cv_locale_solaris114 always before use. Remove assignment without
13004         effect.
13006 2018-12-15  Bruno Haible  <bruno@clisp.org>
13008         dfa tests: Avoid test failure on Alpine Linux.
13009         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13010         command found on Alpine Linux.
13012 2018-12-15  Jim Meyering  <meyering@fb.com>
13014         dfa: avoid new warnings from gcc
13015         These would prevent building with -Werror and a Dec snapshot of gcc.
13016         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13017         Rename each inner instance to "p".
13018         (charclass_context): Remove unused static function.
13020 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13022         mkdir-p: improve diagnostic for FUSE mounts
13023         Problem reported by Niklas Hambüchen in:
13024         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13025         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13026         errno to mkdir errno if the stat errno is likely more interesting.
13028 2018-12-14  Bruno Haible  <bruno@clisp.org>
13030         hash-map: Add tests.
13031         * tests/test-hash_map.c: New file.
13032         * modules/hash-map-tests: New file.
13034         linkedhash-map: Add tests.
13035         * tests/test-linkedhash_map.c: New file.
13036         * modules/linkedhash-map-tests: New file.
13038         array-map: Add tests.
13039         * tests/test-array_map.c: New file.
13040         * modules/array-map-tests: New file.
13042         xmap: New module.
13043         * lib/gl_xmap.h: New file.
13044         * lib/gl_xmap.c: New file.
13045         * modules/xmap: New file.
13047         hash-map: New module.
13048         * lib/gl_hash_map.h: New file.
13049         * lib/gl_hash_map.c: New file.
13050         * modules/hash-map: New file.
13052         linkedhash-map: New module.
13053         * lib/gl_linkedhash_map.h: New file.
13054         * lib/gl_linkedhash_map.c: New file.
13055         * lib/gl_anyhash1.h: Update comments.
13056         * lib/gl_anyhash2.h: Likewise.
13057         * modules/linkedhash-map: New file.
13059         array-map: New module.
13060         * lib/gl_array_map.h: New file.
13061         * lib/gl_array_map.c: New file.
13062         * modules/array-map: New file.
13064         map: New module.
13065         * lib/gl_map.h: New file.
13066         * lib/gl_map.c: New file.
13067         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13068         conflict with gl_map.h.
13069         * modules/map: New file.
13071 2018-12-13  Bruno Haible  <bruno@clisp.org>
13073         select tests: Avoid test failure on Cygwin.
13074         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13076 2018-12-13  Bruno Haible  <bruno@clisp.org>
13078         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13079         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13081 2018-12-13  Bruno Haible  <bruno@clisp.org>
13083         localeconv tests: Avoid test failure on Cygwin.
13084         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13085         'mon_grouping' tests.
13087 2018-12-11  Bruno Haible  <bruno@clisp.org>
13089         omap: Don't dispose the old value when the function returns it.
13090         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13091         here.
13092         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13093         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13094         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13095         here.
13097         array-omap, avltree-omap, rbtree-omap: Tweak style.
13098         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13099         false.
13100         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13102         rbtree-omap: Add tests.
13103         * tests/test-rbtree_omap.c: New file.
13104         * modules/rbtree-omap-tests: New file.
13106         avltree-omap: Add tests.
13107         * tests/test-avltree_omap.c: New file.
13108         * modules/avltree-omap-tests: New file.
13110         array-omap: Add tests.
13111         * tests/test-array_omap.c: New file.
13112         * modules/array-omap-tests: New file.
13114         xomap: New module.
13115         * lib/gl_xomap.h: New file.
13116         * lib/gl_xomap.c: New file.
13117         * modules/xomap: New file.
13119         rbtree-omap: New module.
13120         * lib/gl_rbtree_omap.h: New file.
13121         * lib/gl_rbtree_omap.c: New file.
13122         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13123         Parameterize.
13124         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13125         * modules/rbtree-omap: New file.
13126         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13127         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13129         avltree-omap: New module.
13130         * lib/gl_avltree_omap.h: New file.
13131         * lib/gl_avltree_omap.c: New file.
13132         * lib/gl_avltree_ordered.h: Code moved to here from
13133         lib/gl_avltree_oset.c. Parameterize.
13134         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13135         * lib/gl_anytree_omap.h: New file.
13136         * modules/avltree-omap: New file.
13137         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13138         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13140         array-omap: New module.
13141         * lib/gl_array_omap.h: New file.
13142         * lib/gl_array_omap.c: New file.
13143         * modules/array-omap: New file.
13145         omap: New module.
13146         * lib/gl_omap.h: New file.
13147         * lib/gl_omap.c: New file.
13148         * modules/omap: New file.
13150 2018-12-11  Bruno Haible  <bruno@clisp.org>
13152         hash-set, linkedhash-set: Reduce code duplication.
13153         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13154         lib/gl_anyhash_set1.h.
13155         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13156         lib/gl_anyhash_set2.h. Parameterize.
13157         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13158         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13159         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13160         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13161         * lib/gl_rbtreehash_list.c: Likewise.
13162         * lib/gl_linkedhash_list.c: Likewise.
13163         (hash_resize_after_add): Remove function.
13164         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13165         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13166         * gl_hash_set.c: Likewise.
13167         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13168         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13169         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13170         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13171         * modules/hash-set (Files, Makefile.am): Likewise.
13173 2018-12-11  Bruno Haible  <bruno@clisp.org>
13175         array-set: Optimize.
13176         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13177         outside the loop, not inside the loop.
13179 2018-12-11  Bruno Haible  <bruno@clisp.org>
13181         times: Fix tests.
13182         * tests/test-times.c (doublecmp): Implement a total order.
13184 2018-12-11  Bruno Haible  <bruno@clisp.org>
13186         array-set, linkedhash-set, hash-set: Fix tests.
13187         * tests/test-array_set.c (cmp_objects_in_array): New function.
13188         (check_equals): Use it.
13189         * tests/test-hash_set.c: Likewise.
13190         * tests/test-linkedhash_set.c: Likewise.
13192 2018-12-08  Bruno Haible  <bruno@clisp.org>
13194         Fix comments.
13195         * lib/gl_list.h (gl_list_free): Clarify what it does.
13196         * lib/gl_oset.h (gl_oset_free): Likewise.
13197         * lib/gl_set.h (gl_set_free): Likewise.
13198         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13199         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13200         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13201         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13203 2018-12-03  Bruno Haible  <bruno@clisp.org>
13205         hash-set: Add tests.
13206         * tests/test-hash_set.c: New file.
13207         * modules/hash-set-tests: New file.
13209         linkedhash-set: Add tests.
13210         * tests/test-linkedhash_set.c: New file.
13211         * modules/linkedhash-set-tests: New file.
13213         array-set: Add tests.
13214         * tests/test-array_set.c: New file.
13215         * modules/array-set-tests: New file.
13217         xset: New module.
13218         * lib/gl_xset.h: New file.
13219         * lib/gl_xset.c: New file.
13220         * modules/xset: New file.
13222         hash-set: New module.
13223         * lib/gl_hash_set.h: New file.
13224         * lib/gl_hash_set.c: New file.
13225         * modules/hash-set: New file.
13227         linkedhash-set: New module.
13228         * lib/gl_linkedhash_set.h: New file.
13229         * lib/gl_linkedhash_set.c: New file.
13230         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13231         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13232         * lib/gl_anyhash_primes.h: New file, extracted from
13233         lib/gl_anyhash_list2.h.
13234         * lib/gl_anyhash_list2.h: Include it.
13235         (primes, next_prime): Remove definitions.
13236         * modules/linkedhash-set: New file.
13237         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13238         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13239         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13240         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13241         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13242         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13244         array-set: New module.
13245         * lib/gl_array_set.h: New file.
13246         * lib/gl_array_set.c: New file.
13247         * modules/array-set: New file.
13249         set: New module.
13250         * lib/gl_set.h: New file.
13251         * lib/gl_set.c: New file.
13252         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13253         gl_set.h.
13254         * modules/set: New file.
13256 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13258         bison: don't force the Yacc mode
13259         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13260         errors when Bison features are used in the grammar file.  Some of
13261         these features (such as %expect) were flagged non-yacc recently.  Most
13262         of the time, -y is actually used to please Automake's ylwrap which
13263         expects the output to be y.tab.c.
13264         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13266 2018-12-01  Bruno Haible  <bruno@clisp.org>
13268         gnupload: Document short options.
13269         * build-aux/gnupload (usage): Document the short options.
13271 2018-11-28  Ben Elliston  <bje@gnu.org>
13273         gnupload: Support option -h as alias of --help.
13274         * build-aux/gnupload: Support -h.
13276 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13278         memrchr: port better to clang
13279         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13280         longword *, to pacify clang -Wcast-align (Bug#33544).
13282 2018-11-29  Eric Blake  <eblake@redhat.com>
13284         docs: mention printf %m considerations
13285         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13286         is not portable, and is easy enough to work around.
13287         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13288         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13289         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13290         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13291         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13292         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13293         * doc/posix-functions/printf.texi (printf): Likewise.
13294         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13295         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13296         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13297         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13298         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13299         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13300         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13301         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13302         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13303         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13304         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13305         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13307 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13309         bitset: rename ebitset/expandable.* as tbitset/table.*
13310         See
13311         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13312         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13313         * lib/bitset/table.h, lib/bitset/table.c: these.
13314         Rename all the ebitset* symbols as tbitset*.
13315         Adjust dependencies.
13317 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13319         bitset: check the operations
13320         * tests/test-bitset.c (bitset_random): New.
13321         Use it.
13322         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13324 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13326         bitset: properly use false/true instead of 0/1 for Booleans
13327         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13328         0/1, as Booleans.
13330 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13332         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13333         For consistency with the name of the file.
13334         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13335         * lib/bitset/stats.c, lib/bitset/vector.c
13336         (BITSET_VARRAY): Rename as...
13337         (BITSET_VECTOR): this.
13339 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13341         strerror_r-posix: memmove, not memcpy
13342         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13343         since the source and destination might overlap in the call
13344         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13345         Simplify.
13347 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13349         bitsetv: new module
13350         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13352 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13354         bitset: add tests and doc
13355         First stabs at providing a documentation and test for the bitset
13356         module.
13357         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13359 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13361         bitset: new module
13362         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13363         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13364         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13365         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13366         * lib/bitset/vector.h, modules/bitset:
13367         New.
13369 2018-11-23  Bruno Haible  <bruno@clisp.org>
13371         localename: Fix gettext test failures on mingw.
13372         * lib/localename.c (gl_locale_name_posix): Convert the result of
13373         gl_locale_name_environ to XPG syntax.
13375 2018-11-23  Karl Berry  <karl@freefriends.org>
13377         * config/srclistvars.txt,
13378         * config/srclist.txt: remove all gettext references;
13379         the gettext maintainers will sync as needed.
13381 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13383         mktime: add libc-config dependency
13384         I missed this when we synced from glibc.
13385         * modules/mktime (Depends-on): Add libc-config.
13387 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13389         longlong: fix comment typo
13390         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13392 2018-11-11  Bruno Haible  <bruno@clisp.org>
13394         havelib: Remove the need to include asm-underscore.m4.
13395         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13396         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13397         gl_HOST_CPU_C_ABI.
13398         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13399         (Depends-on): Remove host-cpu-c-abi.
13401 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13403         parse-datetime: simplify test for mktime failure
13404         * lib/parse-datetime.y (mktime_ok): Simplify.
13405         Remove args TZ and T; no longer needed.  Callers changed.
13407         posixtm: simplify test for mktime failure
13408         * lib/posixtm.c (posixtime): Simplify.
13410         nstrftime: simplify test for mktime failure
13411         * lib/nstrftime.c (__strftime_internal): Simplify.
13413 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13415         gnulib-common.m4: port _Noreturn to C++
13416         Problem reported by Akim Demaille in:
13417         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
13418         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
13419         Merge adjustments from _Noreturn.h and from glibc into the non-C++
13420         version.
13421         * lib/_Noreturn.h: Match gnulib-common.
13423 2018-10-30  Bruno Haible  <bruno@clisp.org>
13425         gnu-make: Fix for NetBSD 8 'make'.
13426         Reported by Reuben Thomas in
13427         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
13428         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
13429         output, ignoring exit codes.
13431 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
13433         maintainer-makefile: fix syntax-check rule for "same.h"
13434         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
13435         for 'same_nameat', too.
13437 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13439         havelib: fix nested ‘configure’ chatter
13440         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13441         AC_CACHE_CHECK calls, which resulted in confusing output like
13442         “checking for the common suffixes of directories in the library
13443         search path... checking for 64-bit host... no lib,lib”.
13445         backupfile: tweak for better code
13446         * lib/backupfile.c: Sort include directives, and remove
13447         unnecessary <limits.h> include.
13448         (FALLTHROUGH): New macro, copied from other modules.
13449         (backupfile_internal): Use it to avoid code duplication.
13450         This lets GCC 8.2.1 generate better code by inlining the
13451         call to check_extension.
13453 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13455         backupfile: new dir_fd args
13456         New module opendirat with code taken from fts.
13457         Use this module to let backupfile use a directory file descriptor.
13458         * NEWS: Document the incompatible change.
13459         * lib/backup-find.c (find_backup_file_name):
13460         * lib/backup-rename.c (backup_file_rename):
13461         New arg DIR_FD.
13462         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13463         (SIZE_MAX): Remove.
13464         Include opendirat.h rather than dirent--.h.
13465         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13466         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13467         (backupfile_internal): New arg DIR_FD.  All callers changed.
13468         * lib/fts.c: Include opendirat.h.
13469         (opendirat): Move to opendirat.c.
13470         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13471         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13472         Add opendirat.
13473         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13474         Add opendirat.
13476 2018-10-23  Bruno Haible  <bruno@clisp.org>
13478         localename: Simplify support for per-thread locales on Solaris 11.4.
13479         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13480         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13481         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13482         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13483         specific code.
13484         * lib/localename-table.h: Update comments.
13485         * lib/localename-table.c: Update comments.
13486         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13487         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13488         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13489         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13490         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13491         HAVE_NAMELESS_LOCALES here.
13492         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13493         m4/intlsolaris.m4.
13494         * modules/gettext (Files): Likewise.
13496 2018-10-22  Bruno Haible  <bruno@clisp.org>
13498         std-gnu11: Support Autoconf versions < 2.64.
13499         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13500         when _AC_DO_LIMIT does not exist.
13502 2018-10-22  Bruno Haible  <bruno@clisp.org>
13504         Assume Autoconf >= 2.63.
13505         * DEPENDENCIES: Mention the requirement.
13507         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13508         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13509         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13510         * m4/onceonly.m4: Remove file.
13512         * m4/openmp.m4: Remove file.
13513         * modules/openmp (Files): Remove m4/openmp.m4.
13515         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13516         htmldir, dvidir, pdfdir, psdir, localedir.
13517         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13519         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13520         Autoconf < 2.60.
13521         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13522         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13524         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13525         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13526         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13528         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13529         exists.
13530         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13533         Autoconf < 2.61.
13535         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13536         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13537         Autoconf >= 2.52.
13539         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13540         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13541         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13543 2018-10-22  Bruno Haible  <bruno@clisp.org>
13545         Assume Automake >= 1.11.
13546         * m4/configmake.m4: Update comments.
13547         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13548         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13549         of 'eval'.
13550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13551         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13552         requires Automake >= 1.11.
13554 2018-10-22  Bruno Haible  <bruno@clisp.org>
13556         localename: Fix typo in comment.
13557         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13559 2018-10-22  Bruno Haible  <bruno@clisp.org>
13561         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13562         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13564 2018-10-21  Bruno Haible  <bruno@clisp.org>
13566         locale: Ease integration with GNU libintl.
13567         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13568         GNULIB_defined_freelocale): New macros.
13570 2018-10-21  Bruno Haible  <bruno@clisp.org>
13572         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13573         * lib/localename-table.h: New file, extracted from lib/localename.c.
13574         * lib/localename-table.c: Likewise.
13575         * lib/localename.c: Include localename-table.h.
13576         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13577         locale_hash_function instead of pointer_hash.
13578         * modules/localename (Files): Add lib/localename-table.h,
13579         lib/localename-table.c.
13580         (lib_SOURCES): Add localename-table.c.
13581         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13582         for Solaris 11.4 locale system only on Solaris. Test for it
13583         independently whether getlocalename_l exists.
13584         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13585         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13586         HAVE_NAMELESS_LOCALES.
13587         * modules/gettext (Files): Add m4/intlsolaris.m4.
13589 2018-10-21  Bruno Haible  <bruno@clisp.org>
13591         Small update from gettext.
13592         * m4/intl.m4: Update from gettext:
13593         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13594         mode on AIX.
13595         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13596         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13598 2018-10-16  Bruno Haible  <bruno@clisp.org>
13600         mountlist: Remove support for Cray with UNICOS 9.
13601         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13602         MOUNTED_LISTMNTENT.
13603         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13605 2018-10-16  Bruno Haible  <bruno@clisp.org>
13607         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13609         STAT_STATFS2_FS_DATA.
13610         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13611         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13612         MOUNTED_GETMNT.
13613         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13614         * lib/getloadavg.c (decstation): Remove definition and case.
13615         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13616         * lib/getgroups.c: Likewise.
13617         * doc/posix-functions/getgroups.texi: Likewise.
13618         * lib/time.in.h: Update comments.
13620 2018-10-16  Bruno Haible  <bruno@clisp.org>
13622         getloadavg: Remove support for ConvexOS.
13623         * lib/getloadavg.c: Remove convex case.
13625 2018-10-16  Bruno Haible  <bruno@clisp.org>
13627         getloadavg: Remove support for Sony NEWS.
13628         * lib/getloadavg.c: Remove sony_news case.
13630 2018-10-16  Bruno Haible  <bruno@clisp.org>
13632         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13633         * lib/fsusage.c: Remove _SEQUENT_ case.
13634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13635         * lib/mountlist.c: Don't test for MNTTABNAME.
13636         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13637         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13638         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13639         * lib/stat-size.h: Don't mention the Sequent bug.
13640         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13642 2018-10-16  Bruno Haible  <bruno@clisp.org>
13644         fsusage: Remove support for AIX 3.
13645         * lib/fsusage.c: Remove code for AIX 3.
13646         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13648 2018-10-16  Bruno Haible  <bruno@clisp.org>
13650         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13651         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13652         * lib/fsusage.c: Remove code for AIX PS/2.
13653         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13654         * lib/getloadavg.c: Likewise.
13656 2018-10-16  Bruno Haible  <bruno@clisp.org>
13658         getloadavg: Remove support for HP-UX on m68k.
13659         * lib/getloadavg.c: Remove hp9000s300 case.
13661 2018-10-16  Bruno Haible  <bruno@clisp.org>
13663         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13664         * lib/fsusage.c: Remove DOLPHIN case.
13665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13666         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13668 2018-10-16  Bruno Haible  <bruno@clisp.org>
13670         getloadavg: Remove support for Alliant FX/2800.
13671         * lib/getloadavg.c: Remove alliant case.
13673 2018-10-16  Bruno Haible  <bruno@clisp.org>
13675         getloadavg: Remove support for tek4300.
13676         * lib/getloadavg.c: Remove tek4300 case.
13678 2018-10-16  Bruno Haible  <bruno@clisp.org>
13680         getloadavg: Remove support for Ardent.
13681         * lib/getloadavg.c: Remove ardent case.
13683 2018-10-16  Bruno Haible  <bruno@clisp.org>
13685         mountlist: Remove support for SVR2.
13686         Reported by Andrew Borodin <aborodin@vmail.ru> in
13687         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13688         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13689         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13690         MOUNTED_FREAD.
13692 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13694         libc-config: merge from glibc
13695         * lib/cdefs.h (__glibc_has_attribute): New macro.
13697         regex: depend on libc-config
13698         * modules/regex (Depends-on): Add libc-config.
13699         This is needed after the recent autoupdate from glibc.
13701 2018-10-14  Bruno Haible  <bruno@clisp.org>
13703         localename: Add support for per-thread locales on Solaris 11.4.
13704         * lib/locale.in.h (newlocale, freelocale): New declarations.
13705         (duplocale): Declare also when the 'localename' module requests it.
13706         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13707         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13708         (struniq): Update.
13709         (struct locale_categories_names, struct locale_hash_node): New types.
13710         (LOCALE_HASH_TABLE_SIZE): New constant.
13711         (locale_hash_table, locale_lock): New variables.
13712         (pointer_hash, get_locale_t_name): New functions.
13713         (newlocale, duplocale, freelocale): New overridden functions.
13714         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13715         * m4/intlsolaris.m4: New file.
13716         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13717         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13718         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13719         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13720         declared.
13721         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13722         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13723         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13724         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13725         * modules/localename (Files): Add intlsolaris.m4.
13726         (Depends-on): Add 'locale'.
13727         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13728         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13729         the signatures.
13731 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13733         timevar: use gethrxtime to get wall clock time
13734         clock_gettime is not portable.  gethrxtime takes the best available
13735         option to get the wall clock time, including clock_gettime (monotonic
13736         clock), and gettime (non monotonic).
13737         Also, using xtime_t instead of float preserves the precision.
13738         Suggested by Bruno Haible.
13739         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13740         * modules/timevar (Depends-on): We need gethrxtime.
13741         We no longer use times().
13742         (Link): Update.
13743         * lib/timevar.h (timevar_time_def): Use xtime_t.
13744         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13745         (timevar_print): Instead of checking whether the timings themselves
13746         are large enough for the timevar to be printed, check the percentages.
13748 2018-10-14  Bruno Haible  <bruno@clisp.org>
13750         wcsnrtombs: Work around Solaris 11.4 bug.
13751         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13752         macro.
13753         (gl_FUNC_WCSNRTOMBS): Invoke it.
13754         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13756 2018-10-14  Bruno Haible  <bruno@clisp.org>
13758         mbsnrtowcs: Work around Solaris 11.4 bug.
13759         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13760         macro.
13761         (gl_FUNC_MBSNRTOWCS): Invoke it.
13762         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13764 2018-10-14  Bruno Haible  <bruno@clisp.org>
13766         doc: Update for Solaris 11.4.
13767         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13768         mention Solaris 11.4.
13769         * m4/printf.m4: Update comments about Solaris.
13770         * m4/log.m4: Likewise.
13771         * m4/log10.m4: Likewise.
13772         * m4/logb.m4: Likewise.
13773         * m4/logbf.m4: Likewise.
13774         * m4/logbl.m4: Likewise.
13775         * m4/rename.m4: Likewise.
13776         * m4/wcrtomb.m4: Likewise.
13777         * m4/hostent.m4: Likewise.
13778         * m4/servent.m4: Likewise.
13780 2018-10-14  Bruno Haible  <bruno@clisp.org>
13782         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13783         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13784         pointer.
13785         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13786         pointer.
13787         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13788         pointer.
13789         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13790         pointer.
13791         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13792         pointer.
13794 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13796         bootstrap: fix wget command for po files.
13797         * build-aux/bootstrap (po_download_command_format): Fix comment,
13798         and adjust callers.
13800 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13802         timevar: improve the output format
13803         Suggested by Bruno Haible.
13804         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13805         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13806         wall, since its resolution is much higher.
13808 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13810         timevar: expect that getrusage is available.
13811         Don't keep both times and getrusage as backend: both are guaranteed by
13812         gnulib, a single one suffices.  Using getrusage is open to possibly
13813         tracking other types of resources in the future.
13814         * modules/timevar (Depends-on): Add getrusage.
13815         (configure.ac): Remove gl_TIMEVAR.
13816         (Files): Remove m4/timevar.m4.
13817         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13818         * lib/timevar.h (timevar_enabled): Clarify documentation.
13819         * lib/timevar.c: Remove all the code about times.
13820         Remove all the CPP guards about getrusage: expect it to be present
13821         (courtesy of gnulib).
13823 2018-10-12  Bruno Haible  <bruno@clisp.org>
13825         mountlist: Improve support for Solaris in 64-bit mode.
13826         Reported by David Wood <David.Wood@deshaw.com> in
13827         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13828         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13829         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13830         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13832 2018-10-12  Bruno Haible  <bruno@clisp.org>
13834         mountlist: Add support for Minix.
13835         Reported by Assaf Gordon in
13836         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13838         AC_CHECK_FUNCS to check for 'getmntinfo'.
13839         * lib/mountlist.c: Update comments.
13841 2018-10-12  Bruno Haible  <bruno@clisp.org>
13843         Make better use of Autoconf.
13844         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13845         * m4/manywarnings.m4: Likewise.
13846         * m4/manywarnings-c++.m4: Likewise.
13847         * m4/socklen.m4: Likewise.
13848         * m4/sockpfaf.m4: Likewise.
13849         * m4/stdarg.m4: Likewise.
13850         * m4/visibility.m4: Likewise.
13851         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13852         indentation.
13853         * m4/ls-mntd-fs.m4: Likewise.
13855 2018-10-11  Bruno Haible  <bruno@clisp.org>
13857         mountlist: Modernize platform lists.
13858         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13859         platforms, deemphasizing the obsolete ones.
13860         * lib/mountlist.c: Likewise.
13862 2018-10-11  Bruno Haible  <bruno@clisp.org>
13864         getprogname: Add support for 32-bit programs on HP-UX.
13865         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13866         try the similar functions 32-bit programs on 64-bit HP-UX.
13868 2018-10-11  Bruno Haible  <bruno@clisp.org>
13870         getprogname: Work around program name truncation when possible.
13871         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13872         possibly use pst_cmd instead.
13874 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13876         fts: cleanup after FTS_NOATIME removal
13877         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13878         (FTS_STOP): Shrink to minimal values.  We don’t need to
13879         worry about binary compatibility in Gnulib, and the old way
13880         of doing things had a hole in the user options that caused
13881         FTS_OPTIONMASK to not work as desired.
13883 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13885         fts: remove FTS_NOATIME
13886         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13887         We cannot guarantee that O_NOATIME works: e.g. openat fails
13888         with EPERM if the effective user ID of the caller does not match
13889         the owner of the file and the caller is not privileged.
13890         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13891         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13892         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13893         (FTS_OPTIONMASK): Adjust.
13894         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13895         (fd_ring_check): Likewise.
13897 2018-10-08  Bruno Haible  <bruno@clisp.org>
13899         csharpcomp*, csharpexec*: Remove support for pnet.
13900         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13901         HAVE_CSCC.
13902         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13903         Don't test HAVE_CSCC.
13904         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13905         (compile_csharp_class): Don't invoke it.
13906         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13907         HAVE_ILRUN.
13908         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13909         Don't test HAVE_ILRUN.
13910         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13911         (execute_csharp_program): Don't invoke it.
13912         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13913         any more.
13915 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13917         renameatu: prefer renameat2 to syscall
13918         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13919         Use renameat2 instead of syscall (Bug#32796).
13920         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13922 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13924         bootstrap, gnulib-tool: use https instead of insecure rsync
13925         * build-aux/bootstrap (download_po_files, po_download_command_format):
13926         Don't try using rsync; always use wget over https to fetch PO files.
13927         * gnulib-tool (func_import): Likewise.
13928         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13930 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13932         bootstrap, gnulib-tool: correct the translations wget command
13933         * build-aux/bootstrap (po_download_command_format2): Restrict
13934         recursion to a single level.
13935         * gnulib-tool (func_import): Likewise.
13936         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13938 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13940         doc: the gnulib snapshots are not maintained
13941         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13943 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13945         timevar: add to lib_SOURCES
13946         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13948 2018-10-07  Bruno Haible  <bruno@clisp.org>
13950         dirent: Update documentation.
13951         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13953 2018-10-05  Bruno Haible  <bruno@clisp.org>
13955         strpbrk: Make it possible to namespace the defined symbol.
13956         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13958 2018-10-05  Bruno Haible  <bruno@clisp.org>
13960         strcspn: Make it possible to namespace the defined symbol.
13961         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13963 2018-10-05  Bruno Haible  <bruno@clisp.org>
13965         raise: Make it possible to namespace the defined symbol.
13966         * lib/raise.c (raise): Undefine only after the replacement function has
13967         been defined.
13968         (raise): Renamed from rpl_raise.
13969         (raise_nothrow): Move to the end of the compilation unit.
13971 2018-10-05  Bruno Haible  <bruno@clisp.org>
13973         memcmp: Make it possible to namespace the defined symbol.
13974         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13976 2018-10-05  Bruno Haible  <bruno@clisp.org>
13978         explicit_bzero: Make it possible to namespace the defined symbol.
13979         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13980         glibc.
13982 2018-10-05  Bruno Haible  <bruno@clisp.org>
13984         mkdir-p: Depend on 'mkdir'.
13985         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13987 2018-10-05  Bruno Haible  <bruno@clisp.org>
13989         tempname: Depend on 'mkdir'.
13990         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13991         at <https://savannah.gnu.org/bugs/?33379>.
13992         * modules/tempname (Depends-on): Add 'mkdir'.
13994 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13996         timevar: rely on gnulib modules for time portability.
13997         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13998         * m4/timevar.m4: Don't check for clock_t and struct tms,
13999         guaranteed by gnulib.
14000         * lib/timevar.h: Use extern "C" protection.
14001         Include <stdio.h> for FILE.
14002         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14003         they are guaranteed by gnulib.
14004         Remove uses of clock as (now useless) fallback.
14006 2018-10-04  Bruno Haible  <bruno@clisp.org>
14008         sh-filename: New module.
14009         * m4/sh-filename.m4: New file.
14010         * modules/sh-filename: New file.
14011         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14012         "/bin/sh".
14013         * tests/test-posix_spawn1.c (main): Likewise.
14014         * tests/test-posix_spawn2.c (main): Likewise.
14015         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14016         is_envjavac_gcj43): Likewise.
14017         * lib/javaexec.c (execute_java_class): Likewise.
14018         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14019         * modules/posix_spawnp-tests (Depends-on): Likewise.
14020         * modules/javacomp (Depends-on): Likewise.
14021         * modules/javaexec (Depends-on): Likewise.
14023 2018-10-04  Bruno Haible  <bruno@clisp.org>
14025         spawn-pipe tests: Avoid test failure on native Windows.
14026         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14027         that fd 2 is closed.
14029 2018-10-04  Bruno Haible  <bruno@clisp.org>
14031         fcntl: Make it possible to namespace the defined symbol.
14032         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14033         been defined.
14034         (fcntl): Renamed from rpl_fcntl.
14035         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14036         from fcntl.
14037         (klibc_fcntl): Move to the end of the compilation unit.
14039 2018-10-02  Bruno Haible  <bruno@clisp.org>
14041         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14042         * tests/test-vasnprintf.c (test_function): Change the test added on
14043         2018-09-23 to check only the 18 most significant digits.
14045         vasnprintf tests: Avoid test failure on Cygwin.
14046         * tests/test-vasnprintf.c (test_function): Change the test added on
14047         2018-09-23 to check only the 42 most significant digits.
14049 2018-10-01  Bruno Haible  <bruno@clisp.org>
14051         mkostemp, mkostemps: Update documentation.
14052         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14053         * doc/glibc-functions/mkostemps.texi: Likewise.
14055 2018-10-01  Tom Tromey  <tom@tromey.com>
14057         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14058         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14059         on OS X.
14061 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14063         hmac-*: refactor to remove repetitive code
14064         * lib/hmac.c: A new parameterized single implementation.
14065         * lib/hmac-md5.c: Define parameters and include implementation.
14066         * lib/hmac-sha1.c: Likewise.
14067         * lib/hmac-sha256.c: Likewise.
14068         * lib/hmac-sha512.c: Likewise.
14069         * modules/crypto/hmac-md5: Reference the new implementation file.
14070         * modules/crypto/hmac-sha1: Likewise.
14071         * modules/crypto/hmac-sha256: Likewise.
14072         * modules/crypto/hmac-sha512: Likewise.
14073         * tests/test-hmac-md5.c: Refactor common code to a single function.
14074         * tests/test-hmac-sha1.c: Likewise.
14075         * tests/test-hmac-sha256.c: Likewise.
14076         * tests/test-hmac-sha512.c: Likewise.
14078 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14080         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14081         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14082         key length to that output by sha512, not the blocksize.
14083         Otherwise uninitialized data from the stack
14084         is used when computing the hash.
14085         * tests/test-hmac-sha512.c: Add a shortened key test case.
14086         Reported at https://github.com/coreutils/gnulib/pull/5
14088 2018-09-30  Bruno Haible  <bruno@clisp.org>
14090         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14091         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14092         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14093         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14094         'unsigned int' before comparison with an unsigned value.
14096 2018-09-30  Bruno Haible  <bruno@clisp.org>
14098         grantpt: Remove unnecessary dependency.
14099         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14101 2018-09-30  Bruno Haible  <bruno@clisp.org>
14103         timevar: Small tweaks.
14104         * lib/timevar.h: Fix comments. Add parameter names to function
14105         declarations.
14106         * lib/timevar.c: Include timevar.h immediately after config.h.
14107         * lib/timevar.def: Fix comments.
14108         * modules/timevar (Maintainer): List Akim Demaille.
14110 2018-09-30  Bruno Haible  <bruno@clisp.org>
14112         timevar: Include documentation in gnulib manual.
14113         * doc/timevar.texi: Change node and section name to 'Profiling of
14114         program phases'.
14115         In the code snippets, tweak the #includes and use GNU coding style.
14116         * doc/gnulib.texi: Include timevar.texi.
14118 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14120         timevar: import from Bison.
14121         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14122         New files.
14123         * lib/timevar.def: New file.
14124         * doc/timevar.texi: New file.
14126 2018-09-26  Bruno Haible  <bruno@clisp.org>
14128         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14129         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14130         * lib/javacomp.c (default_target_version): Likewise.
14132 2018-09-26  Bruno Haible  <bruno@clisp.org>
14134         javacomp-script, javacomp: Add support for Java 11.
14135         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14136         target-version 11.
14137         * lib/javaversion.h: Update comments.
14138         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14139         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14140         TARGET_VERSION_BOUND, target_version_index,
14141         corresponding_classfile_version): Accept source_version 11 and
14142         target_version 11.
14143         * lib/javacomp.h: Update comments accordingly.
14145 2018-09-23  Bruno Haible  <bruno@clisp.org>
14147         vasnprintf: Fix heap memory overrun bug.
14148         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14149         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14150         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14151         memory.
14152         * tests/test-vasnprintf.c (test_function): Add another test.
14154 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14156         maint: mktime.c now shared with glibc
14157         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14158         are now the same in Gnulib and glibc.
14160         mktime: fix _LIBC typo
14161         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14163 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14165         dfa: optimization for state merge
14166         * lib/dfa.c (merge2): New function.
14167         (merge_nfa_state): Use it.
14169 2018-09-18  Jim Meyering  <meyering@fb.com>
14171         dfa: trivial comment fix: s/is/if/
14172         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14174 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14176         dfa: use more-informative function name
14177         * lib/dfa.c (maybe_disable_superset_dfa):
14178         Rename from dfautf8noss.  Use change.
14180         dfa: tweak allocation performance
14181         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14182         Prefer ptrdiff_t for indexes some more.
14183         Use char for flags, as it’s wide enough.
14184         Allocate queue and flags together, with one malloc call.
14185         No need to use xnmalloc since the multiplication and
14186         addition cannot overflow (it’s already been checked by
14187         earlier allocation).  Prefer memset to open-coding.
14189         dfa: prune states as we go
14190         * lib/dfa.c (prune): Remove.
14191         dfa: reorder enum for efficiency
14192         (merge_nfa_state): Prune as we go instead of at the end.
14193         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14195         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14196         of the enumeration to make it easier for GCC to generate
14197         efficient code by using fewer comparisons to check for
14198         ranges of values.
14199         (atom): Take advantage of the reordering.
14201 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14203         dfa: optimize alternation in NFA
14204         Even when similar states exist in alternation, the DFA treats them
14205         as separate items, which may complicate the transition in NFA and
14206         cause slowdown.  This change assembles the states into one.  For
14207         example, ab|ac is changed into a(b|c).  This change speeds-up
14208         matching for many branched patterns.  For example, grep speeds up
14209         more than 30× in:
14211           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14212           time -p env LC_ALL=C grep -vf in in
14214         * lib/dfa.c (prune): New function.
14215         (merge_nfa_state): New function.  It merges similar NFA states.
14216         (dfaoptimize): New function.  It seeks merged and removed nodes.
14217         (dfaanalyze): Call new function.
14218         (dfautf8noss): Change name from dfaoptimize because of addition of new
14219         function.
14220         (dfacomp): Update caller.
14222         dfa: simplify initial state
14223         Simplifying the initial state enables easier optimization of the NFA.
14224         * lib/dfa.c (enum token): Add new element BEG.
14225         (prtok): Adjust due to adding element BEG.
14226         (dfaparse): Put BEG at a head of tokens.
14227         (state_index): Adjust due to adding element BEG.
14228         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14229         build initial state.
14230         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14232 2018-09-18  Bruno Haible  <bruno@clisp.org>
14234         file-has-acl: Fix test failure on Cygwin 2.9.
14235         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14236         * lib/acl-internal.h: Likewise.
14237         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14238         * lib/acl-internal.c: Update comments regarding Cygwin.
14239         * lib/acl_entries.c: Likewise.
14240         * lib/file-has-acl.c: Likewise.
14241         (file_has_acl): For Cygwin, use a different way to determine whether
14242         the "default" ACL of a directory is nontrivial.
14243         * lib/get-permissions.c: Update comments regarding Cygwin.
14244         * lib/set-permissions.c: Likewise.
14246 2018-09-18  Bruno Haible  <bruno@clisp.org>
14248         stat-time tests: Fix test failure on Cygwin.
14249         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14251 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14253         doc: OS X 10.11 lacked ns time functions
14254         According to <https://github.com/zeromq/libzmq/issues/2175>,
14255         nanosecond-resolution timestamp functions were introduced
14256         in macOS 10.12, so document the last version (OS X 10.11)
14257         where they were absent.
14259         gettime: nanotime never existed
14260         Problem reported by Bruno Haible in:
14261         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14262         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14263         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14265 2018-09-18  Bruno Haible  <bruno@clisp.org>
14267         doc: Update statement about target platforms.
14268         Reported by Simon Sobisch.
14269         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14270         restrictions on MSVC versions.
14272 2018-09-18  Bruno Haible  <bruno@clisp.org>
14274         posix_spawn tests: Fix link error on 64-bit Cygwin.
14275         * tests/test-posix_spawn1.c (environ): Remove declaration.
14276         * tests/test-posix_spawn2.c (environ): Likewise.
14277         * tests/test-posix_spawn3.c (environ): Likewise.
14278         * tests/test-posix_spawn4.c (environ): Likewise.
14279         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14280         * modules/posix_spawnp-tests (Depends-on): Likewise.
14282 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14284         timespec: new function current_timespec
14285         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14286         and don’t worry about it failing on a CLOCK_REALTIME arg.
14287         POSIX requires it to succeed and I don’t know of any
14288         counterexamples where the fallbacks would work.
14289         (current_timespec): New function, taken from Emacs.  It is more
14290         convenient than gettime, and can help register allocation.
14291         * lib/timespec.h: Include arg-nonnull.h.
14292         (current_timespec): New declaration.
14293         (gettime, settime): Declare args to be nonnull.
14294         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14296 2018-09-16  Bruno Haible  <bruno@clisp.org>
14298         setlocale: Improve locale handling on macOS 10.12 or newer.
14299         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14300         gl_locale_name_canonicalize.
14301         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14302         and LC_MESSAGES.
14303         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14305 2018-09-16  Bruno Haible  <bruno@clisp.org>
14307         Update list of locale names with scripts on macOS.
14308         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14309         match Mac OS X 10.13 and recent glibc.
14311 2018-09-16  Bruno Haible  <bruno@clisp.org>
14313         gettext: Use newer macOS APIs when possible.
14314         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14315         CFLocaleCopyPreferredLanguages.
14317 2018-09-16  Bruno Haible  <bruno@clisp.org>
14319         localename: Revisit macOS specific code.
14320         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14321         Fix comments about Mac OS X versions.
14323 2018-09-15  Bruno Haible  <bruno@clisp.org>
14325         setlocale: Improve support for locales not supported by libc.
14326         Reported by Dapeng Gao <peter@dpgao.cc> at
14327         <https://savannah.gnu.org/bugs/?54479>.
14328         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14329         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14330         to be set is not supported by libc: Emit warnings instead of failing.
14332 2018-09-15  Bruno Haible  <bruno@clisp.org>
14334         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14335         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14336         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14337         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14339         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14340         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14341         * doc/glibc-functions/strcasestr.texi: Likewise.
14343 2018-09-14  Bruno Haible  <bruno@clisp.org>
14345         doc: Fix bottom of top-level page.
14346         Reported by Akim Demaille <akim.demaille@gmail.com> in
14347         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14348         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14349         mode.
14350         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14351         accordingly.
14353 2018-09-12  Bruno Haible  <bruno@clisp.org>
14355         Add test case from a recent glibc bug.
14356         * tests/test-strstr.c (main): Add test of long needle.
14357         * tests/test-strcasestr.c (main): Likewise.
14358         * tests/test-c-strstr.c (main): Likewise.
14359         * tests/test-c-strcasestr.c (main): Likewise.
14360         * tests/test-memmem.c (main): Likewise.
14362 2018-09-12  Bruno Haible  <bruno@clisp.org>
14364         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14365         * tests/test-c-strstr.c (main): Add the same tests here as well.
14367 2018-09-12  Bruno Haible  <bruno@clisp.org>
14369         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14370         * tests/test-memmem.c (main): Free haystack.
14371         * tests/test-strcasestr.c (main): Likewise.
14372         * tests/test-c-strcasestr.c (main): Likewise.
14374 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14376         xstrtol: fix missing-TYPE_SIGNED typo
14377         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14379 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14381         timespec: fix resolution confusion
14382         In normal usage, clock resolution is given in seconds, but the
14383         code was mistakenly using inverse seconds and calling it
14384         “resolution”.  Fix this, partly by renaming two identifiers.
14385         The old names will be kept for a bit, to ease transition.
14386         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14387         New constants, replacing TIMESPEC_RESOLUTION and
14388         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14389         All uses changed.
14391 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14393         mktime: simplify in prep for glibc merge
14394         * lib/mktime.c, lib/timegm.c [_LIBC]:
14395         Include mktime-internal.h (a small file just for glibc)
14396         instead of using a typedef.
14398 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14400         intprops: minor clarification of code
14401         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14402         Use _GL_INT_CONVERT rather than reinventing it.
14404 2018-09-07  Bruno Haible  <bruno@clisp.org>
14406         Fix a comment.
14407         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14409 2018-09-07  Bruno Haible  <bruno@clisp.org>
14411         posix_spawn_file_actions_addchdir: Add tests.
14412         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
14413         * tests/test-posix_spawn4.c: New file.
14414         * modules/posix_spawn_file_actions_addchdir-tests: New file.
14416 2018-09-07  Bruno Haible  <bruno@clisp.org>
14418         posix_spawn_file_actions_addchdir: New module.
14419         Suggested by Eric Blake in
14420         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
14421         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
14422         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
14423         union member 'chdir_action'.
14424         * lib/spawn_faction_addchdir.c: New file.
14425         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
14426         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
14427         HAVE_WORKING_POSIX_SPAWN.
14428         * lib/spawn_faction_adddup2.c: Likewise.
14429         * lib/spawn_faction_addopen.c: Likewise.
14430         * m4/posix_spawn_faction_addchdir.m4: New file.
14431         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14432         'posix_spawn_file_actions_addchdir' is present and whether
14433         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
14434         instead of HAVE_WORKING_POSIX_SPAWN.
14435         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14436         posix_spawn_file_actions_addchdir is declared.
14437         (gl_SPAWN_H_DEFAULTS): Initialize
14438         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14439         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14440         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14441         * modules/spawn (Makefile.am): Substitute
14442         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14443         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14444         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14445         * modules/posix_spawn_file_actions_addchdir: New file.
14446         * modules/posix_spawn_file_actions_addclose (Depends-on,
14447         configure.ac): Test also REPLACE_POSIX_SPAWN.
14448         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14449         configure.ac): Likewise.
14450         * modules/posix_spawn_file_actions_addopen (Depends-on,
14451         configure.ac): Likewise.
14452         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14453         signature.
14454         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14455         * doc/posix-functions/posix_spawnp.texi: Likewise.
14457 2018-09-06  Bruno Haible  <bruno@clisp.org>
14459         stddef: Override max_align_t on NetBSD 8.0/x86.
14460         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14461         the value of __alignof__ (max_align_t).
14462         * doc/posix-headers/stddef.texi: Mention the issue.
14464 2018-09-06  Bruno Haible  <bruno@clisp.org>
14466         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14467         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14468         system fcntl.
14469         * doc/posix-functions/fcntl.texi: Document the issue.
14471 2018-09-06  Bruno Haible  <bruno@clisp.org>
14473         count-trailing-zeros tests: Rely on limits-h module.
14474         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14475         definition.
14476         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14478 2018-09-06  Bruno Haible  <bruno@clisp.org>
14480         count-leading-zeros tests: Rely on limits-h module.
14481         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14482         definition.
14483         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14485 2018-09-06  Bruno Haible  <bruno@clisp.org>
14487         count-one-bits tests: Rely on limits-h module.
14488         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14489         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14491 2018-09-06  Bruno Haible  <bruno@clisp.org>
14493         xstrtoll: Rely on limits-h module.
14494         * lib/xstrtol.c: Don't include intprops.h.
14495         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14496         * modules/xstrtol (Depends-on): Remove 'intprops'.
14497         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14499 2018-09-06  Bruno Haible  <bruno@clisp.org>
14501         strtoll, strtoull: Rely on limits-h module.
14502         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14503         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14504         * modules/strtoll (Depends-on): Add limits-h.
14505         * modules/strtoull (Depends-on): Likewise.
14507 2018-09-06  Bruno Haible  <bruno@clisp.org>
14509         intprops tests: Fix compilation error with pre-C99 compiler.
14510         * tests/test-intprops.c (verify_stmt): New macro.
14511         (VERIFY, main): Use it.
14513 2018-09-06  Bruno Haible  <bruno@clisp.org>
14515         limits-h: Provide numerical limits macros.
14516         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14517         IRIX and for GCC.
14518         (WORD_BIT, LONG_BIT): Define.
14519         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14520         <limits.h> does not define LLONG_MAX or WORD_BIT.
14521         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14522         TYPE_MAXIMUM): New macros, from intprops.h.
14523         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14524         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14525         provides.
14527 2018-09-05  Bruno Haible  <bruno@clisp.org>
14529         fcntl: Don't access nonexistent optional argument.
14530         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14531         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14532         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14533         don't consume an argument. For actions that take an 'int' argument,
14534         consume an 'int' argument.
14536 2018-09-05  Eric Blake  <eblake@redhat.com>
14538         doc: mention environ pitfall
14539         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14540         environ is a glibc extension.
14542 2018-09-03  Bruno Haible  <bruno@clisp.org>
14544         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14545         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14546         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14547         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14548         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14549         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14551 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14553         mktime: fix unlikely race+overflow bug
14554         Problem reported by Alexandre Oliva in:
14555         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14556         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14557         to avoid an unlikely race if the compiler delays a load and
14558         if this cascades into a signed integer overflow.
14560 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14562         mktime, timegm: simplify glibc time64_t
14563         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14564         Now long int, not time_t, since long int is the longstanding type
14565         for this in glibc and there is no need to change it even if time_t
14566         becomes 64 bits - even int would do, though this would be a change
14567         to the glibc generated code.  When this change is merged into
14568         glibc, it should simplify the time_t vs time64_t situation.
14570         mktime, timegm: simplify merge to glibc
14571         Move code around to make a merge to glibc easier to audit.
14572         This should not change behavior.
14573         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14574         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14575         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14576         simplify later conditionals; default the others to zero.  In uses
14577         of these conditionals, explicitly spell out how _LIBC affects
14578         things, so it’s easier to review from a glibc viewpoint.
14579         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14580         compartmentalize tzset issues.  Move system-dependent tzsettish
14581         code here from mktime.
14582         (mktime): Move tzsettish code to my_tzset, and move
14583         localtime_offset to within mktime so that it doesn’t
14584         need a separate ifdef.
14586 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14588         intprops: avoid evaluation of some expressions
14589         This makes EXPR_SIGNED (e) easier to use, as it no longer
14590         evaluates the expression E.  Formerly, E was required to be free
14591         of side effects.
14592         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14593         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14594         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14596 2018-08-23  Bruno Haible  <bruno@clisp.org>
14598         getcwd: Add cross-compilation guesses.
14599         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14600         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14601         Based on a patch by Paul Eggert.
14602         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14603         guesses for all GNU systems.
14605 2018-08-19  Bruno Haible  <bruno@clisp.org>
14607         glob-h: Formalize side effects from other modules.
14608         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14609         * m4/glob.m4 (gl_GLOB): Invoke it.
14611         fnmatch-h: Formalize side effects from other modules.
14612         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14615         limits-h: Formalize side effects from other modules.
14616         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14617         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14619 2018-08-19  Bruno Haible  <bruno@clisp.org>
14621         getpass: Move declaration to <unistd.h>.
14622         * lib/unistd.in.h (getpass): New declaration.
14623         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14624         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14625         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14626         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14627         On glibc systems, don't set REPLACE_GETPASS to 1.
14628         * modules/getpass (Depends-on): Add 'unistd'.
14629         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14630         (Include): Specify <unistd.h> instead of "getpass.h".
14631         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14632         (configure.ac): Sync with the configure.ac section of modules/getpass.
14633         (Include): Specify <unistd.h> instead of "getpass.h".
14634         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14635         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14636         REPLACE_GETPASS.
14637         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14638         REPLACE_GETPASS.
14639         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14640         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14641         and musl.
14642         * NEWS: Mention the change.
14644 2018-08-19  Bruno Haible  <bruno@clisp.org>
14646         glob: Fix over-optimization due to attribute __nonnull__.
14647         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14649 2018-08-19  Bruno Haible  <bruno@clisp.org>
14651         glob: Fix another compilation error when glob.h is not replaced.
14652         Reported by Reuben Thomas <rrt@sc3d.org> in
14653         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14654         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14655         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14657 2018-08-18  Bruno Haible  <bruno@clisp.org>
14659         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14660         Reported by Reuben Thomas <rrt@sc3d.org> in
14661         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14662         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14663         in config.h.
14665 2018-08-18  Bruno Haible  <bruno@clisp.org>
14667         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14668         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14669         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14670         Solution proposed by Eli Zaretskii.
14671         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14672         * lib/gettimeofday.c (GetProcAddress): Likewise.
14673         * lib/link.c (GetProcAddress): Likewise.
14674         * lib/physmem.c (GetProcAddress): Likewise.
14675         * lib/poll.c (GetProcAddress): Likewise.
14676         * lib/select.c (GetProcAddress): Likewise.
14677         * lib/stat-w32.c (GetProcAddress): Likewise.
14679 2018-08-18  Bruno Haible  <bruno@clisp.org>
14681         glob: Fix another compilation error when glob.h is not replaced.
14682         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14683         * lib/globfree.c: Include <libc-config.h>.
14685 2018-08-18  Bruno Haible  <bruno@clisp.org>
14687         glob: Fix compilation error when glob.h is not replaced.
14688         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14689         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14690         * lib/glob_pattern_p.c: Include <libc-config.h>.
14691         * modules/glob (Depends-on): Add libc-config.
14693 2018-08-18  Bruno Haible  <bruno@clisp.org>
14695         scratch_buffer: Add tests.
14696         * tests/test-scratch-buffer.c: New file.
14697         * modules/scratch_buffer-tests: New file.
14699 2018-08-18  Bruno Haible  <bruno@clisp.org>
14701         scratch_buffer: Fix include file.
14702         Reported by Reuben Thomas <rrt@sc3d.org> in
14703         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14704         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14705         double-inclusion guard.
14707 2018-08-18  Bruno Haible  <bruno@clisp.org>
14709         glob-h: Revert Paul Eggert's revert.
14710         * m4/glob_h.m4: Revert to previous state.
14711         * modules/glob-h: Likewise.
14713 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14715         glob-h: always build glob.h
14716         This works around a problem reported by Reuben Thomas in:
14717         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14718         This workaround always builds glob.h, even on platforms that
14719         do not need it; perhaps this could be improved someday.
14720         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14721         is always created now.
14722         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14724 2018-08-13  Bruno Haible  <bruno@clisp.org>
14726         monetary: Simplify m4 code.
14727         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14728         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14730 2018-08-13  Bruno Haible  <bruno@clisp.org>
14732         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14733         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14734         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14735         and by Paul J. Lucas <paul@lucasmail.org> in
14736         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14737         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14739 2018-08-11  Bruno Haible  <bruno@clisp.org>
14741         setlocale: Trivial simplification.
14742         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14744 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14746         verify: port 'assume' to traditional tools
14747         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14748         and other tools that use /*NOTREACHED*/ comments.
14750 2018-08-10  Bruno Haible  <bruno@clisp.org>
14752         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14753         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14754         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14755         'fnmatch-gnu' is in use.
14757 2018-08-07  Bruno Haible  <bruno@clisp.org>
14759         glob-h: Add tests.
14760         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14761         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14762         tests/test-glob-h.c.
14763         * modules/glob-h-tests: New file.
14764         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14765         conditions.
14766         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14767         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14769 2018-08-07  Bruno Haible  <bruno@clisp.org>
14771         glob-h: New module.
14772         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14773         replacements.
14774         * lib/glob.c: Include <config.h>.
14775         * m4/glob_h.m4: New file.
14776         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14777         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14778         REPLACE_GLOB_PATTERN_P as appropriate.
14779         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14780         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14781         * modules/glob-h: New file.
14782         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14783         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14784         lstat, sys_stat. Change conditions.
14785         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14786         REPLACE_GLOB_PATTERN_P. Set module indicator.
14787         (Makefile.am): Remove code that is moved to glob-h.
14788         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14789         * modules/posixcheck (Depends-on): Add glob-h.
14791 2018-08-06  Bruno Haible  <bruno@clisp.org>
14793         Force generation of substitute .h file when C++ support is enabled.
14794         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14795         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14796         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14797         FNMATCH_H to non-empty.
14798         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14799         ICONV_H to non-empty.
14800         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14801         MONETARY_H to non-empty.
14802         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14803         non-empty.
14805 2018-08-06  Bruno Haible  <bruno@clisp.org>
14807         fnmatch-h: Fix test compilation error on mingw (regression from today).
14808         * lib/fnmatch.in.h: Fix conditions.
14810 2018-08-06  Bruno Haible  <bruno@clisp.org>
14812         sys_resource: Relicense under LGPLv2+.
14813         John Malmberg's approval is in
14814         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14815         * modules/sys_resource (License): Change to LGPLv2+.
14817 2018-08-06  Bruno Haible  <bruno@clisp.org>
14819         fnmatch-h: Add tests.
14820         * tests/test-fnmatch-h.c: New file.
14821         * modules/fnmatch-h-tests: New file.
14822         * tests/test-fnmatch-h-c++.cc: New file.
14823         * modules/fnmatch-h-c++-tests: New file.
14825 2018-08-06  Bruno Haible  <bruno@clisp.org>
14827         fnmatch-h: New module.
14828         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14829         replacements.
14830         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14831         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14832         'posixcheck' warning.
14833         * m4/fnmatch_h.m4: New file.
14834         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14835         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14836         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14837         as appropriate.
14838         * modules/fnmatch-h: New file.
14839         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14840         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14841         conditions.
14842         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14843         indicator.
14844         (Makefile.am): Remove code that is moved to fnmatch-h.
14845         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14846         REPLACE_FNMATCH.
14847         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14848         * modules/posixcheck (Depends-on): Add fnmatch-h.
14850 2018-08-06  Bruno Haible  <bruno@clisp.org>
14852         Enable more C++ tests.
14853         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14854         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14855         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14856         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14857         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14859 2018-08-06  Bruno Haible  <bruno@clisp.org>
14861         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14862         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14863         getopt.h.
14864         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14866 2018-08-05  Bruno Haible  <bruno@clisp.org>
14868         utime-h: Generate header file when module 'posixcheck' is in use.
14869         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14870         UTIME_H to non-empty.
14872 2018-08-05  Bruno Haible  <bruno@clisp.org>
14874         monetary: Generate header file when module 'posixcheck' is in use.
14875         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14876         use, set MONETARY_H to non-empty.
14878 2018-08-05  Bruno Haible  <bruno@clisp.org>
14880         iconv-h: Generate header file when module 'posixcheck' is in use.
14881         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14882         set ICONV_H to non-empty.
14884 2018-08-05  Bruno Haible  <bruno@clisp.org>
14886         Optimize the "checking whether ... is declared without a macro" checks.
14887         Suggested by Paul Eggert in
14888         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14889         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14890         Gnulib module 'posixcheck' is not in use.
14892 2018-08-05  Bruno Haible  <bruno@clisp.org>
14894         iconv-h: Enable 'posixcheck' warnings.
14895         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14896         iconv_open.
14897         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14899 2018-08-05  Bruno Haible  <bruno@clisp.org>
14901         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14902         * m4/extern-inline.m4: Add more comments.
14903         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14904         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14905         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14907 2018-08-04  Bruno Haible  <bruno@clisp.org>
14909         New module 'posixcheck'.
14910         * modules/posixcheck: New file.
14911         * m4/posixcheck.m4: New file.
14912         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14913         (Which modules?): Reference it.
14915 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14917         dfa: fix memory leak
14918         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14920 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14922         ieee754-h: new module
14923         It looks like Emacs can use this for some NaN processing.
14924         Emacs uses it only on double NaNs so it should be safe.
14925         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14926         * config/srclist.txt: Mention ieee754.h in a comment.
14927         * doc/glibc-headers/ieee754.texi (ieee754.h):
14928         Gnulib now has a substitute that should work
14929         except for long double and for non-IEEE platforms.
14930         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14931         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14933 2018-07-27  Bruno Haible  <bruno@clisp.org>
14935         iswcntrl: Mention minor problem on macOS.
14936         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14938 2018-07-26  Colin Watson  <cjwatson@debian.org>
14940         bootstrap, gnulib-tool: fix translations rsync
14941         Previously, we created files such as $pobase/Makefile.in.in and then the
14942         subsequent rsync would immediately delete them.
14943         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14944         non-.po files in target directory when rsyncing translations.
14945         * gnulib-tool (func_import): Likewise.
14946         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14948 2018-07-25  Jim Meyering  <meyering@fb.com>
14950         bootstrap: reinstate definition fo gnulib_mk.
14951         That variable is used at least by cppi.
14952         * build-aux/bootstrap (gnulib_mk): Restore definition.
14953         This reverts the deletion from v0.1-1844-gc66dba9ba.
14955 2018-07-23  Bruno Haible  <bruno@clisp.org>
14957         doc: For module names, use texinfo markup @code{} or @samp{}.
14958         * doc/alloca.texi: Mark gnulib module names with @code.
14959         * doc/alloca-opt.texi: Likewise.
14960         * doc/quote.texi: Likewise.
14961         * doc/posix-functions/freopen.texi: Likewise.
14962         * doc/posix-functions/open.texi: Likewise.
14963         * doc/posix-functions/readlink.texi: Likewise.
14964         * doc/posix-functions/readlinkat.texi: Likewise.
14965         * doc/posix-functions/stdout.texi: Likewise.
14966         * doc/posix-functions/stderr.texi: Likewise.
14967         * doc/posix-functions/unlink.texi: Likewise.
14968         * doc/posix-functions/unlinkat.texi: Likewise.
14969         * doc/posix-functions/utime.texi: Likewise.
14970         * doc/posix-functions/utimensat.texi: Likewise.
14971         * doc/posix-functions/utimes.texi: Likewise.
14972         * doc/posix-headers/stdint.texi: Likewise.
14973         * doc/glibc-functions/futimesat.texi: Likewise.
14974         * doc/glibc-functions/lutimes.texi: Likewise.
14975         * doc/glibc-functions/memmem.texi: Likewise.
14977 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14979         doc: Avoid some overfull lines in the TeX output.
14980         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14981         @example.
14982         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14983         newline before the long URL.
14984         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14985         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14986         Add line breaks in code snippets.
14988 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14990         hard-locale: simplify by removing hard-locale.m4
14991         * m4/hard-locale.m4: Remove.
14992         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14993         (configure.ac): Do not call gl_HARD_LOCALE.
14995         gnulib-tool: limit line length for git send-email
14996         * gnulib-tool (func_import): Break actioncmd log line
14997         into multiple lines.
14999 2018-07-16  Bruno Haible  <bruno@clisp.org>
15001         ffs: Ensure declaration on mingw.
15002         Reported by Daniel P. Berrangé <berrange@redhat.com>
15003         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15004         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15005         also declared.
15007 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15009         regex-tests: add dependency
15010         * modules/regex-tests (Depends-on): Add gettext-h.
15011         This is needed given the recent changes to regex,
15012         which no longer depends on gettext-h.
15014 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15016         regex: now in sync with glibc
15017         * config/srclist.txt: Gnulib and glibc regex code
15018         are synchronized again.
15020 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15022         renameatu: rename from renameat2
15023         It's looking like Glibc will add a renameat2 function
15024         that is incompatible with Gnulib renameat2; see:
15025         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15026         To help avoid future confusion, rename renameat2 to something else.
15027         Use the name 'renameatu', as the Gnulib function is close to the
15028         Glibc function.  Perhaps someday there will also be a renameat2
15029         Gnulib module, which mimicks the future glibc renameat2, but that
15030         can wait as nobody seems to need such a module now.
15031         * NEWS: Mention this.
15032         * lib/renameatu.c: Rename from lib/renameat2.c.
15033         * lib/renameatu.h: Rename from lib/renameat2.h.
15034         * modules/renameatu: Rename from modules/renameat2.
15035         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15036         All uses of "renameat2" in identifiers or file name
15037         changed to "renameatu", except for two instances in
15038         lib/renameatu.c that deal with the Linux kernel's
15039         renameat2 syscall.
15041 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15043         gnulib-tool: minor tweaks for --gnu-make
15044         * gnulib-tool: Do not allow --gnu-make in test modes,
15045         since they all require automake.
15046         (func_emit_lib_Makefile_am): Don’t emit automake comment
15047         if --gnu-make.
15049         regex: work around conditional-dependencies glitch
15050         * modules/regex (Depends-on): Add langinfo.
15051         Without this change, I had problems building an experimental
15052         version of GNU Emacs.  The symptom of the bug was a message
15053         ‘./configure: line 12726: test: =: unary operator expected’.
15054         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15055         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15056         was unset.  Although gl_FUNC_NL_LANGINFO has
15057         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15058         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15059         --conditional-dependencies sometimes arranges for the
15060         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15061         code.  Since the regex code includes <langinfo.h> it should be
15062         depending on the langinfo module anyway, and this happens to work
15063         around the bug, so install that as a workaround for now.  To
15064         reproduce the original problem, run the following shell script on
15065         the version of Gnulib just before this patch was installed.
15066                 rm -fr foo
15067                 mkdir foo
15068                 cat >foo/configure.ac <<'EOF'
15069                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15070                 gl_EARLY
15071                 gl_INIT
15072                 AC_OUTPUT
15073                 EOF
15074                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15075                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15076                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15077                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15078                 cd foo
15079                 aclocal -I m4
15080                 autoconf
15081                 ./configure --with-included-regex
15083 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15085         wchar: fix bug when checking for ‘inline’
15086         I discovered this when looking into using the regex module
15087         with Emacs.
15088         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15089         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15090         conftest1.c and conftest2.c but these files were not created.
15091         As far as I can see, this check never worked and nobody reported
15092         it until now, which is a bit worrisome.
15094 2018-06-30  Jim Meyering  <meyering@fb.com>
15096         bootstrap: s/--option val/--option=val/
15097         * build-aux/bootstrap (gnulib_tool_options): Change the
15098         spelling of "--option val" pairs to "--option=val", for
15099         aesthetics, and also so that this file no longer triggers
15100         a common help2man syntax-check warning when copied into
15101         projects like grep, gzip, etc.
15103 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15105         manywarnings: omit -Wswitch-default
15106         This should make things more consistent, as we already ignore
15107         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15108         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15109         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15110         Add -Wswitch-default.
15111         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15112         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15113         Remove -Wswitch-default.
15115         regex: revert most trimming
15116         Problems reported by Bruno Haible in:
15117         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15118         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15119         and wctype back in.  lock because regex users shouldn’t
15120         need to know that regex needs locking, and the rest because
15121         gnulib-tool should ordinarily ignore them anyway.
15123 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15125         regex: trim module dependencies
15126         * modules/regex (Depends-on): Remove gettext-h and lock,
15127         since the regex code should work OK without these modules,
15128         and Emacs uses it that way.  Also remove memcmp, memmove,
15129         and wctype, as these modules are obsolete and should not be
15130         needed any more.
15132 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15134         regex: glibc does not use intprops.h
15135         Maybe we can talk glibc into using intprops.h someday, but
15136         now doesn’t seem to be a good time.
15137         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15138         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15139         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15141 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15143         regex: port to recently proposed glibc regex merge
15144         This patch is inspired by Adhemerval Zanella's recent proposal
15145         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15146         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15147         the glibc side, without keeping Gnulib portable.
15148         * lib/regex.h: Fix a problem with glibc installed-header checking,
15149         as follows:
15150         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15151         (_Restrict_arr_): Prefer __restrict_arr if defined,
15152         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15153         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15154         (build_wcs_upper_buffer, build_upper_buffer)
15155         (re_string_translate_buffer, re_string_context_at):
15156         Move decls here from lib/regex_internal.h, for glibc internal tests.
15157         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15158         glibc BZ #18496.
15159         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15160         -Wunused-value.
15161         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15162         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15163         (bitset_mask): Now static inline, and without any __attribute__
15164         ((unused)) decoration, for glibc internal tests.
15166 2018-06-25  Bruno Haible  <bruno@clisp.org>
15168         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15169         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15170         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15171         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15172         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15173         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15174         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15175         / -lthread / -lpth does not get optimized away by a preceding
15176         --as-needed option.
15178 2018-06-25  Bruno Haible  <bruno@clisp.org>
15180         Continue to use spaces for indentation, not tabs.
15181         * MODULES.html.sh: Untabify.
15182         * doc/regex.texi: Likewise.
15183         * lib/acl-internal.c: Likewise.
15184         * lib/dfa.c: Likewise.
15185         * lib/exclude.c: Likewise.
15186         * lib/exclude.h: Likewise.
15187         * lib/get-permissions.c: Likewise.
15188         * lib/gettimeofday.c: Likewise.
15189         * lib/parse-datetime.y: Likewise.
15190         * lib/pselect.c: Likewise.
15191         * lib/set-permissions.c: Likewise.
15192         * lib/time.in.h: Likewise.
15193         * m4/canonicalize.m4: Likewise.
15194         * m4/gc.m4: Likewise.
15195         * m4/gnulib-common.m4: Likewise.
15196         * m4/pthread_sigmask.m4: Likewise.
15197         * m4/vararrays.m4: Likewise.
15198         * tests/test-digest.h: Likewise.
15199         * tests/test-fcntl-h.c: Likewise.
15200         * tests/test-timespec.c: Likewise.
15201         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15203 2018-06-25  Bruno Haible  <bruno@clisp.org>
15205         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15206         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15207         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15208         -Wjump-misses-init.
15210 2018-06-25  Jim Meyering  <meyering@fb.com>
15212         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15213         * lib/acl-internal.h (free_permission_context): Remove that
15214         attribute directive.  Otherwise, it would provoke this from GCC 9:
15215         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15216           returning 'void' [-Werror=attributes]
15218 2018-06-24  Jim Meyering  <meyering@fb.com>
15220         parse-datetime: accommodate gcc-4.8.5
15221         Bruno Haible reported the build failure in
15222         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15223         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15224         on declaration of new local.
15226 2018-06-24  Bruno Haible  <bruno@clisp.org>
15228         af_alg: Fail in continuable manner on Linux/powerpc64le.
15229         Reported by Assaf Gordon <assafgordon@gmail.com>
15230         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15231         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15232         byte send() as the first round.
15234 2018-06-24  Bruno Haible  <bruno@clisp.org>
15236         af_alg: Fix state of stream after sendfile() succeeds.
15237         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15238         the stream is correctly positioned afterwards.
15239         * modules/crypto/af_alg (Depends-on): Add fflush.
15240         * tests/test-digest.h (test_digest_on_files): Verify that after the
15241         operation the stream is positioned at end of file.
15243 2018-06-24  Jim Meyering  <meyering@fb.com>
15245         canon-host: take GCC9's advice rather than ignoring warning
15246         Pádraig Brady suggested not to ignore this GCC9 advice.
15247         * lib/canon-host.c: Undo preceding change.
15248         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15250         parse-datetime.y: avoid spurious GCC 9 warning
15251         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15252         a function local prior to the first "goto fail".  The prior use would
15253         evoke this:
15254         parse-datetime.y: In function 'parse_datetime2':
15255         parse-datetime.y:1791:19: error: jump skips variable initialization \
15256           [-Werror=jump-misses-init]
15257         parse-datetime.y:2385:2: note: label 'fail' defined here
15258         parse-datetime.y:188:43: note: '({anonymous})' declared here
15259         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15261         canon-host.c: avoid spurious GCC 9 warning
15262         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15264         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15265         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15266         * m4/manywarnings.m4: Remove them.
15267         Otherwise, building coreutils, I would see this:
15268         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15269         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15270         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15271           which is also used by default
15272         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15274 2018-06-24  Bruno Haible  <bruno@clisp.org>
15276         af_alg tests: Add another test.
15277         * tests/test-digest.h (test_digest_on_files): Also check a large file
15278         with a skipped header.
15279         * tests/test-md5.c: Include macros.h.
15280         * tests/test-sha1.c: Likewise.
15281         * tests/test-sha256.c: Likewise.
15282         * tests/test-sha512.c: Likewise.
15283         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15284         * modules/crypto/sha1-tests (Files): Likewise.
15285         * modules/crypto/sha256-tests (Files): Likewise.
15286         * modules/crypto/sha512-tests (Files): Likewise.
15288 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15290         maint: clarify comments about sticky EOF
15291         * lib/af_alg.c: Be more direct that we can't
15292         assume stickiness of EOF for portability reasons.
15293         * lib/md5.c: Clarify that this isn't just a glibc issue.
15294         * lib/sha1.c: Likewise.
15295         * lib/sha256.c: Likewise.
15296         * lib/sha512.c: Likewise.
15298 2018-06-24  Bruno Haible  <bruno@clisp.org>
15300         af_alg: Comment and style improvements.
15301         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15302         (afalg_buffer, afalg_stream): Improve comments.
15304 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15306         af_alg: disable kernel hash functions by default
15307         All the kernel routines were seen to be significantly slower
15308         with these relatively recent components on an i3-2310M system:
15309           kernel-4.10.6-200.fc25.x86_64
15310           openssl-1.0.2m-1.fc25.x86_64
15311         sha1 was nearly twice as slow in the kernel for example.
15312         Further considerations why this should not be the default, at:
15313         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15315         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15316         * m4/gl-openssl.m4: Tweak accordingly.
15318 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15320         af_alg: avoid hangs when reading from streams
15321         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15322         and thus avoid doing a fread() when feof() is set.
15323         * lib/md5.c: Ensure feof() is called before fread().
15324         * lib/sha1.c: Likewise.
15325         * lib/sha256.c: Likewise.
15326         * lib/sha512.c: Likewise.
15328 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15330         af_alg: fix error handling when hash not returned
15331         * lib/af_alg.c (afalg_stream): Handle the case where we've
15332         successfully written data to the kernel in the read/write loop,
15333         but the kernel doesn't respond with the hash.
15335 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15337         libc-config: merge from glibc
15338         * lib/cdefs.h (__inline, __restrict):
15339         Copy from current glibc.  This fixes glibc bug 17721,
15340         which Gnulib had already fixed in a different way.
15341         (__nonnull): Lessen the distance from glibc by using the
15342         glibc definition inside an ‘#ifndef __nonnull’.
15343         (__attribute_nonstring__): New macro, copied from
15344         current glibc.
15345         * lib/libc-config.h (__attribute_nonstring__): New undef.
15346         (__restrict): Remove; workaround no longer needed.
15347         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15348         support more compilers than the glibc __inline can.
15350 2018-06-24  Bruno Haible  <bruno@clisp.org>
15352         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15353         * lib/mbrtowc.c (enc_t): New enum type.
15354         (locale_enc, locale_enc_cached): New functions.
15355         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15356         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15357         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15358         instead.
15359         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15360         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15361         * modules/wcwidth (configure.ac): Invoke it.
15363 2018-06-24  Bruno Haible  <bruno@clisp.org>
15365         wchar-single: Fix test failure in wcwidth tests.
15366         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15367         skip the tests in the C locale.
15369 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15371         crypto: mention --without-linux-crypto in --with-openssl --help
15372         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15373         routines take precedence in --with-openssl help output.
15375 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15377         wchar-single: a new module to enable optimizations in wchar replacements
15378         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15379         GNULIB_WCHAR_SINGLE is enabled.
15380         * lib/wcwidth.c (wcwidth): Likewise.
15382 2018-06-23  Bruno Haible  <bruno@clisp.org>
15384         libc-config: Fix conflict with FreeBSD include files.
15385         * lib/cdefs.h (__nonnull): Remove definition.
15386         * lib/libc-config.h (__nonnull): Remove undefinition.
15388 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15390         random_r: do not crash if state is unaligned
15391         Problem reported by Bruce Korb in:
15392         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15393         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15394         with 'cc -O2 -xmemalign=8s'.
15395         * lib/random_r.c: Include string.h, for memcpy.
15396         (get_int32, set_int32): New functions.
15397         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15398         Use them to avoid assumption that state pointer is aligned.
15399         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15400         * tests/test-random_r.c (test_failed): New function.
15401         (main): Use it, to test for alignment bugs.
15403         random_r: omit unnecessary include
15404         * lib/random_r.c: Do not include limits.h.
15406         random, random_r: merge from glibc
15407         * lib/random.c, lib/random_r.c:
15408         Include libc-config.h if !_LIBC, not config.h unilaterally.
15409         * lib/random.c:
15410         Do not include stdint.h or time.h; not needed.
15411         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15412         (unsafe_state): Rename from generator.  All uses changed.
15413         Use C99-style initializers.
15414         (__random, __srandom, __initstate, __setstate): Rename from
15415         non-underscored version, but define it to non-underscored version
15416         on Gnulib.  Add a lock.
15417         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
15418         Likewise.
15419         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
15420         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
15421         (__srandom_r): Use int32_t instead of long int where int32_t will do.
15422         (__random_r): Use uint32 to fix glibc bug 17343.
15423         * modules/random, modules/random_r (Depends-on): Add libc-config.
15424         Depend on stdint only if $HAVE_RANDOM = 0.
15426 2018-06-19  Jim Meyering  <meyering@fb.com>
15428         README-release: also run any check-very-expensive tests
15429         * top/README-release: Adjust instructions so they run the
15430         check-very-expensive tests when there is such a target.
15432 2018-06-18  Bruno Haible  <bruno@clisp.org>
15434         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
15435         * m4/pthread_rwlock_rdlock.m4: Add comment.
15436         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
15437         are reader-preferring in glibc.
15438         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15439         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15441 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15443         crypto: use byteswap
15444         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15445         * lib/sm3.c: Include <byteswap.h>.
15446         (SWAP): Use its macros rather than reinventing the wheel.
15447         * modules/crypto/md4, modules/crypto/md5-buffer:
15448         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15449         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15450         (Depends-on): Add byteswap.
15452 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15454         gendocs.sh: fix support for legacy --texi2html
15455         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15456         to the default makeinfo invocation.
15457         Reported by Bruce Korb
15459 2018-06-17  Bruno Haible  <bruno@clisp.org>
15461         gettext po infrastructure: Update from current gettext git.
15462         Reported by Akim Demaille <akim@lrde.epita.fr>.
15463         * build-aux/po/Makefile.in.in: Update from current gettext git.
15464         * build-aux/po/remove-potcdate.sin: Likewise.
15465         * config/srclist.txt: Temporarily disable sync for these files.
15467 2018-06-17  Bruno Haible  <bruno@clisp.org>
15469         getloadavg: Return 0 on Windows without Cygwin.
15470         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15472 2018-06-17  Paul Smith  <psmith@gnu.org>
15474         getloadavg: Allow building on Windows without Cygwin
15475         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15476         * m4/getloadavg.m4: Check for unistd.h.
15478 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15480         Port crypto/af_alg to GCC 4.8.4
15481         Problem reported by Peter Simons in:
15482         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15483         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15485 2018-05-27  Colin Watson  <cjwatson@debian.org>
15487         bootstrap: document source fetching in --help
15488         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15490 2018-04-09  Colin Watson  <cjwatson@debian.org>
15492         bootstrap: allow non-submodule control of gnulib
15493         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15494         bootstrap.conf when fetching gnulib using "git clone" or via
15495         GNULIB_SRCDIR.
15497 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15499         crypto: omit stream ops Emacs doesn’t need
15500         * lib/md5.c (md5_stream):
15501         * lib/sha1.c (sha1_stream):
15502         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15503         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15504         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15505         defined.  Emacs needs this, as it does not use the stream
15506         operations and doesn’t need all the af_alg stuff we’ve recently
15507         added.  Perhaps a similar change is needed to the other crypto
15508         modules, but this patch changes only those needed for Emacs.
15509         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15510         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15511         New modules, used by Emacs.
15512         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15513         * modules/crypto/sha512: Rewrite to depend on the new modules.
15515 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15517         fts: avoid a memory leak edge case
15518         * lib/fts.c (fts_open): Set an appropriate fts_level
15519         so that an immediate fts_close() will free the allocation.
15520         * tests/test-fts.c (fts_dealloc): Add a test case which
15521         will trigger under valgrind or address sanitizer.
15522         Fixes https://bugs.gnu.org/31439
15524 2018-05-20  Bruno Haible  <bruno@clisp.org>
15526         wcwidth tests: Fix link error.
15527         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15528         $(LIBUNISTRING).
15530 2018-05-20  Bruno Haible  <bruno@clisp.org>
15532         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15533         * modules/regex (Files): Add m4/glibc21.m4.
15535 2018-05-20  Bruno Haible  <bruno@clisp.org>
15537         localcharset: Optimize.
15538         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15539         platforms where these don't matter. This reduces the table size,
15540         which in turn reduces the lookup time.
15542 2018-05-19  Bruno Haible  <bruno@clisp.org>
15544         localcharset: Map the locale encodings found in newer OSes.
15545         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15546         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15547         IRIX 6.5, Minix 3.3.
15548         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15550 2018-05-19  Bruno Haible  <bruno@clisp.org>
15552         localcharset: Move mapping tables into the code. Use a binary search.
15553         * lib/localcharset.h: Document the GNU canonical names for character
15554         encodings here.
15555         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15556         relocatable.h, configmake.h.
15557         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15558         macros.
15559         (charset_aliases): Remove variable.
15560         (get_charset_aliases): Remove function.
15561         (struct table_entry): New type.
15562         (alias_table, locale_table): New constants.
15563         (locale_charset): Use the alias_table or locale_table to get the
15564         canonicalized encoding name.
15565         * lib/config.charset: Remove file.
15566         * lib/ref-add.sin: Remove file.
15567         * lib/ref-del.sin: Remove file.
15568         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15569         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15570         * modules/localcharset (Notice): Remove.
15571         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15572         glibc21.m4.
15573         (Depends-on): Remove configmake.
15574         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15575         (Makefile.am): Simplify.
15576         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15578 2018-05-19  Bruno Haible  <bruno@clisp.org>
15580         localcharset: Add a manual test.
15581         * tests/test-localcharset.c: New file.
15582         * modules/localcharset-tests: New file.
15584 2018-05-19  Bruno Haible  <bruno@clisp.org>
15586         localcharset: Remove support for obsolete platforms.
15587         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15588         Mac OS X 10.2. Comment out dubious entry for Solaris.
15590 2018-05-19  Jim Meyering  <meyering@fb.com>
15592         gnupload: adjust comment
15593         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15594         more likely we'll remove the just-added code in a year or two.
15596 2018-05-19  Bruno Haible  <bruno@clisp.org>
15598         gnupload: Fix "gpg-agent is not available in this session" error.
15599         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15601 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15603         crypto/af_alg: fix --help
15604         * m4/af_alg.m4: Avoid spurious newline in --help output.
15606 2018-05-13  Bruno Haible  <bruno@clisp.org>
15608         nl_langinfo: Fix compilation error on Android.
15609         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15610         INT_CURR_SYMBOL, etc. only if these items are defined.
15612 2018-05-13  Bruno Haible  <bruno@clisp.org>
15614         truncate: Fix compilation error on Android.
15615         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15616         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15617         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15618         HAVE_TRUNCATE.
15619         * modules/truncate: Likewise.
15620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15621         not HAVE_TRUNCATE.
15622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15623         HAVE_TRUNCATE.
15624         * doc/posix-functions/truncate.texi: Mention the issue.
15626 2018-05-13  Bruno Haible  <bruno@clisp.org>
15628         pthread: Fix compilation error on Android.
15629         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15630         recursive inclusion of this file.
15632 2018-05-13  Bruno Haible  <bruno@clisp.org>
15634         posix_spawn: Fix compilation error on Android.
15635         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15636         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15637         (posix_spawn_file_actions_t): Consider also the case
15638         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15640 2018-05-13  Bruno Haible  <bruno@clisp.org>
15642         tsearch: Move from K&R C to ANSI C.
15643         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15645 2018-05-13  Bruno Haible  <bruno@clisp.org>
15647         tsearch: Fix compilation error on Android.
15648         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15649         is 0.
15650         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15651         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15652         GNULIB_defined_tsearch is true.
15653         (twalk): Define only if GNULIB_defined_twalk is true.
15654         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15655         is 0.
15656         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15657         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15658         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15660 2018-05-13  Bruno Haible  <bruno@clisp.org>
15662         imaxdiv: Fix compilation error on Android.
15663         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15664         is not defined.
15665         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15666         HAVE_DECL_IMAXDIV, is 0.
15667         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15668         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15670 2018-05-13  Bruno Haible  <bruno@clisp.org>
15672         Support selective inclusion mechanism of recent mingw.org header files.
15673         Reported by Eli Zaretskii <eliz@gnu.org>.
15674         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15675         __need_ssize_t, or __need_time_t is defined, just include the system's
15676         <sys/types.h>.
15677         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15678         include the system's <locale.h>.
15680 2018-05-13  Bruno Haible  <bruno@clisp.org>
15682         Avoid compilation error due to 'mmap' on Android.
15683         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15684         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15685         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15686         Undefine on Android.
15688 2018-05-13  Bruno Haible  <bruno@clisp.org>
15690         Add cross-compilation guesses for Linux systems without glibc.
15691         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15693         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15694         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15695         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15696         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15697         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15698         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15699         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15700         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15701         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15702         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15703         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15704         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15705         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15706         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15707         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15708         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15710 2018-05-13  Bruno Haible  <bruno@clisp.org>
15712         getpagesize: Fix compilation error on Android.
15713         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15714         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15715         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15716         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15717         HAVE_GETPAGESIZE accordingly.
15718         * modules/getcwd (Files): Add m4/getpagesize.m4.
15720 2018-05-13  Bruno Haible  <bruno@clisp.org>
15722         tcgetsid: Fix compilation error on Android.
15723         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15724         AC_CHECK_FUNC.
15726 2018-05-13  Bruno Haible  <bruno@clisp.org>
15728         getpass: Fix configure test for Android.
15729         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15730         AC_CHECK_FUNC.
15732 2018-05-13  Bruno Haible  <bruno@clisp.org>
15734         ffs: Fix compilation error on Android.
15735         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15737 2018-05-13  Bruno Haible  <bruno@clisp.org>
15739         mkfifo: Fix compilation error on Android.
15740         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15741         AC_CHECK_FUNC.
15743 2018-05-13  Bruno Haible  <bruno@clisp.org>
15745         c-strtod: Fix configure test for Android.
15746         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15747         AC_CHECK_FUNC.
15749 2018-05-13  Bruno Haible  <bruno@clisp.org>
15751         random: Fix compilation error on Android.
15752         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15753         AC_CHECK_FUNC.
15755 2018-05-13  Bruno Haible  <bruno@clisp.org>
15757         grantpt: Fix compilation error on Android.
15758         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15759         AC_CHECK_FUNC.
15761 2018-05-13  Bruno Haible  <bruno@clisp.org>
15763         stdioext: Fix compilation errors with newer Android headers.
15764         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15765         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15766         fallbacks for Android.
15767         * lib/fpending.c: Update comments.
15768         * lib/fpurge.c: Likewise.
15769         * lib/freadable.h: Likewise.
15770         * lib/freadable.c: Likewise.
15771         * lib/freadahead.c: Likewise.
15772         * lib/freading.h: Likewise.
15773         * lib/freadptr.c: Likewise.
15774         * lib/fseterr.c: Likewise.
15775         * lib/fwritable.h: Likewise.
15776         * lib/fwritable.c: Likewise.
15777         * lib/fwriting.h: Likewise.
15778         * lib/fwriting.c: Likewise.
15780 2018-05-13  Bruno Haible  <bruno@clisp.org>
15782         doc: Add info about Android versions 2.0 to 8.1.
15783         * doc/**/*.texi: Add info about functions in all released versions of
15784         Bionic.
15786 2018-05-12  Bruno Haible  <bruno@clisp.org>
15788         fseeko: On mingw, don't use the hidden function _fseeki64.
15789         Reported by Eli Zaretskii <eliz@gnu.org>.
15790         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15791         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15793 2018-05-12  Bruno Haible  <bruno@clisp.org>
15795         glob: Choose 'dirent_type' in a way that works better on mingw.
15796         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15797         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15799 2018-05-12  Bruno Haible  <bruno@clisp.org>
15801         execute, spawn-pipe: Avoid warning about redefining 'close'.
15802         Reported by Eli Zaretskii <eliz@gnu.org>.
15803         * lib/execute.c: Undefine 'close' before redefining it.
15804         * lib/spawn-pipe.c: Likewise.
15806 2018-05-12  Bruno Haible  <bruno@clisp.org>
15808         nanosleep: Avoid test failure on mingw when it has nanosleep.
15809         Reported by Eli Zaretskii <eliz@gnu.org>.
15810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15811         If it does not exist, use a simpler test program that does not call
15812         alarm().
15814 2018-05-10  Bruno Haible  <bruno@clisp.org>
15816         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15817         Reported by Devin Hussey <husseydevin@gmail.com>.
15818         Based on a patch by Paul Eggert.
15819         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15820         as witness of libpthread.
15821         * lib/glthread/cond.h (pthread_in_use): Likewise.
15822         * lib/glthread/thread.h (pthread_in_use): Likewise.
15823         * lib/glthread/tls.h (pthread_in_use): Likewise.
15825 2018-05-10  Bruno Haible  <bruno@clisp.org>
15827         cond tests: Fix compilation error on Solaris.
15828         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15829         macro.
15831 2018-05-10  Bruno Haible  <bruno@clisp.org>
15833         doc: Add partial info about Android 4.3.
15834         * doc/*-functions/*.texi: Add info about functions that were added
15835         to Bionic between Android 4.3 and Android 9.0.
15837 2018-05-10  Bruno Haible  <bruno@clisp.org>
15839         doc: Add info about Android 9.0.
15840         * doc/**/*.texi: Add info about functions and headers in Bionic from
15841         Android 9.0.
15843 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15845         af_alg: fix my typo in afalg_buffer
15846         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15847         (afalg_stream): Simplify and avoid the need for a runtime test
15848         at the end.
15850         af_alg: recover better from crypto failures
15851         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15852         input stream is seekable, by repositioning the stream back to
15853         where it was, possibly by just calling sendfile with an offset
15854         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15855         cases, which lets our callers try again with user-mode code.
15856         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15857         instead of on fflush and lseek.
15859         af_alg: distiguish I/O errors better
15860         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15861         not -EIO, if it’s OK for the caller to try again with user-mode code.
15862         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15863         some other error number) if fflush fails, as the caller should not
15864         try again that case.
15866         af_alg: avoid gotos
15867         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15868         gotos, as they were a source of unreliability and made the code a
15869         bit harder to follow.
15871         af_alg: don’t leak file descriptors into children
15872         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15873         This code should be compiled only on recent GNU/Linux platforms
15874         so we shouldn’t have to also depend on the accept4 module.
15876         af_alg: coalesce socket creation
15877         * lib/af_alg.c (alg_socket): New function.
15878         (afalg_buffer, afalg_stream): Use it.  This avoids some
15879         code duplication and gotos.
15881         af_alg: fix file descriptor leak
15882         * lib/af_alg.c (afalg_stream): Close leak.
15884         af_alg: Pacify --enable-gcc-warnings on GCC 8
15885         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15886         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15888 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15890         af_alg: Pacify --enable-gcc-warnings
15891         Problem reported by Assaf Gordon in:
15892         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15893         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15894         gcc -Wjump-misses-init.
15895         * lib/sha512.c (shaxxx_stream): Now static.
15897 2018-05-06  Bruno Haible  <bruno@clisp.org>
15899         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15900         * lib/af_alg.h (afalg_buffer): New declaration.
15901         * lib/af_alg.c (afalg_buffer): New function.
15903 2018-05-06  Bruno Haible  <bruno@clisp.org>
15905         af_alg: Avoid warnings.
15906         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15907         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15909 2018-05-06  Bruno Haible  <bruno@clisp.org>
15911         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15912         * tests/bench-digest.h: New file.
15913         * tests/bench-md5.c: New file.
15914         * tests/bench-sha1.c: New file.
15915         * tests/bench-sha224.c: New file.
15916         * tests/bench-sha256.c: New file.
15917         * tests/bench-sha384.c: New file.
15918         * tests/bench-sha512.c: New file.
15919         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15920         tests/bench-digest.h.
15921         (Depends-on): Add getrusage, gettimeofday.
15922         (Makefile.am): Add variables to build bench-md5.
15923         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15924         tests/bench-digest.h.
15925         (Depends-on): Add getrusage, gettimeofday.
15926         (Makefile.am): Add variables to build bench-sha1.
15927         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15928         tests/bench-sha256.c, tests/bench-digest.h.
15929         (Depends-on): Add getrusage, gettimeofday.
15930         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15931         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15932         tests/bench-sha512.c, tests/bench-digest.h.
15933         (Depends-on): Add getrusage, gettimeofday.
15934         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15936 2018-05-06  Bruno Haible  <bruno@clisp.org>
15938         af_alg: Fix a resource leak.
15939         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15940         New local variable 'result'.
15942 2018-05-06  Bruno Haible  <bruno@clisp.org>
15944         af_alg: Fix bug with streams that are not at position 0.
15945         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15946         assume that the stream is positioned at position 0.
15947         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15948         of the stream.
15949         * lib/md5.h (md5_stream): Likewise.
15950         * lib/sha1.h (sha1_stream): Likewise.
15951         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15952         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15953         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15955         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15956         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15957         stream that is not positioned at the beginning.
15959 2018-05-06  Bruno Haible  <bruno@clisp.org>
15961         af_alg: Add configure option to enable/disable use of Linux crypto API.
15962         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15963         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15964         USE_LINUX_CRYPTO_API.
15965         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15966         * lib/af_alg.c: Likewise.
15968 2018-05-06  Bruno Haible  <bruno@clisp.org>
15970         Followup to 'af_alg: New module.'.
15971         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15972         * modules/crypto/sha1 (Depends-on): Likewise.
15973         * modules/crypto/sha256 (Depends-on): Likewise.
15974         * modules/crypto/sha512 (Depends-on): Likewise.
15976 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15978         crypto/{md5,sha1,sha256,sha512}: simplify
15979         * lib/md5.c (md5_stream):
15980         * lib/sha1.c (sha1_stream):
15981         * lib/sha256.c (shaxxx_stream):
15982         Simplify, partly by assuming C99.
15983         * lib/sha256.c (shaxxx_stream):
15984         New function, which implements both sha256 and sha224.
15985         Simplify, partly by assuming C99.
15986         (sha256_stream, sha224_stream):
15987         Use it to avoid code duplication, removing a FIXME.
15988         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15989         Likewise.
15991         af_alg: Improve comments.
15992         * lib/af_alg.h: Use imperatives and tighten up wording.
15994 2018-05-05  Bruno Haible  <bruno@clisp.org>
15996         af_alg: Improve comments.
15997         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15999 2018-05-05  Bruno Haible  <bruno@clisp.org>
16001         af_alg: New module.
16002         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16003         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16004         * lib/md5.c: Include "af_alg.h" unconditionally.
16005         (md5_stream): Invoke afalg_stream unconditionally.
16006         * lib/sha1.c: Include "af_alg.h" unconditionally.
16007         (sha1_stream): Invoke afalg_stream unconditionally.
16008         * lib/sha256.c: Include "af_alg.h" unconditionally.
16009         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16010         * lib/sha512.c: Include "af_alg.h" unconditionally.
16011         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16012         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16013         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16014         * modules/crypto/af_alg: New file.
16015         * modules/crypto/md5 (Files): Remove files that are now in the
16016         'crypto/af_alg' module.
16017         (Depends-on): Add crypto/af_alg.
16018         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16019         (Makefile.am): Don't mention af_alg.c here.
16020         * modules/crypto/sha1 (Files): Remove files that are now in the
16021         'crypto/af_alg' module.
16022         (Depends-on): Add crypto/af_alg.
16023         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16024         (Makefile.am): Don't mention af_alg.c here.
16025         * modules/crypto/sha256 (Files): Remove files that are now in the
16026         'crypto/af_alg' module.
16027         (Depends-on): Add crypto/af_alg.
16028         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16029         (Makefile.am): Don't mention af_alg.c here.
16030         * modules/crypto/sha512 (Files): Remove files that are now in the
16031         'crypto/af_alg' module.
16032         (Depends-on): Add crypto/af_alg.
16033         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16034         (Makefile.am): Don't mention af_alg.c here.
16036 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16038         crypto tests: pacify GCC
16039         * tests/test-digest.h (test_digest_on_files):
16040         Don’t assume digest size fits in int (!).
16042         af_alg: minor style improvements
16043         * lib/af_alg.c (afalg_stream): Prefer C99 style
16044         decl-after-statement, since we’re already assuming C99.  Clarify
16045         by strengthening the bind test and omit unnecessary assignment.
16047 2018-05-05  Bruno Haible  <bruno@clisp.org>
16049         af_alg: Fix bug on empty files.
16050         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16051         stream is empty.
16053 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16055         sys-limits.h: new file for crypto and safe I/O
16056         * lib/af_alg.c: Include sys-limits.h.
16057         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16058         (afalg_stream): Also reject negative sizes for sendfile; they
16059         should not happen and the code is a bit cleaner and faster this way.
16060         * lib/safe-read.c: Include sys-limits.h.
16061         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16062         * lib/sys-limits.h: New file, with values and commentary derived
16063         from the old safe-read.c and from GNU Emacs sysdep.c.
16064         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16065         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16066         Add lib/sys-limits.h to Files section.
16068 2018-05-05  Bruno Haible  <bruno@clisp.org>
16070         af_alg: Improve function signature.
16071         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16072         * lib/af_alg.c (afalg_stream): Likewise.
16073         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16075 2018-05-05  Bruno Haible  <bruno@clisp.org>
16077         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16078         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16079         * modules/crypto/sha1 (Depends-on): Likewise.
16080         * modules/crypto/sha256 (Depends-on): Likewise.
16081         * modules/crypto/sha512 (Depends-on): Likewise.
16083 2018-05-05  Bruno Haible  <bruno@clisp.org>
16085         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16086         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16087         * modules/crypto/sha1 (Depends-on): Likewise.
16088         * modules/crypto/sha256 (Depends-on): Likewise.
16089         * modules/crypto/sha512 (Depends-on): Likewise.
16091 2018-05-05  Bruno Haible  <bruno@clisp.org>
16093         af_alg: Add documentation.
16094         * lib/af_alg.h: Add comments.
16096 2018-05-05  Bruno Haible  <bruno@clisp.org>
16098         sha512: Add tests.
16099         * tests/test-sha512.c: New file.
16100         * modules/crypto/sha512-tests: New file.
16102 2018-05-05  Bruno Haible  <bruno@clisp.org>
16104         sha256: Add tests.
16105         * tests/test-sha256.c: New file.
16106         * modules/crypto/sha256-tests: New file.
16108 2018-05-05  Bruno Haible  <bruno@clisp.org>
16110         sha1 tests: Add test for sha1_stream.
16111         * tests/test-sha1.c: Include test-digest.h.
16112         (main): Invoke test_digest_on_files on 'sha1_stream'.
16113         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16115 2018-05-05  Bruno Haible  <bruno@clisp.org>
16117         md5 tests: Add test for md5_stream.
16118         * tests/test-digest.h: New file.
16119         * tests/test-md5.c: Include test-digest.h.
16120         (main): Invoke test_digest_on_files on 'md5_stream'.
16121         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16123 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16125         md5sum: Use AF_ALG when available.
16126         * lib/md5.c: Include af_alg.h.
16127         (md5_stream): Use afalg_stream when available.
16128         * modules/crypto/md5 (Files): Add the af_alg files.
16129         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16130         (Makefile.am): Add af_alg.c.
16132 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16134         sha512sum: Use AF_ALG when available.
16135         * lib/sha512.c: Include af_alg.h.
16136         (sha512_stream, sha384_stream): Use afalg_stream when available.
16137         * modules/crypto/sha512 (Files): Add the af_alg files.
16138         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16139         (Makefile.am): Add af_alg.c.
16141 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16143         sha256sum: Use AF_ALG when available.
16144         * lib/sha256.c: Include af_alg.h.
16145         (sha256_stream, sha224_stream): Use afalg_stream when available.
16146         * modules/crypto/sha256 (Files): Add the af_alg files.
16147         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16148         (Makefile.am): Add af_alg.c.
16150 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16152         sha1sum: Use AF_ALG when available.
16153         * lib/af_alg.h: New file.
16154         * lib/af_alg.c: New file.
16155         * lib/sha1.c: Include af_alg.h.
16156         (sha1_stream): Use afalg_stream when available.
16157         * m4/linux-if-alg.m4: New file.
16158         * modules/crypto/sha1 (Files): Add the new files.
16159         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16160         (Makefile.am): Add af_alg.c.
16162 2018-05-05  Bruno Haible  <bruno@clisp.org>
16164         all: Replace more http URLs by https URLs.
16165         * lib/localename.c: Use https: URL.
16166         * lib/timespec.h: Likewise.
16168 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16170         maint: port more modules to GCC 8
16171         * lib/dirname.h (base_name):
16172         * lib/exclude.h (new_exclude):
16173         * lib/xstrndup.h (xstrndup):
16174         Add malloc attribute.
16175         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16176         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16177         This pacifies GCC 8.
16178         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16179         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16181 2018-05-03  Bruno Haible  <bruno@clisp.org>
16183         Simplify code. Drop support for Borland C++ on Windows.
16184         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16185         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16186         'defined _WIN32'.
16187         * lib/canonicalize-lgpl.c: Likewise.
16188         * lib/classpath.c: Likewise.
16189         * lib/clean-temp.c: Likewise.
16190         * lib/csharpexec.c: Likewise.
16191         * lib/ctime.c: Likewise.
16192         * lib/dosname.h: Likewise.
16193         * lib/dup2.c: Likewise.
16194         * lib/errno.in.h: Likewise.
16195         * lib/error.c: Likewise.
16196         * lib/euidaccess.c: Likewise.
16197         * lib/execute.c: Likewise.
16198         * lib/fcntl.in.h: Likewise.
16199         * lib/fcntl.c: Likewise.
16200         * lib/filename.h: Likewise.
16201         * lib/findprog.c: Likewise.
16202         * lib/flock.c: Likewise.
16203         * lib/fopen.c: Likewise.
16204         * lib/freopen.c: Likewise.
16205         * lib/fstat.c: Likewise.
16206         * lib/fsync.c: Likewise.
16207         * lib/gc-gnulib.c: Likewise.
16208         * lib/get-rusage-data.c: Likewise.
16209         * lib/getaddrinfo.c: Likewise.
16210         * lib/getdelim.c: Likewise.
16211         * lib/getdtablesize.c: Likewise.
16212         * lib/gethostname.c: Likewise.
16213         * lib/getlogin.c: Likewise.
16214         * lib/getlogin_r.c: Likewise.
16215         * lib/getopt.c: Likewise.
16216         * lib/getpagesize.c: Likewise.
16217         * lib/getpass.c: Likewise.
16218         * lib/getrusage.c: Likewise.
16219         * lib/gettimeofday.c: Likewise.
16220         * lib/glob.c: Likewise.
16221         * lib/inttypes.in.h: Likewise.
16222         * lib/isapipe.c: Likewise.
16223         * lib/javaexec.c: Likewise.
16224         * lib/link.c: Likewise.
16225         * lib/localcharset.c: Likewise.
16226         * lib/localename.h: Likewise.
16227         * lib/localename.c: Likewise.
16228         * lib/localtime.c: Likewise.
16229         * lib/lseek.c: Likewise.
16230         * lib/mbsinit.c: Likewise.
16231         * lib/mkdir.c: Likewise.
16232         * lib/msvc-nothrow.h: Likewise.
16233         * lib/nanosleep.c: Likewise.
16234         * lib/nl_langinfo.c: Likewise.
16235         * lib/nonblocking.c: Likewise.
16236         * lib/nproc.c: Likewise.
16237         * lib/open.c: Likewise.
16238         * lib/openpty.c: Likewise.
16239         * lib/pathmax.h: Likewise.
16240         * lib/pipe-filter-aux.c: Likewise.
16241         * lib/pipe-filter-gi.c: Likewise.
16242         * lib/pipe-filter-ii.c: Likewise.
16243         * lib/pipe.c: Likewise.
16244         * lib/pipe2.c: Likewise.
16245         * lib/poll.c: Likewise.
16246         * lib/popen.c: Likewise.
16247         * lib/posix_openpt.c: Likewise.
16248         * lib/printf-parse.c: Likewise.
16249         * lib/progreloc.c: Likewise.
16250         * lib/putenv.c: Likewise.
16251         * lib/read.c: Likewise.
16252         * lib/relocatable.c: Likewise.
16253         * lib/rename.c: Likewise.
16254         * lib/same-inode.h: Likewise.
16255         * lib/secure_getenv.c: Likewise.
16256         * lib/select.c: Likewise.
16257         * lib/sethostname.c: Likewise.
16258         * lib/setlocale.c: Likewise.
16259         * lib/sigaction.c: Likewise.
16260         * lib/sigprocmask.c: Likewise.
16261         * lib/sleep.c: Likewise.
16262         * lib/spawn-pipe.h: Likewise.
16263         * lib/spawn-pipe.c: Likewise.
16264         * lib/spawni.c: Likewise.
16265         * lib/stat-time.h: Likewise.
16266         * lib/stat-w32.c: Likewise.
16267         * lib/stat.c: Likewise.
16268         * lib/stdio.in.h: Likewise.
16269         * lib/stdio-impl.h: Likewise.
16270         * lib/stdio-read.c: Likewise.
16271         * lib/stdio-write.c: Likewise.
16272         * lib/stdlib.in.h: Likewise.
16273         * lib/strerror_r.c: Likewise.
16274         * lib/strftime-fixes.c: Likewise.
16275         * lib/sys_stat.in.h: Likewise.
16276         * lib/sys_types.in.h: Likewise.
16277         * lib/sys_wait.in.h : Likewise.
16278         * lib/system-quote.h: Likewise.
16279         * lib/system-quote.c: Likewise.
16280         * lib/tmpdir.c: Likewise.
16281         * lib/tzset.c: Likewise.
16282         * lib/uname.c: Likewise.
16283         * lib/unistd.in.h: Likewise.
16284         * lib/utime.in.h: Likewise.
16285         * lib/utime.c: Likewise.
16286         * lib/utimecmp.c: Likewise.
16287         * lib/utimens.c: Likewise.
16288         * lib/vasnprintf.c: Likewise.
16289         * lib/vma-iter.h: Likewise.
16290         * lib/vma-iter.c: Likewise.
16291         * lib/wait-process.c: Likewise.
16292         * lib/wcsftime.c: Likewise.
16293         * lib/wctype.in.h: Likewise.
16294         * lib/write.c: Likewise.
16295         * tests/nap.h: Likewise.
16296         * tests/test-cloexec.c: Likewise.
16297         * tests/test-dup-safer.c: Likewise.
16298         * tests/test-dup2.c: Likewise.
16299         * tests/test-dup3.c: Likewise.
16300         * tests/test-fcntl.c: Likewise.
16301         * tests/test-get-rusage-data.c: Likewise.
16302         * tests/test-getaddrinfo.c: Likewise.
16303         * tests/test-getlogin.h: Likewise.
16304         * tests/test-isatty.c: Likewise.
16305         * tests/test-localename.c: Likewise.
16306         * tests/test-mbrtowc-w32.c: Likewise.
16307         * tests/test-nonblocking.c: Likewise.
16308         * tests/test-nonblocking-pipe-main.c: Likewise.
16309         * tests/test-nonblocking-socket-main.c: Likewise.
16310         * tests/test-nonblocking-socket.h: Likewise.
16311         * tests/test-pipe.c: Likewise.
16312         * tests/test-pipe2.c: Likewise.
16313         * tests/test-poll.c: Likewise.
16314         * tests/test-pthread_sigmask1.c: Likewise.
16315         * tests/test-select.h: Likewise.
16316         * tests/test-sethostname2.c: Likewise.
16317         * tests/test-sigprocmask.c: Likewise.
16318         * tests/test-spawn-pipe-child.c: Likewise.
16319         * tests/test-stat-time.c: Likewise.
16320         * tests/test-system-quote-main.c: Likewise.
16321         * tests/test-utimens-common.h: Likewise.
16322         * tests/test-wcrtomb-w32.c: Likewise.
16323         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16324         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16325         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16326         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16327         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16328         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16329         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16330         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16332         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16333         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16334         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16335         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16336         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16337         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16340 2018-05-02  Bruno Haible  <bruno@clisp.org>
16342         localename: Fix test failures on mingw.
16343         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16344         native Windows.
16345         (gl_locale_name_posix): Move code specific to native Windows here.
16346         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16347         Accept result without charset suffix, as it appears on mingw.
16349 2018-04-28  Paul Smith  <psmith@gnu.org>
16351         bootstrap: Avoid gnulib operations if not needed
16352         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16353         Set $gnulib_extra_files early so it can be overridden in .conf.
16354         Remove redundant --import flag from $gnulib_tool_options.
16355         Set $use_gnulib to false if no gnulib modules or files are needed.
16356         If $use_gnulib is false, don't do anything related to gnulib.
16357         A lot of this is just whitespace (indentation) changes.
16359 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16361         manywarnings: port to GCC 8.0
16362         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16363         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16364         fact that the GCC help message now mentions operands for
16365         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16366         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16367         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16368         and -Wunused-const-variable.
16369         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16370         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16371         -Wmissing-attributes, -Wmultistatement-macros,
16372         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16373         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16375 2018-04-24  Bruno Haible  <bruno@clisp.org>
16377         sys_socket: Make SO_REUSEPORT available across platforms.
16378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16379         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16380         * doc/posix-headers/sys_socket.texi: Mention the issue.
16381         * tests/test-poll.c (SO_REUSEPORT): Remove.
16382         * tests/test-select.h: Include <sys/socket.h>.
16383         (SO_REUSEPORT): Remove.
16384         * modules/select-tests (Depends-on): Add 'sys_socket'.
16386 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16388         localcharset: short-circuit the search for an alias on a Mac
16389         * lib/localcharset.c (get_charset_aliases): Add a tautological
16390         UTF-8 entry to speed up the search for this case.
16391         Most machines default to a UTF-8 locale nowadays, so begin the
16392         list of aliases with a dummy UTF-8 entry so it will be found
16393         immediately and a time-consuming search through the rest of
16394         the list is avoided.
16396 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16398         fts: add comment
16399         * lib/fts.c (fts_build): Explain why ==, not >.
16400         See remark by Bernhard Voelker in:
16401         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16403         fts: fix bug in find across filesystems
16404         This fixes a bug I introduced last summer.
16405         Problem reported by Kamil Dudka in:
16406         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16407         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16408         (leaf_optimization):
16409         New arg for file descriptor.  All callers changed.
16410         (fts_build): Check for whether inodes should be sorted
16411         before closing the directory.
16413 2018-04-07  Bruno Haible  <bruno@clisp.org>
16415         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16416         Reported by Genki Sky <sky@genki.is>.
16417         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
16418         version 0.9.10 or newer.
16419         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
16420         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
16421         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
16422         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
16423         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
16425 2018-04-07  Bruno Haible  <bruno@clisp.org>
16427         execute: Update comment.
16428         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
16430 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16432         fts: treat CIFS like NFS
16433         Problem reported by Kamil Dudka in:
16434         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
16435         * lib/fts.c (S_MAGIC_CIFS): New macro.
16436         (dirent_inode_sort_may_be_useful, leaf_optimization):
16437         Treat CIFS like NFS.
16439 2018-03-28  Bruno Haible  <bruno@clisp.org>
16441         c-stack: Fix possible build failure on some platforms.
16442         * lib/c-stack.c (die): Define whenever this function is referenced.
16444 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16446         time_rz: fix workaround for Mac OS X 10.6 infloop
16447         Problems reported by Charles A. Roelli (Bug#27736#117).
16448         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16449         Also, discard output, which clutters the 'configure' log.
16451 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16453         havelib: port to Solaris 10 /bin/sh
16454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16455         instead of '! test EXPR'.
16457 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16459         time_rz: work around Mac OS X 10.6 infloop
16460         * doc/posix-functions/localtime.texi:
16461         * doc/posix-functions/localtime_r.texi: Mention the bug.
16462         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16463         better to fix localtime and localtime_r instead, but that would be
16464         more work and is not needed to fix the Emacs problem.
16465         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16467 2018-03-24  Jim Meyering  <meyering@fb.com>
16469         test-version-etc.sh: don't use diff directly: use init.sh's compare
16470         We'd rather not sacrifice readable "diff -u" output even for
16471         "diff -c" output (not supported by busybox) or for even less
16472         readable ed-style "diff" output.  So use init.sh's compare function
16473         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16474         Remove "./" from invocation of test-version-etc, so we use path.
16475         And s/diff/compare/.
16476         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16477         to get init.sh.
16478         Prompted by Eric Blake's comments in
16479         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16481 2018-03-24  Bruno Haible  <bruno@clisp.org>
16483         javacomp-script, javacomp: Add support for Java 10.
16484         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16485         target-version 10.
16486         * lib/javaversion.h: Update comments.
16487         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16488         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16489         TARGET_VERSION_BOUND, target_version_index,
16490         corresponding_classfile_version): Accept source_version 10 and
16491         target_version 10.
16492         * lib/javacomp.h: Update comments accordingly.
16494 2018-03-24  Bruno Haible  <bruno@clisp.org>
16496         javacomp-script, javacomp: Update comments.
16497         * m4/javacomp.m4: Update comments regarding gcj.
16498         * lib/javacomp.h: Likewise.
16500 2018-03-24  Bruno Haible  <bruno@clisp.org>
16502         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16503         * lib/javaversion.h: Update comments.
16504         * lib/javacomp.h: Likewise.
16505         * lib/javacomp.c (default_target_version, source_version_index,
16506         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16507         "1.9".
16508         (TARGET_VERSION_BOUND): Bump to 9.
16509         (target_version_index, corresponding_classfile_version): Recognize "9"
16510         instead of "1.9".
16511         (get_source_version_for_javac): New function.
16512         (is_envjavac_nongcj_usable, is_javac_usable): Add
16513         source_version_for_javac argument.
16514         (compile_java_class): Determine and pass source_version_for_javac.
16515         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16516         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16517         appropriate.
16519 2018-03-23  Jim Meyering  <meyering@fb.com>
16521         test-version-etc.sh: port to diff without -c
16522         * tests/test-version-etc.sh: Don't use diff's -c option.
16523         This caused spurious test failure on Alpine Linux, which
16524         uses busybox's diff. Reported by Assaf Gordon in
16525         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16527 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16529         c-stack: port to recent GCC build
16530         Problem reported by The Fireplace (Bug#30913).
16531         * lib/c-stack.c (die): Define only if used.
16533 2018-03-20  Bruno Haible  <bruno@clisp.org>
16535         euidaccess: Port to native Windows.
16536         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16537         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16539 2018-03-19  Bruno Haible  <bruno@clisp.org>
16541         javacomp: Add support for Java 7, 8, 9.
16542         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16543         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16544         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16545         and target_version 1,7, 1.8, 1.9.
16546         * lib/javacomp.h: Update comments accordingly.
16548 2018-03-19  Bruno Haible  <bruno@clisp.org>
16550         javacomp-script: Add support for Java 9.
16551         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16552         target-version 1.9.
16554 2018-03-16  Bruno Haible  <bruno@clisp.org>
16556         glob: Don't compile replacements on recent glibc systems.
16557         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16558         REPLACE_GLOB is 0, include the system's <glob.h> and use
16559         _GL_CXXALIAS_SYS.
16560         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16561         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16562         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16563         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16564         Remove snippet/warn-on-use.
16565         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16566         (Makefile.am): Create glob.h always. Update list of substitutions in
16567         glob.h. Don't depend on $(WARN_ON_USE_H).
16569 2018-03-16  Bruno Haible  <bruno@clisp.org>
16571         glob: Fix link error on native Windows.
16572         * modules/glob (Depends-on): Add 'lstat'.
16574 2018-03-15  Bruno Haible  <bruno@clisp.org>
16576         glob: Fix compilation error in C++ mode.
16577         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16579 2018-03-15  Bruno Haible  <bruno@clisp.org>
16581         host-cpu-c-abi: Support for RISC-V CPU.
16582         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16583         riscv32 and riscv64 ABIs.
16584         References:
16585         https://github.com/riscv/riscv-toolchain-conventions
16586         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16587         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16589 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16591         fflush: be more paranoid about libio.h change
16592         Suggested by Eli Zaretskii in:
16593         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16594         * lib/fbufmode.c (fbufmode):
16595         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16596         (disable_seek_optimization, rpl_fflush):
16597         * lib/fpending.c (__fpending):
16598         * lib/fpurge.c (fpurge):
16599         * lib/freadable.c (freadable):
16600         * lib/freadahead.c (freadahead):
16601         * lib/freading.c (freading):
16602         * lib/freadptr.c (freadptr):
16603         * lib/freadseek.c (freadptrinc):
16604         * lib/fseeko.c (fseeko):
16605         * lib/fseterr.c (fseterr):
16606         * lib/fwritable.c (fwritable):
16607         * lib/fwriting.c (fwriting):
16608         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16610 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16612         maint: write-file-hooks -> before-save-hook
16613         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16614         it's time to use the recommended replacement.
16615         Problem reported by Glenn Morris in:
16616         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16617         * build-aux/announce-gen, build-aux/bootstrap:
16618         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16619         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16620         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16621         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16622         * build-aux/update-copyright, build-aux/useless-if-before-free:
16623         * build-aux/vc-list-files:
16624         Update hook usage for files where Gnulib is the canonical source.
16626 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16628         binary-io: pacify gcc -Wunused-parameter
16629         Problem reported by Reuben Thomas in:
16630         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16631         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16632         Use _GL_UNUSED where appropriate.
16634         fflush: adjust to glibc 2.28 libio.h removal
16635         Problem reported by Daniel P. Berrangé in:
16636         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16637         * lib/fbufmode.c (fbufmode):
16638         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16639         (disable_seek_optimization, rpl_fflush):
16640         * lib/fpending.c (__fpending):
16641         * lib/fpurge.c (fpurge):
16642         * lib/freadable.c (freadable):
16643         * lib/freadahead.c (freadahead):
16644         * lib/freading.c (freading):
16645         * lib/freadptr.c (freadptr):
16646         * lib/freadseek.c (freadptrinc):
16647         * lib/fseeko.c (fseeko):
16648         * lib/fseterr.c (fseterr):
16649         * lib/fwritable.c (fwritable):
16650         * lib/fwriting.c (fwriting):
16651         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16652         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16653         Define if not already defined.
16655 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16657         environ: fix link error on 32-bit Cygwin
16658         Problem reported for GNU Emacs by Ken Brown in:
16659         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16660         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16662 2018-02-24  Bruno Haible  <bruno@clisp.org>
16664         mbrtowc tests: Fix regression on glibc.
16665         Reported by Bernhard Voelker.
16666         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16668 2018-02-24  Bruno Haible  <bruno@clisp.org>
16670         striconveha, uniconv/*: Avoid test failures on musl libc.
16671         * tests/iconvsupport.c: New file.
16672         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16673         does not support the ISO-2022-JP-2 encoding.
16674         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16675         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16676         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16677         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16678         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16679         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16680         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16681         (Makefile.am): Link test-striconveha with iconvsupport.o.
16682         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16683         tests/iconvsupport.c.
16684         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16685         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16686         tests/iconvsupport.c.
16687         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16688         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16689         tests/iconvsupport.c.
16690         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16691         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16692         tests/iconvsupport.c.
16693         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16694         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16695         tests/iconvsupport.c.
16696         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16697         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16698         tests/iconvsupport.c.
16699         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16701 2018-02-24  Bruno Haible  <bruno@clisp.org>
16703         localename: Add support for musl libc.
16704         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16705         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16706         on Linux platforms which define NL_LOCALE_NAME.
16708 2018-02-24  Bruno Haible  <bruno@clisp.org>
16710         mbrtowc tests: Don't make assumptions about the charset the C locale.
16711         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16712         particular mapping in the C locale.
16714 2018-02-24  Bruno Haible  <bruno@clisp.org>
16716         ptsname_r: Don't expect that this function sets errno.
16717         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16718         from ptsname_r().
16719         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16721 2018-02-23  Bruno Haible  <bruno@clisp.org>
16723         xmalloca: pacify gcc -Wbad-function-cast
16724         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16726 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16728         nl_langinfo: pacify gcc -Wunused-function
16729         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16730         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16731         this case.  Without this change, I got a diagnostic when building
16732         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16734         same: pacify gcc -Wunused-variable
16735         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16736         Omit unused variable.
16738         malloca: pacify gcc -Wbad-function-cast
16739         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16740         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16741         To pacify GCC, I had to cast alloca’s result to some type other
16742         than void * before casting that to uintptr_t.
16744 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16746         utimecmp: new function utimecmpat
16747         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16748         Do not include utimens.h.
16749         (utimecmpat): New function, generalizing utimecmp.
16750         (utimecmp): Now a thin layer around utimecmpat.
16751         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16752         utimensat instead of on lstat and utimens.
16754         same: new function same_nameat
16755         * lib/same.c: Include fcntl.h.
16756         * lib/same.c (same_nameat): New function, generalizing same_name.
16757         (same_name): Now a thin layer around same_nameat.
16758         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16759         * modules/same (Depends-on): Depend on fstatat, openat.
16761 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16763         warnings: Add support for Objective C.
16764         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16765         macro.
16767 2018-02-17  Bruno Haible  <bruno@clisp.org>
16769         lock: Fix test-once1 crash on FreeBSD11.
16770         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16771         'pthread_create', not 'pthread_cancel'.
16773 2018-02-17  Bruno Haible  <bruno@clisp.org>
16775         lock: Add test of gl_once.
16776         * tests/test-once.c: New file.
16777         * modules/lock-tests (Files): Add it.
16778         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16780 2018-02-17  Bruno Haible  <bruno@clisp.org>
16782         thread: Fix compilation error on IRIX.
16783         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16784         needed; include it outside the C++ extern "C" {} block.
16785         * doc/posix-headers/pthread.texi: Mention the problem with
16786         pthread_atfork on IRIX.
16788 2018-02-04  Bruno Haible  <bruno@clisp.org>
16790         nl_langinfo: Override the system's nl_langinfo() when needed.
16791         Reported by Jim Meyering.
16792         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16793         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16795 2018-02-04  Bruno Haible  <bruno@clisp.org>
16797         signal-h, monetary, strings: Fix build failure in some cases.
16798         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16799         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16800         as delimiter in sed command, not '|'.
16801         * modules/monetary (Makefile.am): Likewise.
16802         * modules/strings (Makefile.am): Likewise.
16804 2018-02-03  Jim Meyering  <meyering@fb.com>
16806         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16807         * top/maint.mk (sc_file_system): Don't complain about
16808         "/proc/filesystems".
16810 2018-02-03  Bruno Haible  <bruno@clisp.org>
16812         stdlib: Fix compilation error on OpenIndiana.
16813         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16814         <sys/time.h>.
16815         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16816         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16818 2018-02-03  Bruno Haible  <bruno@clisp.org>
16820         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16821         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16822         and use $EGREP instead of 'grep -E'.
16823         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16824         'grep -E'.
16826 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16828         malloca: Add a compile-time verification.
16829         * lib/malloca.c (small_t): Verify that it is wide enough.
16830         * modules/malloca (Depends-on): Add verify.
16832 2018-02-02  Bruno Haible  <bruno@clisp.org>
16834         malloca: Add an argument check.
16835         Suggested by Paul Eggert.
16836         * lib/malloca.c (freea): Check against an invalid argument.
16838 2018-02-02  Bruno Haible  <bruno@clisp.org>
16840         localename: Add support for OpenIndiana.
16841         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16842         Solaris 11 variants with uselocale() but without getlocalename_l().
16844 2018-02-02  Bruno Haible  <bruno@clisp.org>
16846         malloca, xmalloca: Make multithread-safe.
16847         Reported by Florian Weimer <fweimer@redhat.com>.
16848         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16849         * lib/malloca.h (malloca): In the stack allocation case, return a
16850         pointer that is a multiple of 2 * sa_alignment_max.
16851         (sa_increment): Remove enum item.
16852         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16853         a pointer that is a multiple of 2 * sa_alignment_max.
16854         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16855         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16856         HASH_TABLE_SIZE, mmalloca_results): Remove.
16857         (small_t): New type.
16858         (mmalloca, free): Rewritten.
16859         * lib/malloca.valgrind: Remove file.
16860         * modules/malloca (Files): Remove it.
16861         (Depends-on): Remove verify.
16863 2018-01-31  Bruno Haible  <bruno@clisp.org>
16865         environ: Fix link error on 64-bit Cygwin.
16866         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16867         __declspec(dllimport) attribute.
16868         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16870 2018-01-30  Bruno Haible  <bruno@clisp.org>
16872         get-rusage-data: Add support for Minix 3.
16873         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16875 2018-01-30  Bruno Haible  <bruno@clisp.org>
16877         vma-iter: Add support for Minix 3.
16878         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16879         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16881 2018-01-27  Bruno Haible  <bruno@clisp.org>
16883         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16884         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16885         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16886         _HPUX_ALT_XOPEN_SOCKET_API.
16887         * modules/accept (Depends-on): Add 'extensions'.
16888         * modules/getpeername (Depends-on): Likewise.
16889         * modules/getsockname (Depends-on): Likewise.
16890         * modules/getsockopt (Depends-on): Likewise.
16891         * modules/recvfrom (Depends-on): Likewise.
16892         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16893         * doc/posix-functions/getpeername.texi: Likewise.
16894         * doc/posix-functions/getsockname.texi: Likewise.
16895         * doc/posix-functions/getsockopt.texi: Likewise.
16896         * doc/posix-functions/recvfrom.texi: Likewise.
16898 2018-01-27  Bruno Haible  <bruno@clisp.org>
16900         getsockname tests: More tests.
16901         * tests/test-getsockname.c (open_server_socket): New function, mostly
16902         copied from test-poll.c.
16903         (main): Check that getsockname fills in addr.
16904         * modules/getsockname-tests (Depends-on): Add the necessary
16905         dependencies.
16906         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16908 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16910         manywarnings: fix maintainer comment
16911         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16912         it does not mistakenly think that ‘-1)’ is an option.
16914 2018-01-26  Bruno Haible  <bruno@clisp.org>
16916         langinfo: Fix last commit.
16917         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16918         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16920 2018-01-24  Bruno Haible  <bruno@clisp.org>
16922         langinfo, nl_langinfo: Add support for alternative month names.
16923         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16924         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16925         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16926         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16927         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16928         * doc/posix-functions/nl_langinfo.texi: Likewise.
16930 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16932         Merge strftime.c changes from glibc
16933         This incorporates:
16934         2017-11-14 [BZ #10871] Implement alternative month names
16935         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16936         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16937         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16938         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16939         Use locale_t, not __locale_t.
16940         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16941         (__strftime_internal): Add support for alternate months.
16943 2018-01-23  Bruno Haible  <bruno@clisp.org>
16945         doc: Mention another prerequisite for using Gnulib.
16946         Reported at <https://stackoverflow.com/questions/48378214/>.
16947         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16948         AC_CONFIG_HEADERS.
16950 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16952         build: GuixSD doesn't have /bin/bash
16953         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16955 2018-01-21  Bruno Haible  <bruno@clisp.org>
16957         Avoid test failures on Microsoft Windows Subsystem for Linux.
16958         * tests/test-fcntl.c (main): Allow a different errno.
16959         * tests/test-rename.h (test_rename): Likewise.
16960         * tests/test-renameat.c (main): Likewise.
16961         * tests/test-renameat2.c (main): Likewise.
16963 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16965         filenamecat: make base a suffix of result
16966         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16967         (mfile_name_concat): Always make BASE a suffix of the result, as
16968         cp expects this.  To implement this, separate with '.' instead of
16969         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16970         * tests/test-filenamecat.c (main): Adjust tests to match
16971         current behavior.  Check that BASE_IN_RESULT points to
16972         a copy of BASE and is a suffix of the resultk, and that DIR
16973         is a prefix of the result that is no longer than the prefix
16974         indicated by BASE_IN_RESULT.
16976 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16978         update-copyright: Handle use of ©
16979         * build-aux/update-copyright ($circle_c_re): Update regex to
16980         handle use of © in headers.
16982 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16984         Fix -Wundef warning in user-included header lib/cdefs.h.
16985         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16987 2018-01-04  Bruno Haible  <bruno@clisp.org>
16989         pthread_sigmask: Avoid compilation error on mingw.
16990         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16991         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16992         macro.
16994 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16996         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16997         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16998         Suggested by Bob Proulx (Bug#29968).
16999         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17001 2018-01-02  Eric Blake  <eblake@redhat.com>
17003         stat-time: silence -Wunused-parameter regression
17004         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17005         Prefer attribute over cast-to-void.
17006         (stat_time_normalize): Mark st as potentially unused.
17008 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17010         test-framework-sh: avoid netstat
17011         Problem reported by Kristýna Streitová (Bug#29947).
17012         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17013         deprecated on SuSE and it's not that important anyway.
17015 2018-01-01  Jim Meyering  <meyering@fb.com>
17017         update-copyright: add code to handle more special cases
17018         After running "make update-copyright" this year, five files
17019         required additional manual changes.  Automate those adjustments
17020         for next year.
17021         * Makefile (_year_and_prev): Define.
17022         (update-copyright): Add perl commands to induce this year's post-
17023         update-copyright adjustments.
17025 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17027         version-etc: new year
17028         * build-aux/gendocs.sh (version):
17029         * doc/gendocs_template:
17030         * doc/gendocs_template_min:
17031         * doc/gnulib.texi:
17032         * lib/version-etc.c (COPYRIGHT_YEAR):
17033         Update copyright dates by hand in templates and the like.
17035         maint: fix 'make update-copyright'
17036         * Makefile (update-copyright): Adjust to 2016-11-23 change
17037         to config/srclist-update, which changed the format of srclist.txt.
17039 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17041         chdir-safer: remove this module
17042         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17043         * NEWS: Document removal.
17044         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17045         * modules/chdir-safer: Remove these files.
17047 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17049         Add cross-compilation results for GNU/Hurd.
17050         * m4/calloc.m4: Add GNU/Hurd guess.
17051         * m4/cbrtl.m4: Likewise.
17052         * m4/ceil.m4: Likewise.
17053         * m4/ceilf.m4: Likewise.
17054         * m4/ceill.m4: Likewise.
17055         * m4/chown.m4: Likewise.
17056         * m4/duplocale.m4: Likewise.
17057         * m4/exp2l.m4: Likewise.
17058         * m4/expm1.m4: Likewise.
17059         * m4/fchdir.m4: Likewise.
17060         * m4/floor.m4: Likewise.
17061         * m4/floorf.m4: Likewise.
17062         * m4/fmod.m4: Likewise.
17063         * m4/fmodf.m4: Likewise.
17064         * m4/fmodl.m4: Likewise.
17065         * m4/getcwd.m4: Likewise.
17066         * m4/getgroups.m4: Likewise.
17067         * m4/gettimeofday.m4: Likewise.
17068         * m4/hypot.m4: Likewise.
17069         * m4/hypotf.m4: Likewise.
17070         * m4/hypotl.m4: Likewise.
17071         * m4/link-follow.m4: Likewise.
17072         * m4/link.m4: Likewise.
17073         * m4/linkat.m4: Likewise.
17074         * m4/log.m4: Likewise.
17075         * m4/log10.m4: Likewise.
17076         * m4/log10f.m4: Likewise.
17077         * m4/log1p.m4: Likewise.
17078         * m4/log1pf.m4: Likewise.
17079         * m4/log1pl.m4: Likewise.
17080         * m4/log2.m4: Likewise.
17081         * m4/log2f.m4: Likewise.
17082         * m4/logf.m4: Likewise.
17083         * m4/lstat.m4: Likewise.
17084         * m4/malloc.m4: Likewise.
17085         * m4/mbrlen.m4: Likewise.
17086         * m4/mbrtowc.m4: Likewise.
17087         * m4/mkdir.m4: Likewise.
17088         * m4/mkfifo.m4: Likewise.
17089         * m4/mknod.m4: Likewise.
17090         * m4/mkstemp.m4: Likewise.
17091         * m4/modf.m4: Likewise.
17092         * m4/modff.m4: Likewise.
17093         * m4/modfl.m4: Likewise.
17094         * m4/printf.m4: Likewise.
17095         * m4/pselect.m4: Likewise.
17096         * m4/ptsname.m4: Likewise.
17097         * m4/putenv.m4: Likewise.
17098         * m4/readlink.m4: Likewise.
17099         * m4/realloc.m4: Likewise.
17100         * m4/remainder.m4: Likewise.
17101         * m4/remainderf.m4: Likewise.
17102         * m4/remainderl.m4: Likewise.
17103         * m4/rmdir.m4: Likewise.
17104         * m4/round.m4: Likewise.
17105         * m4/roundf.m4: Likewise.
17106         * m4/roundl.m4: Likewise.
17107         * m4/select.m4: Likewise.
17108         * m4/setenv.m4: Likewise.
17109         * m4/signbit.m4: Likewise.
17110         * m4/sleep.m4: Likewise.
17111         * m4/stat.m4: Likewise.
17112         * m4/strerror.m4: Likewise.
17113         * m4/strtok_r.m4: Likewise.
17114         * m4/symlink.m4: Likewise.
17115         * m4/symlinkat.m4: Likewise.
17116         * m4/trunc.m4: Likewise.
17117         * m4/truncf.m4: Likewise.
17118         * m4/truncl.m4: Likewise.
17119         * m4/tzset.m4: Likewise.
17120         * m4/ungetc.m4: Likewise.
17121         * m4/usleep.m4: Likewise.
17122         * m4/wcwidth.m4: Likewise.
17124 2017-12-28  Bruno Haible  <bruno@clisp.org>
17126         gnulib-tool: Make --conditional-dependencies work better.
17127         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17128         * gnulib-tool (Options): Don't reject the combination of
17129         --conditional-dependencies with --with-tests.
17130         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17131         Don't reference $modules.
17132         (func_import, func_create_testdir): Pass it.
17134 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17136         regex: use re_malloc etc. consistently
17137         Problem and original patch reported by Arnold Robbins in:
17138         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17139         * lib/regcomp.c (re_comp):
17140         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17141         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17143 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17144             Paul Eggert  <eggert@cs.ucla.edu>
17146         glob: Silence warning about void pointer arithmetic.
17147         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17148         arithmetic.
17150 2017-12-15  Bruno Haible  <bruno@clisp.org>
17152         spawn-pipe: Silence a clang warning.
17153         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17154         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17155         in this file.
17157 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17159         explicit_bzero: port to macOS + Clang 9.0.0
17160         Problem reported by Marcus Johnson (Bug#29658).
17161         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17162         Don’t use asm.
17164 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17166         doc: Improve explanation of supporting relocatable libraries.
17167         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17168         properly how to build the relocatable module for
17169         libraries. (Method and example code from Bruno Haible.)
17171 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17173         doc: Use better texinfo tags in a few cases.
17174         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17175         instead of @samp in a few places.
17177 2017-12-11  Bruno Haible  <bruno@clisp.org>
17179         unistr/base: Update comment.
17180         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17182 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17184         test-faccessat.c: unlink temp file to avoid subsequent test failure
17185         * tests/test-faccessat.c: Remove the file to avoid failure
17186         to open the file on subsequent runs due to being created
17187         with no permissions.
17189 2017-12-10  Bruno Haible  <bruno@clisp.org>
17191         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17192         * doc/gnulib-tool.texi (Modified build rules): New node.
17194 2017-12-10  Bruno Haible  <bruno@clisp.org>
17196         doc: Tweak wording.
17197         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17198         "binaries".
17200 2017-12-05  Sam Steingold  <sds@gnu.org>
17201             Bruno Haible  <bruno@clisp.org>
17203         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17204         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17205         AC_EGREP_CPP pattern.
17207 2017-12-03  Bruno Haible  <bruno@clisp.org>
17209         all: Replace more http URLs by https URLs.
17210         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17211         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17212         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17213         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17215 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17217         Port better to CentOS 5
17218         Problems reported by Tom G. Christensen in:
17219         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17220         * doc/glibc-functions/strverscmp.texi (strverscmp):
17221         Document strverscmp bug with glibc 2.9 and earlier.
17222         * doc/posix-functions/tzset.texi (tzset):
17223         Document that TZ with angle brackets is POSIX-2001 and later.
17224         * tests/test-nstrftime.c: Include unistd.h.
17225         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17226         (TZ): Use it to skip tests with angle brackets in TZ,
17227         for older systems.
17229         stat: add missing module dependencies
17230         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17231         Add stat-time.
17233 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17235         stat: fix compilation failure on macOS Sierra
17236         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17237         https://savannah.gnu.org/bugs/?52546
17238         * lib/stat.c: Add missing include of stat-time.h.
17240 2017-11-28  Jim Meyering  <meyering@fb.com>
17242         test-faccessat.c: correct BASE definition to avoid parallel test failure
17243         * tests/test-faccessat.c (BASE): Define using this file's name, not
17244         that of test-lstat.c.  Using the latter caused this test to fail
17245         sometimes when run concurrently with test-lstat.
17247 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17249         unicase: fix VPATH build
17250         * modules/unicase/special-casing (Makefile.am): Ensure that the
17251         base directory is created when generating
17252         unicase/special-casing.h.
17254 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17256         libunistring: update to Unicode 9.0.0
17257         * lib/gen-uni-tables.c (fill_properties): Recognize
17258         Sentence_Terminal and Prepended_Concatenation_Mark.
17259         (is_property_default_ignorable_code_point): Exclude U+08E2.
17260         (fill_arabicshaping): Allow missing whitespace when parsing;
17261         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17262         (output_blocks): Increase the element size of the level1 table to
17263         accommodate more blocks.
17264         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17265         Update each class according to the standard.
17266         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17267         E_Base_GAZ characters.
17268         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17269         Glue_After_Zwj, and E_Base_GAZ characters.
17270         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17271         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17272         enum value.
17273         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17274         value.
17275         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17276         LBP_ZWJ, LBP_EB, and LBP_EM.
17277         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17278         enum value.
17279         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17280         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17281         declaration.
17282         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17283         (uniwbrk_table): Implement WB14.
17284         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17285         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17286         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17287         uc-is-grapheme-break.
17288         * modules/unigbrk/uc-grapheme-breaks: New module.
17289         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17290         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17291         enum value.
17292         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17293         * lib/unigbrk/u-grapheme-breaks.h: New file.
17294         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17295         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17296         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17297         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17298         29.
17299         * tests/unigbrk/test-uc-gbrk-prop.c
17300         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17301         GBP_GAZ, and GBP_EBG.
17302         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17303         * tests/unigbrk/test-uc-is-grapheme-break.c
17304         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17305         GBP_GAZ, and GBP_EBG.
17306         (main): Skip unsupported rules involving 3 or more characters,
17307         namely GB10, GB12, and GB13.
17308         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17309         * all generated files under lib/uni* and tests/uni*: Regenerate.
17310         * all the affected modules: Bump version.
17312 2017-11-26  Bruno Haible  <bruno@clisp.org>
17314         strfmon_l: Fix compilation error with glibc 2.5.
17315         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17316         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17317         * lib/monetary.in.h: Include also <locale.h>.
17319 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17321         posixtm: remove PDS_LEADING_YEAR
17322         This changes the API slightly, in a hopefully-innocuous way.
17323         Without this change the code had undefined behavior when a
17324         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17325         Problem reported by Pádraig Brady in:
17326         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17327         * NEWS: Mention this.
17328         * lib/posixtm.c (posix_time_parse): Treat the absence of
17329         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17330         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17331         present, but define it as zero, for compatibility with existing
17332         source code).  All other PDS_* values moved up.
17333         * tests/test-posixtm.c (LY): New macro.
17334         (T): Use it.  Do not expect a particular numeric encoding
17335         for PDS_CENTURY etc.
17337 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17339         stat: work around Solaris bug with tv_nsec < 0
17340         * doc/posix-functions/fstat.texi (fstat):
17341         * doc/posix-functions/fstatat.texi (fstatat):
17342         * doc/posix-functions/lstat.texi (lstat):
17343         * doc/posix-functions/stat.texi (stat):
17344         Mention Solaris 11 bug.
17345         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17346         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17347         * lib/lstat.c (rpl_lstat):
17348         * lib/stat.c (rpl_stat):
17349         Normalize resulting timestamps.
17350         * lib/fstatat.c (normal_fstatat): New function.
17351         (rpl_fstatat): Use it.
17352         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17353         (stat_time_normalize): New function.
17354         * m4/fstat.m4 (gl_FUNC_FSTAT):
17355         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17356         * m4/lstat.m4 (gl_FUNC_LSTAT):
17357         * m4/stat.m4 (gl_FUNC_STAT):
17358         Replace on Solaris.
17359         * modules/fstat (Depends-on):
17360         * modules/fstatat (Depends-on):
17361         Add stat-time.
17362         * modules/stat-time (Depends-on): Add errno, intprops.
17364 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17366         regex: merge from glibc
17367         * lib/regcomp.c (init_word_char): Add comments.
17369 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17371         regex: merge from glibc
17372         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17373         * lib/regex_internal.h (internal_function): Remove.
17374         All uses removed.
17376 2017-11-20  Bruno Haible  <bruno@clisp.org>
17378         crypto/gc-sm3: Fix buffer overrun.
17379         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17380         Reported by Coverity.
17382 2017-11-12  Jim Meyering  <meyering@fb.com>
17384         maint: shorten https://lists.gnu.org/archive/html/... links
17385         Each /archive/html/ part can be replace with /r/.
17386         Run this to induce the change:
17387         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17388         * ChangeLog: Perform that substitution.
17389         * Makefile: Likewise.
17390         * STATUS-libposix: Likewise.
17391         * build-aux/bootstrap: Likewise.
17392         * doc/maintain.texi: Likewise.
17393         * gnulib-tool: Likewise.
17394         * lib/allocator.h: Likewise.
17395         * lib/argp-ba.c: Likewise.
17396         * lib/argp-pv.c: Likewise.
17397         * lib/canon-host.c: Likewise.
17398         * lib/canonicalize-lgpl.c: Likewise.
17399         * lib/float.in.h: Likewise.
17400         * lib/fstat.c: Likewise.
17401         * lib/getdelim.c: Likewise.
17402         * lib/getprogname.c: Likewise.
17403         * lib/glthread/thread.h: Likewise.
17404         * lib/intprops.h: Likewise.
17405         * lib/mbsrtowcs-state.c: Likewise.
17406         * lib/safe-read.c: Likewise.
17407         * lib/signal.in.h: Likewise.
17408         * lib/stat.c: Likewise.
17409         * lib/stdbool.in.h: Likewise.
17410         * lib/stdio-impl.h: Likewise.
17411         * lib/stdio.in.h: Likewise.
17412         * lib/sysexits.in.h: Likewise.
17413         * lib/timespec.h: Likewise.
17414         * lib/wcsrtombs-state.c: Likewise.
17415         * m4/alloca.m4: Likewise.
17416         * m4/extern-inline.m4: Likewise.
17417         * m4/fstatat.m4: Likewise.
17418         * m4/gnulib-common.m4: Likewise.
17419         * m4/lib-ignore.m4: Likewise.
17420         * m4/printf.m4: Likewise.
17421         * m4/regex.m4: Likewise.
17422         * m4/stat-size.m4: Likewise.
17423         * m4/std-gnu11.m4: Likewise.
17424         * m4/stdbool.m4: Likewise.
17425         * m4/sys_types_h.m4: Likewise.
17426         * m4/threadlib.m4: Likewise.
17427         * m4/vararrays.m4: Likewise.
17428         * pygnulib/GLImport.py: Likewise.
17429         * tests/test-exp.h: Likewise.
17430         * tests/test-exp2.h: Likewise.
17431         * tests/test-expm1.h: Likewise.
17432         * tests/test-fflush2.c: Likewise.
17433         * tests/test-getopt_long.h: Likewise.
17434         * tests/test-intprops.c: Likewise.
17435         * tests/test-log.h: Likewise.
17436         * tests/test-log10.h: Likewise.
17437         * tests/test-log1p.h: Likewise.
17438         * tests/test-log2.h: Likewise.
17439         * tests/test-printf-posix.h: Likewise.
17440         * tests/test-regex.c: Likewise.
17441         * tests/test-snprintf-posix.h: Likewise.
17442         * tests/test-sprintf-posix.h: Likewise.
17443         * tests/test-stdalign.c: Likewise.
17444         * tests/test-stdbool.c: Likewise.
17445         * tests/test-vasnprintf-posix.c: Likewise.
17446         * tests/test-vasprintf-posix.c: Likewise.
17447         * top/maint.mk: Likewise.
17449 2017-11-12  Bruno Haible  <bruno@clisp.org>
17451         faccessat: Make the last change more robust.
17452         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17453         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17455 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17457         faccessat: port to macOS (Bug#29231)
17458         macOS faccessat has the same bug that lstat does: if the file
17459         name ends in '/' it ignores the trailing slash.
17460         Problem reported for Emacs by Vincent Zhang.
17461         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17462         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17463         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17464         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17465         Include "unistd.h" after defining it.
17466         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17467         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17468         Handle in the usual way.
17469         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17470         lstat dereferences symlinks, since faccessat is likely to
17471         have the same problem.
17472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17473         * modules/faccessat (Depends-on): Add fstatat.
17474         Depend if REPLACE_FACCESSAT is 1, too.
17475         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17476         * modules/faccessat-tests (Depends-on): Add symlink.
17477         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17478         * tests/test-faccessat.c (main): Test for the bug.
17480 2017-11-11  Bruno Haible  <bruno@clisp.org>
17482         getprogname: Fix compilation error on IRIX.
17483         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17484         'namesize'.
17486 2017-11-11  Bruno Haible  <bruno@clisp.org>
17488         year2038: Tweak last patch.
17489         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17491 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17493         year2038: be more insistent about 64-bit time_t
17494         Applications requiring access to arbitrary files should not be
17495         built with 32-bit time_t on hosts that have 64-bit timestamps,
17496         as this can lead to real trouble at runtime.
17497         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17498         Check on all systems, not just MinGW.  Use a heuristic involving
17499         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17500         output a failure or just a warning, to make it more likely that
17501         builders will select 64-bit time_t.
17503 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17505         havelib: fix typo in previous change
17506         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17508         Don’t use AC_EGREP_CPP if affected by CFLAGS
17509         * m4/float_h.m4 (gl_FLOAT_H):
17510         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17511         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17512         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17513         * m4/year2038.m4 (gl_YEAR2038):
17514         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17515         likely to be affected by the choice of CFLAGS, since CFLAGS are
17516         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17517         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17519         fstatat: pacify GCC on unusual platform
17520         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17521         Omit, as it’s unused in this case.
17523 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17525         timespec: prefer ‘assume’ to ‘assure’
17526         This avoids some runtime tests.  The rest of the module makes
17527         similar assumptions and there is little point to testing here.
17528         * lib/timespec.h: Include verify.h instead of assure.h.
17529         (timespec_cmp): Use ‘assume’, not ‘assure’.
17530         Also, remove an unnecessary cast to ‘int’, as lots of other
17531         code in this module now causes -Wconversion to complain, and
17532         this is a problem with -Wconversion not with the code.
17534         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17536         Port recent gnulib-tool change to Dash
17537         * gnulib-tool (func_create_testdir): Don't assume that the shell
17538         retokenizes after expanding "$@" inside the call to
17539         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17541 2017-10-27  Jim Meyering  <meyering@fb.com>
17543         timespec.h: use "assure" to avoid a spurious warning
17544         * lib/timespec.h: Include "assure.h" and use it to help
17545         gcc7's -Wstrict-overflow avoid a false positive warning
17546         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17547         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17548         * modules/timespec (Depends-on): Add assure.
17550 2017-10-29  Bruno Haible  <bruno@clisp.org>
17552         Avoid several test failures with traditional locales on Haiku.
17553         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17554         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17555         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17557         LOCALE_ZH_CN=none.
17559 2017-10-29  Bruno Haible  <bruno@clisp.org>
17561         strerror_r-posix: Fix behaviour and test failure on Haiku.
17562         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17563         are positive. Work around return value 0 instead of ERANGE on Haiku.
17564         For unknown error numbers, use a format string consistent with perror().
17565         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17566         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17567         are positive.
17569 2017-10-29  Bruno Haible  <bruno@clisp.org>
17571         get-rusage-data: Avoid crash on Haiku.
17572         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17574 2017-10-29  Bruno Haible  <bruno@clisp.org>
17576         get-rusage-as: Avoid crash on Haiku.
17577         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17579 2017-10-29  Bruno Haible  <bruno@clisp.org>
17581         ilogbl: Ensure replacement on Haiku.
17582         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17583         REPLACE_ILOGBL if ilogbl does not work.
17584         (gl_FUNC_ILOGBL_WORKS): New macro.
17585         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17587         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17588         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17589         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17591 2017-10-29  Bruno Haible  <bruno@clisp.org>
17593         expl: Ensure replacement on Haiku.
17594         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17595         zero.
17596         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17598 2017-10-29  Bruno Haible  <bruno@clisp.org>
17600         math: Fix test failure on Haiku.
17601         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17602         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17603         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17604         * doc/posix-headers/math.texi: Mention the Haiku problem.
17606 2017-10-29  Bruno Haible  <bruno@clisp.org>
17608         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17609         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17610         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17612 2017-10-29  Bruno Haible  <bruno@clisp.org>
17614         crypto/*: Verify that the header file is self-contained.
17615         * tests/test-gc-*.c: Include the module's header file immediately after
17616         <config.h>.
17617         * tests/test-hmac-*.c: Likewise.
17618         * tests/test-arcfour.c: Likewise.
17619         * tests/test-arctwo.c: Likewise.
17620         * tests/test-des.c: Likewise.
17621         * tests/test-md2.c: Likewise.
17622         * tests/test-md4.c: Likewise.
17623         * tests/test-md5.c: Likewise.
17624         * tests/test-rijndael.c: Likewise.
17625         * tests/test-sha1.c: Likewise.
17626         * tests/test-sm3.c: Likewise.
17628 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17629             Bruno Haible  <bruno@clisp.org>
17631         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17632         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17634 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17636         New module: crypto/gc-sm3
17637         * lib/gc.h: Declare SM3-related stuffs.
17638         * lib/gc-gnulib.c: Support sm3 in internal functions.
17639         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17640         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17641         * modules/crypto/gc-sm3: Define gc-sm3 module.
17642         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17643         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17644         * MODULES.html.sh: List gc-sm3 module.
17646 2017-10-29  Bruno Haible  <bruno@clisp.org>
17648         random, random_r: Mention different prototypes on Haiku.
17649         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17650         * doc/glibc-functions/random_r.texi: Likewise.
17651         * doc/glibc-functions/initstate_r.texi: Likewise.
17652         * doc/glibc-functions/setstate_r.texi: Likewise.
17654 2017-10-28  Bruno Haible  <bruno@clisp.org>
17656         posix_spawn: Avoid spurious message in configure output.
17657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17658         'cmp' command.
17660 2017-10-28  Bruno Haible  <bruno@clisp.org>
17662         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17663         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17664         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17666 2017-10-28  Bruno Haible  <bruno@clisp.org>
17668         ioctl: Override non-POSIX declaration on Haiku.
17669         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17670         * lib/sys_ioctl.in.h: Add comment about Haiku.
17671         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17672         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17674 2017-10-28  Bruno Haible  <bruno@clisp.org>
17676         crypto/sm3: Add overview documentation to the .h file.
17677         * lib/sm3.h: Add comments.
17679 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17681         New module: crypto/sm3
17682         This new module can be used to compute SM3 message digest of files or
17683         memory blocks according to the specification GM/T 004-2012
17684         Cryptographic Hash Algorithm SM3, published by State Cryptography
17685         Administration, China.
17686         The official SM3 cryptographic hash algorithm specification is
17687         available at
17688         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17689         * lib/sm3.h: Declare the APIs of sm3 module.
17690         * lib/sm3.c: Implement SM3 hash algorithm.
17691         * m4/sm3.m4: m4 file for sm3 module.
17692         * modules/crypto/sm3: Define sm3 module.
17693         * tests/test-sm3.c: Implement SM3 test case.
17694         * modules/crypto/sm3-tests: Define sm3 test module.
17695         * MODULES.html.sh: List sm3 module.
17697 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17699         gc-libgcrypt: fix undefined enum type in switch statement
17700         Resolve the following build failure:
17701         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17702         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17703         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17704              case 0:
17705              ^~~~
17706         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17707         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17709 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17711         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17712         Resolve the following build failure:
17713         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17714         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17715         in signedness [-Werror=pointer-sign]
17716             digest = gcry_md_read (ctx->gch, 0);
17717                    ^
17718         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17720 2017-10-26  Bruno Haible  <bruno@clisp.org>
17722         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17723         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17724         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17726 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17728         glob: fix another heap buffer overflow
17729         Problem reported by Tim Rühsen in:
17730         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17731         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17733 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17735         quotearg: pacify compiler re unsigned
17736         * lib/quotearg.c (quotearg_n_options):
17737         Rewrite to avoid diagnostic from overly-picky compiler.
17738         Problem reported by Sami Kerola in:
17739         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17741         glob: fix heap buffer overflow
17742         * lib/glob.c (glob): Fix off-by-one error introduced into
17743         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17744         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17745         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17746         Fix suggested by Bruno Haible.
17748 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17750         glob: pacify fuzzer for mempcpy
17751         Problem reported by Tim Rühsen in:
17752         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17753         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17755 2017-10-12  Bruno Haible  <bruno@clisp.org>
17757         doc: Fix syntax error (regression from 2017-10-03).
17758         * doc/posix-functions/strncpy.texi: Fix syntax error.
17760 2017-10-12  Bruno Haible  <bruno@clisp.org>
17762         doc: Update for Solaris 11.3.
17763         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17764         mention Solaris 11.3.
17765         * m4/log2.m4: Fix comments.
17766         * m4/log2f.m4: Likewise.
17767         * m4/printf.m4: Update comments.
17768         * m4/rename.m4: Likewise.
17769         * m4/strncat.m4: Likewise.
17771         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17773 2017-10-10  Bruno Haible  <bruno@clisp.org>
17775         doc: Improve doc about ioctl.
17776         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17777         prototype.
17779 2017-10-09  Bruno Haible  <bruno@clisp.org>
17781         wcwidth: Don't use obsolete syntax of 'test'.
17782         Reported by Eric Blake.
17783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17784         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17786 2017-10-09  Bruno Haible  <bruno@clisp.org>
17788         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17789         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17790         and Daniel P. Berrange <berrange@redhat.com>.
17791         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17792         on glibc systems. The getopt-pfx-core.h file declares exactly what
17793         unistd.h needs, nothing more.
17795 2017-10-08  Bruno Haible  <bruno@clisp.org>
17797         vma-iter: Improve support for FreeBSD.
17798         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17799         vma_iterate.
17800         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17802 2017-10-08  Bruno Haible  <bruno@clisp.org>
17804         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17805         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17807 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17809         test-framework-sh: Fix 'invalid path dir' error.
17810         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17811         separator between a drive letter and directory parts.
17812         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17813         treated as an invalid path dir.
17814         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17815         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17816         instead of hard coded ':'.
17818 2017-10-07  Bruno Haible  <bruno@clisp.org>
17820         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17821         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17822         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17823         (rof_open): On Linux, do multiple read() calls and make sure
17824         MIN_LEFTOVER bytes are left when read() returns.
17826 2017-10-07  Bruno Haible  <bruno@clisp.org>
17828         vma-iter: Improve support for GNU/Hurd.
17829         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17830         API, not the /proc file system.
17832 2017-10-07  Bruno Haible  <bruno@clisp.org>
17834         test-framework-sh: Don't require bash on Windows and OS/2.
17835         Reported by KO Myung-Hun.
17836         * tests/test-init.sh: Use 'shopt' only when running in bash.
17838 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17840         wcwidth: check a macro version of wcwidth () as well
17841         * lib/wchar.in.h: Revert commit from 2016-01-14.
17842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17844 2017-10-06  Bruno Haible  <bruno@clisp.org>
17846         getopt-posix: Clarify copyright header.
17847         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17848         * lib/getopt-pfx-core.h: Likewise.
17849         * lib/getopt-pfx-ext.h: Likewise.
17850         * lib/getopt-cdefs.in.h: Likewise.
17852 2017-10-03  Bruno Haible  <bruno@clisp.org>
17854         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17855         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17856         gl_HOST_CPU_C_ABI.
17858 2017-10-03  Bruno Haible  <bruno@clisp.org>
17860         doc: warn about misuse of strncpy and wcsncpy.
17861         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17862         memory allocation.
17863         * doc/posix-functions/wcscpy.texi: Likewise.
17864         * doc/posix-functions/strncpy.texi: Describe what this function is not
17865         useful for.
17866         * doc/posix-functions/wcsncpy.texi: Likewise.
17868 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17870         fsuage: fix typo in previous change
17871         * lib/fsusage.c: Remove stray include of full-read.h.
17872         Problem reported by Sam Steingold for macOS (Bug#28669).
17874 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17876         fsusage: remove SVR2 support
17877         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17878         and its code was getting in the way of use of this module by
17879         Emacs, which has its own ‘read’ function anyway.
17880         * lib/fsusage.c: Do not include sys/filsys.h.
17881         (get_fs_usage): Remove SVR2-specific code.
17882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17883         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17884         * modules/fsusage (Depends-on): Do not depend on full-read.
17886         Simplify autoupdate of licenses
17887         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17888         place.
17890 2017-10-01  Bruno Haible  <bruno@clisp.org>
17892         vma-iter: Add support for GNU/Hurd.
17893         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17894         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17896 2017-09-30  Bruno Haible  <bruno@clisp.org>
17898         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17899         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17900         fail when module 'largefile' is in use.
17901         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17902         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17903         Don't test HAVE_SYS_PROCFS_H.
17905 2017-09-30  Bruno Haible  <bruno@clisp.org>
17907         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17908         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17909         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17910         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17912 2017-09-30  Bruno Haible  <bruno@clisp.org>
17914         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17915         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17916         scope of local variables.
17918 2017-09-28  Bruno Haible  <bruno@clisp.org>
17920         string: code style
17921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17922         substitutable variables.
17923         * modules/string (Makefile.am): Likewise.
17925 2017-09-26  Bruno Haible  <bruno@clisp.org>
17927         uniname/uniname-tests: Tighten code.
17928         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17929         local variables into one.
17931 2017-09-26  Bruno Haible  <bruno@clisp.org>
17933         vma-iter: Improvements for Linux and BSD platforms.
17934         - Add support for DragonFly BSD.
17935         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17936         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17937         Read the entire file into memory in a single system call.
17938         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17939         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17941 2017-09-26  Bruno Haible  <bruno@clisp.org>
17943         vma-iter: Provide the protection flags on FreeBSD.
17944         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17945         skip three fields between the addresses and the protection flags.
17947 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17949         glob: remove bogus extern decl
17950         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17951         extern declaration.  Problem reported by Adhemerval Zanella in:
17952         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17954 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17956         uniname/uniname-tests: integer overflow fix
17957         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17958         Check for integer overflow.
17960         duplocale-tests: fix unlikely crash
17961         * tests/test-duplocale.c (get_locale_dependent_values):
17962         Don’t crash with absurdly long month names.
17964         maint: fix overflow checking in nap.h
17965         * modules/chown-tests:
17966         * modules/fchownat-tests, modules/fdutimensat-tests:
17967         * modules/futimens-tests, modules/lchown-tests:
17968         * modules/stat-time-tests, modules/utime-tests:
17969         * modules/utimens-tests, modules/utimensat-tests:
17970         Depend on intprops.
17971         * tests/nap.h: Include intprops.h.
17972         (diff_timespec): Handle overflow properly.
17974         sys_types: update URL
17975         * m4/sys_types_h.m4: Use https: URL.
17977         parse-datetime: fix dependency
17978         * modules/parse-datetime (Depends-on): Depend
17979         on nstrftime, not strftime.
17981         parse-datetime, posixtm: avoid uninit access
17982         * lib/parse-datetime.y (parse_datetime2):
17983         * lib/posixtm.c (posixtime):
17984         Do not access uninitialized storage, even though the resulting
17985         value is never used.
17987 2017-09-25  Bruno Haible  <bruno@clisp.org>
17989         vma-iter: Improvements for BSD platforms.
17990         - Add support for GNU/kFreeBSD.
17991         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17992         - Speed up on OpenBSD.
17993         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17994         (vma_iterate_bsd): New function.
17995         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17996         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17997         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17998         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18000 2017-09-23  Bruno Haible  <bruno@clisp.org>
18002         strfmon_l: New module.
18003         * modules/strfmon_l: New file.
18004         * lib/strfmon_l.c: New file.
18005         * m4/strfmon_l.m4: New file.
18006         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18007         * modules/strfmon_l-tests: New file.
18008         * tests/test-strfmon_l.c: New file.
18010         monetary: New module.
18011         * modules/monetary: New file.
18012         * lib/monetary.in.h: New file.
18013         * m4/monetary_h.m4: New file.
18014         * doc/posix-headers/monetary.texi: Mention the new module.
18015         * modules/monetary-tests: New file.
18016         * tests/test-monetary.c: New file.
18017         * modules/monetary-c++-tests: New file.
18018         * tests/test-monetary-c++.cc: New file.
18019         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18021 2017-09-23  Bruno Haible  <bruno@clisp.org>
18023         duplocale tests: Fix test crash on Linux/x86.
18024         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18025         locale from the current thread before freeing it.
18027 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18029         mktime: port to OpenVMS
18030         Problem reported by John E. Malmberg in:
18031         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18032         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18034 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18036         manywarnings: port to GCC on 64-bit MS-Windows
18037         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18038         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18039         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18041 2017-09-13  Bruno Haible  <bruno@clisp.org>
18043         all: Replace many more http URLs by https URLs. Update stale URLs.
18044         * users.txt: Remove mention of 'newts'.
18045         * lib/localename.c: Update comment about LANG_SOTHO.
18047 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18049         all: Replace many http URLs by https URLs.
18051 2017-09-12  Bruno Haible  <bruno@clisp.org>
18053         doc: Prefer https URLs where possible.
18054         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18055         * doc/ld-output-def.texi: Remove unavailable URL.
18057 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18059         maintainer-makefile: FTP -> HTTPS
18060         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18061         of FTP, which is planned to be decommissioned on 2017-11-01.
18063 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18065         libc-config: Fix __GNUC_PREREQ macro.
18066         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18067         __GNUC_MINOR.
18069 2017-09-09  Bruno Haible  <bruno@clisp.org>
18071         gnulib-tool: Simplify commit from 2015-08-20.
18072         * gnulib-tool (func_add_or_update): Remove local variable
18073         is_binary_file.
18075 2017-09-08  Bruno Haible  <bruno@clisp.org>
18077         stddef: Avoid conflict with system-defined max_align_t.
18078         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18079         Reported by Werner Lemberg <wl@gnu.org> in
18080         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18081         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18082         (max_align_t): Define as a macro.
18083         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18084         definitions of rpl_max_align_t in different copies of gnulib-generated
18085         <stddef.h>.
18087 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18089         libc-config: port to MSVC
18090         Problems reported by Gisle Vanem in:
18091         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18092         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18093         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18094         * m4/__inline.m4: New file.
18095         * modules/libc-config (Files): Add it.
18096         (Depends-on): Use it.
18098         glob: Use enum for __glob_pattern_type result
18099         From a patch proposed by Adhemerval Zanella in:
18100         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18101         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18102         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18103         * lib/glob_internal.h (__glob_pattern_type):
18104         * lib/glob.c (glob):
18105         * lib/glob_pattern_p.c (__glob_pattern_p):
18106         Use them.
18108         glob: fix for use in glibc
18109         Problem reported by Adhemerval Zanella in:
18110         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18111         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18112         Do not redefine if _LIBC.
18114 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18116         glob: fix bugs with long login names
18117         Problem reported by Adhemerval Zanella in:
18118         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18119         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18120         (glob): Use the same scratch buffer for both getlogin_r and
18121         getpwnam_r.  Don’t require preallocation of the login name.  This
18122         simplifies storage allocation, and corrects the handling of
18123         long login names.
18125 2017-09-02  Bruno Haible  <bruno@clisp.org>
18127         dirent: Update doc.
18128         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18130 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18132         glob: fix getpwnam_r errno typo
18133         * lib/glob.c (glob): Fix longstanding misuse of errno after
18134         getpwnam_r, which returns an error number rather than setting
18135         errno.
18137         glob: fix typo in recent change
18138         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18139         Fix recently-introduced typo.
18141 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18143         glob: don't save and restore errno unnecessarily
18144         * lib/glob.c (glob): Don't save and restore errno
18145         merely because we have getpwnam_r.
18147         glob: don't assume getpwnam_r
18148         * lib/glob.c (glob): Port recent patches to platforms
18149         lacking getpwnam_r.
18151         scratch_buffer: don’t use private glibc API
18152         Suggested by Florian Weimer in:
18153         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18154         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18155         * lib/scratch_buffer_grow.c: Rename to
18156         lib/malloc/scratch_buffer_grow.c.
18157         * lib/scratch_buffer_grow_preserve.c: Rename to
18158         lib/malloc/scratch_buffer_grow_preserve.c.
18159         * lib/scratch_buffer_set_array_size.c: Rename to
18160         lib/malloc/scratch_buffer_set_array_size.c.
18161         * lib/scratch_buffer.h: New file.
18162         * modules/scratch_buffer (Files, Makefile.am):
18163         Adjust to source-file renaming.
18165 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18167         glob: use scratch_buffer instead of extend_alloca
18168         Much of the lib/glob.c part of this patch comes from a glibc patch
18169         proposed by Adhemerval Zanella in:
18170         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18171         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18172         included via glob.h, does this for us now.
18173         (__set_errno): Remove, as libc-config does this for us now.
18174         Include <scratch_buffer.h>.
18175         (GETPW_R_SIZE_MAX): Remove.
18176         (glob): Use struct scratch_buffer instead of extend_alloca.
18177         * lib/glob.in.h: Include libc-config.h rather than
18178         including <sys/cdefs.h> conditionally.
18179         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18180         (__glibc_unlikely, __restrict, weak_alias):
18181         Remove, as libc-config does this for us now.
18182         * m4/glob.m4 (gl_PREREQ_GLOB):
18183         Remove sys/cdefs.h tests; no longer needed.
18184         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18185         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18187         scratch_buffer: new module
18188         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18189         * lib/scratch_buffer_grow_preserve.c:
18190         * lib/scratch_buffer_set_array_size.c:
18191         New files, copied from glibc with very minor changes that can be
18192         copied back.
18193         * modules/scratch_buffer: New file.
18195         libc-config: new module
18196         * MODULES.html.sh: Add libc-config.
18197         * lib/cdefs.h: New file, copied from the GNU C Library with very
18198         minor changes that can be copied back.
18199         * lib/libc-config.h, modules/libc-config: New files.
18201 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18203         glob: match dangling symlinks
18204         This fixes a bug I inadvertently introduced to Gnulib when I
18205         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18206         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18207         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18208         * doc/posix-functions/glob.texi: Update list of affected platforms.
18209         * lib/glob.c (__lstat64): New macro.
18210         (is_dir): New function.
18211         (glob, glob_in_dir): Match symlinks even if they are dangling.
18212         (link_stat, link_exists_p): Remove.  All uses removed.
18213         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18214         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18215         * modules/glob-tests (Depends-on): Add symlink.
18216         * tests/test-glob.c: Include errno.h, unistd.h.
18217         (BASE): New macro.
18218         (main): Test dangling symlinks, if symlinks are supported.
18220         glob, backupfile: inode 0 is a valid inode number
18221         * doc/posix-functions/readdir.texi (readdir):
18222         * doc/posix-headers/dirent.texi (dirent.h):
18223         Document more readdir portability issues.
18224         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18225         (numbered_backup): Don’t treat inode 0 any differently from
18226         other inode values.
18227         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18228         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18229         All uses removed.
18230         * modules/glob (Depends-on): Remove d-ino.
18232         glob: simplify symlink detection
18233         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18234         uint8_t, as C99 does not require uint8_t.
18235         (struct readdir_result): Use it.  Do not define skip_entry unless
18236         it is needed; this saves a byte on platforms lacking d_ino.
18237         (readdir_result_type, readdir_result_skip_entry):
18238         New functions, replacing ...
18239         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18240         ... these functions, which were removed.  This makes the callers
18241         easier to read.  All callers changed.
18242         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18244 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18246         fts-tests: tag as a longrunning-test so not included by default
18247         * modules/fts-tests: This test takes about 20s on current systems,
18248         and uses about 285M of space on ext4.
18250 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18252         renameat2: fix compilation on alpine linux
18253         * m4/renameat.m4: Check for <linux/fs.h> presence.
18254         * lib/renameat2.h: Only include <linux/fs.h> if present.
18255         Reported by Assaf Gordon on Alpine Linux.
18257 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18259         glob: try to port recent changes to MS-Windows
18260         Problem reported by Bruno Haible in:
18261         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18262         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18263         * lib/glob.in.h (__glob_pattern_p): ... to here.
18265 2017-08-24  Eric Blake  <eblake@redhat.com>
18267         warnings: fix compilation with old autoconf
18268         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18269         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18270         AC_DEFUN.
18271         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18272         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18274 2017-08-24  Bruno Haible  <bruno@clisp.org>
18276         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18277         * modules/glob (Depends-on): Add c99.
18279 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18281         glob: fix typo that broke platforms lacking d_ino
18282         This typo also hurt performance on GNU/Linux and similar hosts.
18283         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18284         in previous change.
18286 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18288         glob: merge from glibc with Zanella glob changes
18289         Merge glob from glibc, with changes for glob proposed
18290         by Adhemerval Zanella in the thread starting here:
18291         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18292         plus some fixes for this merge.
18293         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18294         New files, ported from glibc.
18295         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18296         with __restrict.
18297         (__size_t): Remove.  All uses replaced by size_t.
18298         (size_t): Define by defining __need_size_t and including <stddef.h>.
18299         This should work even in non-glibc platforms, where any name
18300         pollution is OK.
18301         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18302         (struct stat64): Don’t worry about __GLOB_GNULIB.
18303         (glob, globfree, glob_pattern_p): Remove macros for
18304         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18305         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18306         but set errno.
18307         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18308         removed since the glibc behavior works on null pointers.
18309         Do not include stdio.h; old SunOS is irrelevant now.
18310         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18311         Include glob_internal.h.
18312         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18313         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18314         worked only coincidentally.
18315         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18316         Remove macros; now done in glob.in.h.
18317         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18318         (glob): Properly initialize glob structure with
18319         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18320         Remove old code using SHELL since Bash no longer
18321         uses this.
18322         (glob, prefix_array): Separate MS code better.
18323         (glob, glob_in_dir): Use C99 decls before statements when glibc
18324         does.
18325         (glob_in_dir): Remove old Amiga and VMS code.
18326         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18327         separate files.
18328         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18329         (__glibc_unlikely):
18330         Move here from glob.c.
18331         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18332         (weak_alias): New macro.
18333         (__size_t): Remove.  All uses replaced by size_t.
18334         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18335         * modules/glob (Files): Add +lib/glob_internal.h,
18336         lib/glob_pattern_p.c, lib/globfree.c.
18337         (Depends-on): Remove snippet/arg-nonnull.
18339 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18341         glob: port to clang's Undefined Sanitizer
18342         Problem reported by Tim Rühsen in:
18343         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18344         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18345         (glob_in_dir): Do not rely on undefined behavior in accessing
18346         struct members beyond their bounds.  Use a flexible array member
18347         instead.
18349 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18351         vc-list-files: port to Solaris 10
18352         * build-aux/vc-list-files: Don't assume test -e works.
18354 2017-08-21  Karl Berry  <karl@freefriends.org>
18356         * doc/posix-functions/srandom.texi (srandom): typo }.
18358 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18360         git-version-gen: port to Solaris 10
18361         Problem reported by Dagobert Michelsen in:
18362         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18363         * build-aux/git-version-gen (v_from_git):
18364         Use expr instead of shell substitution.
18366 2017-08-19  Bruno Haible  <bruno@clisp.org>
18368         host-cpu-c-abi: Improve detection of MIPS ABI.
18369         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18370         _MIPS_SIM.
18372 2017-08-17  Bruno Haible  <bruno@clisp.org>
18374         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18375         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18377 2017-08-17  Bruno Haible  <bruno@clisp.org>
18379         float: Fix LDBL_MIN value on FreeBSD/x86.
18380         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18382 2017-08-17  Bruno Haible  <bruno@clisp.org>
18384         random: Fix test compilation failure on Cygwin 1.5.25.
18385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18386         HAVE_DECL_SETSTATE.
18387         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18388         declared.
18389         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18390         HAVE_DECL_SETSTATE.
18391         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18392         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18393         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18394         * doc/posix-functions/random.texi: Likewise.
18395         * doc/posix-functions/setstate.texi: Likewise.
18396         * doc/posix-functions/srandom.texi: Likewise.
18398 2017-08-16  Bruno Haible  <bruno@clisp.org>
18400         stdnoreturn: Fix test compilation failure on Cygwin.
18401         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18402         <stdnoreturn.h> replacement.
18403         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18404         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18406 2017-08-16  Bruno Haible  <bruno@clisp.org>
18408         thread: Fix conflict with pthread_sigmask module.
18409         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18410         it's defined as a macro.
18411         * modules/thread (Depends-on): Add pthread_sigmask.
18413 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18415         rename: port better to NetBSD
18416         * doc/posix-functions/rename.texi (rename): NetBSD 7
18417         does not have the link-count bug.
18418         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
18419         broken merely because rename ("a", "b") removes "a" when the two
18420         names are hard links to the same file.
18422 2017-08-16  Bruno Haible  <bruno@clisp.org>
18424         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
18425         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
18426         the target file names with '$(srcdir)/'.
18427         * modules/unicase/locale-language (Makefile.am): Likewise.
18428         * modules/unicase/special-casing (Makefile.am): Likewise.
18429         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
18430         * modules/unictype/category-byname (Makefile.am): Likewise.
18431         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18432         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18433         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18434         * modules/unictype/property-byname (Makefile.am): Likewise.
18435         * modules/unictype/scripts (Makefile.am): Likewise.
18436         * modules/uninorm/composition (Makefile.am): Likewise.
18438 2017-08-16  Bruno Haible  <bruno@clisp.org>
18440         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18441         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18442         value for OpenBSD.
18444 2017-08-16  Bruno Haible  <bruno@clisp.org>
18446         rename, renameat: Update doc regarding NetBSD.
18447         * doc/posix-functions/rename.texi: Clarify that when using
18448         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18449         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18450         version.
18452 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18454         renameat2: port better to macOS
18455         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18457         futimens: don’t assume struct timespec layout
18458         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18459         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18460         * tests/test-fdutimensat.c (main):
18461         * tests/test-futimens.h (test_futimens):
18462         * tests/test-lutimens.h (test_lutimens):
18463         * tests/test-utimens.h (test_utimens):
18464         * tests/test-utimensat.c (main):
18465         Don’t assume that struct timespec is a two-member structure in
18466         tv_sec, tv_nsec order.  Although this is true on all platforms we
18467         know about, POSIX does not guarantee it.
18469         rename: document+test NetBSD rename
18470         Test failure reported by Bruno Haible in:
18471         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18472         This is an area where NetBSD is better-behaved than POSIX,
18473         so allow the NetBSD behavior in tests.
18474         * doc/posix-functions/rename.texi:
18475         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18476         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18478 2017-08-15  Bruno Haible  <bruno@clisp.org>
18480         renameat: Ensure declaration in <stdio.h> on NetBSD.
18481         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18482         * doc/posix-functions/renameat.texi: Mention this problem.
18484 2017-08-15  Bruno Haible  <bruno@clisp.org>
18486         duplocale: Work around NetBSD 7.0 bug.
18487         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18488         * lib/duplocale.c: Add comment about NetBSD problem.
18489         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18491 2017-08-15  Bruno Haible  <bruno@clisp.org>
18493         duplocale tests: Verify use with *_l functions.
18494         * modules/duplocale-tests (configure.ac): Test for uselocale and
18495         some *_l functions.
18496         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18497         from main.
18498         (get_locale_dependent_values_from, test_with_locale_parameter): New
18499         functions.
18500         (main): Test both test_with_uselocale and test_with_locale_parameter.
18502 2017-08-15  Bruno Haible  <bruno@clisp.org>
18504         extensions: Enable NetBSD specific extensions.
18505         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18507 2017-08-14  Bruno Haible  <bruno@clisp.org>
18509         open, openat: Update doc about O_CLOEXEC.
18510         * doc/posix-functions/open.texi: More concrete list of platforms.
18511         * doc/posix-functions/openat.texi: Likewise.
18513 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18515         open: support O_CLOEXEC
18516         * NEWS, doc/posix-functions/open.texi:
18517         * doc/posix-functions/openat.texi: Document this.
18518         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18519         (GNULIB_defined_O_CLOEXEC): New symbol.
18520         * lib/open.c: Include cloexec.h.
18521         (open): Support O_CLOEXEC.
18522         * lib/openat.c: Include cloexec.h.
18523         (rpl_openat): Support O_CLOEXEC.
18524         * lib/popen-safer.c: Do not include cloexec.h.
18525         (open_noinherit): Remove.
18526         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18527         * lib/save-cwd.c: Do not include cloexec.h.
18528         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18529         * m4/open-cloexec.m4: New file.
18530         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18531         Replace 'open' if O_CLOEXEC is not present.
18532         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18533         Replace 'openat' if O_CLOEXEC is not present.
18534         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18535         * modules/open (Files): Add m4/open-cloexec.m4.
18536         (Depends-on): Depend on cloexec if replacing 'open'.
18537         * modules/openat (Files): Add m4/open-cloexec.m4.
18538         (Depends-on): Depend on cloexec if replacing openat.
18539         * modules/popen-safer (Depends-on): Remove cloexec.
18540         * modules/save-cwd (Depends-on): Remove cloexec, and add
18541         fd-safer-flag and 'open'.
18543 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18545         reallocarray: minor fixes
18546         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18547         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18548         * modules/reallocarray (License): Change from GPL to LGPL.
18549         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18550         Indent properly and don't use tabs.
18552 2017-08-13  Darshit Shah  <darnir@gnu.org>
18554         reallocarray: New module
18555         reallocarray is a new function in glibc 2.26 to safely allocate an array
18556         of memory locations with integer overflow protection.
18557         * MODULES.html.sh: Add reallocarray.
18558         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18559         * lib/reallocarray.c: New file to implement module reallocarray.
18560         * lib/stdlib.in.h: Add function declarations for reallocarray.
18561         * m4/reallocarray.m4: New file.
18562         * m4/stdlib_h.m4: Declare reallocarray.
18563         * modules/reallocarray: New file.
18564         * modules/reallocarray-test: New file.
18565         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18566         * tests/test-reallocarray.c: New test.
18568 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18570         dirent-safer: fix cloexec race
18571         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18572         (opendir_safer): Use F_DUPFD_CLOEXEC.
18573         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18574         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18575         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18576         instead of dup_safer.
18578         fts: fix cloexec races
18579         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18580         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18581         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18582         (fd_ring_check): Set cloexec flag on new file descriptors.
18583         (fts_build, fd_ring_check): While we’re at it, make sure the
18584         resulting file descriptor is not 0, 1, or 2, since that is easy.
18586 2017-08-11  Bruno Haible  <bruno@clisp.org>
18588         fts tests: Fix link error.
18589         Reported by Tom G. Christensen in
18590         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18591         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18593 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18595         fts: port recent changes to CentOS 6
18596         Problem reported by Tom G. Christensen in:
18597         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18598         * lib/fts.c (fsword): New type.
18599         (struct dev_type, filesystem_type): Use it.
18600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18601         Also, check for f_type only if fstatfs and sys/vfs.h work.
18603 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18605         tempname: do not depend on secure_getenv
18606         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18607         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18608         * modules/tempname (Depends-on): Remove secure_getenv.
18610 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18612         extensions: add _OPENBSD_SOURCE
18613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18615 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18616             Bruno Haible  <bruno@clisp.org>
18618         manywarnings: Add support for C++.
18619         * build-aux/g++-warning.spec: New file.
18620         * m4/manywarnings-c++.m4: New file.
18621         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18622         redirects to manywarnings-c++.m4.
18623         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18625 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18627         git-version-gen: another fix for tags with "-"
18628         * build-aux/git-version-gen: Improve fix for tags containing "-".
18629         Suggested by Markus Armbruster in:
18630         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18632 2017-08-06  Bruno Haible  <bruno@clisp.org>
18634         warnings, manywarnings: Add support for multiple languages, not just C.
18635         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18636         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18637         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18638         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18639         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18640         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18641         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18642         of the current language. If C++ is the current language, modify
18643         WARN_CXXFLAGS instead of WARN_CFLAGS.
18644         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18645         gl_MANYWARN_ALL_GCC.
18646         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18648 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18650         git-version-gen: Fix for tags containing '-'
18652         Really old versions of git-describe (before v1.5.0, Feb 2007)
18653         don't have the number of commits in their long format output,
18654         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18655         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18656         recognizes both patterns, and normalizes the old format to the new one.
18658         Unfortunately, this normalization code gets confused when the tag
18659         contains '-'.  Reproducer:
18661             $ git-tag -m test v0.2-rc1
18662             $ build-aux/git-version-gen .tarball-version; echo
18663             build-aux/git-version-gen: WARNING: git rev-list failed
18664             UNKNOWN
18666         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18667         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18668         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18670         * git-version-gen: We could perhaps drop support for versions from
18671         more than a decade ago.  But tightening the pattern match is easy
18672         enough, so do that.  Still breaks when you use version tags ending in
18673         something matching -g????, but you arguably get what you deserve then.
18675 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18677         valgrind-tests: use ls, and cache
18678         * m4/valgrind-tests.m4: Test ls, not bash.
18679         Problem reported by Reuben Thomas.
18680         Also, cache the result so that it can be overridden.
18682 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18684         manywarnings: port to 64-bit GCC builds of Emacs
18685         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18686         object size rather than hardwiring 2147483647.  This is needed to
18687         build GNU Emacs, which has one conditional (and used
18688         only-in-theory) call to malloc with a literal greater than
18689         2147483647.
18691 2017-08-04  Bruno Haible  <bruno@clisp.org>
18693         Relax the license of some modules with no runtime code.
18694         * modules/std-gnu11 (License): Set to 'unlimited'.
18695         * modules/c99 (License): Likewise.
18696         Reported by Reuben Thomas <rrt@sc3d.org>.
18697         * modules/d-ino (License): Set to 'LGPL'.
18698         * modules/host-os (License): Likewise.
18699         * modules/longlong (License): Likewise.
18701 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18703         renameat2: port to RHEL 7 + NFS
18704         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18705         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18706         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18708 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18710         renameat2: port to non-renameat platforms
18711         Problem reported for MSVC-2015 by Gisle Vanem in:
18712         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18713         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18714         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18716 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18718         manywarnings: port to 32-bit GCC bug
18719         Problem reported by Pino Toscano in:
18720         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18721         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18722         not 2**63 - 1, to work around the following GCC bug:
18723         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18725 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18727         backupfile: new function to validate backup suffix
18728         * lib/backupfile.c (set_simple_backup_suffix): New function.
18729         (backupfile_internal): Use it.
18731         canonicalize: fix EOVERFLOW commentary
18732         Problem reported by Bruno Haible in:
18733         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18734         * lib/canonicalize.c (canonicalize_filename_mode):
18735         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18737         Don't interpret EOVERFLOW to mean nonexistence
18738         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18739         may be EOVERFLOW; this is likely more useful than reporting the
18740         stat errno.
18741         * lib/glob.c (link_stat): Rename from link_exists2_p and
18742         return -1/0 instead of 0/1.  Caller changed.
18743         * lib/glob.c (link_exists_p):
18744         * lib/renameat2.c (rename_noreplace, renameat2):
18745         * lib/tempname.c (try_nocreate):
18746         If errno == EOVERFLOW then the directory entry exists, so do not
18747         act as if it does not exist.
18749         backup-rename: new module
18750         It is like backupfile, except it avoids some race conditions,
18751         and it does not output to stderr or exit.
18752         * MODULES.html.sh: Add backup-rename.
18753         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18754         * modules/backup-rename: New files.
18755         * lib/backupfile.c: Turn this into an internals file, which
18756         contains code common to backupfile and backup_rename.  Include
18757         backupfile-internal.h instead of backupfile.h.  Do not include
18758         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18759         renameat2.h and fcntl.h.
18760         (BACKUP_NOMEM): New constant.
18761         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18762         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18763         (backupfile_internal): Rename from find_backup_file_name.
18764         Support new arg RENAME.
18765         (backup_args, backup_types, get_version, xget_version):
18766         Move to lib/backup-find.c.
18767         * lib/backupfile.h (backup_file_rename): New decl.
18768         * modules/backupfile (Files): Add lib/backup-internal.h,
18769         lib/backup-find.c.
18770         (Depends-on): Add dirfd, fcntl, renameat2.
18771         (lib_SOURCES): Add backup-find.c.
18773         renameat2: port better to older Solaris
18774         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18775         Add goto to use a label, to silence picky compilers.
18777         fts-tests: port to gcc -Wwrite-strings
18778         * tests/test-fts.c (base, base_d): New static vars.
18779         (argv, remove_tree, main): Use them.
18781 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18783         relocatable-lib{,-lgpl}: improve documentation
18784         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18785         Various other updates.
18787 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18788             Bruno Haible  <bruno@clisp.org>
18790         relocatable-lib{,-lgpl}: add Valgrind suppressions
18791         * lib/relocatable.valgrind: New file.
18792         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18793         * modules/relocatable-lib-lgpl: Likewise.
18795 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18797         relocatable: Make the license on the sources the GPL.
18798         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18799         LGPL, which was a special case so that the relocatable source files
18800         could be used without gnulib-tool, to GPL. They can still be used under
18801         the LGPL, using the --lgpl option to gnulib-tool.
18803 2017-07-30  Bruno Haible  <bruno@clisp.org>
18805         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18806         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18807         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18808         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18809         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18811 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18813         faccessat: document AT_SYMLINK_NOFOLLOW issue
18814         * doc/posix-functions/faccessat.texi: Modernize platform list.
18815         Document AT_SYMLINK_NOFOLLOW limitation.
18817         renameat2: port to Solaris 10
18818         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18819         with AT_SYMLINK_NOFOLLOW (which is not portable).
18820         (renameat): Undef before using, to avoid endless recursion when
18821         the replacement renameat calls renameat2 which calls the
18822         replacement renameat.
18823         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18824         * modules/renameat2 (Depends-on): Remove faccessat.
18825         * modules/renameat-tests (test_renameat_LDADD):
18826         * modules/renameat2-tests (test_renameat2_LDADD):
18827         Remove $(LIB_EACCESS).
18829         renameat2: new module
18830         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18831         useful to have access to its RENAME_NOREPLACE flag.
18832         * MODULES.html.sh (func_all_modules): Add renameat2.
18833         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18834         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18835         * lib/renameat.c (renameat): Move most of the implementation
18836         to renameat2, and just call renameat2.
18837         * modules/renameat (Files): Remove lib/at-func2.c.
18838         (Depends-on): Depend only on renameat2.
18839         (Include): Remove <fcntl.h>.
18840         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18841         since renameat (via renameat2) might use faccessat.
18843 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18845         vc-list-files: Adjust the script to support git worktrees
18846         * build-aux/vc-list-files: Require existence, not directory.
18848 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18850         doc: bring MODULES.html.sh up to date
18851         Somehow a few months ago we stopped updating MODULES.html.sh.
18852         I don’t recall explicitly deciding this, so I updated it now.
18853         Alternatively I suppose we could remove it.
18854         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18855         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18856         truncate, utime, utime-h, windows-stat-inodes,
18857         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18859 2017-07-26  Jim Meyering  <meyering@fb.com>
18861         fprintftime: fix build-break caused by recent renaming
18862         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18863         "strftime.c".
18864         * modules/fprintftime: Depend directly on nstrftime.
18866 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18868         regex: work with GCC7's -Werror=implicit-fallthrough=
18869         * lib/regex_internal.h (FALLTHROUGH): New macro.
18870         * lib/regcomp.c (peek_token_bracket, parse_expression):
18871         * lib/regexec.c (check_node_accept): Use it.
18873 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18875         fts: simplify fts_build
18876         * lib/fts.c (fts_build): Simplify, and be lazier about
18877         calling leaf_optimization.
18879         fts: three levels of leaf optimization
18880         * lib/fts.c (enum leaf_optimization): New type with three values.
18881         (S_MAGIC_AFS): New macro.  Sort them.
18882         (leaf_optimization): Rename from leaf_optimization_applies, and
18883         return enum leaf_optimization instead of bool.  All uses changed.
18884         Add cases for unknown type and for AFS.
18885         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18887         fts: cache dirent_inode_sort_may_be_useful too
18888         * lib/fts.c (struct dev_type): New struct.
18889         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18890         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18891         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18892         Now takes FTSENT const *, not int.  All uses changed.  Use
18893         filesystem_type to cache.
18894         (link_count_optimize_ok): Remove.  Caller changed to use
18895         leaf_optimization_applies, which now uses shared cache.
18897         fts: introduce MIN_DIR_NLINK
18898         * lib/fts.c (MIN_DIR_NLINK): New constant.
18899         Use it instead of 2, whenever we are talking about link counts.
18901         fts: nlink_t signedness fixups
18902         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18903         so that root need not be a special case later.
18904         (fts_read): Remove now-redundant test for fts_level.
18905         Do not assume that nlink_t is signed.
18906         (fts_build): Remove useless decrement of nlinks.
18907         (fts_stat): Avoid unlikely signed integer overflow later, if
18908         nlink_t is signed.
18910         fts-tests: new module
18911         * modules/fts-tests, tests/test-fts.c: New files.
18913 2017-07-23  Bruno Haible  <bruno@clisp.org>
18915         Rename module 'strftime' to 'nstrftime'.
18916         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18917         * lib/nstrftime.c: Renamed from lib/strftime.c.
18918         * modules/nstrftime: Renamed from modules/strftime.
18919         (Files, Makefile.am): Update.
18920         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18921         Fix comment.
18922         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18923         (Files, Makefile.am): Update.
18924         * modules/strftime: New file, an obsolete indirection.
18925         * doc/posix-functions/strftime.texi: Update reference.
18926         * config/srclist.txt: Update info.
18927         * NEWS: Mention the change.
18929 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18931         malloca: Silence a warning from clang's memory sanitizer.
18932         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18933         (freea): Use it.
18935 2017-07-18  Bruno Haible  <bruno@clisp.org>
18937         host-cpu-c-abi: Fix detection of MIPS ABI.
18938         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18939         ABI, not the CPU instruction set.
18941 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18943         explicit_bzero: new module
18944         The explicit_bzero function has been added to glibc.
18945         This module is intended to supports its use in GNU programs.
18946         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18947         * m4/explicit_bzero.m4, modules/explicit_bzero:
18948         New files.
18949         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18950         * lib/string.in.h (explicit_bzero): Declare.
18951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18952         * modules/string (string.h): Substitute its vars.
18954 2017-07-16  Bruno Haible  <bruno@clisp.org>
18956         threadlib: Support static linking.
18957         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18958         set gl_cv_have_weak to 'no'.
18960 2017-07-16  Bruno Haible  <bruno@clisp.org>
18962         unicase/locale-language: Fix link dependencies.
18963         * modules/unicase/locale-language (Link): New section.
18964         * modules/unicase/locale-language-tests (Makefile.am): Link
18965         test-locale-language program with $(LIBTHREAD).
18967 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18969         sys_socket: Add support for OpenVMS.
18970         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18971         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18973 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18975         sys_resource: Add support for OpenVMS.
18976         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18977         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18979 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18980             Bruno Haible  <bruno@clisp.org>
18982         math: Add support for OpenVMS.
18983         * lib/math.in.h [__VMS]: Include <fp.h>.
18984         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18986 2017-07-15  Bruno Haible  <bruno@clisp.org>
18988         getdtablesize: Add minimal support for OpenVMS.
18989         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18990         * modules/getdtablesize (Description): Fix.
18991         * lib/getdtablesize.c: Fix comment.
18992         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18993         getdtablesize() function, even though the test fails.
18994         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18995         limitation on OpenVMS.
18997 2017-07-13  Bruno Haible  <bruno@clisp.org>
18999         Revisit cross-compilation guesses.
19000         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19002 2017-07-13  Bruno Haible  <bruno@clisp.org>
19004         Improve cross-compilation guesses for native Windows.
19005         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19006         Windows.
19007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19008         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19009         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19010         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19011         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19012         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19013         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19014         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19015         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19016         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19017         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19018         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19019         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19020         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19021         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19022         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19023         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19025         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19026         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19027         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19028         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19029         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19030         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19031         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19032         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19033         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19034         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19036         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19037         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19039         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19040         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19041         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19042         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19043         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19044         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19045         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19046         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19047         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19048         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19049         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19050         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19051         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19052         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19053         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19054         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19055         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19056         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19057         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19058         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19059         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19060         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19061         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19062         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19063         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19064         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19065         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19066         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19068         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19069         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19070         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19071         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19073         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19074         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19075         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19076         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19077         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19078         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19079         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19080         * m4/regex.m4 (gl_REGEX): Likewise.
19081         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19082         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19083         gl_FUNC_REMAINDERF_WORKS): Likewise.
19084         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19085         gl_FUNC_REMAINDERL_WORKS): Likewise.
19086         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19088         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19089         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19090         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19091         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19092         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19093         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19094         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19095         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19096         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19097         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19098         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19099         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19100         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19101         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19102         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19104         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19106         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19107         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19108         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19109         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19110         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19111         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19112         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19113         Likewise.
19114         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19115         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19116         Windows. Enable also on Autoconf 2.70.
19117         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19118         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19119         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19120         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19121         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19122         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19123         for native Windows.
19124         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19125         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19127 2017-07-13  Bruno Haible  <bruno@clisp.org>
19129         Improve cross-compilation guesses for native Windows.
19130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19131         Windows.
19132         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19133         memchr.m4.
19134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19136 2017-07-13  Bruno Haible  <bruno@clisp.org>
19138         Improve cross-compilation guesses for native Windows.
19139         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19140         native Windows.
19141         (gl_FUNC_FFLUSH): Update accordingly.
19142         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19143         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19145 2017-07-11  Bruno Haible  <bruno@clisp.org>
19147         More systematic m4 quoting and indentation.
19148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19149         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19150         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19151         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19152         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19153         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19154         gl_WINSIZE_IN_PTEM): Likewise.
19155         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19156         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19157         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19158         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19159         Correct indentation.
19160         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19162         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19163         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19164         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19165         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19167 2017-07-10  Bruno Haible  <bruno@clisp.org>
19169         round, roundf: Avoid compiler warning in configure test.
19170         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19173 2017-07-10  Bruno Haible  <bruno@clisp.org>
19175         getlogin tests: Avoid #ifdefs when sharing code between modules.
19176         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19177         * modules/getlogin-tests (Files): Likewise. Remove
19178         tests/test-getlogin_r.c.
19179         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19180         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19181         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19182         getlogin().
19184 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19186         getlogin: don’t assume one name per uid
19187         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19188         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19189         (ttyname): Remove test.
19190         * modules/getlogin_r-tests (ttyname): Remove test.
19191         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19192         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19193         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19194         getlogin rather than getlogin_r.  This avoids code duplication.
19195         (main): Use isatty and fstat rather than ttyname and stat.
19196         Use getpwnam instead of getpwuid, to be portable to test platforms
19197         that have multiple login names for the same uid.
19199 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19200             Bruno Haible  <bruno@clisp.org>
19202         glob: Fix more memory leaks.
19203         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19204         returning.
19205         Reported by Tim Rühsen.
19207 2017-07-10  Bruno Haible  <bruno@clisp.org>
19209         Make sure $host and $host_os are defined when used.
19210         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19211         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19212         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19213         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19214         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19216         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19217         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19218         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19219         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19220         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19223         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19224         m4_ifdef block.
19226 2017-07-09  Bruno Haible  <bruno@clisp.org>
19228         *printf: Fix cross-compilation guess for Solaris.
19229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19230         2010-12-21.
19232 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19233             Bruno Haible  <bruno@clisp.org>
19235         vasnprintf: port to macOS 10.13
19236         Problem reported by comex in:
19237         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19238         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19240 2017-07-06  Bruno Haible  <bruno@clisp.org>
19242         imaxdiv tests: Fix logic.
19243         * tests/test-imaxdiv.c (main): Use == instead of =.
19244         Reported by Coverity.
19246 2017-07-06  Bruno Haible  <bruno@clisp.org>
19248         uninorm/filter: Fix use-after-free bug.
19249         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19250         sortbuf == filter->sortbuf invariant.
19251         Reported by Coverity.
19253 2017-07-06  Bruno Haible  <bruno@clisp.org>
19255         glob: Fix more memory leaks.
19256         * lib/glob.c (glob): Free dirname before returning.
19257         Reported by Coverity and Tim Rühsen.
19259 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19261         parse-datetime: fix uninit var bug
19262         Reported by Bruno Haible in:
19263         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19264         * lib/parse-datetime.y (parse_datetime2): Do not use
19265         uninitialized.
19267 2017-07-05  Bruno Haible  <bruno@clisp.org>
19269         doc: Update for MSVC 14.
19270         * doc/posix-headers/*.texi: Add info about MSVC 14.
19271         * doc/posix-functions/*.texi: Likewise.
19272         * doc/pastposix-functions/*.texi: Likewise.
19273         * doc/glibc-headers/*.texi: Likewise.
19274         * doc/glibc-functions/*.texi: Likewise.
19276 2017-07-05  Bruno Haible  <bruno@clisp.org>
19278         sched: Fix build failure on native Windows (regression from 2017-06-19).
19279         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19281 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19283         stdioext: Port to OpenVMS.
19284         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19285         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19286         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19287         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19288         * lib/fpurge.c (fpurge): Likewise.
19289         * lib/freadable.c (freadable): Likewise.
19290         * lib/freadahead.c (freadahead): Likewise.
19291         * lib/freading.c (freading): Likewise.
19292         * lib/freadptr.c (freadptr): Likewise.
19293         * lib/freadseek.c (freadseek): Likewise.
19294         * lib/fseeko.c (fseeko): Likewise.
19295         * lib/fseterr.c (fseterr): Likewise.
19296         * lib/fwritable.c (fwriteable): Likewise.
19297         * lib/fwriting.c (fwriting): Likewise.
19299 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19301         glob: Declare variables at the very start of their scope.
19302         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19303         its separate scope, so the functions will compile on Haiku.
19305 2017-07-01  Bruno Haible  <bruno@clisp.org>
19307         logbl: Work around a glibc bug on PowerPC64LE.
19308         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19309         numbers.
19310         * doc/posix-functions/logbl.texi: Update.
19312 2017-06-29  Bruno Haible  <bruno@clisp.org>
19314         stat, fstat: Compile stat-w32.c only on platforms that need it.
19315         Suggested by Paul Eggert.
19316         * modules/stat (configure.ac): Request stat-w32.o only on native
19317         Windows.
19318         * modules/fstat (configure.ac): Likewise.
19320 2017-06-25  Bruno Haible  <bruno@clisp.org>
19322         stat: Improve last change.
19323         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19325 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19327         stat: port to xlc 12.01
19328         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19329         12.01 complains "Compilation unit is empty."
19331 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19333         xalloc-oversized: port to icc
19334         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19335         __builtin_mul_overflow if ICC is defined, as this results in
19336         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19337         20170213.
19339 2017-06-19  Bruno Haible  <bruno@clisp.org>
19341         classpath: Avoid including config.h twice, as it produces warnings.
19342         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19343         * lib/classpath.h: Conditionalize the include of config.h.
19345 2017-06-19  Bruno Haible  <bruno@clisp.org>
19346             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19348         sched: Fix compilation failure on OpenVMS.
19349         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19350         test whether <pthread.h> exists and defines struct sched_param.
19351         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19353 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19355         diffseq: port to GCC 7 with --enable-gcc-warnings
19356         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19357         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19358         not complain about big_snake being defined but not used.
19360 2017-06-15  Bruno Haible  <bruno@clisp.org>
19362         gettext-h: Update theoretical condition for use of variable size arrays.
19363         Reported by Paul Eggert.
19364         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19365         to include the theoretical condition for availability of variable size
19366         arrays, if we could trust the value of __STDC_VERSION__.
19368 2017-06-12  Bruno Haible  <bruno@clisp.org>
19370         Relicense some modules under LGPLv2+.
19371         Daiki Ueno's approval is in
19372         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19373         * modules/uniwidth/base (License): Change to LGPLv2+.
19374         * modules/uniwidth/width (License): Likewise.
19376 2017-06-11  Bruno Haible  <bruno@clisp.org>
19378         localename: Fix test failure on DragonFly BSD.
19379         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19380         like FreeBSD.
19382 2017-06-11  Bruno Haible  <bruno@clisp.org>
19384         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19385         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19386         * lib/float.in.h: Likewise.
19387         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19389 2017-06-11  Bruno Haible  <bruno@clisp.org>
19391         gnulib-tool: Clean up after autotools.
19392         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19393         useless directory left over by the Autotools.
19395 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19397         getopt-posix: port to glibc 2.25.90
19398         Problem reported by Daniel P. Berrange in:
19399         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19400         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19401         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19402         #undef if __GETOPT_PREFIX is defined.
19404 2017-06-11  Bruno Haible  <bruno@clisp.org>
19406         strtod-obsolete: Fix license.
19407         * modules/strtod-obsolete (License): Change to LGPL.
19409 2017-06-10  Jim Meyering  <meyering@fb.com>
19411         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19412         * lib/savewd.c (FALLTHROUGH): Define.
19413         (savewd_save, savewd_restore): Use this, rather than a comment,
19414         whenever one switch case falls through into the next.
19416 2017-06-08  Bruno Haible  <bruno@clisp.org>
19418         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
19419         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
19420         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
19421         case.
19423 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19425         doc: remove robots, add prereqs
19426         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
19427         builds.  Simon's robot site does not seem to be up, so remove
19428         mentions of it for now.
19430 2017-06-08  Bruno Haible  <bruno@clisp.org>
19432         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
19433         * gnulib-tool (func_symlink_target): New function, extracted from
19434         func_symlink.
19435         (func_symlink, func_symlink_if_changed): Use it.
19437 2017-06-08  Bruno Haible  <bruno@clisp.org>
19439         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19440         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19442 2017-06-07  Bruno Haible  <bruno@clisp.org>
19444         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19445         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19446         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19447         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19448         override, pass 2 arguments to getcwd, not 3.
19450 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19452         same-inode: port better to VMS 8.2 and later
19453         Problem reported by John E. Malmberg in:
19454         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19455         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19456         Use the usual POSIX definition.
19457         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19459 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19461         error: fix POSIX violation for va_end
19462         Problem reported by Bruno Haible in:
19463         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19464         * lib/error.c (error_tail): Do not call va_end here.
19465         (error, error_at_line): Call it here instead.
19467 2017-05-28  Bruno Haible  <bruno@clisp.org>
19469         c-strtod: Make it usable in C++ mode.
19470         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19472 2017-05-25  Jim Meyering  <meyering@fb.com>
19474         quotearg: fix compilation failure due to FALLTHROUGH misuse
19475         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19476         macro back to /* fall through */ comment.  The macro can apply only
19477         to a following case statement.  Reported by Assaf Gordon.
19479 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19481         intprops: port to recent icc
19482         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19483         but does not support __builtin_add_overflow etc.
19484         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19485         Define to 0.
19487 2017-05-23  Karl Berry  <karl@freefriends.org>
19489         * config/srclist.txt (iconv.m4): sync broken, comment out
19490         until (hopefully) the next gettext release.
19492 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19494         Remove repeated words in comments.
19496 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19498         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19499         quotearg.c: Reinstate this instance which is significant
19500         when the if branch is not taken.
19502 2017-05-21  Bruno Haible  <bruno@clisp.org>
19504         gnulib-tool: Add options to create hard links.
19505         * gnulib-tool (func_usage): Document options --hardlink,
19506         --local-hardlink, --more-hardlinks.
19507         (func_symlink): Renamed from func_ln.
19508         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19509         (func_hardlink): New function.
19510         (copymode, lcopymode): New variables.
19511         (symbolic, lsymbolic): Remove variables.
19512         (Options): Implement options --hardlink, --local-hardlink,
19513         --more-hardlinks.
19514         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19515         (func_add_file, func_update_file): Update invocation of
19516         func_should_link. Invoke func_hardlink when appropriate.
19517         (func_import): Update comments.
19518         (func_create_testdir): Update invocation of func_should_link. Invoke
19519         func_hardlink when appropriate.
19520         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19521         the hard links on git.
19523 2017-05-20  Bruno Haible  <bruno@clisp.org>
19525         argp: Simplify bit manipulation.
19526         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19527         on a signed integer type.
19529 2017-05-20  Bruno Haible  <bruno@clisp.org>
19531         Avoid wrong configure results with gcc -fsanitize=address.
19532         This completes the work done on 2016-02-06 on this topic.
19533         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19536         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19537         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19538         returning.
19539         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19540         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19541         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19542         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19543         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19544         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19545         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19546         free allocated memory before returning.
19547         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19548         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19549         objects before returning.
19550         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19551         returning.
19553 2017-05-20  Bruno Haible  <bruno@clisp.org>
19555         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19556         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19558 2017-05-20  Bruno Haible  <bruno@clisp.org>
19560         argp, tsearch tests: Fix file list.
19561         * modules/argp-tests (Files): Add tests/macros.h.
19562         * modules/tsearch-tests (Files): Likewise.
19564 2017-05-20  Bruno Haible  <bruno@clisp.org>
19566         getopt-posix tests: Remove redundant include.
19567         * tests/test-getopt.h: Don't include "macros.h". It's already included
19568         by tests/test-getopt-main.h.
19570 2017-05-19  Jim Meyering  <meyering@fb.com>
19572         dfa: two small simplifications
19573         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19575 2017-05-18  Jim Meyering  <meyering@fb.com>
19577         fallthrough: update for GCC 7/8
19578         * lib/quotearg.c (FALLTHROUGH): New macro.
19579         Use it whenever one switch case falls through into the next,
19580         replacing "/* Fall through */" comments.  This exposed one
19581         instance of an unwarranted "fall through" comment: unwarranted
19582         because it preceded a "goto" label not a case statement.
19583         * lib/freopen-safer.c (freopen_safer): Likewise.
19584         * lib/fts.c (leaf_optimization_applies): Likewise.
19585         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19586         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19587         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19588         tests/macros.h for the definition.
19589         * tests/test-argp.c (group1_parser): Likewise.
19590         * tests/test-getopt.h (getopt_loop): Likewise.
19592 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19594         argp: fix shift bug
19595         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19596         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19598         argp: fix pointer-subtraction bug
19599         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19600         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19601         See the thread containing Bruno Haible’s report in:
19602         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19604 2017-05-19  Bruno Haible  <bruno@clisp.org>
19606         printf-posix tests: Avoid test failure with "gcc --coverage".
19607         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19608         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19609         than 5000000.
19610         * tests/test-fprintf-posix2.c (main): Likewise.
19612 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19614         closeout: don’t close stderr when sanitizing
19615         * NEWS: Document this.
19616         * lib/closeout.c (__has_feature): New macro, if not already defined.
19617         (SANITIZE_ADDRESS): New constant.
19618         (close_stdout): Don’t close stderr if sanitizing addresses.
19620 2017-05-19  Bruno Haible  <bruno@clisp.org>
19622         get-rusage-data tests: Avoid failure on Linux/glibc.
19623         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19624         on glibc systems.
19626 2017-05-18  Bruno Haible  <bruno@clisp.org>
19628         localename: Include necessary header files on Cygwin.
19629         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19630         where NL_LOCALE_NAME is defined.
19632 2017-05-18  Bruno Haible  <bruno@clisp.org>
19634         gettext: Update macros from gettext git.
19635         * m4/intldir.m4: Require Autoconf >= 2.60.
19636         * m4/progtest.m4: Fix typos in copyright notice.
19638 2017-05-18  Bruno Haible  <bruno@clisp.org>
19640         copy-file tests: Fix link error (regression from 2017-05-01).
19641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19642         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19643         $(LIB_CLOCK_GETTIME).
19645 2017-05-18  Bruno Haible  <bruno@clisp.org>
19647         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19648         (regression from 2017-02-13).
19649         * lib/unicase/special-casing.in.h: Renamed from
19650         lib/unicase/special-casing.h.
19651         * modules/unicase/special-casing (Files): Add
19652         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19653         (Makefile.am): Add rule for generating unicase/special-casing.h.
19654         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19655         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19656         not "special-casing.h".
19657         * lib/unicase/u*.c: Likewise.
19659 2017-05-17  Bruno Haible  <bruno@clisp.org>
19661         README: Don't ask people to read a TeXinfo file.
19662         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19663         * README: Tell people how to read the HTML formatted manual.
19665 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19667         parse-datetime: Fix memleak
19668         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19669         localtime_rz() failure.
19671 2017-05-16  Bruno Haible  <bruno@clisp.org>
19673         javacomp: Fix handle leak.
19674         Found by Coverity.
19675         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19677 2017-05-16  Bruno Haible  <bruno@clisp.org>
19679         relocate: Make it easier to reclaim allocated memory.
19680         * lib/relocatable.h (relocate2): New declaration/macro.
19681         * lib/relocatable.c (relocate2): New function.
19682         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19683         relocate2 function.
19684         * lib/localcharset.c (relocate2): Define fallback.
19685         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19686         allocated memory.
19687         * lib/javaversion.c (relocate2): Define fallback.
19688         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19689         allocated memory.
19691 2017-05-16  Bruno Haible  <bruno@clisp.org>
19693         relocate: Simplify EMX specific code.
19694         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19695         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19697 2017-05-16  Bruno Haible  <bruno@clisp.org>
19699         sigpipe tests: Fix file list.
19700         * modules/sigpipe-tests (Files): Add tests/macros.h.
19702 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19704         manywarnings: update for GCC 7
19705         * build-aux/gcc-warning.spec:
19706         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19707         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19708         requires a non-comment fallthrough attribute.  This is a bit
19709         cleaner than the comment versions.
19710         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19711         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19712         Use it whenever one switch case falls through into the next.
19713         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19714         Use FALLTHROUGH macro.
19716 2017-05-15  Bruno Haible  <bruno@clisp.org>
19718         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19719         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19720         @ALLOCA@, not @LTALLOCA@.
19722 2017-05-15  Bruno Haible  <bruno@clisp.org>
19724         sys_select: Avoid "was expanded before it was required" warning.
19725         * modules/sys_select (configure.ac): Require, not invoke,
19726         gl_HEADER_SYS_SELECT.
19728 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19730         gnulib-tool: improve GNU Make debugging
19731         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19732         Report autoconf diagnostics when it fails, in the output makefile.
19734 2017-05-14  Bruno Haible  <bruno@clisp.org>
19736         stat-time tests: Improve comment.
19737         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19739 2017-05-14  Bruno Haible  <bruno@clisp.org>
19741         same-inode: Adapt for windows-stat-inodes.
19742         * lib/same-inode.h: Include <sys/types.h>.
19743         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19744         * modules/same-inode (Depends-on): Add sys_types.
19746 2017-05-14  Bruno Haible  <bruno@clisp.org>
19748         windows-stat-inodes: New module.
19749         * m4/windows-stat-inodes.m4: New file.
19750         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19751         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19752         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19753         (_GL_WINDOWS_STAT_INODES): New macro.
19754         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19755         (GetFileInformationByHandleExFunc): New variable.
19756         (initialize): Initialize it.
19757         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19758         st_ino appropriately.
19759         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19760         a fallback, because it does not provide st_dev and st_ino values.
19761         * modules/fstat (Depends-on): Add 'verify'.
19762         * modules/windows-stat-inodes: New file.
19763         * doc/windows-stat-inodes.texi: New file.
19764         * doc/gnulib.texi: Include it.
19765         * doc/posix-headers/sys_stat.texi: Mention the new module.
19767 2017-05-14  Bruno Haible  <bruno@clisp.org>
19769         stat-time tests: Workaround for native Windows.
19770         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19771         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19772         New variables.
19773         (initialize_filenames): New function.
19774         (main): Invoke it.
19775         (cleanup, prepare_test): Update.
19777 2017-05-14  Bruno Haible  <bruno@clisp.org>
19779         stat-time: Adapt for windows-stat-timespec.
19780         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19781         entire st_ctim field.
19783 2017-05-13  Jim Meyering  <meyering@fb.com>
19785         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19786         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19787         file that uses the assume macro, claiming that verify.h is unused.
19789 2017-05-13  Bruno Haible  <bruno@clisp.org>
19791         Use symbolic values for _WIN32_WINNT.
19792         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19793         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19795 2017-05-13  Bruno Haible  <bruno@clisp.org>
19797         year2038: New module.
19798         * m4/year2038.m4: New file.
19799         * modules/year2038: New file.
19800         * doc/year2038.texi: New file.
19801         * doc/gnulib.texi: Include it.
19803 2017-05-13  Bruno Haible  <bruno@clisp.org>
19805         largefile: Simplify.
19806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19807         of _GL_WINDOWS_64_BIT_ST_SIZE.
19809 2017-05-13  Bruno Haible  <bruno@clisp.org>
19811         largefile: Improve and document.
19812         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19813         the mingw headers already define 'stat' appropriately.
19814         * modules/largefile (Description): Clarify.
19815         * doc/largefile.texi: New file.
19816         * doc/gnulib.texi: Include it.
19817         * doc/posix-headers/sys_types.texi: Update.
19819 2017-05-13  Bruno Haible  <bruno@clisp.org>
19821         truncate: New module.
19822         * lib/unistd.in.h (truncate): New declaration.
19823         * lib/truncate.c: New file.
19824         * m4/truncate.m4: New file.
19825         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19826         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19827         REPLACE_TRUNCATE.
19828         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19829         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19830         * modules/truncate: New file.
19831         * tests/test-unistd-c++.cc (truncate): Test signature.
19832         * doc/posix-functions/truncate.texi: Mention the new module.
19834         * tests/test-truncate.c: New file.
19835         * modules/truncate-tests: New file.
19837 2017-05-13  Bruno Haible  <bruno@clisp.org>
19839         windows-stat-timespec: New module.
19840         * modules/windows-stat-timespec: New file.
19841         * m4/windows-stat-timespec.m4: New file.
19842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19843         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19844         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19845         fields st_atim, st_mtim, st_ctim.
19846         (st_atime, st_mtime, st_ctime): Define as macros.
19847         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19848         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19849         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19850         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19851         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19852         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19853         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19854         FILETIME to 'struct timespec', not 'time_t'.
19855         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19856         FILETIME to 'struct timespec', not 'time_t'.
19857         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19858         _GL_WINDOWS_STAT_TIMESPEC.
19859         * doc/windows-stat-timespec.texi: New file.
19860         * doc/gnulib.texi: Include it.
19862 2017-05-13  Bruno Haible  <bruno@clisp.org>
19864         windows-stat-override: New module.
19865         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19866         definition. Define GNULIB_defined_struct_stat.
19867         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19868         link error if this symbol is used and the corresponding module is not
19869         in use.
19870         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19871         GNULIB_OVERRIDES_STRUCT_STAT.
19872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19873         GNULIB_OVERRIDES_STRUCT_STAT.
19874         * modules/sys_stat (Makefile.am): Substitute
19875         GNULIB_OVERRIDES_STRUCT_STAT.
19876         * modules/windows-stat-override: New file.
19878 2017-05-13  Bruno Haible  <bruno@clisp.org>
19880         fstat: Fix module dependency conditions.
19881         * modules/fstat (Depends-on): Fix typo.
19883 2017-05-13  Bruno Haible  <bruno@clisp.org>
19885         stat, fstat: Complete removal of old native Windows code.
19886         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19887         * lib/fstat.c: Likewise.
19888         * lib/stat-w32.c: Likewise.
19890 2017-05-13  Bruno Haible  <bruno@clisp.org>
19892         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19893         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19895 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19897         getopt-posix: port to mingw
19898         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19899         Problem reported by Daniel P. Berrage in:
19900         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19902 2017-05-11  Bruno Haible  <bruno@clisp.org>
19904         gettimeofday: Increase precision on mingw.
19905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19906         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19907         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19908         GetSystemTimePreciseAsFileTime based implementation always.
19909         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19910         mingw.
19912 2017-05-11  Bruno Haible  <bruno@clisp.org>
19914         poll: Fix confusion between SOCKETs and FDs on native Windows.
19915         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19916         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19918 2017-05-11  Bruno Haible  <bruno@clisp.org>
19920         doc: Clarify doc about socket functions on native Windows.
19921         This reworks doc that was added on 2008-09-29.
19922         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19923         clearer wording.
19924         * doc/posix-functions/accept.texi: Use clearer wording.
19925         * doc/posix-functions/bind.texi: Likewise.
19926         * doc/posix-functions/connect.texi: Likewise.
19927         * doc/posix-functions/getpeername.texi: Likewise.
19928         * doc/posix-functions/getsockname.texi: Likewise.
19929         * doc/posix-functions/getsockopt.texi: Likewise.
19930         * doc/posix-functions/ioctl.texi: Likewise.
19931         * doc/posix-functions/listen.texi: Likewise.
19932         * doc/posix-functions/recv.texi: Likewise.
19933         * doc/posix-functions/recvfrom.texi: Likewise.
19934         * doc/posix-functions/send.texi: Likewise.
19935         * doc/posix-functions/sendto.texi: Likewise.
19936         * doc/posix-functions/setsockopt.texi: Likewise.
19937         * doc/posix-functions/shutdown.texi: Likewise.
19938         * doc/posix-functions/socket.texi: Likewise.
19940 2017-05-10  Bruno Haible  <bruno@clisp.org>
19942         poll: Fix link error on native Windows.
19943         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19945 2017-05-10  Bruno Haible  <bruno@clisp.org>
19947         time: Fix missing initialization of HAVE_TIMEZONE_T.
19948         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19949         here...
19950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19951         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19952         gl_HEADER_SYS_TIME_H_DEFAULTS.
19953         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19954         (configure.ac): Remove useless quoting.
19956 2017-05-10  Bruno Haible  <bruno@clisp.org>
19958         Implement a way to opt out from MSVC support, part 2.
19959         * modules/msvc-inval (Include): Document recommended idiom.
19960         * modules/msvc-nothrow (Include): Likewise.
19962         Implement a way to opt out from MSVC support.
19963         This is useful for Emacs.
19964         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19965         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19966         * lib/error.c: Likewise.
19967         * lib/fcntl.c: Likewise.
19968         * lib/flock.c: Likewise.
19969         * lib/fstat.c: Likewise.
19970         * lib/fsync.c: Likewise.
19971         * lib/ioctl.c: Likewise.
19972         * lib/isapipe.c: Likewise.
19973         * lib/lseek.c: Likewise.
19974         * lib/nonblocking.c: Likewise.
19975         * lib/poll.c: Likewise.
19976         * lib/select.c: Likewise.
19977         * lib/sockets.h: Likewise.
19978         * lib/sockets.c: Likewise.
19979         * lib/stdio-read.c: Likewise.
19980         * lib/stdio-write.c: Likewise.
19981         * lib/utimens.c: Likewise.
19982         * lib/w32sock.h: Likewise.
19983         * lib/w32spawn.h: Likewise.
19984         * tests/test-cloexec.c: Likewise.
19985         * tests/test-dup-safer.c: Likewise.
19986         * tests/test-dup2.c: Likewise.
19987         * tests/test-dup3.c: Likewise.
19988         * tests/test-fcntl.c: Likewise.
19989         * tests/test-pipe.c: Likewise.
19990         * tests/test-pipe2.c: Likewise.
19991         * lib/ftruncate.c: Likewise.
19992         (chsize_nothrow): Renamed from chsize.
19993         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19994         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19995         * lib/close.c: Likewise.
19996         * lib/dup.c: Likewise.
19997         * lib/fclose.c: Likewise.
19998         * lib/raise.c: Likewise.
19999         * tests/test-fgetc.c: Likewise.
20000         * tests/test-fputc.c: Likewise.
20001         * tests/test-fread.c: Likewise.
20002         * tests/test-fwrite.c: Likewise.
20003         * lib/getdtablesize.c: Likewise.
20004         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20005         * lib/isatty.c: Don't include msvc-inval.h if
20006         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20007         Include <io.h> as an alternative to msvc-nothrow.h.
20008         * lib/read.c: Likewise.
20009         * lib/write.c: Likewise.
20010         * lib/dup2.c: Likewise.
20011         (dup2_nothrow): New function.
20012         (ms_windows_dup2): Use it.
20013         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20014         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20015         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20016         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20017         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20018         * m4/read.m4 (gl_FUNC_READ): Likewise.
20019         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20020         * doc/windows-without-msvc.texi: New file.
20021         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20022         section.
20024 2017-05-10  Bruno Haible  <bruno@clisp.org>
20026         wait-process: Adjust native Windows support.
20027         * lib/wait-process.c: Use the usual condition for recognizing a native
20028         Windows platform.
20030 2017-05-10  Bruno Haible  <bruno@clisp.org>
20032         doc: New chapter "Native Windows Support".
20033         * doc/gnulib.texi (Native Windows Support): New chapter.
20034         * doc/windows-libtool.texi: Small wording changes.
20035         * doc/windows-sockets.texi: Small wording and formatting changes.
20037 2017-05-10  Bruno Haible  <bruno@clisp.org>
20039         doc: Move section "Library version handling".
20040         * doc/gnulib.texi: Move section "Library version handling"
20041         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20043 2017-05-10  Bruno Haible  <bruno@clisp.org>
20045         doc: Move section "Running self-tests under valgrind".
20046         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20047         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20049 2017-05-10  Bruno Haible  <bruno@clisp.org>
20051         doc: New chapter "Build Infrastructure Modules".
20052         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20054 2017-05-10  Bruno Haible  <bruno@clisp.org>
20056         Prepare for reordering sections in the manual.
20057         * doc/gnulib.texi: Move several sections to separate files. Include
20058         these files.
20059         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20060         * doc/obsolete.texi: Likewise.
20061         * doc/extra-tests.texi: Likewise.
20062         * doc/transversal.texi: Likewise.
20063         * doc/namespace.texi: Likewise.
20064         * doc/check-version.texi: Likewise.
20065         * doc/windows-sockets.texi: Likewise.
20066         * doc/windows-libtool.texi: Likewise.
20067         * doc/licenses-texi.texi: Likewise.
20068         * doc/build-automation.texi: Likewise.
20069         * doc/c-locale.texi: Likewise.
20071 2017-05-10  Bruno Haible  <bruno@clisp.org>
20073         Fix instructions how to update manual on www.gnu.org.
20074         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20076 2017-05-09  Bruno Haible  <bruno@clisp.org>
20078         tzset: Expand comment about TZ problem on native Windows.
20079         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20080         Paul Eggert.
20081         * lib/ctime.c (rpl_ctime): Likewise.
20082         * lib/localtime.c (rpl_localtime): Likewise.
20083         * lib/mktime.c (mktime): Likewise.
20084         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20085         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20087 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20089         intprops: don’t depend on ‘verify’
20090         Problem reported by Ævar Arnfjörð Bjarmason in:
20091         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20092         * lib/intprops.h: Do not include verify.h, and move compile-time
20093         checks from here ...
20094         * tests/test-intprops.c (main): ... to here, if they’re not here
20095         already.  Check widths of other standard integer types.
20096         * modules/intprops (Depends-on): Remove ‘verify’.
20098 2017-05-07  Bruno Haible  <bruno@clisp.org>
20100         utimens: On native Windows, support 100ns resolution also if fd < 0.
20101         * lib/utime.in.h: Include <time.h>.
20102         (_gl_utimens_windows): New declaration.
20103         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20104         (utime): Invoke it.
20105         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20106         instead of utime.
20107         * modules/utime (Depends-on): Add 'time'.
20109 2017-05-07  Bruno Haible  <bruno@clisp.org>
20111         utimens: Improve error code on native Windows.
20112         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20113         error code EACCES, not EINVAL.
20115 2017-05-07  Bruno Haible  <bruno@clisp.org>
20117         utime: Handle more Windows error codes.
20118         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20119         Based on explanations by Billy O'Neal.
20121 2017-05-05  Bruno Haible  <bruno@clisp.org>
20123         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20124         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20125         union.
20126         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20127         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20128         value of cipher->IV.
20130 2017-05-05  Bruno Haible  <bruno@clisp.org>
20132         wctype-h-c++-tests: Update.
20133         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20135 2017-05-05  Bruno Haible  <bruno@clisp.org>
20137         wchar-c++-tests: Update.
20138         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20140 2017-05-05  Bruno Haible  <bruno@clisp.org>
20142         utime-h-c++-tests: New module.
20143         * tests/test-utime-h-c++.cc: New file.
20144         (utime): Declare, missing since 2017-04-30.
20145         * modules/utime-h-c++-tests: New file.
20147 2017-05-05  Bruno Haible  <bruno@clisp.org>
20149         unistd-c++-tests: Update.
20150         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20151         (read): Declare, missing since 2011-04-15.
20152         (sethostname): Declare, missing since 2011-12-03.
20154 2017-05-05  Bruno Haible  <bruno@clisp.org>
20156         time-c++-tests: Update.
20157         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20158         (localtime, gmtime): Declare, missing since 2017-04-30.
20159         (ctime): Declare, missing since 2017-04-30.
20160         (strftime): Declare, missing since 2017-04-30.
20161         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20162         2015-07-24.
20164 2017-05-05  Bruno Haible  <bruno@clisp.org>
20166         sys_resource-c++-tests: New module.
20167         * tests/test-sys_resource-c++.cc: New file.
20168         (getrusage): Declare, missing since 2012-04-13.
20169         * modules/sys_resource-c++-tests: New file.
20171 2017-05-05  Bruno Haible  <bruno@clisp.org>
20173         strings-c++-tests: New module.
20174         * tests/test-strings-c++.cc: New file.
20175         (ffs): Declare, missing since 2011-07-12.
20176         * modules/strings-c++-tests: New file.
20178 2017-05-05  Bruno Haible  <bruno@clisp.org>
20180         string-c++-tests: Update.
20181         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20182         (ffsll): Declare, missing since 2011-07-15.
20184 2017-05-05  Bruno Haible  <bruno@clisp.org>
20186         stdlib-c++-tests: Update.
20187         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20188         2011-10-18.
20189         (ptsname_r): Declare, missing since 2011-11-07.
20190         (qsort_r): Declare, missing since 2014-08-29.
20191         (random, srandom, initstate, setstate): Declare, missing since
20192         2012-01-14.
20193         (secure_getenv): Declare, missing since 2013-02-05.
20195 2017-05-05  Bruno Haible  <bruno@clisp.org>
20197         stdio-c++-tests: Update.
20198         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20200 2017-05-05  Bruno Haible  <bruno@clisp.org>
20202         signal-h-c++-tests: Update.
20203         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20205 2017-05-05  Bruno Haible  <bruno@clisp.org>
20207         math-c++-tests: Update.
20208         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20209         (fma): Declare, missing since 2011-10-17.
20210         (fmal): Declare, missing since 2011-10-17.
20212 2017-05-05  Bruno Haible  <bruno@clisp.org>
20214         locale-c++-tests: Update.
20215         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20216         2012-03-25.
20218 2017-05-05  Bruno Haible  <bruno@clisp.org>
20220         inttypes-c++-tests: New module.
20221         * tests/test-inttypes-c++.cc: New file.
20222         (strtoimax): Declare, missing since 2012-01-05.
20223         (strtoumax): Declare, missing since 2012-01-05.
20224         * modules/inttypes-c++-tests: New file.
20226 2017-05-05  Bruno Haible  <bruno@clisp.org>
20228         dirent-c++-tests: Update.
20229         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20230         (rewinddir): Declare, missing since 2011-09-13.
20231         (dirfd): Declare, missing since 2010-03-08.
20233 2017-05-04  Bruno Haible  <bruno@clisp.org>
20235         argp: Fix mistake in 2017-04-23 commit.
20236         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20237         assume that strerror_r returns 'int', not 'char *'.
20239 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20241         argp: Fix typo.
20242         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20244 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20246         utimens: port to Emacs + MS-Windows
20247         Skip the new MS-Windows-specific code if Emacs.
20248         * lib/utimens.c [EMACS_CONFIGUATION]:
20249         Avoid new MS-Windows-specific code.
20250         (USE_SETFILETIME): New macro.
20251         (fdutimens): Use it.
20253 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20255         tzset: update doc for TZ problems on MS-Windows
20256         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20257         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20258         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20259         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20260         * doc/posix-functions/wcsftime.texi:
20261         Mention some issues with TZ under MS-Windows.
20263 2017-05-01  Bruno Haible  <bruno@clisp.org>
20265         copy-file: Fix build error on mingw.
20266         * modules/copy-file (Depends-on): Add 'close'.
20268 2017-05-01  Bruno Haible  <bruno@clisp.org>
20270         tzset: Work around TZ problem on native Windows.
20271         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20272         Windows, set REPLACE_TZSET to 1.
20273         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20274         invoke '_tzset' instead of 'tzset'.
20275         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20277         * modules/time_rz (Depends-on): Add tzset.
20278         * lib/time_rz.c (tzset): Remove fallback definition.
20279         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20281 2017-05-01  Bruno Haible  <bruno@clisp.org>
20283         mktime: Fix dependencies.
20284         * modules/mktime (Depends-on): Add 'time'.
20286 2017-05-01  Bruno Haible  <bruno@clisp.org>
20288         New module 'localtime-buffer', split off from module 'gettimeofday'.
20289         * lib/localtime-buffer.h: New file.
20290         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20291         * lib/time.in.h (tzset): New declaration.
20292         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20293         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20294         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20295         moved to lib/localtime-buffer.c or lib/tzset.c.
20296         * m4/localtime-buffer.m4: New file.
20297         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20298         HAVE_TZSET, REPLACE_TZSET.
20299         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20300         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20301         gl_LOCALTIME_BUFFER_NEEDED.
20302         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20303         since 2007-01-18.
20304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20305         tzset.
20306         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20307         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20308         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20309         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20310         * modules/localtime-buffer: New file.
20311         * modules/time (Depends-on): Remove 'gettimeofday'.
20312         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20313         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20314         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20315         (Files): Add lib/tzset.c.
20316         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20317         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20318         gl_TIME_MODULE_INDICATOR.
20319         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20321 2017-05-01  Bruno Haible  <bruno@clisp.org>
20323         copy-file: Preserve sub-second time stamps.
20324         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20325         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20326         transport the time stamps from the original file to the destination
20327         file.
20328         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20329         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20330         utime-h.
20332 2017-05-01  Bruno Haible  <bruno@clisp.org>
20334         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20335         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20336         also on MSVC.
20337         Reported by Eli Zaretskii <eliz@gnu.org>.
20339 2017-05-01  Bruno Haible  <bruno@clisp.org>
20341         wchar: Fix compilation error with the original mingw.org mingw.
20342         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20343         <stddef.h> instead.
20344         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20345         gl_WCTYPE_H.
20346         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20347         gl_TYPE_WINT_T_PREREQ instead.
20348         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20349         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20350         Reported by Eli Zaretskii <eliz@gnu.org>.
20352 2017-04-30  Bruno Haible  <bruno@clisp.org>
20354         utimecmp: Add support for native Windows.
20355         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20357 2017-04-30  Bruno Haible  <bruno@clisp.org>
20359         utimens: Add support for native Windows.
20360         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20361         (fdutimens): Provide a native Windows implementation, like utime.c with
20362         added tv_nsec support.
20363         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20364         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20366 2017-04-30  Bruno Haible  <bruno@clisp.org>
20368         wcsftime: New module.
20369         * lib/wchar.in.h (wcsftime): New declaration.
20370         * lib/wcsftime.c: New file.
20371         * m4/wcsftime.m4: New file.
20372         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20373         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20374         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20376         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20377         * modules/wcsftime: New file.
20378         * doc/posix-functions/wcsftime.texi: Mention the new module.
20380 2017-04-30  Bruno Haible  <bruno@clisp.org>
20382         strftime-fixes: New module.
20383         * lib/time.in.h (strftime): New declaration.
20384         * lib/strftime-fixes.c: New file.
20385         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20386         (gl_FUNC_STRFTIME): Remove macro.
20387         * m4/strftime-fixes.m4: New file.
20388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20389         REPLACE_STRFTIME.
20390         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20391         REPLACE_STRFTIME.
20392         * modules/strftime-fixes: New file.
20393         * doc/posix-functions/strftime.texi: Mention the new module.
20395 2017-04-30  Bruno Haible  <bruno@clisp.org>
20397         mktime: Work around TZ problem on native Windows.
20398         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20399         from the native Windows workaround.
20400         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20401         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20402         'guessing no'.
20403         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20404         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20405         NEED_MKTIME_WINDOWS.
20406         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20407         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20408         NEED_MKTIME_INTERNAL.
20409         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20410         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20411         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20412         not REPLACE_MKTIME.
20413         * doc/posix-functions/mktime.texi: Mention the native Windows
20414         workaround.
20416 2017-04-30  Bruno Haible  <bruno@clisp.org>
20418         localtime: New module.
20419         * lib/time.in.h (localtime): Declare also if requested by module
20420         'localtime'.
20421         * lib/localtime.c: New file.
20422         * m4/localtime.m4: New file.
20423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
20424         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
20425         * modules/localtime: New file.
20426         * doc/posix-functions/localtime.texi: Mention the new module.
20428 2017-04-30  Bruno Haible  <bruno@clisp.org>
20430         ctime: New module.
20431         * lib/time.in.h (ctime): New declaration.
20432         * lib/ctime.c: New file.
20433         * m4/ctime.m4: New file.
20434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
20435         REPLACE_CTIME.
20436         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
20437         * modules/ctime: New file.
20438         * doc/posix-functions/ctime.texi: Mention the new module.
20440 2017-04-30  Bruno Haible  <bruno@clisp.org>
20442         gettimeofday: Provide higher resolution on native Windows.
20443         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20444         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20445         (initialize): Initialize it.
20446         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20447         'struct timeval'. Don't use _ftime().
20448         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20449         <sys/timeb.h> and _ftime.
20451 2017-04-30  Bruno Haible  <bruno@clisp.org>
20453         Document the problem with the Cygwin environment variable TZ.
20454         * doc/posix-functions/tzset.texi: Add note about TZ.
20455         * doc/posix-functions/ctime.texi: Likewise.
20456         * doc/posix-functions/localtime.texi: Likewise.
20457         * doc/posix-functions/mktime.texi: Likewise.
20458         * doc/posix-functions/strftime.texi: Likewise.
20459         * doc/posix-functions/wcsftime.texi: Likewise.
20460         * doc/pastposix-functions/ftime.texi: Likewise.
20462 2017-04-30  Bruno Haible  <bruno@clisp.org>
20464         utime-tests: New module.
20465         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20466         * tests/test-utimens-common.h: Include <sys/stat.h>.
20467         * modules/utime-tests: New file.
20469 2017-04-29  Bruno Haible  <bruno@clisp.org>
20471         utime: New module.
20472         * lib/utime.in.h: Add comment for snippets.
20473         (utime): New declaration.
20474         * lib/utime.c: New file.
20475         * m4/utime.m4: New file.
20476         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20477         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20478         REPLACE_UTIME.
20479         * modules/utime-h (Depends-on): Add snippets.
20480         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20481         Insert snippets.
20482         * modules/utime: New file.
20483         * doc/posix-functions/utime.texi: Mention the new module.
20485 2017-04-29  Bruno Haible  <bruno@clisp.org>
20487         utime-h: Modernize handling of 'struct utimbuf'.
20488         * lib/utime.in.h: Include next <utime.h> if it exists.
20489         (utimbuf): Define to _utimbuf on native Windows.
20490         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20491         Set UTIME_H on native Windows.
20492         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20493         * modules/utime-h (Depends-on): Add include_next.
20494         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20495         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20497         * lib/utimens.c (utimbuf): Remove fallback definition.
20498         * m4/utimens.m4 (gl_UTIMENS): Don't require
20499         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20500         * m4/utimbuf.m4: Remove file.
20501         * modules/utimens (Files): Remove m4/utimbuf.m4.
20503 2017-04-29  Bruno Haible  <bruno@clisp.org>
20505         Make use of module 'utime-h'.
20506         * modules/copy-file (Depends-on): Add utime-h.
20507         * lib/copy-file.c: Assume that <utime.h> exists.
20508         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20510         * modules/utimens (Depends-on): Add utime-h.
20511         * lib/utimens.c: Assume that <utime.h> exists.
20513 2017-04-29  Bruno Haible  <bruno@clisp.org>
20515         utime-h: New module.
20516         * m4/utime_h.m4: New file.
20517         * lib/utime.in.h: New file.
20518         * modules/utime-h: New file.
20519         * doc/posix-headers/utime.texi: Mention the new module.
20521         * tests/test-utime-h.c: New file.
20522         * modules/utime-h-tests: New file.
20524 2017-04-30  Bruno Haible  <bruno@clisp.org>
20526         Fix a few typos.
20527         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20528         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20529         * doc/posix-functions/fstat.texi: Fix a plural typo.
20530         * doc/posix-functions/stat.texi: Likewise.
20531         * m4/include_next.m4: Update comments.
20533 2017-04-29  Bruno Haible  <bruno@clisp.org>
20535         error: Fix mistake in 2017-04-23 commit.
20536         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20537         assume that strerror_r returns 'int', not 'char *'.
20539 2017-04-29  Bruno Haible  <bruno@clisp.org>
20541         stat: Fix time_t values and other problems on native Windows platforms.
20542         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20543         implementations of stat().
20544         * lib/stat.c: Include filename.h instead of dosname.h. Include
20545         malloca.h, stat-w32.h.
20546         (is_unc_root): New function.
20547         (rpl_stat): New implementation for native Windows. Remove
20548         REPLACE_FUNC_STAT_DIR code.
20549         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20550         Don't define REPLACE_FUNC_STAT_DIR.
20551         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20552         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20553         (Depends-on): Remove dosname. Add filename, malloca.
20554         (configure.ac): Also compile lib/stat-w32.c.
20556 2017-04-29  Bruno Haible  <bruno@clisp.org>
20558         fstat: Fix time_t values on native Windows platforms.
20559         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20560         * lib/stat-w32.h: New file.
20561         * lib/stat-w32.c: New file.
20562         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20563         stat-w32.h instead.
20564         (fstat_nothrow): Remove function.
20565         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20566         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20567         always.
20568         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20569         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20570         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20571         (configure.ac): Also compile lib/stat-w32.c.
20573 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20575         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20576         Problem reported by Assaf Gordon and Gavin Smith in:
20577         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20578         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20579         #define this, too.
20581 2017-04-29  Bruno Haible  <bruno@clisp.org>
20583         strerror_r-posix: Fixes for MSVC 14.
20584         * lib/strerror_r.c: Include <stdarg.h>.
20585         (strerror_r): Provide error messages for errno values 100...140.
20586         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20588 2017-04-28  Bruno Haible  <bruno@clisp.org>
20590         noreturn: New module.
20591         * lib/noreturn.h: New file.
20592         * modules/noreturn: New file.
20593         * tests/test-noreturn.c: New file.
20594         * modules/noreturn-tests: New file.
20595         * tests/test-noreturn-c++.cc: New file.
20596         * modules/noreturn-c++-tests: New file.
20598 2017-04-27  Bruno Haible  <bruno@clisp.org>
20600         wctype-h: Fix compilation error with the original mingw.org mingw.
20601         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20602         HAVE_CRTDEFS_H.
20603         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20604         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20605         <stddef.h> instead.
20606         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20608 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20610         nap.h: Fix compilation on non windows platforms
20611         * tests/nap.h: Move misplaced endif.
20613 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20614         and Paul Eggert  <eggert@cs.ucla.edu>
20616         time_rz: fix heap buffer overflow vulnerability
20617         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20618         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20619         whether there is enough buffer space available, thus avoiding
20620         the problematic promotion of signed to unsigned causing an invalid
20621         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20622         the start of the buffer.
20623         * tests/test-parse-datetime.c (main): Add a test case written by
20624         Paul Eggert, which overwrites enough of the heap so that
20625         standard glibc will fail with "free(): invalid pointer"
20626         without the patch applied.
20628 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20630         xalloc: add missing integer overflow check
20631         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20632         overflow when P is null.
20634 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20636         parse-datetime: make it standalone
20637         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20638         (_GL_ATTRIBUTE_FORMAT): New macro.
20639         These are needed to get './gnulib-tool --test parse-datetime' to work.
20641 2017-04-23  Bruno Haible  <bruno@clisp.org>
20643         nap.h: Port to native Windows.
20644         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20645         use nap_fd instead. On native Windows, close and reopen nap_fd.
20646         (nap_works): Don't compare the ctimes, because on native Windows, these
20647         are the creation times.
20648         (nap): Update.
20650 2017-04-23  Bruno Haible  <bruno@clisp.org>
20652         nap.h: Fix logic.
20653         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20655 2017-04-23  Bruno Haible  <bruno@clisp.org>
20657         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20658         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20659         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20660         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20661         * lib/argp-help.c (__argp_failure): Likewise.
20663 2017-04-23  Bruno Haible  <bruno@clisp.org>
20665         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20666         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20667         * lib/strerror_r.c: Likewise.
20669 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20671         Target a C99 subset, not a C89 subset
20672         For many years Gnulib has targeted C89 and has resisted using C99
20673         features, as some Gnulib-using programs still wanted to target
20674         C89.  As this no longer seems to be the case, relax the porting
20675         requirements to allow some C99 features.  This is merely a change
20676         to the documentation, to give other Gnulib developers a chance to
20677         weigh in on the topic.
20678         * doc/extern-inline.texi (extern inline):
20679         * doc/gnulib-readme.texi (Portability guidelines):
20680         * doc/gnulib-tool.texi (Initial import):
20681         * doc/gnulib.texi (Header files):
20682         Modernize to talk about C99 and C11 instead of C89 and C99.
20683         * doc/gnulib-readme.texi (Portability guidelines):
20684         Now a section, not merely a subsection, so that it
20685         can be split up.  Modernize a bit.
20686         (C language versions, C99 features assumed)
20687         (C99 features avoided):
20688         New sections.
20690 2017-04-23  Bruno Haible  <bruno@clisp.org>
20692         doc: New section "Modules that modify the way other modules work".
20693         * doc/gnulib.texi (Modules that modify the way other modules work): New
20694         section.
20696 2017-04-23  Bruno Haible  <bruno@clisp.org>
20698         stat-time: Update comments.
20699         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20700         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20701         Windows.
20703 2017-04-01  Bruno Haible  <bruno@clisp.org>
20705         glob: Fix more memory leaks.
20706         * lib/glob.c (glob): Free allocated memory before returning.
20707         Reported by Coverity via Tim Rühsen.
20709 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20711         poll: improve fast check for out-of-range NFD
20712         * lib/poll.c: Do not include intprops.h.
20713         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20714         * modules/poll (Depends-on): Remove intprops.
20716         ftoastr: cite a newer paper
20717         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20718         instead of Loitsch 2010.
20720 2017-04-22  Bruno Haible  <bruno@clisp.org>
20722         poll: Enable argument check also in the Windows implementation.
20723         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20724         Reported by Paul Eggert.
20726 2017-04-22  Bruno Haible  <bruno@clisp.org>
20728         getlogin_r: Work around bug in Mac OS X 10.12.
20729         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20730         bug.
20731         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20732         given size minus 1, call getlogin_r a second time, on a larger buffer.
20733         * modules/getlogin_r (Depends-on): Add malloca.
20734         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20736 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20738         parse-datetime: fix %z and prefer signed int
20739         %z problem reported by Pádraig Brady in:
20740         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20741         While fixing it, I decided to prefer signed ints to size_t, as
20742         they are less error-prone (e.g., ubsan catches overflow).
20743         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20744         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20745         counts, since signed integers make for better debugging.
20746         (date): Don’t assume %z works in printf formats.
20747         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20748         sizes of buffers known to be small, e.g., because we’re using snprintf.
20749         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20751 2017-04-22  Bruno Haible  <bruno@clisp.org>
20753         *printf: Work around rounding bug on Mac OS X.
20754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20755         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20756         Mac OS X and FreeBSD.
20757         * doc/glibc-functions/*printf.texi: Likewise.
20759 2017-04-22  Bruno Haible  <bruno@clisp.org>
20761         vasnprintf tests: Avoid warnings.
20762         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20763         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20764         test.
20766 2017-04-22  Bruno Haible  <bruno@clisp.org>
20768         sys_file tests: Avoid warning.
20769         * tests/test-sys_file.c (main): Add a default clause to the switch
20770         statement.
20772 2017-04-22  Bruno Haible  <bruno@clisp.org>
20774         sethostname: Update doc.
20775         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20776         Mac OS X.
20778 2017-04-22  Bruno Haible  <bruno@clisp.org>
20780         quotearg tests: Avoid warnings.
20781         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20782         false.
20784 2017-04-22  Bruno Haible  <bruno@clisp.org>
20786         poll: Enable argument check.
20787         * lib/poll.c: Include intprops.h.
20788         (poll): Check value of nfd correctly.
20789         * modules/poll (Depends-on): Add intprops.
20791 2017-04-22  Bruno Haible  <bruno@clisp.org>
20793         get-rusage-data: Avoid warnings on Mac OS X.
20794         * lib/get-rusage-data.c: On Mac OS X, don't define
20795         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20796         (get_rusage_data) [Mac OS X]: Just return 0.
20798 2017-04-22  Bruno Haible  <bruno@clisp.org>
20800         xbinary-io: Fix build error.
20801         * modules/xbinary-io (Depends-on): Add gettext-h.
20802         * lib/xbinary-io.c: Include gettext.h and define _().
20803         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20804         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20806 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20808         parse-datetime: overflow and debug cleanups
20809         This long patch was triggered by this bug report from Ruediger Meier:
20810         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20811         I fixed the bug he noted, then found some others nearby, and then
20812         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20813         up some of the code to follow GNU standards while I was at it.
20814         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20815         use c_isdigit.
20816         (EPOCH_YEAR): Remove; unused.
20817         (TM_YEAR_BASE): Now an enum rather than a macro.
20818         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20819         time zone offset, since timezones now are in terms of seconds and
20820         not minutes.
20821         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20822         appropriate.  Verify that intmax_t is wide enough.
20823         (time_overflow, time_zone_str): New functions, used to deal
20824         more reliably with overflow.
20825         (dbg_printf): Add printf attribute, to help catch integer width errors.
20826         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20827         (%union, to_hour, yylex, parse_datetime2):
20828         Use intmax_t instead of long int and/or long_time_t.
20829         All uses changed.
20830         (DBGBUFSIZE): Move earlier.
20831         (relative_time, set_hhmmss, parser_control):
20832         Just use int for nanoseconds and for time zones; that’s wide enough.
20833         (parser_control): Use bool for members like year_seen that can
20834         be booleans instead of counters.  All uses changed.
20835         Remove debug_default_input_timezone; no longer needed.
20836         All uses removed.
20837         (apply_relative_time): Return a bool overflow flag.
20838         All uses changed to check for overflow.
20839         (apply_relative_time, zone, date, relunit, relunit_snumber)
20840         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20841         Check for integer overflow portably.
20842         (str_days): Use just int for N, as it’s wide enough.
20843         Prefer 2D char arrays to arrays of char * when it looks like
20844         2D is a win on typical platforms.
20845         Prefer snprintf to strncpy/strncat, for simplicity;
20846         all buffers are smaller than INT_MAX so this is safe.
20847         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20848         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20849         as this is not true on x32.  Output "." before any nanoseconds.
20850         (debug_print_current_time, parse_datetime2):
20851         Output local zones using a more-consistent format.
20852         (debug_print_current_time, date, parse_datetime2):
20853         (main) [TEST]:
20854         Don’t assume time_t is the same width as long.
20855         (print_rel_part): New function, replacing ...
20856         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20857         (debug_print_relative_time): Use bool for boolean.
20858         (local_zone): dsts_seen now counts only tDST instances.
20859         (date): Fix printf of size_t to use %z.  Do not assume numeric
20860         tokens have negative values merely because the context suggests
20861         a syntax with "-" separating tokens.
20862         (time_zone_hhmm): Return bool success indicator, which checks for
20863         overflow.  Store result into PC->time_zone instead.  All callers
20864         changed.
20865         (tm_year_str): New function.  Return a bool success indicator and
20866         store the result into a buffer.  All callers changed.  Output the
20867         numerically correct string even if adding 1900 to the year would
20868         overflow.
20869         (to_tm_year): New function, replacing the old to_year.  All
20870         callers changed.
20871         (tm_diff): Sync with glibc.
20872         (lookup_word): Use to_uchar instead of doing it by hand.
20873         (TZBUFSIZE): Now local to the only function that needs it.
20874         (debug_strfdatetime): Simplify now that time zones are int seconds.
20875         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20876         (get_effective_timezone): Remove.  All uses removed.
20877         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20878         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20879         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20880         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20881         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20882         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20883         * modules/parse-datetime (Depends-on): Add inttypes.
20885 2017-04-21  Bruno Haible  <bruno@clisp.org>
20887         gettext-h: Avoid -Wundef warning.
20888         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20889         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20890         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20892 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20894         error: Avoid "function declaration isn't a prototype" warning.
20895         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20897 2017-04-21  Bruno Haible  <bruno@clisp.org>
20899         vasnprintf: Fix for MSVC 14.
20900         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20901         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20902         of !HAVE_SNPRINTF_RETVAL_C99.
20904 2017-04-21  Bruno Haible  <bruno@clisp.org>
20906         mbrtowc tests: Fix test failures on MSVC 14.
20907         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20908         behaviour for invalid input.
20910 2017-04-21  Bruno Haible  <bruno@clisp.org>
20912         mbsinit: Fix for MSVC 14.
20913         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20914         implementation that is in sync with mbrtowc.c. On other platforms, use
20915         an adequate ad-hoc implementation.
20917 2017-04-21  Bruno Haible  <bruno@clisp.org>
20919         Fix test-mbrtowc5.sh failure on native Windows.
20920         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20921         "C".
20923 2017-04-21  Bruno Haible  <bruno@clisp.org>
20925         Avoid accidental use of native Windows APIs on Cygwin.
20926         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20927         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20928         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20930 2017-04-20  Bruno Haible  <bruno@clisp.org>
20932         Remove red warnings from the generated MODULES.html.
20933         * modules/fcntl (Description): Disambiguate function references.
20934         * modules/getcwd-lgpl (Description): Likewise.
20935         * modules/hostent (Description): Likewise.
20936         * modules/servent (Description): Likewise.
20937         * modules/tempname (Description): Likewise.
20939 2017-04-20  Bruno Haible  <bruno@clisp.org>
20941         verify tests: Fix spurious failure with parallel make.
20942         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20943         EXTRA_PROGRAMS.
20944         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20945         * tests/test-verify-try.c: New file.
20946         * modules/verify-tests (Files): Add it.
20947         (EXTRA_PROGRAMS): Add test-verify-try.
20948         (MOSTLYCLEANFILES): Update accordingly.
20949         Reported by Adam James Stewart <ajstewart@anl.gov>.
20951 2017-04-18  Bruno Haible  <bruno@clisp.org>
20953         vma-iter: Fix compilation error on Solaris 7.
20954         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20955         like on IRIX, OSF/1.
20956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20958 2017-04-18  Bruno Haible  <bruno@clisp.org>
20960         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20961         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20962         included.
20963         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20964         <sys/procfs.h>.
20965         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20966         <sys/procfs.h> cannot be included.
20967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20969 2017-04-18  Bruno Haible  <bruno@clisp.org>
20971         getopt-gnu: Add comments.
20972         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20973         * modules/getopt-gnu (configure.ac): Likewise.
20975 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20977         regex: port better to Solaris 10
20978         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20979         gettext, and this causes a double #define.
20980         Problem reported by Gavin Smith in:
20981         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20982         * lib/regex_internal.h (gettext): #undef before #defining.
20984 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20986         intprops: improve comments
20987         * lib/intprops.h: Improve and shorten commentary.
20988         For the record, if we ever run into a pedantic compiler that
20989         behaves differently from GCC when converting an out-of-range value
20990         to a signed integer, we can work around the problem with something
20991         like the following code, where UCT is the signed counterpart of T
20992         (UCT is sometimes narrower than UT) and all callers are changed
20993         accordingly:
20994         #if __SUNPRO_C <= 0x5120
20995         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20996            ((t) ((ut) (a) op (ut) (b)))
20997         #else
20998         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20999            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21000             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21001                + TYPE_MINIMUM (t)) \
21002             : (t) (uct) ((ut) (a) op (ut) (b)))
21003         #endif
21005 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21007         intprops: try to avoid tickling similar bugs
21008         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21009         needs to be the same width as T; it can be wider.
21010         Change callers so that UT is at least as wide as unsigned int,
21011         as I suspect that this is less likely to run into compiler bugs.
21013         intprops: port to Oracle Studio 12.3 x86
21014         Problem reported by Gavin Smith in:
21015         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21016         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21017         Convert unsigned to signed via the usual rather than the standard way,
21018         to avoid a compiler bug in Oracle Studio 12.3 x86.
21020 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21022         getopt: prefer - to _ in new file names
21023         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21024         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21025         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21026         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21027         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21028         All uses changed.
21030         getopt: port recent getopt changes to macOS
21031         Problem reported by Harald Maier (Bug#26398).
21032         The macOS C compiler uses __nonnull for its own purposes and that
21033         clashes with glibc's __nonnull.
21034         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21035         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21036         * lib/getopt_core.h (getopt):
21037         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21038         Use _GL_ARG_NONNULL, not __nonnull.
21039         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21040         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21041         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21042         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21044 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21046         getopt-gnu: omit some duplicate code
21047         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21048         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21049         gnulib-tool already does this.
21050         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21051         getopt-posix, which we depend on.
21053         getopt-posix: use angle-bracket include
21054         * lib/getopt1.c: Include <config.h>, not "config.h".
21056 2017-04-06  Zack Weinberg  <zackw@panix.com>
21058         getopt: annotate files with relationship to glibc
21060         As the final act in this patchset, adjust the message at the top of
21061         each file to indicate which files are synced with glibc.  (This has
21062         already been done for most of the headers.)
21064         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21065         Mention in top-of-file boilerplate that these files are shared
21066         between glibc and gnulib.
21069         getopt: split up getopt.in.h and eliminate __need_getopt
21071         Over in glibc, all of the __need macros are being phased out in favor
21072         of small headers that declare only the necessary components, as this
21073         is much simpler and less prone to bugs.  As getopt is shared with
21074         glibc, gnulib needs to do the same for __need_getopt.
21076         __need_getopt is misnamed; what it really means is "we want only the
21077         getopt features specified in POSIX, not the GNU extensions".  glibc
21078         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21079         these files can be shared verbatim with gnulib.  The portability
21080         wrapper, on the other hand, they have renounced altogether; glibc's
21081         getopt.h will no longer be shared with gnulib at all.  In exchange,
21082         certain glibc-specific quirks (having to do with __posix_getopt) no
21083         longer need appear in gnulib's headers at all.
21085         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21086         splits up the current gnulib-side portability wrapper into three
21087         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21088         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21089         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21090         unistd.in.h just use them.  All new files are clearly marked with
21091         whether they are shared with glibc.
21093         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21094         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21095         with glibc, and ...
21096         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21097         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21098         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21099         instead of defining __need_getopt and including the full getopt.h.
21101         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21102         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21103         * modules/getopt-posix (Files): Add new headers and sort list.
21104         (Depends-on): No longer need snippet/arg-nonnull.
21105         (Makefile.am): Generate getopt_cdefs.h.
21108         getopt: better handling of ambiguous options
21110         glibc's getopt uses alloca to construct a linked list of possibilities
21111         for an "ambiguous" long option.  In gnulib, malloc should be used
21112         instead.  Providing for both cases complicates things a fair bit.
21114         This patch rewrites ambiguous-option handling to use a boolean vector
21115         instead of a linked list.  There is then only one allocation that
21116         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21117         and in gnulib we define __libc_use_alloca to always be false, so we
21118         don't need ifdefs in the middle of the function.  This should also be
21119         slightly more efficient in the normal case of long options being fully
21120         spelled out -- I think most people aren't even aware they _can_
21121         sometimes abbreviate long options.
21123         One interesting consequence is that the list of possibilities is now
21124         printed in exactly the order they appear in the list of long options,
21125         instead of the first possibility being shuffled to the end.
21127         (The patch looks bigger than it really is because there's a fair bit
21128         of reindentation and code rearrangement.)
21130         * lib/getopt.c: When used standalone, define __libc_use_alloca
21131         as always false and alloca to abort if called.
21132         (process_long_option): Rewrite handling of ambiguous long options
21133         to use a single boolean vector, not a linked list; use
21134         __libc_use_alloca to decide whether to allocate this using alloca.
21137         getopt: refactor long-option handling
21139         There were two copies of the bulk of the code to handle long options.
21140         Now there is only one.
21142         This change temporarily removes the logic to avoid using alloca when
21143         standalone; the next patch in the series will restore it.
21145         * lib/getopt.c (process_long_option): New function split out
21146         from _getopt_internal_r.
21147         (_getopt_internal_r): Replace both copies of the long-option
21148         processing code with calls to process_long_option.
21151         getopt: tidy up _getopt_initialize a bit
21153         _getopt_data.__posixly_correct is completely redundant to
21154         _getopt_data.__ordering, and some work that logically belongs in
21155         _getopt_initialize was being done by _getopt_internal_r, making the
21156         code harder to understand.
21158         As a side effect, getenv will no longer be called if the first
21159         character of the options string is '+' or '-', which is probably a
21160         Good Thing.  (Perhaps we should have a flag character that
21161         specifically asks for the permutation behavior?)
21163         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21164         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21165         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21168         getopt: merge from glibc: repetition reduction
21170         The definitions of the entry point functions 'getopt' and
21171         '__posix_getopt' can be made substantially less repetitive with a
21172         helper macro.
21174         While I was merging the const-correctness changes from gnulib into
21175         glibc I noticed there are still some unnecessary casts in
21176         _getopt_internal_r.
21178         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21179         a macro.  Consistently cast 'argv' to 'char **' when calling
21180         _getopt_internal.
21181         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21184         getopt: clean up error reporting
21186         getopt can print a whole bunch of error messages, and when used
21187         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21188         cancellation point and getopt isn't, and also applying fprintf to a
21189         stream in wide-character mode is not allowed.  So every single error
21190         reporting case has an #ifdef _LIBC block in which it calls internal
21191         libc functions instead.  The counterpart patch series in glibc makes
21192         it possible to simplify all of that down to a set of #defines at the
21193         top of the file; core code is written as if it is safe to just call
21194         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21195         call any *other* stdio functions.)
21197         * lib/getopt.c: When _LIBC is defined, define fprintf to
21198         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21199         to _IO_funlockfile.  When neither _LIBC nor
21200         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21201         funlockfile as no-ops.
21202         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21203         standalone error-printing code can now be used for libc as well.
21204         Add an flockfile/funlockfile pair around one case where the error
21205         message is printed in several chunks.  Don't use fputc.
21208         getopt: fix fencepost error in ambiguous-W-option handling
21210         getopt_long contains an undocumented (AFAICT) feature in which, if you
21211         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21212         treated as equivalent to '--foo'.  This is implemented with a partial
21213         second copy of the code for handling long options, and that code
21214         increments optind one too many times when recovering from an ambiguous
21215         abbreviated option, which can cause the main loop to walk past the end
21216         of argv and crash.
21218         I discovered this while writing a test case that tries to exercise all
21219         of getopt's error reporting paths; I wouldn't be surprised to learn
21220         that this feature is never used by real applications.
21222         * lib/getopt.c (_getopt_internal_r): Don't increment
21223         d->optind a second time when reporting ambiguous -W options.
21226         getopt: clean up getopt.c and getopt1.c file headers
21228         In getopt.c, there is no need to include wchar.h at all, and it is
21229         safe nowadays to assume that stdlib.h does declare getenv (several
21230         other gnulib modules make this assumption).
21232         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21233         by using "" inclusions consistently, and there is no actual need to
21234         include stdlib.h (except in the #ifdef TEST block, where it should be
21235         unconditional), nor to provide a backup definition of NULL at all.
21237         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21238         Move inclusion of stdlib.h to #ifdef TEST block and make
21239         unconditional.  Do not define NULL.
21240         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21241         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21242         * modules/getopt-gnu, modules/getopt-posix: Don't call
21243         gl_PREREQ_GETENV.
21246         getopt: harmonize comments with glibc
21248         The comments explaining how the behavior of 'getopt' varies depending
21249         on whether it's the standalone version and whether there are special
21250         characters at the beginning of the options string were inconsistent
21251         between gnulib and glibc, and also out of sync with the code.
21253         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21256         getopt: remove USE_NONOPTION_FLAGS
21258         getopt includes code to parse an environment variable named
21259         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21260         in decimal); but all of it has been #ifdefed out since 2001, with no
21261         official way to turn it back on.
21263         According to commentary in glibc's config.h.in, bash version 2.0
21264         set this environment variable to indicate argv elements that were
21265         the result of glob expansion and therefore should not be treated
21266         as options, but the feature was "disabled later" because "it
21267         caused problems".  According to bash's CHANGES file, "later" was
21268         release 2.01; it gives no more detail about what the problems
21269         were.
21271         Version 2.0 of bash was released on the last day of 1996, and version
21272         2.01 in June of 1997.  Twenty years later, I think it is safe to
21273         assume that this environment variable isn't coming back.
21275         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21276         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21277         __libc_argc and __libc_argv externs, which were only used by
21278         #ifdef USE_NONOPTION_FLAGS blocks.
21281         getopt: tabify, in preparation for merge with glibc
21283         glibc sticks to the GNU default of indenting with a mix of
21284         8-column tabs and spaces; make the gnulib copy match.
21286         getopt.h is not included because it is *not* going to be merged in its
21287         present form.
21289         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21291 2017-04-02  Bruno Haible  <bruno@clisp.org>
21293         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21294         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21295         like it was done in modules/relocatable-lib on 2011-05-21 and in
21296         modules/relocatable-prog on 2011-08-15.
21297         Reported by Reuben Thomas <rrt@sc3d.org>.
21299 2017-03-31  Bruno Haible  <bruno@clisp.org>
21301         glob: Fix invalid free() call.
21302         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21303         static storage to home_dir.
21304         Reported by Coverity via Tim Rühsen.
21306 2017-03-31  Bruno Haible  <bruno@clisp.org>
21308         glob: Fix memory leaks.
21309         * lib/glob.c (glob): Free allocated memory before returning.
21310         Reported by Coverity via Tim Rühsen.
21312 2017-03-31  Bruno Haible  <bruno@clisp.org>
21314         md5, sha1, sha256, sha512: Add comments regarding correctness.
21315         * lib/md5.h (buflen): Add comments regarding range.
21316         * lib/sha1.h (buflen): Likewise.
21317         * lib/sha256.h (buflen): Likewise.
21318         * lib/sha512.h (buflen): Likewise.
21319         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21320         * lib/sha1.c (sha1_process_bytes): Likewise.
21321         * lib/sha256.c (sha256_process_bytes): Likewise.
21322         * lib/sha512.c (sha512_process_bytes): Likewise.
21323         Reported by Coverity via Tim Rühsen.
21325 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21327         getopt: merge from glibc
21328         This does not change anything substantial; it merely simplifies
21329         hypothetical merges back to glibc.
21330         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21331         Change copyright notice to match what is in glibc.
21332         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21333         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21334         __open_memstream rather than open_memstream and __glibc_likely
21335         instead of __builtin_expect.
21336         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21338 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21340         dfa: make [0-9] faster in non-C locales
21341         Problem reported by John P. Linderman (Bug#26193).
21342         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21343         If both ends of the range are ASCII digits, do not worry about
21344         multi-character collating sequences and the like.  Be consistent
21345         about using isalpha as a precondition for setbit_case_fold_c.
21347 2017-03-19  Bruno Haible  <bruno@clisp.org>
21349         lock: Fix compilation error with HP-UX IA64 cc.
21350         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21351         weak on non-glibc platforms.
21353 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21355         stdalign: tweak version# and test for HP-UX IA64
21356         Problems reported by Bruno Haible in:
21357         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21358         * lib/stdalign.in.h (_Alignas):
21359         * m4/stdalign.m4 (gl_STDALIGN_H):
21360         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21361         used octal (as that is how they document it), but it is decimal in
21362         practice now and the ancient implementations no longer matter.
21363         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21365 2017-03-19  Bruno Haible  <bruno@clisp.org>
21367         vma-iter: Add support for Solaris.
21368         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21369         approach.
21370         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21371         * lib/get-rusage-as.c: Update comment about Solaris.
21372         * lib/get-rusage-data.c: Likewise.
21374 2017-03-19  Bruno Haible  <bruno@clisp.org>
21376         vma-iter: Prefer HP-UX specific API on HP-UX.
21377         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21378         * lib/vma-iter.h: Update.
21379         Just in case HP-UX ever implements mquery().
21381 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21383         stdalign: restore previous behavior for HP-UX IA64
21384         See Bruno Haible's email in:
21385         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21386         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21387         * lib/stdalign.in.h (_Alignas):
21388         Assume the '061200' applies to Itanium, not to PA-RISC.
21389         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21391 2017-03-17  Bruno Haible  <bruno@clisp.org>
21393         stat-time, timespec: Support use of the header files in C++ mode.
21394         * lib/stat-time.h: Add "C" linkage declaration.
21395         * lib/timespec.h: Likewise.
21397 2017-03-17  Bruno Haible  <bruno@clisp.org>
21399         stdalign: Make it work with HP-UX cc.
21400         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21401         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21402         for HP-UX cc.
21404 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21406         flexmember: try to detect HP-UX 11.31 cc bug
21407         Problem reported by Bruno Haible in:
21408         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21409         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21410         Attempt to detect bug in HP-UX 11.31 cc.
21412 2017-03-16  Bruno Haible  <bruno@clisp.org>
21414         stdint: Fix test compilation failure with HP-UX 11 cc.
21415         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
21416         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21417         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
21418         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
21420 2017-03-14  Bruno Haible  <bruno@clisp.org>
21422         gnulib-tool: Don't produce a tests directory with only snippet .h files.
21423         * gnulib-tool (func_modules_transitive_closure_separately): If
21424         testsrelated_modules ends up with no "real" modules, aside from
21425         modules with applicability 'all', set it to empty.
21427 2017-03-14  Bruno Haible  <bruno@clisp.org>
21429         vma-iter: Add support for HP-UX.
21430         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
21431         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
21432         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
21433         * lib/get-rusage-as.c: Update comment about HP-UX.
21434         * lib/get-rusage-data.c: Likewise.
21435         (get_rusage_data): Use get_rusage_data_via_setrlimit.
21437 2017-03-14  Bruno Haible  <bruno@clisp.org>
21439         limits-h: Make it work with HP-UX cc.
21440         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21441         defined.
21443 2017-03-14  Bruno Haible  <bruno@clisp.org>
21445         Fix test failures on DragonFlyBSD.
21446         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21447         * tests/test-select.h (test_bad_fd): Likewise.
21448         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21450 2017-03-14  Bruno Haible  <bruno@clisp.org>
21452         freadahead: Silence warning on DragonFlyBSD.
21453         * lib/freadahead.c (__sreadahead): Declare ourselves.
21455 2017-03-14  Bruno Haible  <bruno@clisp.org>
21457         vma-iter: Add comment about AIX.
21458         * lib/vma-iter.c: Add comment about why this module is not implemented
21459         on AIX.
21461 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21463         snippets: move unadjusted snippet sources to lib
21464         Problem reported by Michal Privoznik in:
21465         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21466         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21467         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21468         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21469         * lib/unused-parameter.h: Rename from
21470         build-aux/snippet/unused-parameter.h.
21471         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21472         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21473         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21474         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21475         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21476         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21477         Adjust to file renamings.
21479 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21481         gnulib-tool: don't automatically distribute files from top/
21482         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21483         not distribute top/README-release by default, don't distribute files
21484         from top/ unconditionally.
21485         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21486         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21488 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21490         gnulib-tool: fix typo in comment output
21491         * gnulib-tool (func_import): Fix typo with previous change.
21493         snippets: work around GNU Make 3.82 VPATH
21494         When using 'gnulib-tool --gnu-make' on Emacs, and building
21495         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21496         an out-of-source (VPATH) build failed because the sans-copyright
21497         snippet file was not built before the file that used it.
21498         Presumably this is some sort of VPATH thing.  Work around the
21499         problem by using the original snippet, i.e., don’t bother to
21500         remove its copyright notice.
21501         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21502         Don’t assume Automake in comments.  Omit long-incorrect comment.
21503         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21504         (MOSTLYCLEANFILES):
21505         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21506         (MOSTLYCLEANFILES):
21507         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21508         (MOSTLYCLEANFILES):
21509         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21510         (MOSTLYCLEANFILES):
21511         Remove.
21512         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21513         * modules/snippet/c++defs (CXXDEFS_H):
21514         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21515         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21516         Don’t bother to remove the copyright notice; just use the
21517         original snippet as-is.
21519 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21521         gnulib-tool: minor --gnu-make fixups
21522         * gnulib-tool (func_emit_lib_Makefile_am):
21523         Remove useless code that was a blind alley during implementation.
21524         Problem reported by Thien-Thi Nguyen in:
21525         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21526         (func_import): Note the "--gnu-make" option in the output comment.
21528 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21530         gnulib-tool: new option --gnu-make
21531         This is for applications like GNU Emacs that use GNU Make
21532         features instead of Automake.
21533         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21534         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21535         Do not assume Automake.
21536         * gnulib-tool (func_determine_path_separator)
21537         (func_modules_transitive_closure, func_update_file)
21538         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21539         (func_import): Add support for --gnu-make.
21541 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21543         gnulib-common.m4: avoid aclocal.m4 bloat
21544         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21545         Hide AM_PROG_AR from aclocal, so that aclocal does not
21546         install irrelevant macro definitions into aclocal.m4.
21548 2017-03-10  Bruno Haible  <bruno@clisp.org>
21550         vma-iter: Let callers know about error.
21551         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21552         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21554 2017-03-05  Bruno Haible  <bruno@clisp.org>
21556         Fix value of LD for 64-bit compilers on AIX.
21557         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21558         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21560 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21562         dtotimespec: simplify
21563         * lib/dtotimespec.c (dtotimespec): Simplify.
21565 2017-03-04  Bruno Haible  <bruno@clisp.org>
21567         test-calloc-gnu: Reenable test also for GCC 7.
21568         * tests/test-calloc-gnu.c (eight): New function.
21569         (main): Don't skip test; use eight() instead.
21571 2017-03-04  Jim Meyering  <meyering@fb.com>
21573         test-calloc-gnu: port to GCC7
21574         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21575         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21576         and newer would detect that at compilation time.
21578 2017-03-04  Bruno Haible  <bruno@clisp.org>
21580         tests: Avoid compiler warning about uses of null_ptr.
21581         * tests/null-ptr.h: New file.
21582         * tests/test-canonicalize.c: Include null-ptr.h.
21583         (null_ptr): Remove function.
21584         * tests/test-canonicalize-lgpl.c: Likewise.
21585         * tests/test-memmem.c: Likewise.
21586         * tests/test-ptsname_r.c: Likewise.
21587         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21588         * modules/canonicalize-lgpl-tests: Likewise.
21589         * modules/memmem-tests: Likewise.
21590         * modules/ptsname_r-tests: Likewise.
21591         Reported by Jim Meyering.
21593 2017-03-03  Bruno Haible  <bruno@clisp.org>
21595         doc: Mention Mac OS X deficiencies regarding semaphores.
21596         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21597         * doc/posix-functions/sem_destroy.texi: Likewise.
21598         * doc/posix-functions/sem_getvalue.texi: Likewise.
21600 2017-03-03  Bruno Haible  <bruno@clisp.org>
21602         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21603         Reported by Assaf Gordon <assafgordon@gmail.com> via
21604         Pádraig Brady <P@draigBrady.com>.
21605         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21606         semaphores.
21607         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21608         (atomic_int_semaphore): New macro.
21610 2017-02-28  Bruno Haible  <bruno@clisp.org>
21612         perror tests: Tweak for z/OS.
21613         Reported by Daniel Richard G. <skunk@iskunk.org>.
21614         * tests/test-perror.sh: Don't fail z/OS style perror output.
21616 2017-02-26  Bruno Haible  <bruno@clisp.org>
21618         nproc: Refactor large function.
21619         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21620         from num_processors.
21621         (num_processors): In this function, only deal with OMP.
21623 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21625         nproc: adjust handling of OpenMP environment variables
21626         to match the return value from omp_get_num_threads(), i.e.:
21627          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21628          - Treat 0 as an invalid value and ignore
21629         Also remove the call to omp_get_num_threads() because
21630         it's ineffective without the omp pragmas in place.
21631         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21632         so that it can be ignored.
21633         (num_processors): Honor OMP_THREAD_LIMIT even without
21634         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21635         variable being checked, from the previous recent commit.
21637 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21639         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21640         * lib/nproc.c (parse_omp_threads): A new function refactored
21641         from num_processors() to support parsing both of the
21642         above environment variables.
21643         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21644         to accurately reflect the current OpenMP nesting level.
21645         Also support the OMP_THREAD_LIMIT environment variable
21646         to limit the max value determined from OMP_NUM_THREADS.
21647         * modules/nproc: Depend on minmax header.
21648         Suggested by Oliver Heimlich.
21650 2017-02-25  Bruno Haible  <bruno@clisp.org>
21652         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21653         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21655 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21657         ftoastr: port to -Wdouble-promotion
21658         Work around -Wdouble-promotion false alarm in recent GCCs.
21659         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21660         (ftoastr_snprintf, FTOASTR): Use it.
21662 2017-02-21  Bruno Haible  <bruno@clisp.org>
21664         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21665         Reported by Rene Saavedra <rennes@openmailbox.org> in
21666         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21667         * lib/glthread/lock.h: On glibc systems without
21668         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21669         implementation of rwlocks.
21670         * lib/glthread/lock.c: Likewise.
21672 2017-02-20  Bruno Haible  <bruno@clisp.org>
21674         lock tests: Fix build failure on z/OS.
21675         Reported by Daniel Richard G. <skunk@iskunk.org>.
21676         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21677         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21678         exist.
21680 2017-02-19  Bruno Haible  <bruno@clisp.org>
21682         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21683         This helps when CC=clang.
21684         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21685         of /usr/bin/gcc.
21687         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21688         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21690 2017-02-19  Bruno Haible  <bruno@clisp.org>
21692         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21693         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21694         --with-tests --single-configure is specified.
21696 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21698         users.txt: Update links, use HTTPS where possible
21699         * users.txt: Updated to HTTPS where possible,
21700         fixed some links to new locations.
21702 2017-02-16  Bruno Haible  <bruno@clisp.org>
21704         xbinary-io: Fix inlining.
21705         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21707 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21709         xbinary-io: rename from xsetmode
21710         This patch is taken from suggestions by Bruno Haible in:
21711         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21712         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21713         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21714         not ENOTTY, when it is an inappropriate device.
21715         * lib/binary-io.h (SET_BINARY): Resurrect.
21716         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21717         (xset_binary_mode_error): Rename from xsetmode_error.
21718         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21719         (xset_binary_mode): Rename from xsetmode.
21720         All uses changed.
21721         * modules/xbinary-io: Rename from modules/xsetmode.
21722         Update file names.
21723         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21724         * NEWS: Update to match revised behavior.
21726 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21728         tests: Adjust to recent SET_BINARY change
21729         * tests/test-binary-io.c (main):
21730         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21731         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21732         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21733         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21735         xsetmode: new module
21736         This is to fix a problem noted by Eric Blake.
21737         Code was using xfreopen to change files to binary mode, but this
21738         fails for stdout when in append mode.  Such code should use
21739         xsetmode instead.
21740         * NEWS: Document incompatible changes to binary-io module.
21741         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21742         New function.
21743         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21744         (set_binary_mode): New function, which also checks for tty.
21745         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21747 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21749         headers: fix begin-end typos
21750         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21751         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21753         selinux-h: port to PGI 16.10
21754         * lib/se-selinux.in.h: Don't assume that include_next skips over
21755         duplicate -I DIR options.
21757         argp: port to PGI 16.10
21758         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21760 2017-02-13  Darshit Shah  <darnir@gnu.org>
21762         unicase: Update function protoype to match definition.
21763         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21764         uses 'size_t' as the datatype for the 'len' parameter in the functions
21765         it generates. Update the prototype specified here to match the newly
21766         generated function.
21768 2017-02-12  Bruno Haible  <bruno@clisp.org>
21770         times test: Avoid gcc warnings on Linux/x32.
21771         * tests/test-times.c (main): Really cast printf arguments from clock_t
21772         to 'long int'.
21774 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21776         glob: port better to emscripten
21777         Problem reported by Bruno Haible in:
21778         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21779         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21781 2017-02-11  Bruno Haible  <bruno@clisp.org>
21783         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21784         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21785         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21786         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21787         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21788         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21789         Distinguish hppa64 from hppa.
21791 2017-02-10  Bruno Haible  <bruno@clisp.org>
21793         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21794         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21795         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21796         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21798 2017-02-09  Bruno Haible  <bruno@clisp.org>
21800         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21801         * doc/gnulib.texi (Libtool and Windows): Recommend
21802         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21803         Reported by Reuben Thomas <rrt@sc3d.org>.
21805 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21807         stddef-tests: port to SIZE_MAX <= INT_MAX
21808         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21809         Do not assume that INT_MAX < SIZE_MAX.
21811 2017-02-01  Bruno Haible  <bruno@clisp.org>
21813         lock tests: Fix link error.
21814         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21817 2017-01-31  Bruno Haible  <bruno@clisp.org>
21819         lock: Fix link error (regression from 2017-01-05).
21820         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21821         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21822         pthread_rwlockattr_destroy weak.
21823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21825 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21827         Port to PGI 16.10 x86-64
21828         This patch fixes one real bug in gl_anylinked_list2.h, along with
21829         some minor glitches that are not bugs.  It does not silence PGI’s
21830         thousands of bogus warnings when compiling test-intprops.c.
21831         Fortunately, the warnings do not cause a failure.
21832         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21833         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21834         My goodness, PGI goes back a long ways - this predates C89!
21835         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21836         For example, ASYNCSAFE (const void *) should expand to
21837         ‘const void *volatile’, not to ‘volatile const void *’.
21838         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21839         * lib/verify.h (verify) [!__GNUC__]:
21840         Use shorter albeit meaningless string to bypass silly compiler limits.
21841         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21842         * tests/nan.h (NaNf, NaNd, NaNl):
21843         Use static functions to avoid misguided compiler diagnostics.
21844         Is there some reason we don’t use static functions on all platforms?
21846 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21848         parse-datetime: handle timezones reentrantly
21849         This API change was prompted by a report by Pádraig Brady in:
21850         https://bug.debian.org/851934#10
21851         To help fix the bug, make parse_datetime2 more reentrant.
21852         * NEWS: Document this incompatible change.
21853         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21854         Add two arguments, the timezone and the timezone name.
21855         All callers changed.  If TZ="..." is specified, use it for
21856         calculating defaults.
21857         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21858         this code should be usable in a library.
21859         (mktime_ok, get_effective_timezone):
21860         Accept timezone arg too.  All callers changed.
21861         (get_tz): Remove.
21862         (get_effective_timezone): Check for failures.
21864 2017-01-20  Eric Blake  <eblake@redhat.com>
21866         localename: port to cygwin 2.6
21867         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21868         Cygwin.
21869         * modules/localename (Depends-on): Add extensions, since
21870         NL_LOCALE_NAME() is not visible without it.
21872 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21874         parse-datetime: fix dependence on AC_PROG_SED
21875         * modules/parse-datetime: Use `sed` directly like all other modules.
21876         Reported by J William Piggott
21878 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21880         intprops: update doc URLs
21881         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21883 2017-01-16  Bruno Haible  <bruno@clisp.org>
21885         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21886         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21887         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21888         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21889         distinguish s390 and s390x.
21890         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21891         * NEWS: Mention the change regarding 'armel'.
21893 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21895         localeinfo: case_folded_counterparts and WEOF
21896         * NEWS: Document this.
21897         * lib/localeinfo.c (case_folded_counterparts):
21898         First arg is now wint_t, not wchar_t.  This generalizes the
21899         function to also work on WEOF, where it returns 0.
21901         dfa: port to gcc -fsanitize=undefined
21902         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21903         as this runs afoul of gcc -fsanitize=undefined.
21905 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21907         strftime: %z is -00 if unknown
21908         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21909         the caller's responsibility to set 'negative_number'.  All uses changed.
21910         (__strftime_internal): Put '-' before a zero UTC offset if the time
21911         zone abbreviation starts with "-", which is the recently-introduced
21912         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21913         * tests/test-strftime.c: Test for this.
21915 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21917         dfa: port to older GCC
21918         Problem reported by Assaf Gordon in:
21919         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21920         * modules/c99: New module.  This merely attempts to use the latest
21921         C version, which should be enough to solve this particular problem.
21922         The idea is to document which Gnulib modules assume C99 or later.
21923         * modules/dfa (Depends-on): Add it.
21925 2017-01-10  Bruno Haible  <bruno@clisp.org>
21927         Update DEPENDENCIES.
21928         * DEPENDENCIES: List only https URLs. Update recommended version for
21929         autoconf, automake, gperf.
21931 2017-01-10  Jim Meyering  <meyering@fb.com>
21933         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21934         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21935         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21937 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21939         dfa: minor simplification with emptyset
21940         * lib/dfa.c (build_state): Simplify by using emptyset.
21942 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21944         dfa: shrink constraints from 4 bits to 3
21945         * lib/dfa.c (newline_constraint, letter_constraint)
21946         (other_constraint, prev_newline_dependent)
21947         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21948         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21949         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21950         Constraints need only 3 bits, not 4.  Using smaller integers
21951         shrinks the code a bit and makes grep a tad faster on x86-64.
21953         dfa: omit unnecessary ptrdiff_t check
21954         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21955         overflow, since xnmalloc does that now.
21957         dfa: omit unnecessary allocation
21958         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21959         an all-zero follow set works just fine.
21961         dfa: omit unused local
21962         * lib/dfa.c (build_state): Fix up recent change.
21964         maint: remove stray .texi files
21965         Although these were superseded by other files like
21966         doc/posix-functions/ctime.texi, the old files were not removed.
21967         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21969 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21971         getprogname: fix port to IRIX
21972         * lib/getprogname.c (getprogname) [__sgi]:
21973         Don't dump core if malloc returns NULL.
21975         dfa: fix reallocation bug when matching newlines
21976         Problem reported for sed by S. Gilles (Bug#25390).
21977         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21978         (dfastate): Reallocate before moving any newline transition ...
21979         (build_state): ... instead of reallocating here, where it is too late.
21981 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21983         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21984         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21986 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21988         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21989         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21991 2017-01-07  Bruno Haible  <bruno@clisp.org>
21993         stdioext: Port to Minix 3.2 and newer.
21994         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21995         * lib/fseeko.c (fseeko): Likewise.
21996         Reported by Nelson Beebe via Paul Eggert.
21998 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22000         getprogname: port to IRIX
22001         * lib/getprogname.c (getprogname): Port to IRIX.
22002         Based on an idea by Bastien Roucariès at:
22003         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22004         via code from Bruno Haible at:
22005         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22007         localename-tests: port to NetBSD 7
22008         Problem reported by Nelson H. F. Beebe.
22009         * tests/test-localename.c:
22010         Test newlocale and uselocale only if both exist.
22012         glob, intprops, xalloc: work around Clang bug
22013         Work around LLVM bug 16404, which is still not fixed.
22014         https://llvm.org/bugs/show_bug.cgi?id=16404
22015         Problem reported by Nelson H. F. Beebe.
22016         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22017         Remove.
22018         * lib/glob.c (size_add_wrapv):
22019         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22020         * lib/xalloc-oversized.h (xalloc_oversized):
22021         Do not use overflow builtins if Clang.
22023         dfa: fix 'return' typo
22024         Problem reported by Nelson H. F. Beebe.
22025         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22027 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22029         parse-datetime: fix generated paths for coverage files
22030         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22031         within parse-datetime.c, so that gcc generates appropriate .gcno
22032         files, allowing lcov to proceed without error.  Previously it
22033         would error trying to find "lib/lib/parse-datetime.y".
22035 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22037         maint.mk: support parallel execution of coverage
22038         * top/maint.mk (coverage): Run dependencies serially,
22039         thus supporting parallel processing of each one,
22040         particularly build-coverage, which builds and runs tests.
22042 2017-01-05  Bruno Haible  <bruno@clisp.org>
22044         lock tests: Prefer semaphore over mutex.
22045         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22046         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22047         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22048         Suggested by Torvald Riegel <triegel@redhat.com>.
22050 2017-01-05  Bruno Haible  <bruno@clisp.org>
22052         lock: Provide guarantee to avoid writer starvation for rwlocks.
22053         The rationale is: 1) Read-preferring read-write locks are prone to
22054         writer starvation if the number of reader threads multiplied by the
22055         percentage of time they have the lock held is too high. 2) Write-
22056         preferring read-write locks are the only reliable way to avoid this.
22057         3) There have been reports of 'test-lock' hanging on glibc systems
22058         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22059         and glibc indeed implements read-preferring rwlocks by default, see
22060         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22061         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22062         * m4/pthread_rwlock_rdlock.m4: New file.
22063         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22064         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22065         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22066         of rwlock initialization on glibc systems without
22067         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22068         of rwlocks altogether on non-glibc systems without
22069         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22070         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22071         * lib/glthread/lock.c [USE_POSIX_THREADS]
22072         (glthread_rwlock_init_for_glibc): New function.
22073         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22074         comment.
22075         [USE_PTH_THREADS]: New implementation of rwlocks.
22076         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22077         readers.
22078         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22079         (Depends-on): Add 'extensions'.
22080         * tests/test-rwlock1.c: New file.
22081         * lock-tests (Files): Add it.
22082         (Depends-on): Add usleep.
22083         (Makefile.am): Add test-rwlock1 to the tests.
22085 2017-01-05  Bruno Haible  <bruno@clisp.org>
22087         thread: Fix pth port.
22088         * lib/glthread/thread.h (pth_init): Declare weak.
22089         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22090         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22091         function.
22093 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22095         parse-datetime: fix debug message on lone year number
22096         Input dates such as
22097           date -d "Apr 11 22:59:00 2011"
22098         are parsed as date (Apr 11, with default year 2016), then time, then a
22099         number (2011). Based on the combination of previously seen tokens,
22100         'digits_to_date_time' determines 2011 to be a year value.
22101         This fixes the debug messages to correctly show the updated year.
22102         Before:
22103             $ date --debug -d 'Apr 11 22:59:00 2011'
22104             date: parsed date part: (Y-M-D) 2016-04-11
22105             date: parsed time part: 22:59:00
22106             date: parsed number part: today/this/now
22107         After:
22108             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22109             date: parsed date part: (Y-M-D) 2016-04-11
22110             date: parsed time part: 22:59:00
22111             date: parsed number part: year: 2011
22112         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22113         'debug_year_seen' member fields.
22114         (digits_to_date_time): Update 'year_seen' as needed.
22115         (debug_print_current_time): Inform about year updates.
22116         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22118         parse-datetime: fix local timezone debug messages
22119         "Local timezones" are strings that affect only DST relative to the
22120         default timezone. The debug messages in parse-datetime.y printed
22121         wrong information when encountering local timezones.
22122         Examples:
22123         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22124              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22125              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22126         When the default timezone relates to the zone strings, EET/EEST are
22127         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22128         value (0/1, respectively):
22129              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22130              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22131         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22132         was seen, inform about DST change, don't print actual timezone.
22133         (debug_strfdatetime): If local timezone was seen, use default timezone
22134         (and adjust as needed) instead of using incorrect timezone.
22135         (parse_datetime2): Use correct time-zone source string, and adjust
22136         default timezone as needed.
22138         parse-datetime: add debug warning about DST changes
22139         Incorrect date arithmetic due to daylight saving time (DST) are a
22140         common (false) bug report in coreutils.
22141         Detect two such cases and print a warning:
22142         1. year/month/day adjustments (performed on 'struct tm'),
22143            where 'mktime' returns a different isdst value.
22144         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22145            where the result of 'localtime(3)' on the value will return a
22146            different isdst value.
22147         Note: DST changes could be harmless or unnoticeable.
22148         Examples (with 'TZ=America/New_York'):
22149         Unnoticeable: result is 2016-Dec-14
22150            $ date -d '2016-06-15 EDT + 6 months' +%b
22151            Dec
22152         Unnoticeable: result is 2016-Dec-15 11:00:00
22153            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22154            2016-12-15
22155         This is unexpected:
22156            $ date -d '2016-06-01 EDT + 6 months' +%F
22157            2016-11-30
22158         The new debug warnings will show:
22159            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22160            ...
22161            date: warning: daylight saving time changed after date adjustment
22162            ...
22163         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22164         print an appropriate warning message.
22166         parse-datetime: add debug warning about date arithmetic
22167         Date arithmetic are done directly on the fields of 'struct tm',
22168         which can result in invalid dates. Normalization with 'mktime(3)'
22169         will then produce a different date - which might cause unexpected
22170         results.
22171         Examples:
22172           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22173           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22174         Note that date normalization is not inherently wrong and not rejected,
22175         as it has legitimate uses:
22176           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22177         If the user asked to adjust months but 'mday' changed,
22178         or user asked to adjust years but 'month' changed - warn about it.
22179             $ ./src/date --debug -d '2016-10-31 - 1 month'
22180             ...
22181             date: warning: when adding relative months/years, \
22182                            it is recommended to specify the 15th of the month
22183             ...
22184             date: warning: month/year adjustment resulted in shifted dates:
22185             date:      adjusted Y M D: 2016 09 31
22186             date:    normalized Y M D: 2010 10 01
22187             ...
22188         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22189         a warning message. Improve recommendation of when to use 15 of the
22190         month or noon for date arithmetic.
22192         parse-datetime: fix debug message of relative part after timezone
22193         Relative part (e.g '+8 days') after a timezone string was not
22194         reported (was only reported after a timezone number). Due to the
22195         parser's structure, timezone strings with numbers were handled
22196         separately.
22197         before:
22198              # Timezone number + relative part: OK
22199              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22200              ...
22201              date: parsed relative part: -8 day(s)
22202              # Timezone string + relative part: missing
22203              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22204              [ missing message ]
22205         After: messages are printed in both cases.
22206         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22208         parse-datetime: fix incorrect debug message on lone number
22209         A lone number is an absolute value, not a relative time part.
22210         before:
22211            $ date --debug -d '20130101'
22212            date: parsed number part: today/this/now
22213         After:
22214            $ ./src/date --debug -d '20130101'
22215            date: parsed number part: (Y-M-D) 2013-01-01
22216         * lib/parse-datetime.y ('item'/'number' tokens): Call
22217         'debug_print_current_time' instead of 'debug_print_relative_time'.
22219 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22221         doc: modernize for C11 etc.
22222         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22223         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22224         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22226         dfa: prefer functions to FETCH_WC macro
22227         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22228         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22229         wint_t result into DFA->lex.wctok instead of to a separate arg.
22230         All callers changed.  Move more local decls closer to where
22231         they're used.
22233         dfa: narrow more local var scopes
22234         * lib/dfa.c: Move more local decls to be more local.
22236         dfa: remove duplicate assignment
22237         Problem reported by Bruno Haible in:
22238         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22239         * lib/dfa.c (parse_bracket_exp): Simplify.
22241 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22243         dfa: simplify constraint-dependency checking
22244         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22245         (prev_other_constraint): Remove.
22246         (prev_newline_dependent, prev_letter_dependent):
22247         Simplify, to avoid an unnecessary bitwise AND operation.
22249         dfa: prefer functions and constants to macros
22250         * lib/dfa.c: Prefer constants to macros where either will do.
22251         (streq, isasciidigit, newline_constraint)
22252         (letter_constraint, other_constraint, succeeds_in_context)
22253         (prev_newline_constraint, prev_letter_constraint)
22254         (prev_other_constraint, prev_newline_dependent)
22255         (prev_letter_dependent, accepting, accepts_in_context):
22256         Now static functions instead of function-like macros.
22257         Use lower-case names accordingly.  All uses changed.
22259         dfa: narrow more local var scopes
22260         * lib/dfa.c: Move some more local decls down to nearer where
22261         they're needed.
22263 2016-12-31  Jim Meyering  <meyering@fb.com>
22265         dfa: narrow the scope of many local variables
22266         * lib/dfa.c: Now that we are no longer constrained to c89, move
22267         declarations of many variables (often indices) "down" into the
22268         scope(s) where used or to the point of definition.  This is a
22269         no-semantic-change diff.
22271 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22273         version-etc: new year
22274         * build-aux/gendocs.sh (version):
22275         * doc/gendocs_template:
22276         * doc/gendocs_template_min:
22277         * doc/gnulib.texi:
22278         * lib/version-etc.c (COPYRIGHT_YEAR):
22279         Update copyright dates by hand in templates and the like.
22280         * all files: Run 'make update-copyright'.
22282 2016-12-31  Eric Blake  <eblake@redhat.com>
22284         do-release-commit-and-tag: avoid shell syntax error
22285         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22286         contain spaces when rebasing.
22288         maint.mk: hoist gnulib_dir definition earlier
22289         * top/maint.mk (gnulib_dir): Move near top of file.
22291 2016-12-31  Jim Meyering  <meyering@fb.com>
22293         maint.mk: do not always evaluate intprops-related shell
22294         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22295         using gnulib_dir undefined (gnulib_dir is defined later in the
22296         file, which will be fixed separately), and besides, there is no
22297         need to incur the cost of this shell invocation for every single
22298         use of this .mk file.  Reported by Eric Blake in
22299         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22301 2016-12-30  Jim Meyering  <meyering@fb.com>
22303         maint.mk: improve sc_prohibit_intprops_without_use
22304         * top/maint.mk (_intprops_names): Don't hard-code the list of
22305         symbol names.  Instead, derive it on the fly.
22307 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22309         dfa: shorten sbit, success
22310         * lib/dfa.c (struct regex_syntax.sbit):
22311         (struct dfa.success): Use char, not int, for array elements, since
22312         they are all in the range 0..7.
22314         dfa: simplify multibyte_prop etc.
22315         This follows up on a change made when dfa.c was in grep, namely grep
22316         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22317         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22318         That earlier simplification allows for some more simplification
22319         and trimming down here.
22320         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22321         (struct lexer_state): New mamber brack.
22322         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22323         since they must be in the range 0..3 now.
22324         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22325         the brack member now supersedes them.
22326         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22327         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22328         (dfaparse): Remove unnecessary initializations of already-0 storage.
22329         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22330         (dfassbuild): No need to clear sup->mbcsets.
22332         dfa: minor performance tweak
22333         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22335         dfa: wrap charclass inside a struct
22336         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22337         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22338         about 5% faster, where list.txt is generated by 'aspell dump
22339         master | head -n 100000 >list.txt'.  See Bug#22239.
22340         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22341         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22342         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22343         Adjust to this, e.g., by using charclass * rather than charclass.
22344         All callers changed as needed.
22345         (copyset): Remove.  All uses changed to simple assignment.
22346         (parse_bracket_exp): Use zeroset instead of memset.
22348 2016-12-30  Jim Meyering  <meyering@fb.com>
22350         maint.mk: update list of intprops.h symbol names
22351         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22352         This avoids a false failure of the sc_prohibit_intprops_without_use
22353         rule in grep.
22355 2016-12-29  Eric Blake  <eblake@redhat.com>
22357         getopt: fix parallel test failure
22358         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22359         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22360         * tests/test-getopt-main.h (main): Use different file names
22361         in case test-getopt-gnu and test-getopt-posix run in parallel.
22363 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22365         xalloc: x2nrealloc check for ptrdiff_t overflow
22366         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22367         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22369 2016-12-24  Bruno Haible  <bruno@clisp.org>
22371         lock test: Fix performance problem on multi-core machines.
22372         * tests/test-lock.c (USE_VOLATILE): New macro.
22373         (struct atomic_int): New type.
22374         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22375         functions.
22376         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22377         as 'struct atomic_int'.
22378         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22379         reclock_checker_thread, test_recursive_lock): Use the new functions.
22380         Reported by Eric Blake in
22381         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22382         and by Pádraig Brady in
22383         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22385 2016-12-19  Bruno Haible  <bruno@clisp.org>
22387         vma-iter: Fix endless loop on 64-bit Windows.
22388         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22389         'unsigned long'.
22391 2016-12-19  Bruno Haible  <bruno@clisp.org>
22393         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22394         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22395         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22396         Invoke gt_TYPE_WINT_T instead.
22397         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22398         * modules/stdint (Files): Add m4/wint_t.m4.
22399         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22400         * modules/wctype-h (Makefile.am): Likewise.
22401         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22402         not only on MSVC.
22403         * lib/wctype.in.h (wint_t): Likewise.
22405 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22407         getopt-posix-tests: fix Makefile typo
22408         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22409         Fix typo: the last ‘_’ was missing in the name.
22410         I suspect that the typo explains this build failure:
22411         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22412         although I can’t reproduce the problem on Solaris 10 sparc.
22414 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22416         dfa: improve worst-case 'replace' performance
22417         See my note in Bug#22357#71.
22418         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
22419         (merge_constrained): New function, which is like
22420         the old 'merge' function, except with a new argument C2.
22421         Simplify the body by avoiding the need for different sections
22422         of code depending on whether one input is exhausted.
22423         (merge): Use the new function.
22424         (delete): Return the constraint of the deleted position,
22425         not the entire position.  Caller changed.
22426         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
22428 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22430         dfa: performance improvement for removal of epsilon closure
22431         See Bug#22357#32.
22432         * lib/dfa.c (delete): Use binary search to find deleted index.
22433         (replace): New function.  It replaces a position with the followed set.
22434         (epsclosure): Replace it with a new algorithm.  Update caller.
22436 2016-12-18  Bruno Haible  <bruno@clisp.org>
22438         Split tests for getopt-posix and getopt-gnu.
22439         * tests/test-getopt-posix.c: New file.
22440         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22441         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22442         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22443         GNULIB_TEST_GETOPT_GNU.
22444         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22445         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22446         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22447         * modules/getopt-gnu-tests: New file.
22448         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22450 2016-12-18  Bruno Haible  <bruno@clisp.org>
22452         posix-modules: Add options for specific platforms.
22453         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22454         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22455         Invoke func_tmpdir. Filter out the excludes.
22457 2016-12-18  Bruno Haible  <bruno@clisp.org>
22459         getopt: Fix link error for users of getopt() in <unistd.h>.
22460         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22461         __need_getopt is defined. Undefine all macros before defining them.
22462         * modules/getopt (Include): Clarify that including <unistd.h> is also
22463         OK.
22464         * tests/test-getopt.c: Add comment.
22466 2016-12-17  Bruno Haible  <bruno@clisp.org>
22468         getaddrinfo tests: Avoid compilation error on MSVC.
22469         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22470         getaddrinfo on native Windows.
22472 2016-12-17  Bruno Haible  <bruno@clisp.org>
22474         getlogin, getlogin_r: Fix link errors on MSVC.
22475         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22476         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22477         (Link): New section.
22478         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22479         (configure.ac): Require gl_LIB_GETLOGIN.
22480         (Link): New section.
22481         * NEWS: Mention the new link requirements.
22482         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22483         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22485 2016-12-17  Bruno Haible  <bruno@clisp.org>
22487         Un-deprecate the 'progname' module.
22488         * NEWS: Describe the appropriate use-cases of 'progname' versus
22489         'getprogname'. Based on discussion summary at
22490         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22492 2016-12-17  Bruno Haible  <bruno@clisp.org>
22494         Reorganize NEWS a bit.
22495         * NEWS: Move some not so important changes away from section
22496         "Important Notes".
22498 2016-12-17  Bruno Haible  <bruno@clisp.org>
22500         tanhf: Avoid redefinition error on MSVC.
22501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22502         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22503         may be defined as an inline function.
22504         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22505         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22507 2016-12-17  Bruno Haible  <bruno@clisp.org>
22509         tanf: Avoid redefinition error on MSVC.
22510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22511         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22512         may be defined as an inline function.
22513         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22514         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22516 2016-12-17  Bruno Haible  <bruno@clisp.org>
22518         sqrtf: Avoid redefinition error on MSVC.
22519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22520         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22521         may be defined as an inline function.
22522         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22523         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22525 2016-12-17  Bruno Haible  <bruno@clisp.org>
22527         sinhf: Avoid redefinition error on MSVC.
22528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22529         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22530         may be defined as an inline function.
22531         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22532         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22534 2016-12-17  Bruno Haible  <bruno@clisp.org>
22536         sinf: Avoid redefinition error on MSVC.
22537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22538         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22539         may be defined as an inline function.
22540         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22541         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22543 2016-12-17  Bruno Haible  <bruno@clisp.org>
22545         logf: Avoid redefinition error on MSVC.
22546         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22547         may be defined as an inline function.
22549 2016-12-17  Bruno Haible  <bruno@clisp.org>
22551         log10l: Avoid redefinition error on MSVC.
22552         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22553         may be defined as an inline function.
22555 2016-12-17  Bruno Haible  <bruno@clisp.org>
22557         log10f: Avoid redefinition error on MSVC.
22558         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22559         may be defined as an inline function.
22561 2016-12-17  Bruno Haible  <bruno@clisp.org>
22563         hypotl: Avoid redefinition error on MSVC.
22564         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22565         may be defined as an inline function.
22567 2016-12-17  Bruno Haible  <bruno@clisp.org>
22569         hypotf: Avoid redefinition error on MSVC.
22570         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22571         may be defined as an inline function.
22573 2016-12-17  Bruno Haible  <bruno@clisp.org>
22575         fmodl: Avoid redefinition error on MSVC.
22576         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22577         may be defined as an inline function.
22579 2016-12-17  Bruno Haible  <bruno@clisp.org>
22581         fmodf: Avoid redefinition error on MSVC.
22582         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22583         may be defined as an inline function.
22585 2016-12-17  Bruno Haible  <bruno@clisp.org>
22587         expf: Avoid redefinition error on MSVC.
22588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22589         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22590         may be defined as an inline function.
22591         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22592         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22594 2016-12-17  Bruno Haible  <bruno@clisp.org>
22596         coshf: Avoid redefinition error on MSVC.
22597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22598         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22599         may be defined as an inline function.
22600         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22601         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22603 2016-12-17  Bruno Haible  <bruno@clisp.org>
22605         cosf: Avoid redefinition error on MSVC.
22606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22607         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22608         may be defined as an inline function.
22609         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22610         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22612 2016-12-17  Bruno Haible  <bruno@clisp.org>
22614         atan2f: Avoid redefinition error on MSVC.
22615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22616         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22617         may be defined as an inline function.
22618         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22619         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22621 2016-12-17  Bruno Haible  <bruno@clisp.org>
22623         atanf: Avoid redefinition error on MSVC.
22624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22625         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22626         may be defined as an inline function.
22627         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22628         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22630 2016-12-17  Bruno Haible  <bruno@clisp.org>
22632         asinf: Avoid redefinition error on MSVC.
22633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22634         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22635         may be defined as an inline function.
22636         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22637         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22639 2016-12-17  Bruno Haible  <bruno@clisp.org>
22641         acosf: Avoid redefinition error on MSVC.
22642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22643         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22644         may be defined as an inline function.
22645         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22646         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22648 2016-12-17  Bruno Haible  <bruno@clisp.org>
22650         Avoid redefinition errors on MSVC.
22651         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22652         the function may be defined as an inline function.
22653         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22654         the function may be defined as an inline function.
22656 2016-12-17  Bruno Haible  <bruno@clisp.org>
22658         Avoid redefinition errors on MSVC.
22659         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22660         * lib/unistd.in.h: Include <stdio.h> when necessary.
22662 2016-12-17  Bruno Haible  <bruno@clisp.org>
22664         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22665         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22666         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22667         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22668         WINT_MAX.
22670 2016-12-17  Bruno Haible  <bruno@clisp.org>
22672         Avoid autoconf warning.
22673         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22674         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22676 2016-12-17  Bruno Haible  <bruno@clisp.org>
22678         fpending: Revert workaround against Emacs bug.
22679         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22680         The Emacs bug is fixed by Eli Zaretskii in
22681         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22683 2016-12-17  Bruno Haible  <bruno@clisp.org>
22685         getlogin_r tests: Port to mingw.
22686         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22687         regression introduced on 2014-05-19.
22689 2016-12-17  Bruno Haible  <bruno@clisp.org>
22691         getlogin: Port to newer mingw.
22692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22693         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22694         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22695         HAVE_GETLOGIN.
22696         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22697         HAVE_GETLOGIN.
22698         * doc/posix-functions/getlogin.texi: Mention the issue.
22699         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22700         regression introduced on 2014-05-14.
22702 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22704         builtin-expect: improve 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/msg00079.html
22707         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22708         Test for <builtins.h> directly.
22710         builtin-expect: port to IBM XL C
22711         Problem reported for z/OS by Daniel Richard G. in:
22712         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22713         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22714         Also allow __builtin_expect defined via a standard include file.
22716         regex: fix dependency
22717         Problem reported by Bruno Haible in:
22718         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22719         * modules/regex: Depend on builtin-expect.
22721         builtin-expect: new module
22722         Fix fnmatch to use it.
22723         Problem reported for z/OS by Daniel Richard G.
22724         * lib/fnmatch.c (__builtin_expect):
22725         * lib/glob.c (__builtin_expect):
22726         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22727         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22728         * lib/scandir.c (__builtin_expect):
22729         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22730         Remove macro; config.h now does this.
22731         * lib/gl_anytreehash_list1.h (add_to_bucket):
22732         * lib/regex_internal.h (BE):
22733         Assume __builtin_expect.
22734         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22735         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22736         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22737         * modules/scandir, modules/strstr-simple:
22738         Depend on builtin-expect.
22740 2016-12-15  Bruno Haible  <bruno@clisp.org>
22742         init.sh: Add possibility to not delete temporary files.
22743         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22744         to yes, don't erase the temporary directory.
22746 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22748         regex: fix integer-overflow bug in never-used code
22749         Problem reported by Clément Pit–Claudel in:
22750         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22751         * lib/regex_internal.h: Include intprops.h.
22752         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22753         behavior on integer overflow.
22754         * modules/regex (Depends-on): Add intprops.
22756         fpending: fix port to MinGW on Emacs
22757         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22758         Problem reported by Eli Zaretskii in:
22759         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22760         Is Plan 9 still a valid porting target, anyway?
22762 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22764         safe-alloc: use xalloc-oversized
22765         * lib/safe-alloc.c: Include xalloc-oversized.h.
22766         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22767         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22769         xalloc: do not exceed PTRDIFF_MAX
22770         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22771         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22772         bytes have pointer-subtraction problems.
22774         malloca: do not exceed PTRDIFF_MAX
22775         * lib/malloca.h: Include xalloc-oversized.
22776         (nmalloca): Use xalloc_oversized instead of rolling our own.
22777         * modules/malloca (Depends-on):
22778         * modules/relocatable-prog-wrapper (Depends-on):
22779         Add xalloc-oversized.
22781         quotearg: pacify GCC better
22782         * modules/quotearg (Depends-on): Add minmax, stdint.
22783         * lib/quotearg.c: Include minmax.h, stdint.h.
22784         (nslots): Now int, as there seems little point to going to extra
22785         work merely to support the INT_MAX slot, which nobody ever uses.
22786         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22787         and to catch (mostly-theoretical) ptrdiff_t problems too.
22788         This can be done via one comparison.
22790 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22792         xalloc-oversized: check for PTRDIFF_MAX too
22793         This avoids undefined behavior when subtracting pointers to
22794         objects containing more than PTRDIFF_MAX bytes.
22795         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22796         Also return 1 if the result would exceed PTRDIFF_MAX>
22797         * modules/xalloc-oversized (Depends-on):
22798         Add stdint.
22800         dfa: fix glitches in previous commit
22801         Sorry, I don't know how I managed to commit the wrong version.
22802         * lib/dfa.c (MIN): Move up.
22803         (xpalloc): Now static.
22805         dfa: fix some unlikely integer overflows
22806         I found these while reviewing the recent Coverity-related fix.
22807         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22808         size_t for object counts.  Using ptrdiff_t is the style typically
22809         used in Emacs; although it wastes a sign bit as sizes can never be
22810         negative, it makes -fsanitize=undefined more likely to catch
22811         integer overflows in index calculation, and nowadays the upside is
22812         typically more important than the downside.  Although perhaps the
22813         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22814         of dfa.c already does, since it uses state_num which is signed),
22815         that is a bigger change and is not needed to fix the bugs I found.
22816         * lib/dfa.c: Include stdint.h and intprops.h.
22817         (TOKEN_MAX): New macro.
22818         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22819         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22820         (realloc_trans_if_necessary, free_mbdata):
22821         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22822         This is safe because xpalloc checks that the sizes do not exceed
22823         either SIZE_MAX or PTRDIFF_MAX.
22824         (xpalloc): New function, mostly taken from Emacs.
22825         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22826         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22827         (charclass_index): Check for integer overflow in computing
22828         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22829         added to it later.
22830         (alloc_position_set): Check for integer overflow.  On typical
22831         platforms this check has zero overhead, since the constant
22832         expression is false.
22833         (realloc_trans_if_necessary):
22834         Remove assertion, which I hope Coverity no longer needs.
22836         * modules/dfa (Depends-on): Add intprops, stdint.
22838 2016-12-12  Jim Meyering  <meyering@fb.com>
22840         dfa: add an assertion to avoid coverity false positive
22841         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22842         warned that "newalloc1 - 2" could overflow.
22844 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22846         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22847         * dfa.h (DFA_CASE_FOLD): Remove.
22848         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22850 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22852         link: fix test to declare use of rename()
22853         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22854         -Werror=implicit-function-declaration
22856 2016-12-12  Bruno Haible  <bruno@clisp.org>
22858         fpending: Port to native Windows with MSVC.
22859         * lib/fpending.c: Include stdio-impl.h.
22860         (__fpending): Include all known implementations. Err out if it's not
22861         ported.
22862         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22863         * modules/fpending (Files): Add lib/stdio-impl.h.
22864         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22866 2016-12-12  Bruno Haible  <bruno@clisp.org>
22868         stdioext: Port to native Windows with MSVC.
22869         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22870         (struct _gl_real_FILE): New type.
22871         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22872         Windows.
22873         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22874         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22875         other SystemV derived implementations.
22876         * lib/fpurge.c (fpurge): Likewise.
22877         * lib/freadable.c (freadable): Likewise.
22878         * lib/freadahead.c (freadahead): Likewise.
22879         * lib/freading.c (freading): Likewise.
22880         * lib/freadptr.c (freadptr): Likewise.
22881         * lib/freadseek.c (freadptrinc): Likewise.
22882         * lib/fseeko.c (fseeko): Likewise.
22883         * lib/fseterr.c (fseterr): Likewise.
22884         * lib/fwritable.c (fwritable): Likewise.
22885         * lib/fwriting.c (fwriting): Likewise.
22886         Reported by Gisle Vanem <gvanem@yahoo.no>.
22888 2016-12-11  Jim Meyering  <meyering@fb.com>
22890         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22891         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22892         to work with most shells, but not with the one provided by many
22893         Solaris 10 systems, so running configure with such a /bin/sh evokes
22894         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22895         Reported by Assaf Gordon in
22896         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22898 2016-12-10  Bruno Haible  <bruno@clisp.org>
22900         threadlib: Optimize out runtime test on Solaris >= 10.
22901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22902         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22903         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22905 2016-12-10  Bruno Haible  <bruno@clisp.org>
22907         stdint: Update doc about Solaris 9.
22908         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22910 2016-12-09  Bruno Haible  <bruno@clisp.org>
22912         c-ctype tests: Fix link error on Solaris 9.
22913         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22914         Reported at <https://savannah.gnu.org/bugs/?46827>.
22916 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22918         dfa: fix performance bug that recomputes trans
22919         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22920         25 on-demand changes.  The bug caused build_state to reset all
22921         d->trans elements to -2 even when d->trans was already non-null.
22922         Use C99 style decls after statements in this function.
22924         same-inode: port to MinGW
22925         Here st_ino is always 0, so change the definition of SAME_INODE so
22926         that 1 means the two files are the same, 0 with st_ino != 0 means
22927         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22928         reported by Bruno Haible (Bug#25146).
22929         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22930         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22932 2016-12-04  Bruno Haible  <bruno@clisp.org>
22934         javacomp-script: Support Java 7 and 8.
22935         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22936         target-version 1.7, 1.8.
22938 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22940         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22941         GPLv2" rewriting.
22943 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22945         * gnulib-tool (func_import): Adhere to the license guideline when
22946         rewriting the license text to "LGPLv3+ or GPLv2":
22947         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22949 2016-12-02  Bruno Haible  <bruno@clisp.org>
22951         localcharset: Avoid theoretical buffer overrun.
22952         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22953         return value from setlocale if it would lead to a buffer overrun.
22955 2016-12-01  Bruno Haible  <bruno@clisp.org>
22957         Relicense some modules under LGPLv2+.
22958         Kevin Cernekee's approval is in
22959         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22960         * modules/fseterr (License): Change to LGPLv2+.
22961         * modules/mbchar (License): Likewise.
22962         * modules/mbiter (License): Likewise.
22963         * modules/mbsnlen (License): Likewise.
22964         * modules/wcwidth (License): Likewise.
22966 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22968         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22969         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22970         OS/2 kLIBC.
22972 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22974         alphasort, scandir: Port to OS/2 kLIBC
22975         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22976         declaration.
22977         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22979 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22981         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22982         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22983         with '/@unixroot'.
22985 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22987         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22988         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22989         OS/2 kLIBC unless TCPV40HDRS is defined.
22991 2016-11-29  Jim Meyering  <meyering@fb.com>
22993         dfa: avoid new infinite loop
22994         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22995         * lib/dfa.c (dfastate): When constructing a new state table, we could
22996         initially declare that we had found a match, and later find that
22997         constraints eliminate that possibility, yet continue to use the
22998         now stale "matched" indicator.  That would lead to an infinite loop.
22999         The solution is to update "matched" when necessary.
23000         Introduced by commit v0.1-983-g403adf1.
23002 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23004         dfa: avoid match middle in multibyte character
23005         * lib/dfa.c (transit_state): If fails in matching single byte characters
23006         on a state including period expression in non-UTF8 multibyte locales,
23007         skip trailing bytes.
23008         (dfa_supported): Revert previous change.
23010 2016-11-27  Jim Meyering  <meyering@fb.com>
23012         dfa: avoid false match in non-UTF8 multibyte locales
23013         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23014         as "not supported" so that callers will resort to using regex-based
23015         matcher.  This will surely hurt performance, but correctness trumps
23016         performance here, and the affected locales are less and less relevant,
23017         these days.  See grep's bug report https://bugs.gnu.org/24975.
23019 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23021         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23022         * lib/ptsname_r.c: Include the appropriate headers.
23023         [__sun]: Delete sys/sysmacros.h include.
23024         [_AIX || __osf__]: Likewise.
23025         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23027 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23029         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23030         * lib/md4.c (md4_process_bytes): The existing define is made internal
23031         in recent versions of glibc, so also use this new public define.
23032         * lib/md5.c (md5_process_bytes): Likewise.
23033         * lib/sha1.c (sha1_process_bytes): Likewise.
23034         * lib/sha256.c (sha256_process_bytes): Likewise.
23035         * lib/sha512.c (sha512_process_bytes): Likewise.
23037 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23039         maint: use a more standard return from mbrtowc test
23040         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23041         from the test program as this often indicates an
23042         unhandled case in the test program.
23043         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23044         (gl_MBRTOWC_SANITYCHECK): Likewise.
23045         (gl_MBRTOWC_NULL_ARG2): Likewise.
23046         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23048 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23050         freopen: work around glibc bug with closed fd
23051         Work around glibc bug#15589, where freopen mishandles the case
23052         where stdin etc. are already closed.
23053         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23054         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23055         instead of __need_FILE, as the latter does not work with glibc.
23056         Include <fcntl.h>, for open flags.
23057         (rpl_freopen): Work around glibc bug.
23058         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23059         * modules/freopen (Depends-on): Add fcntl-h.
23060         * tests/test-freopen.c (main): Test for bug.
23062 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23064         fnmatch: fix typo introduced on 2016-08-17
23065         This fixes the port to non-GCC compilers that lack __builtin_expect.
23066         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23068         dfa: simplify with new function fillset
23069         * lib/dfa.c (fillset): New function.
23070         Use it for clarity when applicable.
23072         dfa: fix glitches with on-demand states
23073         Also, adjust commentary to better match new code.
23074         Some of these glitches predate the recent change.
23075         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23076         only non-initial states.
23077         (dfastate): Rename locals to better match new roles.
23078         Move them into nested scopes if this is easy.
23079         Omit unnecessary calls to zeroset.
23080         Simplify test for whether to throw in the positions of state 0.
23081         Omit C99-ism (decl after statement) since Gawk still wants C89.
23082         (build_state): Omit unnecessary test and assignment.
23083         Fix some confusion that counted transition tables inaccurately
23084         and could cause a memory leak.
23085         (dfaexec_main): Redo to make it clearer to the compiler that
23086         -1 and -2 are the only negative state numbers here.
23088 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23090         dfa: addition of new state on demand
23091         * src/dfa.c (dfastate): Add argument UC, the current input character.
23092         Fill only a group including the character in transition table.
23093         (realloc_trans_if_necessary): Add the dummy state which means that a
23094         transition table is assigned but the next state is not assigned.
23095         (build_state): Return the next state.  All callers updated.
23096         (transit_state_singlebyte): If we get the dummy state,
23097         fill the transition table.
23098         (dfaexec_main): Handle the dummy state.
23099         (free_mbdata, dfafree): Consider the dummy state.
23101 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23103         srclist: sync with released gettext
23104         * config/srclist.txt: Set "release" option to the files under
23105         $GETTEXT.
23107 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23109         srclist: add "release" option
23110         * config/srclist.txt: Change the format so that the first column
23111         of each line points to the top-level directory of the source
23112         archive.
23113         * config/srclist-update: Accept "release" option that checks files
23114         from the most recently tagged revision in the source archive.
23116 2016-11-21  Bruno Haible  <bruno@clisp.org>
23118         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23119         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23120         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23121         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23122         Inline and remove member function 'rpl ()' of the wrapper struct.
23124 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23126         dfa: fix logic typo
23127         Problem reported by Stephane Chazelas (Bug#24973).
23128         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23129         non-simple locales like fr_FR to be treated as simple.
23131 2016-11-20  Jim Meyering  <meyering@fb.com>
23133         fix test driver leaks: exclude, malloc, realloc
23134         * tests/test-exclude.c (main): Fix trivial leak.
23135         * tests/test-malloc-gnu.c (main): Likewise.
23136         * tests/test-realloc-gnu.c (main): Likewise.
23137         With these changes, grep's tests are now leak free.
23138         I.e., running them with ASAN elicits no failure:
23139           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23140             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23142 2016-11-11  Bruno Haible  <bruno@clisp.org>
23144         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23145         * modules/libunistring: (License): Change from LGPL to
23146         "LGPLv3+ or GPLv2".
23147         * modules/libunistring-optional: Likewise.
23148         * modules/unicase/*: Likewise.
23149         * modules/uniconv/*: Likewise.
23150         * modules/unictype/*: Likewise.
23151         * modules/unigbrk/*: Likewise.
23152         * modules/unilbrk/*: Likewise.
23153         * modules/uniname/*: Likewise.
23154         * modules/uninorm/*: Likewise.
23155         * modules/unistdio/*: Likewise.
23156         * modules/unistr/*: Likewise.
23157         * modules/uniwbrk/*: Likewise.
23158         * modules/uniwidth/*: Likewise.
23160 2016-11-12  Bruno Haible  <bruno@clisp.org>
23162         Relicense some modules under LGPLv2+.
23163         Paul Eggert's approval is in
23164         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23165         Eric Blake's approval is in
23166         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23167         Ludovic Courtès's approval is in
23168         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23169         * modules/isnand-nolibm (License): Change to LGPLv2+.
23170         * modules/isnanf-nolibm (License): Likewise.
23171         * modules/isnanl-nolibm (License): Likewise.
23173 2016-11-19  Bruno Haible  <bruno@clisp.org>
23175         Relicense some modules under LGPLv2+.
23176         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23177         modules/vasnprintf.
23178         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23179         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23180         All other significant changes to the files in lib/ of these modules
23181         are from me.
23182         * modules/memcmp2 (License): Change to LGPLv2+.
23183         * modules/amemxfrm (License): Likewise.
23184         * modules/fpieee (License): Likewise.
23185         * modules/fpucw (License): Likewise.
23186         * modules/frexp-nolibm (License): Likewise.
23187         * modules/frexpl-nolibm (License): Likewise.
23188         * modules/printf-frexp (License): Likewise.
23189         * modules/printf-frexpl (License): Likewise.
23190         * modules/printf-safe (License): Likewise.
23191         * modules/signbit (License): Likewise.
23193 2016-11-17  Bruno Haible  <bruno@clisp.org>
23195         Enable Unicode decoder safety unconditionally.
23196         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23197         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23198         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23199         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23200         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23201         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23202         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23203         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23204         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23205         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23206         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23207         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23208         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23209         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23210         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23211         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23212         * lib/unistr/u32-next.c (u32_next): Likewise.
23213         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23214         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23215         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23216         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23217         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23218         CONFIG_UNICODE_SAFETY tests unconditionally.
23219         * tests/unistr/test-u32-mblen.c (main): Likewise.
23220         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23221         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23222         * tests/unistr/test-u32-next.c (main): Likewise.
23223         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23224         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23225         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23226         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23227         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23228         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23229         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23230         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23231         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23232         * lib/unistr/u16-check.c (u16_check): Update comment.
23233         * NEWS: Mention the changes that callers should be aware of.
23235 2016-11-19  Bruno Haible  <bruno@clisp.org>
23237         relocatable-prog-wrapper: Fix breakage on Cygwin.
23238         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23239         (Depends-on): Remove intprops.
23240         * lib/relocwrapper.c: Update dependency tree.
23241         (strerror): Undefine.
23242         * build-aux/install-reloc (func_create_wrapper): Do not compile
23243         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23245 2016-11-19  Bruno Haible  <bruno@clisp.org>
23247         strerror: Make it compile in C++ mode.
23248         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23250 2016-11-15  Pedro Alves  <palves@redhat.com>
23252         sys_time: add gnulib::timeval for C++
23253         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23254         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23255         timeval macro.
23257 2016-11-14  Pedro Alves  <palves@redhat.com>
23259         snippet/c++defs: fix real-floating arg functions in C++ mode
23260         Also, define isfinite, isinf, isnan, signbit in the gnulib
23261         namespace instead of in the global namespace.
23262         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23263         (_GL_END_NAMESPACE): New.
23264         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23265         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23266         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23267         instead of in the global namespace.
23268         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23269         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23270         of in the global namespace.
23272 2016-11-13  Jim Meyering  <meyering@fb.com>
23274         strftime: don't use __THROW
23275         Each use of __THROW would provoke this from gcc-7-to-be:
23277           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23278             on unit local functions [-Wattributes]
23279           static int iso_week_days (int, int) __THROW;
23280           ^~~~~~
23281         * lib/strftime.c (__THROW): Don't define.
23282         Remove each use of __THROW.
23283         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23284         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23286 2016-11-14  Paul Eggert  <eggert@union>
23288         obstack: port to gcc -fcheck-pointer-bounds
23289         Problem found by 'make check' failure on bleeding-edge coreutils
23290         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23291         6.2.0-5ubuntu12), configured via "./configure
23292         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23293         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23294         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23295         New macro, copied from fts_.h.
23296         (struct _obstack_chunk.contents): Use it.
23298 2016-11-14  Eric Blake  <eblake@redhat.com>
23300         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23301         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23302         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23304 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23306         strptime: fix compile error in recent change
23307         * lib/strptime.c (__strptime_internal): Fix ported code.
23309 2016-11-11  Bruno Haible  <bruno@clisp.org>
23311         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23312         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23313         (func_import): Extend determination of license_incompatibilities.
23314         (func_create_testdir): Extend table of license compatibility. Handle
23315         also the licenses GPLv3+, GPL, LGPLv3+.
23317 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23319         strftime: tune %q
23320         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23322         Merge strftime.c changes from glibc
23323         This incorporates:
23324         2007-10-16 [BZ #5184] Add tzset_called argument
23325         2008-06-13 [BZ #6612] pass reference to tzset_called around
23326         2009-10-30 Implement Burmese language locale for Myanmar
23327         2010-01-09 Add support for XPG7 testing
23328         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23329         2015-10-20 Convert miscellaneous function definitions to prototype style
23330         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23331         it anyway and this lessens the difference between gnulib and glibc.
23332         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23333         (__THROW): Define if standard headers do not.
23334         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23335         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23336         Declare with __THROW.
23337         (__strftime_internal): Rename from strftime_case_. Add arg for
23338         whether tzset is called.  All uses changed.  Call tzset at most
23339         once.  Allow %OC, for Burmese.
23340         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23341         Don't assume values are in range.
23343 2016-11-12  Eric Blake  <eblake@redhat.com>
23345         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23346         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23347         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23348         different value.
23350 2006-11-12  Pedro Alves  <palves@redhat.com>
23352         Fix gnulib C++ namespace support and std::frexp
23353         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23354         _GL_CXXALIASWARN.
23356 2006-11-12  Pedro Alves  <palves@redhat.com>
23358         GNULIB_NAMESPACE::func need not pull in rpl_func
23359         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23360         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23361         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23362         struct instead of a function pointer.
23364 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23366         manywarnings: fix -Wno-missing-field-initializers detection
23367         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23368         to be independent of -Wunused-variable.  I.E. ensure the latter
23369         warning doesn't occur so that detection of the former is accurate.
23371 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23373         strftime,strptime: support %q to represent the quarter
23374         * lib/strftime.c (strftime_case_): Add %q case.
23375         * lib/strptime.c (__strptime_internal): Likewise.
23376         * tests/test-strftime.c (quarter_test): A new test case.
23378 2016-11-03  Eric Blake  <eblake@redhat.com>
23380         bootstrap: Fix get_version() for AIX 5.3
23381         * build-aux/bootstrap (get_version): Factor out sed script, since
23382         indented comments choke AIX 5.3 sed.
23383         Reported-by: Michael Felt <aixtools@gmail.com>
23385 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23387         intprops: port to older XL C
23388         Problem reported by Alexander Samoilov in:
23389         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23390         http://savannah.nongnu.org/bugs/?49448
23391         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23392         Define to 1 only for XL C 12.1 or later, since this bug
23393         occurs in XL C for AIX 6.0 but not in 12.1.
23395 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23397         backupfile: initialize default suffix within the implementation
23398         * lib/backupfile.c (find_backup_file_name): Initialize the
23399         global variable here, to simplify usage, and to only call
23400         getenv() when needed.
23402 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23404         futimens: remove FIXME for old Linux kernels
23405         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23406         this in 2012" FIXME, like that for utimensat.
23408         utimensat: remove FIXME for old Linux kernels
23409         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23410         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23411         this in 2012" FIXME, by assuming the file system bug is absent
23412         unless demonstrated to be present.  We no longer need to worry
23413         about Linux kernel 2.6.32 when building with newer kernels.
23415 2016-10-16  Bruno Haible  <bruno@clisp.org>
23417         qsort_r: Fix macrology for platforms that lack the function.
23418         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
23419         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
23420         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
23421         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
23422         not exist.
23423         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
23424         the function exists.
23425         * modules/qsort_r: Add comments.
23427 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23429         sys_types: fix Texinfo typos
23430         * doc/glibc-functions/gnu_dev_major.texi:
23431         * doc/glibc-functions/gnu_dev_makedev.texi:
23432         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
23434 2016-10-26  John David Anglin  <dave.anglin@bell.net>
23436         getprogname: port to HP-UX
23437         See Bug#24805.
23438         * lib/getprogname.c (getprogname) [__hpux]: Port.
23439         * tests/test-getprogname.c (STREQ) [__hpux]:
23440         Special-case for HP-UX limitations on program name length.
23442 2016-10-20  Bruno Haible  <bruno@clisp.org>
23444         Update doc about target platforms.
23445         * doc/gnulib-intro.texi (Target Platforms): Update list.
23447 2016-10-15  Bruno Haible  <bruno@clisp.org>
23449         opendir, readdir, closedir: Relicense under LGPLv2+.
23450         * modules/opendir (License): Change to LGPLv2+.
23451         * modules/readdir (License): Likewise.
23452         * modules/closedir (License): Likewise.
23454 2016-10-16  Bruno Haible  <bruno@clisp.org>
23456         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23458         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23459         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23460         HAVE_DECL_STRERROR_R.
23462 2016-10-16  Bruno Haible  <bruno@clisp.org>
23464         Make the 'argp' module work without the 'error' module.
23465         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23467 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23469         diffseq: restore TOO_EXPENSIVE heuristic
23470         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23471         (Bug#24715).  The simplest solution is to restore the
23472         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23473         using a higher threshold to avoid Bug#16848 on smaller files.
23474         * lib/diffseq.h (struct context): Restore member too_expensive.
23475         (struct partition): Restore members lo_minimal, hi_minimal.
23476         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23477         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23478         1993 to make 'diff' run faster (but not as well) on large inputs,
23479         but use a threshold of 4096 instead of the old 256.
23480         * lib/fstrcmp.c (strcmp_bounded):
23481         * lib/git-merge-changelog.c (compute_differences):
23482         Adjust to diffseq.h changes.
23484 2016-10-22  Bruno Haible  <bruno@clisp.org>
23486         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23487         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23488         declaration yet, define ICONV_CONST to empty.
23490 2016-10-15  Bruno Haible  <bruno@clisp.org>
23492         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23493         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23494         module.
23496 2016-10-16  Bruno Haible  <bruno@clisp.org>
23498         system-quote tests: Avoid compiler warning on AIX.
23499         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23500         <stdio.h> does.
23502 2016-10-16  Bruno Haible  <bruno@clisp.org>
23504         Fix some "gcc -Wall" warnings.
23505         * tests/test-ffsl.c (main): Use variable x, not i.
23506         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23507         freopen.
23508         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23509         of sethostname.
23511 2016-10-16  Bruno Haible  <bruno@clisp.org>
23513         gnulib-tool: Make --create-testdir on all modules work again.
23514         * gnulib-tool (func_create_testdir): Don't include the
23515         non-recursive-gnulib-prefix-hack module.
23517 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23519         libunistring: change the maintainer to 'all'
23520         * modules/gen-uni-tables, modules/libunistring:
23521         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23522         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23523         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23524         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23525         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23526         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23527         * modules/uniwidth/*: Change the maintainer to 'all'.
23529 2016-10-16  Bruno Haible  <bruno@clisp.org>
23531         Simplify "configure: checking ..." messages.
23532         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23533         AC_MSG_NOTICE.
23534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23536 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23538         quotearg-tests: pacify gcc -Wall
23539         Problem reported by Bruno Haible in:
23540         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23541         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23542         * tests/test-quotearg.h: ... from here.
23544 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23546         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23547         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23548         Needed on Centos <= 4.
23550 2016-10-20  Jim Meyering  <meyering@fb.com>
23552         printf.m4: fix a bug in detecting printf %j support
23553         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23554         uintmax_t is defined in neither stdint.h nor inttypes.h.
23555         Before, this macro might have mistakenly set
23556         gl_cv_func_printf_sizes_c99=yes on such a system.
23557         Spotted by Zev Weiss.
23559 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23561         sched: substitute HAVE_SYS_CDEFS_H too
23562         Problem reported by Tom G. Christensen in:
23563         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23564         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23565         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23567 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23569         quotearg: never write beyond the returned length
23570         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23571         scan of the string when we initially encounter a single quote when
23572         shell quoting, so that if we then switch to a more concise quoting method
23573         we will not have written beyond that returned length.
23574         This is significant for sh-quote, which has separate routines
23575         to determine the length and do the actual quoting.
23576         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23577         now that we never write more than the returned length.
23579 2016-10-18  Bruno Haible  <bruno@clisp.org>
23581         getprogname tests: Avoid failure in packages that use libtool.
23582         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23583         Based on a patch by Jim Meyering.
23585 2016-10-16  Bruno Haible  <bruno@clisp.org>
23587         getprogname: Fix test failure on Cygwin. Comments.
23588         * lib/getprogname.h: Add comments.
23589         * lib/getprogname.c: Add comments. Fix #elif indentation.
23590         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23591         ".exe" suffix.
23593 2016-10-16  Bruno Haible  <bruno@clisp.org>
23595         Make sure the libunistring detection rejects older versions with a
23596         known bug.
23597         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23598         * modules/unistr/u16-strtok (configure.ac): Likewise.
23599         * modules/unistr/u32-strtok (configure.ac): Likewise.
23601 2016-10-18  Bruno Haible  <bruno@clisp.org>
23603         sh-quote, system-quote: revert regression of unit test.
23604         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23605         * tests/test-system-quote-main.c (check_one): Likewise.
23607 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23609         quotearg: fix stale tests
23610         * tests/test-quotearg.c [locale_results]: Add the missing str7
23611         entries to the expected results.
23612         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23613         don't write beyond the returned length, since that's no longer the
23614         case if we switch to a more concise quoting style.
23615         * tests/test-sh-quote.c (check_one): Likewise.
23616         (main): Adjust for the new more concise quoting style.
23617         Reported by Bruno Haible.
23619 2016-10-16  Jim Meyering  <meyering@fb.com>
23621         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23622         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23623         to "$1".  This macro is always invoked with $1 == lib.
23624         Spotted by Bruno Haible
23626 2016-10-16  Bruno Haible  <bruno@clisp.org>
23628         Fix a test crash.
23629         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23630         fails.
23632 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23634         test-limits-h: suppress -Woverlength-strings
23635         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23637 2016-10-15  Bruno Haible  <bruno@clisp.org>
23639         gettime, timespec, utimens: Relicense under LGPL.
23640         * modules/gettime (License): Change to LGPL.
23641         * modules/timespec (License): Likewise.
23642         * modules/utimens (License): Likewise.
23644 2016-10-14  Bruno Haible  <bruno@clisp.org>
23645             Pádraig Brady  <P@draigBrady.com>
23647         canonicalize-lgpl: Support the case path_max > INT_MAX.
23648         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23649         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23651 2016-10-13  Jim Meyering  <meyering@fb.com>
23653         getprogname: IBM z/OS: avoid NULL-dereference
23654         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23655         upon strdup failure.
23657 2016-10-12  Jim Meyering  <meyering@fb.com>
23659         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23660         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23661         and an abbreviated diagnostic rather than verify with the full one,
23662         because the full-length strings would evoke warnings from gcc with
23663         -Woverlength-strings.
23665 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23667         stdint: port SIZE_MAX to glibc s390
23668         Problem reported by Eric Blake in:
23669         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23670         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23671         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23672         correct type, if possible.
23674 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23676         getprogname: port to IBM z/OS
23677         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23679 2016-10-11  Jim Meyering  <meyering@fb.com>
23681         maint: remove stray space after "." in AC_DEFINE comment.
23682         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23683         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23685 2016-10-05  Jim Meyering  <meyering@fb.com>
23687         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23688         * lib/long-options.c (parse_long_options): Add a break statement
23689         to avoid this new warning/failure:
23690         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23691           --create-testdir --dir=/t/x --with-tests --test long-options
23692         ../../gllib/long-options.c: In function 'parse_long_options':
23693         ../../gllib/long-options.c:66:12: error: this statement may \
23694           fall through [-Werror=implicit-fallthrough]
23695                    (*usage_func) (EXIT_SUCCESS);
23696                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23698 2016-10-05  Jim Meyering  <meyering@fb.com>
23700         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23701         Testing this module would fail when using GCC 7 like this:
23702         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23703           --dir=/tmp/x --with-tests --test utimecmp
23704         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23705         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23706           [-Werror=bool-operation]
23707                          time_t s = src_s & ~ (res == 2 * BILLION);
23708                                             ^
23709         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23710           [-Werror=bool-operation]
23711                src_s &= ~ (res == 2 * BILLION);
23712                         ^
23713         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23714         Instead, make it explicit that we intend to apply it to 0 or 1.
23716 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23718         dfa: save memory for states
23719         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23720         states if dfa has a lot of caches.
23722 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23724         wchar, wctype-h: fix for MinGW 3.22.2
23725         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23726         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23727         when included from <string.h>.
23728         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23729         convention for MinGW 3.22.2, to solve issues with their
23730         wctype.h when included from <ctype.h>.
23732 2016-10-05  Jim Meyering  <meyering@fb.com>
23734         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23735         * lib/long-options.c (parse_long_options): Add a break statement
23736         to avoid this new warning/failure:
23737         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23738           --create-testdir --dir=/t/x --with-tests --test long-options
23739         ../../gllib/long-options.c: In function ‘parse_long_options’:
23740         ../../gllib/long-options.c:66:12: error: this statement may \
23741           fall through [-Werror=implicit-fallthrough]
23742                    (*usage_func) (EXIT_SUCCESS);
23743                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23745         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23746         Testing this module would fail when using GCC 7 like this:
23747         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23748           --dir=/tmp/x --with-tests --test utimecmp
23749         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23750         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23751           [-Werror=bool-operation]
23752                          time_t s = src_s & ~ (res == 2 * BILLION);
23753                                             ^
23754         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23755           [-Werror=bool-operation]
23756                src_s &= ~ (res == 2 * BILLION);
23757                         ^
23758         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23759         Instead, make it explicit that we intend to apply it to 0 or 1.
23761 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23763         quotearg: minimize shell quoting using double quotes
23764         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23765         quote in encountered then use double quotes (c style quoting)
23766         when possible, as it simplifies the quoting.
23767         * tests/test-quotearg-simple.c: Add test cases.
23768         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23769         for the fact we now may write beyond the returned length.
23771 2016-10-02  Jim Meyering  <meyering@fb.com>
23773         vasnprintf.c: avoid spurious warning from GCC 7
23774         The presence of cpp directives renders this "FALLTHROUGH" comment
23775         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23776         from GCC 7 built from git on 2016-10-02.
23777         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23778         directives, so that it takes effect once again.  This is clearly
23779         not a proper change, and I will revert it once this bug is fixed:
23780         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23782 2016-10-01  Jim Meyering  <meyering@fb.com>
23784         getprogname: correct the test for a __progname variable
23785         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23786         and AC_LINK_IFELSE to check for a global __progname.  If found,
23787         define HAVE_VAR___PROGNAME.
23788         * lib/getprogname.c (getprogname): Reflect the new name of the
23789         feature- checked preprocessor symbol:
23790         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23792 2016-09-28  Jim Meyering  <meyering@fb.com>
23794         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23795         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23796         fall-through case with a /* fallthrough */ comment.
23798         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23799         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23800         /* fallthrough */ comment.
23802         getprogname: avoid __progname vs program_invocation_short_name pitfall
23803         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23804         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23805         not with Fedora 24's glibc-2.23.1-10.
23806         * lib/getprogname.c (__progname): Move this declaration down...
23807         (getprogname): ... into the #elif block where used, and make it
23808         explicitly "extern".
23810         getprogname: port to OpenBSD 5.1
23811         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23812         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23813         * modules/getprogname (configure.ac): Move most of this code...
23814         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23815         increment serial number, and add a test for __progname.
23816         https://bugs.gnu.org/24562
23817         Reported by Nelson H. F. Beebe.
23819 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23821         sched: port to GCC 6.2.1 on macOS Sierra
23822         Problem reported by Denis Davydov in:
23823         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23824         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23825         Include <sys/cdefs.h> before <sched.h>.
23826         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23827         so that we needn’t worry about the sched.h include bug here.
23828         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23829         and include it before <sched.h> if it exists, when
23830         checking for <sched.h>.
23832         tests/init.sh: port Alpine fix to AIX 7.1
23833         * tests/init.sh (compare_): When attempting to use diff -U3,
23834         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23835         diff -u not outputting a space after leading '+', as the users
23836         of 'compare' should not be that picky about its output format.
23837         In the AIX 7.1 case, return with diff exit status (or with 2 if
23838         trouble), instead of some random nonzero exit status.
23839         * tests/test-init.sh (test_compare): Remove space after leading
23840         '+', so that AIX 7.1 'diff' passes the test.
23842 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23844         nl_langinfo: pacify GCC
23845         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23846         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23848         stdint: also set GL_GENERATE_LIMITS_H
23849         Problem reported by Jim Meyering in:
23850         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23851         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23853         limits-h, stdint: Don't assume extensions, fix typo
23854         * m4/limits-h.m4 (gl_LIMITS_H):
23855         * m4/stdint.m4 (gl_STDINT_H):
23856         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23857         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23858         reported by Jim Meyering in:
23859         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23861 2016-09-21  Jim Meyering  <meyering@fb.com>
23863         getprogname: port to AIX
23864         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23865         and strdup to obtain a short program name string.  Using code from
23866         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23867         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23868         Assaf Gordon reported that this new file would fail to compile on
23869         AIX-7.1 32bit.
23871 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23873         extensions: fix typo in comment
23874         * m4/extensions.m4: Sync from Autoconf master.
23876         stdint: support new _WIDTH macros
23877         * doc/posix-headers/stdint.texi: Document this.
23878         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23879         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23880         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23881         * modules/stdint (Depends-on): Add limits-h.
23882         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23883         * modules/stdint-tests (Depends-on): Add extensions, so that
23884         INTMAX_MAX etc. are defined.
23885         * tests/test-stdint.c: Verify the new macros.
23887         limits-h: new module
23888         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23889         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23890         * doc/posix-headers/limits.texi: Document new module.
23891         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23892         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23894         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23895         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23896         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23897         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23899 2016-09-15  Eric Blake  <eblake@redhat.com>
23901         sys_types: avoid glibc 2.25 warnings about major()
23902         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23903         older autoconf.
23904         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23905         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23906         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23907         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23909         mountlist: include sysmacros.h for glibc
23910         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23911         AC_HEADER_MAJOR.
23912         * lib/mountlist.c (includes): Use correct headers.
23914 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23916         extensions: port to more ISO C TSes
23917         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23918         master, to add support for more recent ISO C TRs and TSes.
23920 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23922         intprops: new macro TYPE_WIDTH
23923         * lib/intprops.h (TYPE_WIDTH): New macro.
23924         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23925         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23926         * lib/parse-datetime.y (parse_datetime2):
23927         Use it.
23929         extensions: port to recent ISO C TRs
23930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23931         Sync from Autoconf master, to add support for recent ISO C TRs.
23932         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23933         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23934         the MinGW option is not an extension.
23936 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23938         dfa: port to Solaris 9
23939         Problems reported by Tom G. Christensen in:
23940         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23941         * modules/dfa (Depends-on): Add isblank.
23942         * modules/dfa-tests (dfa_match_aux_LDADD):
23943         Rename from test_stat_LDADD, to fix typo.
23944         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23946 2016-09-10  Jim Meyering  <meyering@fb.com>
23948         strverscmp: avoid link failure on OS X
23949         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23950         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23952 2016-08-16  Jim Meyering  <meyering@fb.com>
23954         dfa: new module, importing grep's DFA matcher
23955         Since grep's DFA matcher is now being used by two gnulib-enabled
23956         projects, grep and sed, it makes sense to version-control its
23957         sources and unit tests in one place: here.
23958         * modules/dfa: New module.
23959         * modules/dfa-tests: New file.
23960         * lib/dfa.c: New file, from grep.
23961         * lib/dfa.h: Likewise.
23962         * lib/localeinfo.c: Likewise.
23963         * lib/localeinfo.h: Likewise.
23964         * tests/dfa-match-aux.c: Likewise.
23965         * tests/dfa-invalid-char-class.sh: Likewise.
23966         * tests/dfa-match.sh: Likewise, with minor changes.
23967         * MODULES.html.sh (Misc): Add "dfa" to this list.
23969 2016-09-09  Jim Meyering  <meyering@fb.com>
23971         getprogname-tests: don't depend on assert-h
23972         * modules/getprogname-tests (Depends-on): Remove assert-h.
23973         It was not needed, and in fact would cause build failure for
23974         coreutils on some systems.  Reported by Assaf Gordon in https:
23975         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23977 2016-09-07  Jim Meyering  <meyering@fb.com>
23979         getprogname-tests: work also when EXEEXT is nonempty
23980         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23981         * tests/test-getprogname.c (main): Use it.
23982         Suggested by Gisle Vanem.
23984 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23986         getprogname: fix errors in previous change
23987         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23988         s/program_invocation_name/base/
23989         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23991 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23993         parse-datetime: restrict debug output to input string
23994         * lib/parse-datetime.y (parse_datetime2): If we parse
23995         all of the input but determine it's invalid, ensure
23996         we don't output the now invalid input pointer.
23997         This issue was seen with `date -d 'now +1'`.
23999 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24001         flexmember: new macro FLEXALIGNOF
24002         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24003         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24004         this macro.  Update comments.
24006 2016-09-07  Jim Meyering  <meyering@fb.com>
24008         getprogname: port to systems with __argv (mingw, msvc)
24009         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24010         last_component: more general than open coding it with hard-coded "/".
24011         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24012         * modules/getprogname (Depends-on): Add dirname-lgpl.
24013         (configure.ac): Check for __argv in <stdlib.h>.
24014         * modules/getprogname-tests: New file.
24015         * tests/test-getprogname.c: New file.
24016         Suggested by Gisle Vanem in
24017         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24019 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24021         flexmember: port better to GCC + valgrind
24022         With a char[] flexible array member in a struct with nontrivial
24023         alignment, GCC-generated code can access past the end of the
24024         array, because GCC assumes there are padding bytes to get the
24025         struct aligned.  So the common idiom of malloc (offsetof (struct
24026         s, m), n) does not properly allocate an n-byte trailing member, as
24027         malloc’s argument should be the next multiple of alignof (struct s).
24028         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24029         Although C11 apparently permits this GCC optimization (i.e., there
24030         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24031         See the thread containing:
24032         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24033         * lib/flexmember.h: New file.
24034         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24035         * lib/localename.c, lib/time_rz.c:
24036         Include flexmember.h.
24037         * lib/fnmatch_loop.c (struct patternlist):
24038         * lib/localename.c (struct hash_node):
24039         Use FLEXIBLE_ARRAY_MEMBER.
24040         * lib/fnmatch_loop.c (EXT):
24041         * lib/fts.c (fts_alloc):
24042         * lib/glob.c (glob_in_dir):
24043         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24044         * lib/localename.c (gl_lock_define_initialized):
24045         * lib/time_rz.c (tzalloc):
24046         Use FLEXSIZEOF instead of offsetof.
24047         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24048         Check that the size of the struct can be taken.
24049         * modules/flexmember (Files): Add lib/flexmember.h.
24050         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24051         Add flexmember.
24053 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24055         getprogname: port to Solaris 10
24056         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24057         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24058         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24060         stdalign: correct mistake in alignof doc
24061         Problem reported by Joseph Myers in:
24062         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24063         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24064         alignof(S) where S is a structure containing a flexible array
24065         member.  The Gnulib substitute does not support this, but C11 does.
24067 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24069         main.mk: remove sc_program_name, since there is no more need to
24070         use set_program_name in tools (getprogname is enough for most
24071         of the cases).
24072         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24073         * top/maint.mk (sc_program_name): Remove.
24075 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24077         Port tests away from progname, since modules that need the
24078         program name already depend on getprogname.
24079         * modules/acl-tests (Depends-on): Remove progname.
24080         * modules/argmatch (Depends-on): Likewise.
24081         * modules/argmatch-tests (Depends-on): Likewise.
24082         * modules/argp-tests (Depends-on): Likewise.
24083         * modules/argp-version-etc-tests (Depends-on): Likewise.
24084         * modules/array-list-tests (Depends-on): Likewise.
24085         * modules/array-oset-tests (Depends-on): Likewise.
24086         * modules/avltree-list-tests (Depends-on): Likewise.
24087         * modules/avltree-oset-tests (Depends-on): Likewise.
24088         * modules/avltreehash-list-tests (Depends-on): Likewise.
24089         * modules/carray-list-tests (Depends-on): Likewise.
24090         * modules/copy-file-tests (Depends-on): Likewise.
24091         * modules/exclude-tests (Depends-on): Likewise.
24092         * modules/fchownat-tests (Depends-on): Likewise.
24093         * modules/fdopendir-tests (Depends-on): Likewise.
24094         * modules/filenamecat-tests (Depends-on): Likewise.
24095         * modules/fstatat-tests (Depends-on): Likewise.
24096         * modules/fstrcmp-tests (Depends-on): Likewise.
24097         * modules/linked-list-tests (Depends-on): Likewise.
24098         * modules/linkedhash-list-tests (Depends-on): Likewise.
24099         * modules/mkdirat-tests (Depends-on): Likewise.
24100         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24101         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24102         * modules/obstack-printf-tests (Depends-on): Likewise.
24103         * modules/openat-tests (Depends-on): Likewise.
24104         * modules/parse-datetime-tests (Depends-on): Likewise.
24105         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24106         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24107         * modules/quotearg-simple-tests (Depends-on): Likewise.
24108         * modules/quotearg-tests (Depends-on): Likewise.
24109         * modules/rbtree-list-tests (Depends-on): Likewise.
24110         * modules/rbtree-oset-tests (Depends-on): Likewise.
24111         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24112         * modules/spawn-pipe-tests (Depends-on): Likewise.
24113         * modules/system-quote-tests (Depends-on): Likewise.
24114         * modules/uniname/uniname-tests (Depends-on): Likewise.
24115         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24116         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24117         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24118         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24119         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24120         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24121         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24122         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24123         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24124         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24125         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24126         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24127         * modules/unlinkat-tests (Depends-on): Likewise.
24128         * modules/version-etc-tests (Depends-on): Likewise.
24129         * modules/xalloc-die-tests (Depends-on): Likewise.
24130         * modules/xmemdup0-tests (Depends-on): Likewise.
24131         * modules/xprintf-posix-tests (Depends-on): Likewise.
24132         * modules/xvasprintf-tests (Depends-on): Likewise.
24133         * tests/test-argmatch.c: Do not include progname.h.
24134         (main) Stop calling set_program_name.
24135         * tests/test-argp-version-etc.c: Likewise.
24136         * tests/test-argp.c: Likewise.
24137         * tests/test-argv-iter.c: Likewise.
24138         * tests/test-array_list.c: Likewise.
24139         * tests/test-array_oset.c: Likewise.
24140         * tests/test-avltree_list.c: Likewise.
24141         * tests/test-avltree_oset.c: Likewise.
24142         * tests/test-avltreehash_list.c: Likewise.
24143         * tests/test-carray_list.c: Likewise.
24144         * tests/test-copy-acl.c: Likewise.
24145         * tests/test-copy-file.c: Likewise.
24146         * tests/test-exclude.c: Likewise.
24147         * tests/test-fchownat.c: Likewise.
24148         * tests/test-fdopendir.c: Likewise.
24149         * tests/test-filenamecat.c: Likewise.
24150         * tests/test-fstatat.c: Likewise.
24151         * tests/test-fstrcmp.c: Likewise.
24152         * tests/test-linked_list.c: Likewise.
24153         * tests/test-linkedhash_list.c: Likewise.
24154         * tests/test-mkdirat.c: Likewise.
24155         * tests/test-nonblocking-pipe-main.c: Likewise.
24156         * tests/test-nonblocking-socket-main.c: Likewise.
24157         * tests/test-obstack-printf.c: Likewise.
24158         * tests/test-openat.c: Likewise.
24159         * tests/test-parse-datetime.c: Likewise.
24160         * tests/test-pipe-filter-gi1.c: Likewise.
24161         * tests/test-pipe-filter-gi2-main.c: Likewise.
24162         * tests/test-pipe-filter-ii1.c: Likewise.
24163         * tests/test-pipe-filter-ii2-main.c: Likewise.
24164         * tests/test-quotearg-simple.c: Likewise.
24165         * tests/test-quotearg.c: Likewise.
24166         * tests/test-rbtree_list.c: Likewise.
24167         * tests/test-rbtree_oset.c: Likewise.
24168         * tests/test-rbtreehash_list.c: Likewise.
24169         * tests/test-sameacls.c: Likewise.
24170         * tests/test-set-mode-acl.c: Likewise.
24171         * tests/test-spawn-pipe-main.c: Likewise.
24172         * tests/test-system-quote-main.c: Likewise.
24173         * tests/test-unlinkat.c: Likewise.
24174         * tests/test-version-etc.c: Likewise.
24175         * tests/test-xalloc-die.c: Likewise.
24176         * tests/test-xfprintf-posix.c: Likewise.
24177         * tests/test-xmemdup0.c: Likewise.
24178         * tests/test-xprintf-posix.c: Likewise.
24179         * tests/test-xvasprintf.c: Likewise.
24180         * tests/uniname/test-uninames.c: Likewise.
24181         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24182         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24183         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24184         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24185         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24186         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24187         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24188         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24189         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24190         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24191         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24192         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24193         * tests/test-c-stack.c: (program_name): Do not define.
24194         (main): Do not set program_name.
24195         * tests/test-closein.c: Likewise.
24196         * tests/test-xstrtol.c: Likewise.
24197         * tests/test-yesno.c: Likewise.
24199 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24201         Port modules to use getprogname explicitly, instead of requiring
24202         progname to be used (or program_name to be provided).
24203         * lib/argmatch.c: Do not include progname.h.
24204         [TEST] (program_name): Do not define.
24205         [TEST] (main): Call getprogname instead of using program_name.
24206         * lib/c-stack.c: Do not include progname.h.
24207         (program_name): Do not define.
24208         (die): Call getprogname instead of using program_name.
24209         * lib/chdir-long.c: Do not include progname.h.
24210         [TEST_CHDIR] (main): Do not set program_name.
24211         * lib/error.c [!_LIBC]: Include progname.h.
24212         [!_LIBC] (program_name): Define using getprogname.
24213         * lib/euidaccess.c: Do not include progname.h.
24214         [TEST] (main): Do not set program_name.
24215         * lib/git-merge-changelog.c: Include getprogname.h instead of
24216         progname.h.
24217         (usage): Call getprogname instead of using program_name.
24218         (main): Likewise.  Stop calling set_program_name.
24219         * lib/group-member.c: Do not include progname.h.
24220         [TEST] (main): Do not set program_name.
24221         * modules/argmatch (Depends-on): Add getprogname.
24222         * modules/c-stack (Depends-on): Likewise.
24223         * modules/error (Depends-on): Likewise.
24224         * modules/git-merge-changelog (Depends-on): Likewise.
24225         Also remove progname.
24227 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24229         * NEWS: Document the deprecation of the 'progname' module.
24231 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24233         getprogname: new module
24234         This provides a LGPL module for getting the name of the current
24235         program, using the same API found on *BSD systems.
24236         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24237         * modules/getprogname: New files.
24238         * MODULES.html.sh (Misc): Add getprogname.
24240 2016-09-02  Jim Meyering  <meyering@fb.com>
24242         manywarnings: add -fno-common
24243         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24244         to the list.  Quoting the manual, "Compiling with -fno-common is
24245         useful on targets for which it provides better performance, or if
24246         you wish to verify that the program will work on other systems that
24247         always treat uninitialized variable declarations this way [putting
24248         it in the data section]."  If diffutils had been using this sooner,
24249         it would have prevented this duplicate declaration issue:
24250         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24252 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24254         parse-datetime: Fix typo.
24255         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24257 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24259         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24260         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24261         GCC 5 and 6 that have __builtin_sub_overflow but not
24262         __builtin_sub_overflow_p.  With the recent changes, these
24263         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24264         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24265         since the former needs just one runtime comparison whereas the
24266         latter needs two.
24268         strverscmp: sync with glibc
24269         Although this doesn't exactly synchronize with glibc
24270         byte-for-byte, it makes the code behave the same as glibc.
24271         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24272         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24273         difference shouldn't matter in practical use.  All uses changed
24274         back to isdigit.
24275         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24276         (next_state): Now unsigned char array; redo elements.
24277         (result_type): Now signed char array; redo elements.
24278         (__strverscmp): Fix glibc bug 9913 by using new states.
24279         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24281 2016-08-29  Jim Meyering  <meyering@fb.com>
24283         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24284         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24285         similarly to how it was done to intprops.h.
24287 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24289         intprops.h: port recent changes to GCC 6.2.0
24290         * lib/intprops.h (__has_builtin): Move earlier.
24291         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24292         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24293         the last argument can be null.  All uses changed.
24294         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24295         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24296         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24297         and it's not clear which GCC versions it works for.
24298         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24299         its definiens.
24301         intprops.h: use __typeof__ with GCC 7
24302         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24303         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24304         This avoids computing the expression's value (which might overflow!).
24306 2016-08-29  Jim Meyering  <meyering@fb.com>
24308         intprops.h, xalloc-oversized.h: work with gcc 7
24309         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24310         __builtin_mul_overflow each accept a NULL pointer as the third
24311         argument.  However in gcc 7, that is no longer accepted.
24312         Instead, one must use the "_p"-suffixed names, with which, the
24313         third parameter is no longer a pointer.
24314         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24315         the definition: not true for gcc 7 and subsequent.
24316         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24317         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24318         Provide new definitions for gcc 7 and subsequent.
24319         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24320         that works with gcc-7.
24322         intprops.h: fix missing-backslash problems
24323         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24324         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24326 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24328         intprops: fix paren typo on old platforms
24329         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24330         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24331         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24332         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24333         && !defined LLONG_MAX]:
24334         Remove stray paren.
24336         intprops: port to OpenVMS
24337         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24338         * doc/posix-headers/limits.texi: Document the problem.
24339         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24340         Define if not already defined.
24342 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24344         parse-datetime: improve debug implementation
24345         Follow-up to commit 12ad79069 ("add optional debug printing").
24346         Improve parse-datetime's debug implementation: remove macros,
24347         replace global debug flag variable with a function parameter,
24348         use nstrftime for formatting.
24349         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24350         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24351         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24352         debug flag. Existing interface 'parse_datetime' left unmodified.
24353         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24354         (struct parser_control): add 'parse_datetime_debug' member variable.
24355         (parse_datetime): Call new function 'parse_datetime2' without debug.
24356         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24357         pc.parse_datetime_debug variable as needed.
24358         (to_year): Accept new flags parameter, instead of using global variable.
24359         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24360         use struct 'debug' variable instead of global variable.
24361         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24362         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24363         correspnding functions directly instead of using macros.
24364         * modules/parse-datetime: Add gnulib's strftime module.
24366 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24368         c-strcase-tests: port to EBCDIC
24369         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24370         which assume ASCII encoding semantics to run only in ASCII
24371         mode, as they fail in EBCDIC.
24373         sigpipe-tests: fix typo
24374         * tests/test-sigpipe.sh: C, not B.
24376 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24378         canonicalize-lgpl: fix errno after malloca fails
24379         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24380         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24381         * lib/canonicalize-lgpl.c (__realpath):
24382         Don't assume malloca sets errno on failure.
24384 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24386         strtod: port errno handling to z/OS
24387         * lib/strtod.c (strtod): Save and restore errno more reliably.
24389 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24391         strtod: port to z/OS
24392         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24393         implementation.
24395 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24397         strtod: port to z/OS
24398         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24399         implementation.
24401         regex, string: rename to avoid '__string'
24402         * lib/regex.h, lib/string.in.h: Do not use the identifier
24403         '__string', as it is effectively reserved by string.h on z/OS.
24405         c-strcase-tests, wcwidth-tests: depend on c-ctype
24406         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24407         Add c-ctype.
24409 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24411         thread: port to z/OS
24412         * lib/glthread/thread.c, lib/glthread/thread.h:
24413         Rudimentary gl_thread support for z/OS.
24415         maint: port tests to z/OS errno behavior
24416         * tests/test-nonblocking-reader.h:
24417         * tests/test-nonblocking-writer.h:
24418         Accommodate z/OS errno code preferences. (I believe this should
24419         still be within spec; IBM is good at following the letter if not
24420         the spirit of such things.)
24422         maint: preprocessor changes to support z/OS
24423         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
24424         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
24425         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
24426         * tests/test-nonblocking-pipe.h:
24428         fclose, strstr-simple, wchar: port to z/OS
24429         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
24430         Changes to the Autoconf M4 code to support z/OS.  Note that
24431         fclose() is broken in a different way on z/OS than it is on other
24432         systems, thus the special-case in fclose.m4.
24434         iconv_open-utf-tests, iconv-tests: port to EBCDIC
24435         * tests/test-iconv-utf.c, tests/test-iconv.c:
24436         Added appropriately conditional #pragmas so that the test strings
24437         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24438         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24439         addressed in a more portable way by simply rewriting all the ASCII
24440         literal characters as octal escapes, but then you would lose the
24441         partial readability that the strings have now. Also, iconv_open()
24442         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24444         c-strcase-tests, wcwidth-tests: port to EBCDIC
24445         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24446         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24447         * tests/test-wcwidth.c: Likewise.
24449 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24451         stdbool: don't require _Bool for C++
24452         Problem reported by David Seifert in:
24453         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24454         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24455         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24456         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24457         stricter about checking that bool and _Bool are compatible in C.
24459 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24461         getdelim: remove dependency on realloc-posix
24462         * lib/canonicalize-lgpl.c (alloc_failed)
24463         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24464         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24465         Use __set_errno where needed, for consistency.
24466         * lib/getdelim.c (alloc_failed): New function.
24467         (getdelim): Use it.
24469 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24471         parse-datetime: add optional debug printing
24472         Print parsing information, warnings, and errors to stderr.
24473         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24474         * lib/parse-datetime.y:
24475         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24476         (PROGRESS*): Same as DEBUG, for progress reporting.
24477         (dbg_printf): Print message to stderr, with 'date' prefix.
24478         (struct parser_control): Add 'debug_*_seen' variables.
24479         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24480         (debug_print_current_time, debug_print_relateive_time): Prints the
24481         current/relative date/time value of parser_control.
24482         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24483         (to_year): Warn about 2-digit year parsing.
24484         (yylex):   Warn about unrecognized words.
24485         (get_effective_timezone): Returns current timezone in minutes.
24486         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24487         clearly and unambigiously as possible.
24488         (debug_mktime_not_ok): Print detailed information about failed
24489         date/time values.
24490         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24491         PROGRESS messages for status messages.
24492         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24494 2016-08-06  Jim Meyering  <meyering@fb.com>
24496         tests/init.sh: exclude dash with bad "local" semantics
24497         * tests/init.sh (gl_shell_test_script_): Add a function to
24498         eliminate a shell like "dash" (unlike bash, zsh) that has
24499         surprising/risky "local var='...'" semantics.  Inspired by
24500         the problem and discussion in https://bugs.gnu.org/24116#11.
24502 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24504         maint.mk: expand the prohibit_doubled_word regex
24505         This check has a static list of words that are checked for
24506         repetitions.  Expand it before running the perl script to
24507         avoid using expensive captures.  This decreases the cost
24508         for libvirt from 1.66s to 0.66s.
24509         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24510         (sc_prohibit_doubled_word): Use it.
24512 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24514         useless-if-before-free: skip non-matching lines early
24515         * build-aux/useless-if-before-free: First match each line with the
24516         simple/quick /\bif\b/ and reject if there is no match. This often
24517         saves the cost of the much more involved regular expression.
24518         For libvirt, this decreases the cost from 1.44s to 1.02s.
24520 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24522         maint.mk: speed up sc_po_check
24523         sc_po_check would skip files based on their names, or on the
24524         existence of files with derived names. Rewrite it to use perl
24525         instead of shell to make the check faster.
24526         * top/maint.mk (perl_translatable_files_list_): Define.
24527         (sc_po_check): Use it.
24529 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24531         maint.mk: speed up require_config_h_first
24532         Instead of spawning three processes per file,
24533         rewrite the check in perl and run it once for all the files.
24534         * top/maint.mk (perl_config_h_first_): Define.
24535         (sc_require_config_h_first): Use it in place of shell code.
24537 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24539         maint.mk: speed up sc_po_check
24540         sc_po_check would skip files based on their names, or on the
24541         existence of files with derived names. Rewrite it to use perl
24542         instead of shell to make the check faster.
24543         * top/maint.mk (perl_translatable_files_list_): Define.
24544         (sc_po_check): Use it.
24546 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24548         obstack: pacify GCC 6 with -Wnull-dereference
24549         Problem reported by Assaf Gordon in:
24550         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24551         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24552         Declare with __attribute_noreturn__.
24553         * lib/obstack.h (__attribute_noreturn__): New macro.
24555 2016-07-13  Eric Blake  <eblake@redhat.com>
24557         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24558         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24559         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24561 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24563         doc: mention glibc SSIZE_MAX buglet
24564         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24566 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24568         printf-posix: Fix mingw build
24569         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24570         expression for detecting C symbol prefixes but forgot to qoute square
24571         brackets in the command line arguments for grep.  That way when
24572         building with mingw the condition was false although it ought to be
24573         true instead.  In particular scenarios this led to the following
24574         compile error:
24576             Cannot export rpl_printf: symbol not found
24577             Cannot export rpl_scanf: symbol not found
24578             collect2: error: ld returned 1 exit status
24580         Fix this by properly quoting square brackets.
24582 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24584         mktime: call tzset as per POSIX
24585         Problem reported by Ludovic Courtès in:
24586         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24587         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24588         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24590 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24592         fts: handle readdir() errors
24593         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24594         but also upon error when it will also set errno.  Therefore
24595         flag the error case from readdir().  We treat the case where
24596         no items are read the same as if the dir can't be accessed,
24597         i.e. by setting fts_errno to FTS_DNR.
24599 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24601         intprops: port better to GCC 7
24602         GCC 7 __builtin_add_overflow supports a new usage form, where the
24603         last argument is a null pointer, and which merely returns 1 if an
24604         overflow would occur.  This is a constant expression if all
24605         arguments are constants, and should generate faster code when code
24606         needs to be generated.
24607         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24608         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24609         Use builtin operations if available.
24610         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24611         operations are available, as it's almost surely faster.
24613 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24615         intprops-test: port to GCC 6
24616         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24617         since the bug is not fixed in GCC 6.1.
24619 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24621         xalloc-oversized: port to GCC 7; fewer warnings
24622         GCC 7 will have a better way to deal with integer overflow.
24623         Plus, fix a warnings problem reported by Tim Ruehsen in:
24624         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24625         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24626         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24627         For GCC 5, use __xalloc_oversized if both args are constants,
24628         or if pedantic.
24630 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24632         regex: port to Sun C
24633         Reported by Daiki Ueno.
24634         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24635         __restrict, in prototype.  This fixes a problem I introduced in
24636         the 2016-02-19 merge from glibc.
24638 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24640         stdbool: Restore __bool_true_false_are_defined check
24641         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24642         __bool_true_false_are_defined is still defined, even with C++11.
24644 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24646         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24647         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24649 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24651         Use GCC_LINT, not lint
24652         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24653         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24654         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24655         Document problem with lint and _Noreturn.
24656         * lib/diffseq.h (IF_LINT, IF_LINT2):
24657         * lib/fts.c (sccsid):
24658         * lib/getndelim2.c (IF_LINT):
24659         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24660         (gl_linked_iterator_from_to):
24661         * lib/gl_anytree_list2.h (gl_tree_iterator)
24662         (gl_tree_iterator_from_to):
24663         * lib/gl_anytree_oset.h (gl_tree_iterator):
24664         * lib/gl_array_list.c (gl_array_iterator)
24665         (gl_array_iterator_from_to):
24666         * lib/gl_array_oset.c (gl_array_iterator):
24667         * lib/gl_carray_list.c (gl_carray_iterator)
24668         (gl_carray_iterator_from_to):
24669         * lib/idcache.c:
24670         * lib/inet_ntop.c (IF_LINT):
24671         * lib/regcomp.c (build_charclass_op, create_tree):
24672         * lib/regex_internal.c (re_acquire_state)
24673         (re_acquire_state_context):
24674         * lib/trigl.c (rcsid):
24675         * lib/trim.c (IF_LINT):
24676         * lib/vasnprintf.c (IF_LINT):
24677         * lib/verify.h (assume):
24678         Treat GCC_LINT like lint.
24680 2016-05-29  Bruno Haible  <bruno@clisp.org>
24682         secure_getenv: Port to many more platforms.
24683         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24684         functions.
24685         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24686         for non-BSD Unix platforms and for native Windows.
24687         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24688         Prompted by a request from Nikos Mavrogiannopoulos.
24690 2016-05-27  Eric Blake  <eblake@redhat.com>
24692         canonicalize: Fix broken probe for realpath.
24693         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24694         in logic introduced in 54615b95.
24696 2016-05-26  Eric Blake  <eblake@redhat.com>
24698         unsetenv: relax to LGPLv2+
24699         * modules/unsetenv (License): Match setenv license.
24701 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24703         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24704         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24705         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24706         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24707         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24708         (generate_html, generate_info, generate_tex, outdir)
24709         (source_extra, split, srcfile, texarg): Move above 'version'.
24710         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24712 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24714         manywarnings: update for GCC 6.1
24715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24716         Add GCC 6.1 options that apply to C.
24717         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24718         do not apply to C, are obsolescent, etc.
24720 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24722         glob: size_t overflow checks
24723         * lib/glob.c (__has_builtin): New macro.
24724         (size_add_wrapv, glob_use_alloca): New static functions.
24725         (glob, glob_in_dir): Check for size_t overflow in several places,
24726         and fix some size_t checks that were not quite right.
24728         glob: don't assume INT_MAX < SIZE_MAX
24729         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24730         latter is not portable to (probably theoretical) hosts where
24731         SIZE_MAX <= INT_MAX.
24733 2016-05-09  Bruno Haible  <bruno@clisp.org>
24735         Fix undefined behaviour in gettext.h.
24736         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24737         pointer's value after the storage it points to has been freed.
24738         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24739         Spotted by Coverity.
24741 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24743         git-version-gen: avoid undefined shift
24744         Problem reported by Mosè Giordano in:
24745         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24746         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24747         with --prefix or --fallback but without a later argument.  While
24748         we're at it, omit unnecessary quotes.
24750 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24752         glob: merge glibc changes into lib/glob.c
24753         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24754         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24755         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24756           struct dirent [BZ #19779]
24757         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24758           callback gl_readdir
24759         2015-10-20 Convert miscellaneous function definitions to prototype style
24760         2015-10-20 Convert 113 more function definitions to prototype style
24761           (files with assertions)
24762         2015-06-12 Fix getlogin_r namespace (bug 18527).
24763         2014-02-10 Use glibc_likely instead __builtin_expect.
24764         2013-10-20 When glob pattern contains a trailing slash match only
24765           directories. Fixes bug 10278.
24766         2013-09-04 glob: silence -Wattribute warnings
24767         2013-06-07 Avoid use of "register" as optimization hint.
24768         2012-09-25 Use size_t instead of int for internal variables in glob
24769           (bug 14621)
24770         2011-07-20 Check for overflows in expressions
24771         2011-05-28 Remove unused variable
24772         2011-05-22 Add a few more alloca size checks
24773         2010-03-27 Whitespace fixes
24774         2010-03-27 Fix one more issue with the glob patch
24775         2010-03-24 Fix glob with empty pattern
24776         2008-05-27 Remove useless more "if" tests before "free"
24777         * modules/glob (Depends-on): Add stdint.
24779 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24781         mktime: port to stricter signed overflow checking
24782         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24783         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24784         instead of merely for INT_MAX * 2.  In practice platforms that
24785         do the latter also do the former.
24786         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24787         (shr): New static function, replacing SHR.  All uses changed.
24788         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24789         and TIME_T_MAX.  All uses changed.
24790         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24791         Use long_int, not time_t.
24792         (long_int_avg): New static function, replacing time_t_avg.
24793         All uses changed.  Round toward positive infinity, as that
24794         generates slightly better code.
24795         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24796         by INT_ADD_WRAPV.
24797         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24798         (convert_time): New static function.
24799         (ranged_convert): Use it
24800         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24801         Use simpler test for loop exit.
24802         (__mktime_internal): Store negative of guessed offset, to simplify
24803         overflow checking.  Remove no-longer-needed test for small time_t
24804         overflows.
24806         mktime: speed up DEBUG_MKTIME benchmarks
24807         Call tzset just once, at the start, rather than for every test
24808         case.  This lets us measure the CPU cost of mktime as opposed to
24809         that of tzset.  This is relevant when TZ is not set and glibc is
24810         being used.  This speeds up tests by a factor of 40 on my Fedora
24811         23 x86-64 platform.
24812         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24813         to call tzset and as a sanity check.  Later on, use localtime_r
24814         instead of localtime.
24816         mktime: resurrect DEBUG_MKTIME testing
24817         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24818         Include <string.h>, for strcmp.
24820         mktime: simplify DEBUG_MKTIME
24821         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24822         Simplify later usage accordingly.
24824         Port mktime_internal offset to unsigned time_t
24825         This avoids some assumptions about wraparound arithmetic on
24826         signed integer overflow.
24827         * lib/mktime-internal.h (mktime_offset_t): New type.
24828         (mktime_internal): Use it in decl.
24829         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24831         * lib/mktime.c (__mktime_internal, localtime_offset):
24832         * lib/timegm.c (timegm): Use it.
24833         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24834         (gl_FUNC_MKTIME): Require it.
24836 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24838         xstrtol: prohibit monstrosities like "1bB"
24839         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24840         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24841         "B" only if the first suffix needs a base.
24842         * tests/test-xstrtol.sh: Test this.
24844 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24846         xstrtod: reinstate setting of *result upon ERANGE
24847         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24848         the returned limits upon ERANGE, so allow and document that.
24850 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24852         xstrtod: modify *result only if no errors
24853         * lib/xstrtod.c (XSTRTOD).
24855 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24857         btowc: document problems in C locale
24858         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24859         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24861 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24863         mktime: improve integer overflow checking
24864         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24865         (WRAPV): Remove; no longer needed.
24866         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24867         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24868         Remove.  Use intprops.h defns instead.
24869         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24870         Use bool for Boolean, for clarity.
24871         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24872         detect integer overflow.
24873         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24875         intprops: check two's complement assumption
24876         Suggested by Eric Blake in:
24877         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24878         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24879         short, int, long, and (if available) long long are two's complement.
24880         * modules/intprops (Depends-on): Add 'verify'.
24882         intprops, mktime, strtol: assume two's complement
24883         These macros were not portable to every conforming C11 ones'
24884         complement platform.  It's not worth the hassle of porting to some
24885         platforms that use ones' complement or signed magnitude, as such
24886         platforms are almost purely theoretical nowadays and porting even
24887         to some of them makes the code harder to review for little
24888         practical benefit.  Problem reported by Florian Weimer in:
24889         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24890         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24891         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24892         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24893         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24894         (TYPE_SIGNED_MAGNITUDE):
24895         Remove.  All uses rewritten to assume two's complement, which is
24896         all we can reasonably test nowadays anyway.
24897         * top/maint.mk (_intprops_names): Remove the removed macros.
24899 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24901         stdint: port to strict C11 left shift
24902         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24903         Pacify clang -Wshift-negative-value, which should be an issue only
24904         on clang setups where stdint.h does not conform to C11 or to C++11.
24905         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24907 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24909         mbrtowc: work around glibc bug#19932
24910         Fix mbrtowc so that it never returns -1 in the C locale,
24911         as this conflicts with a future version of POSIX
24912         http://austingroupbugs.net/view.php?id=663#c2738
24913         and causes problems with GNU grep: http://bugs.gnu.org/23234
24914         See glibc bug 19932:
24915         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24916         * doc/posix-functions/mbrlen.texi (mbrlen):
24917         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24918         Document the glibc bug.
24919         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24920         Include hard-locale.h, locale.h.
24921         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24922         if the bug is possible.
24923         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24924         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24925         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24926         * modules/mbrtowc (Depends-on): Add hard-locale.
24927         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24928         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24929         * tests/test-mbrtowc5.sh: New file.
24931 2016-04-03  Pedro Alves  <palves@redhat.com>
24933         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24934         When gnulib is configured in C++ mode for a system with a working C99
24935         implementation of stdint.h that predates C++11, gnulib ends up
24936         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24937         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24938         MinGW is LLP64.  Instead of trying to detect the right types, detect
24939         good-enough-pre-C++11 stdint.h and in such case define
24940         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24941         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24942         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24943         conforms to C99.  If it does, check whether it hides symbols
24944         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24945         does, define those macros in config.h.
24947 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24949         argp: merge changes from glibc
24950         Among other things, this should fix problems found by a Coverity
24951         scan and reported by Andrei Borzenkov:
24952         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24953         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24954         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24955         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24956         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24957         * lib/argp.h:
24958         Merge changes from glibc.
24959         * tests/test-argp-2.sh: Adjust to match new behavior.
24961 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24963         stddef: support configuring with g++
24964         Problem reported by Ángel González in:
24965         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24966         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24967         Do not define if _GCC_MAX_ALIGN_T is defined.
24969 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24971         test-framework-sh: minor cleanups
24972         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24973         since strictly speaking POSIX requires this.
24974         (setup_): Do not use the variable 'fail', as that makes the
24975         trace output harder to read ('fail' is typically used by
24976         tests to mean the test failed).  Treat // portably.
24977         Check that new directory is not merely a sibling of the tmp dir.
24978         Avoid unnecessary invocation of tr.
24980         test-framework-sh: revert port to NetBSD 7.0
24981         It was a false alarm; I misinterpreted Assaf Gordon's report.
24982         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24983         Restore.
24984         (test_dir_): Adjust to mktempd_ change.
24985         (mktempd_): Restore 2nd arg.  Use -t again.
24986         (base_template_, template_, nx_): Resurrect old code.
24988         Port better to Alpine Linux
24989         Its diff implementation does not support -c, but does support -U3.
24990         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24991         * tests/init.sh (diff_opt_): New var.
24992         (compare_): Prefer diff -U3 to diff -c to plain diff.
24994 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24996         test-framework-sh: port to NetBSD 7.0
24997         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24998         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24999         Remove.  All uses removed.
25000         (test_dir_): Adjust to mktempd_ change.
25001         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25002         (base_template_, template_, nx_): Simplify by hardcoding.
25004 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25006         gitlog-to-changelog: suppress ignored chatter
25007         * build-aux/gitlog-to-changelog: Do not warn about skipping
25008         an SHA if it would have been ignored anyway.
25010 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25012         setlocale: add "sv" to Windows language table
25013         * lib/setlocale.c (language_table) [W32]: Add "sv".
25014         Reported in <https://savannah.gnu.org/bugs/?44588>.
25016 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25018         sys_select: port to new Cygwin
25019         Problem reported by Ken Brown in:
25020         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25021         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25022         diagnostics.
25024 2016-03-17  Jim Meyering  <meyering@fb.com>
25026         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25027         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25028         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25029           test-userspec.c:176:9: error: statement is indented as if it were \
25030             guarded by... [-Werror=misleading-indentation]
25031                    {
25032                    ^
25033           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25034                  if (!diag && !T[i].result)
25035                  ^~
25037 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25039         time_rz: port to clang -Wunused-const-variable
25040         * lib/time_rz.c (TZ): Remove.  All uses removed.
25042         std-gnu11: improve clang support
25043         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25044         2016-03-15 Also try clang
25045         2016-03-15 Port C11 and C++11 testing to clang
25047         select: port more to Intel 2016.1.150 compiler
25048         Problem reported by Balázs Hajgató in:
25049         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25050         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25052 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25054         select: try to port to 2016.1.150 compiler
25055         Problem reported by Balázs Hajgató in:
25056         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25057         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25058         POSIX specifies 'restrict'.
25060 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25062         localename-tests: memory allocation fixes
25063         * tests/test-localename.c (test_locale_name)
25064         (test_locale_name_thread): Don't call freelocale on a locale
25065         that was the base of a successful newlocale, as that
25066         results in a double free.  Problem reported by Assaf Gordon.
25067         (test_locale_name_thread): Free saved names after use, to pacify
25068         gcc -fsanitize=address.
25070 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25072         intprops: make .h file license match module
25073         * lib/intprops.h: Change the license wording to match glibc format.
25074         This is what is in modules/intprops anyway.  See:
25075         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25077 2016-03-08  Eric Blake  <eblake@redhat.com>
25079         acl: fix missing return on Cygwin
25080         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25081         fall off end of function. Fixes http://bugs.gnu.org/22949
25083 2016-03-05  Bruno Haible  <bruno@clisp.org>
25085         extern-inline: port to PGI CC
25086         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25087         keyword 'inline'.
25088         Reported by Adam James Stewart in:
25089         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25091 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25093         signbit: port back to pre-C++11 GCC
25094         * lib/math.in.h (signbit): Do previous change only if
25095         __cplusplus < 201103.  See Jonathan Wakely in:
25096         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25098 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25100         mountlist: recognize autofs-mounted remote file systems, too
25101         Originally reported at: https://bugzilla.redhat.com/1309247
25102         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25103         "-hosts" because it is used by autofs to mount remote file systems.
25105 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25107         signbit: port to C++ with GCC 6
25108         * lib/math.in.h (signbit) [__cplusplus]:
25109         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25110         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25112         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25114         regex: make it closer to libc
25115         Make Idx a signed type, rather than possibly unsigned.
25116         The unsignedness was not really buying us anything, since the code
25117         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25118         it signed allows us to use -1 and -2 with abandon, like libc does,
25119         thus lessening the number of differences between gnulib and libc.
25120         Also, it should help avoid gratuitous warnings like the one
25121         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25122         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25125         regex: merge patches from libc
25127         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25128         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25129         Convert miscellaneous function definitions to prototype style.
25130         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25131         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25132         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25133         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25134         (re_search_internal):
25135         Convert to prototype-style function definition.
25136         Use internal_function for internal functions.
25138 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25140         stdalign: port to older HP and IBM cc
25141         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25142         C compilers, by checking their version numbers.  These version
25143         numbers appear in MariaDB and in Qt code that dates way back and
25144         that conditiionally uses the 'aligned' attribute.
25146 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25148         stdalign: port to clang 3.7.0
25149         Problem reported by Herbert J. Skuhra in:
25150         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25151         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25152         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25153         https://llvm.org/bugs/show_bug.cgi?id=26547
25155 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25157         readdir_r: now obsolescent
25158         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25159         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25161 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25163         misc: port better to gcc -fsanitize=address
25164         Without these patches, ./configure CFLAGS='-fsanitize=address'
25165         would compute incorrect values.  This patch fixes some (but not all)
25166         test failures with recent glibc, with this configuration.
25167         * m4/acl.m4 (gl_ACL_GET_FILE):
25168         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25169         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25170         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25171         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25172         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25173         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25174         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25175         * m4/getline.m4 (gl_FUNC_GETLINE):
25176         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25177         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25178         * m4/regex.m4 (gl_REGEX):
25179         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25180         * tests/test-calloc-gnu.c (main):
25181         * tests/test-duplocale.c (main):
25182         * tests/test-getgroups.c (main):
25183         * tests/test-getline.c (main):
25184         * tests/test-inttostr.c (main):
25185         * tests/test-localename.c (test_locale_name)
25186         (test_locale_name_thread, test_locale_name_environ)
25187         (test_locale_name_default):
25188         * tests/test-regex.c (main):
25189         * tests/test-setlocale1.c (main):
25190         * tests/test-stat.h (test_stat_func):
25191         Free heap-allocated storage before exiting.
25192         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25193         Don't match *_foo symbols inserted by AddressSanitizer.
25194         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25196 2016-02-02  Jim Meyering  <meyering@fb.com>
25198         verify-tests: also remove stray test-verify.Tpo
25199         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25200         to remove the test-verify.Tpo file that is left behind by
25201         the automake-generated rule upon compilation failure.
25202         Otherwise, that .Tpo file would cause a failed "make distcheck"
25203         at least for grep.
25205 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25207         std-gnu11: new module
25208         This makes it easier for applications to prefer C11 and C++11
25209         to older variants, when compiling C and C++ code.
25210         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25211         a nontrivial chunk of GPLed Autoconf source code.
25212         * COPYING: Mention the m4/*.m4 copyright situation.
25213         * MODULES.html.sh (std-gnu11): New module.
25214         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25216 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25218         get-permissions, strftime: fix grammar in comments
25219         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25220         some grammar fixes Alan Mackenzie made to GNU Emacs.
25222 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25224         gettext: mark as obsolete
25225         Suggested by Paul Eggert in:
25226         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25227         * modules/gettext (Status): Mark as obsolete.
25228         (Notice): Suggest to use 'gettext-h' instead.
25229         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25230         the 'gettext' module.
25232 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25234         gnulib-tool: don't give up on ln -s so easily
25235         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25236         because an earlier one failed.  The targets could be on different
25237         file systems.  Problem reported by KO Myung-Hun in:
25238         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25240         closedir: fix OS/2-related typos
25241         Problem reported by KO Myung-Hun in:
25242         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25243         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25244         in the last couple of changes.
25246 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25248         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25249         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25250         copying a directory.
25252 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25254         regex: treat [x] as x if x is a unibyte encoding error
25255         Problem reported by Aharon Robbins in:
25256         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25257         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25258         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25260         closedir, dirfd, opendir: port to OpenSolaris 5.10
25261         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25262         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25263         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25264         Don't use ${word##pat} substitution, as it doesn't work in
25265         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25266         http://bugs.gnu.org/22443#11
25268 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25270         bootstrap: use American spelling
25271         * build-aux/bootstrap: Honor American spelling.
25273 2016-01-22  Karl Berry  <karl@freefriends.org>
25275         * doc/posix-functions/localtime.texi,
25276         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25278 2016-01-21  Bruno Haible  <bruno@clisp.org>
25280         hash-pjw-bare: fix comment
25281         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25283         wcwidth: Replace also on OpenBSD 5.8
25284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25285         * doc/posix-functions/wcwidth.texi: Update.
25287 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25289         gnu-web-doc-update: fix addition of new files
25290         If there were already added (emnpty) dirs,
25291         then cvs aborts the add with the message:
25292           cvs [add aborted]: there is a version in <./dirname> already
25293         * build-aux/gnu-web-doc-update: Add directories separately
25294         to the addition of files, to avoid the above issue
25295         impacting the addition of files.
25297 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25299         utimens-tests: avoid pulling gettext .m4 files
25300         Although this is not the right fix to the original problem:
25301         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25302         it makes it possible again for consumer projects to use arbitrary
25303         version of gettext, through the steps described at:
25304         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25305         See here for details:
25306         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25307         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25308         'gettext'.
25309         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25310         'gettext'.
25312 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25314         regex: pacify static checkers
25315         Problem and draft fix reported by Aharon Robbins in:
25316         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25317         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25318         Clear memory to pacify static checkers.
25320         regex: fix [ diagnostic
25321         Problem and fix reported by Aharon Robbins in:
25322         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25323         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25325         regex: fix memory leaks
25326         Problem and draft fix reported by Aharon Robbins in:
25327         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25328         * lib/regcomp.c (build_range_exp, build_charclass_op)
25329         * lib/regex_internal.c (re_dfa_add_node):
25330         Fix memory leak on failure.
25332 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25334         fts: don't unconditionally use leaf optimization for NFS
25335         NFS st_nlink are not accurate on all implementations,
25336         leading to aborts() if that assumption is made.
25337         See <https://bugzilla.redhat.com/1299169>
25338         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25339         the white list, and document the issue.
25341 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25342             KO Myung-Hun  <komh@chollian.net>
25344         gnulib-tool: don't assume ln -s works
25345         * gnulib-tool (func_ln_s): New function.
25346         (func_ln): Use it.
25348 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25350         utimes: detect utimes() correctly on OS/2 kLIBC
25351         utimes() of OS/2 kLIBC has some limitations.
25352         1. OS/2 itself supports a file date since 1980 year in local time.
25353         2. OS/2 itself supports only even seconds for a file time.
25354         3. utimes() of OS/2 kLIBC does not work on an opened file.
25355         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25356         * doc/posix-functions/utimes.texi: Document the above limitations of
25357         utimes() on OS/2 kLIBC.
25359 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25360             KO Myung-Hun  <komh@chollian.net>
25362         openat_proc_name: port to OS/2 kLIBC
25363         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25364         instead of /proc/self/fd.
25365         * lib/openat-proc.c (openat_proc_name):
25366         Don't assume file name length is less than INT_MAX.
25367         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25369 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25371         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25372         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25373         definitions of intptr_t and uintptr_t (which use int and unsigned)
25374         to avoid clashes with declarations of system functions like sbrk.
25375         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25376         _INTPTR_T_DECLARED before defining them.
25378         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25379         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25380         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25381         Declare on kLIBC.
25382         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25383         fd associated with dirp.
25384         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25385         dirp_fd_list.
25386         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25387         (dirfd): Implemented for kLIBC.
25388         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25389         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25390         succeeds.
25391         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25392         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25393         (REPLACE_DIRFD): Define to 1 if replaced.
25394         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25395         * modules/closedir (Depends-on): Add dirfd.
25396         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25397         condition.
25398         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25399         * modules/opendir (Depends-on): Add dirfd.
25401         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25402         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25403         * lib/dup.c (dup_nothrow): New.
25404         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25405         (klibc_dup2): New.
25406         * lib/fcntl.c (klibc_fcntl): New.
25407         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25408         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25409         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25410         fd.
25412         pipe_filter_ii_execute: port to OS/2 kLIBC
25413         Pipes on kLIBC do not support O_NONBLOCK like Win32.
25414         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
25415         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
25416         Reuse Win32 code on OS/2 kLIBC.
25417         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
25418         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
25420         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
25421         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
25422         static inline function.  The implementation of wcwidth in wcwidth.c
25423         causes a "conflicting types" error.
25424         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
25426         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
25427         spawn() on OS/2 kLIBC is not silly like one on Windows
25428         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
25429         empty string on OS/2 kLIBC.
25431         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
25432         On OS/2 kLIBC, select() works only on sockets.
25433         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
25435         binary-io: don't put fd in binary mode if it is a console on EMX
25436         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
25437         a console on EMX.
25439 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25441         doc: mention unfixed issues with unsupported localtime() values
25442         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25443         returns nonsense for localtime(2^56).
25444         * doc/posix-functions/localtime_r.texi: Likewise.
25446 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25448         doc: mention setlocale() issues on OpenBSD
25449         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25450         never fails, and the need to check categories individually.
25452 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25454         sig2str: list all signals on FreeBSD >= 7
25455         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25456         to the maximal statically defined signal value.
25457         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25458         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25459         where available, even when NSIG is defined.
25461 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25463         acl-permissions: port to USE_ACL==0 platforms
25464         I ran into this problem when building bleeding-edge GNU Emacs
25465         with gcc -fsanitize=address on Fedora 23.  On this platform
25466         the ACL library does not pass the 'configure' test and Emacs
25467         then does not build due in part to what appear to be typos in the
25468         ACL part of Gnulib.
25469         * lib/acl-internal.c (free_permission_context):
25470         * lib/acl-internal.h (struct permission_context):
25471         Test whether USE_ACL is nonzero, not whether it is defined.
25473 2016-01-12  Martin Sebor  <msebor@redhat.com>
25475         mktime: rename macro to avoid glibc clash
25476         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25477         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25479 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25481         Port "$@" to OpenIndiana ksh93
25482         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25483         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25484         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25485         bug long-dead shells, so remove the workaround.
25486         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25487         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25488         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25489         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25490         Use "$@" instead of ${1+"$@"}.
25492         Port Universal Time settings to strict POSIX
25493         * build-aux/announce-gen, build-aux/bootstrap:
25494         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25495         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25496         * build-aux/gnupload, build-aux/mkinstalldirs:
25497         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25498         * build-aux/update-copyright, build-aux/useless-if-before-free:
25499         * build-aux/vc-list-files, tests/test-strftime.c:
25500         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25501         but POSIX says the behavior of TZ="UTC" is undefined.
25503 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25505         msvc-inval: fix problem with unset shell var
25506         Problem reported by Karl Berry in:
25507         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25508         * modules/msvc-inval (Depends-on):
25509         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25510         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25512 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25514         tests: for compare_(), use cmp -s where available
25515         * tests/init.sh (compare_): Only fall back to cmp without
25516         the POSIX defined -s option, where this is not available.
25518 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25520         version-etc: new year
25521         * build-aux/gendocs.sh (version):
25522         * doc/gendocs_template:
25523         * doc/gendocs_template_min:
25524         * doc/gnulib.texi:
25525         * lib/version-etc.c (COPYRIGHT_YEAR):
25526         Update copyright dates by hand in templates and the like.
25527         * all files: Run 'make update-copyright'.
25529 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25531         human: fix output buffer overrun by 1
25532         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25533         calculation that could lead to a one-byte buffer overrun.
25535 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25537         maint: fix operator precedence in mbrtowc test
25538         This is a fix for test breakage introduced by commit 45228d96; the
25539         equality expression must be parenthesized when negated with '!',
25540         otherwise we always get:
25542           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25544         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25545         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25547 2015-12-23  James Youngman  <jay@gnu.org>
25549         regexprops-generic: update from regex.h
25550         * doc/regexprops-generic.texi: update by running the regexprops binary
25551         from findutils (the command line is 'regexprops "Regular Expressions"
25552         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25553         gnulib with GNU grep had made this document out-of-date.
25555 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25557         strftime-tests: avoid false failure on OS X
25558         * tests/test-strftime.c (struct localtime_rz_test): Add an
25559         ahistorical member which is used to warn rather than fail
25560         when tm_isdst isn't set for such entries.  This is the case for
25561         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25563 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25565         fts: ensure leaf optimization is used for NFS
25566         NFS provides usable dirent.d_type but not necessarily for all entries
25567         of large directories.  See <https://bugzilla.redhat.com/1252549>
25568         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25570 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25572         fts: enable leaf optimization for XFS
25573         XFS provides usable dirent.d_type only for DT_DIR,
25574         but the noleaf optimization still applies.
25575         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25577 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25579         intprops: comment fix
25580         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25581         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25583         intprops-test: work around GCC bug 68971
25584         Problem reported by Pádraig Brady in:
25585         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25586         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25587         (main): Add a case that better tests 64-bit long in this area.
25589 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25591         gnulib-tool: allow multiple --local-dir usage
25592         * gnulib-tool: Use --local-dir to construct compound
25593         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25594         PATH_SEPARATOR early.
25595         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25596         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25597         func_determine_path_separator because that needs to be detected
25598         earlier now.
25599         (func_determine_path_separator): New function.
25600         (func_path_foreach, func_path_foreach_inner): New functions.
25601         (func_path_prepend, func_path_append): Likewise.
25602         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25603         (func_lookup_file, func_all_modules): Use new functions to work
25604         with local_gnulib_path.
25605         (func_modules_in_dir, func_exists_module): New callbacks for
25606         func_path_foreach.
25607         (func_exists_module, func_get_tests_module): Likewise.
25608         (func_is_local_file, func_should_symlink): New helper methods.
25609         (func_add_file, func_update_file): Use new func_should_symlink
25610         instead, DRY.
25611         (func_reconstruct_cached_local_gnulib_path): New helper.
25612         (func_reconstruct_cached_dir): New callback.
25613         (func_import): The cached_local_gnulib_dir renamed to
25614         cached_local_gnulib_path similarly to local_gnulib_dir.
25615         Use new func_reconstruct_cached_local_gnulib_path.
25616         (func_count_relative_local_gnulib_path): New sub-method.
25617         (func_create_testdir): Use func_should_symlink, DRY.
25618         (func_create_megatestdir): Use new functions to work with
25619         local_gnulib_path correctly.
25620         (func_append_local_dir): New helper.
25622 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25624         fix freadptr to work with ungetc on all uClibc configs
25625         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25626         where GNU coreutils cut(1) generates invalid output on uClibc
25627         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25628         * lib/freadptr.c (freadptr): Return NULL if there are
25629         ungotten chars.  In this case freadseek() will iterate
25630         again to process the ungotten character.
25632 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25634         xalloc-oversized: improve performance with GCC 5
25635         * lib/xalloc-oversized.h (xalloc_oversized):
25636         Improve performance with GCC 5 by using __builtin_mul_overflow.
25638 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25640         intprops: new public macro EXPR_SIGNED
25641         Emacs can use this macro, so make it public.
25642         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25643         'Integer Type Determination', since some of these macros apply
25644         to non-integer types.  Clarify what kinds of constant expressions
25645         these macros return.  Say when the arguments can be non-integers.
25646         Mention newly published macro EXPR_SIGNED.
25647         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25648         make it public.  All uses changed.
25650         intprops: fix typo in clang port
25651         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25652         '__builtin_add_overflow' that is not caught by compiler.
25654 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25656         test-timespec: fix typo in previous change
25657         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25659         timespec-sub: fix overflow bug; add tests
25660         * lib/timespec-add.c (timespec_add):
25661         * lib/timespec-sub.c (timespec_sub):
25662         Work even if time_t is narrower than int (a theoretical
25663         possibility).  Redo code for a bit more clarity.
25664         * lib/timespec-sub.c (timespec_sub):
25665         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25666         * modules/timespec-tests, tests/test-timespec.c: New files.
25668         intprops-test: suppress -Woverlength-strings
25669         Problem reported by Pádraig Brady in:
25670         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25671         It is not worth the hassle to port this test to compilers that
25672         cannot handle long strings in diagnostics.
25673         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25675 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25677         quotearg: add quotearg_n_style_colon()
25678         This quotes with default options of the specified style,
25679         but with quoting enabled for instances of ':'.
25680         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25681         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25683 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25685         intprops: revise _WRAPV macros, revert _OVERFLOW
25686         The incompatible changes to the _OVERFLOW macros were too much of
25687         a hassle in practice, so revert them.  Instead, change the new
25688         _WRAPV macros to make them closer in behavior to GCC 5's new
25689         builtin_add_overflow etc. functions.  No other software was using
25690         these newly-added macros yet, so this should be OK.
25691         * NEWS: Revert previous change, since the incompatible change
25692         has been reverted, and nobody used the incompatible version.
25693         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25694         Document revised behavior.
25695         (Integer Range Overflow): Adjust example to match above revisions.
25696         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25697         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25698         these can be used in integer constant expressions again.
25699         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25700         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25701         needed.
25702         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25703         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25704         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25705         Remove, as they did not seem that useful.
25706         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25707         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25708         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25709         Support new semantics.
25710         (__has_builtin): New macro, if not alreay defined.
25711         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25712         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25713         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25714         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25715         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25716         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25717         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25718         New macros.
25719         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25721 2015-11-03  Jim Meyering  <meyering@fb.com>
25723         intprops: add parentheses for when OP has precedence lower than "-"
25724         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25725         "a OP b" must be parenthesized for when OP is like "<<", which has
25726         lower precedence than the following "-". Reported by Pádraig Brady.
25728 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25730         quotearg: constify get_quoting_style parameters
25731         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25732         * lib/quotearg.c (get_quoting_style): Likewise.
25734 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25736         quotearg: add support for $'' shell escaping
25737         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25738         items and descriptions.
25739         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25740         above types by quoting like "shell", but using $'...' syntax
25741         for non printable characters, which should provide unambiguous
25742         printable output for any input.
25743         * tests/test-quotearg-simple.c: Update accordingly.
25745 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25747         maint: use a more standard return from mbrtowc test
25748         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25749         from the test program as this is non standard and often
25750         indicates an unhandled case in the test program.
25751         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25753 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25755         intprops: add WRAPV and const flavors for GCC 5
25756         If available, use GCC 5's builtin functions for efficient integer
25757         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25758         and safely compute the low-order bits of the correct answer.
25759         A downside of these efficient functions is that they cannot be
25760         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25761         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25762         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25763         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25764         Document the changes.
25765         (Wraparound Arithmetic): New section.
25766         (Integer Range Overflow):
25767         Put this subsection last, since it's least useful.
25768         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25769         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25770         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25771         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25772         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25773         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25774         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25775         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25776         New macros.
25777         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25778         Generate calls to GCC builtins if available, for speed.
25779         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25780         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25781         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25782         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25783         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25784         (CHECK_QUOTIENT, CHECK_REMAINDER):
25785         Test WRAPV and CONST flavors (when available) too.
25787 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25789         doc: use extended timezone format in iso-8601 example
25790         * doc/parse-datetime.texi: The standard states that extended format
25791         is to be used consistently throughout.
25792         Note that lib/parse-datetime.y can handle either tz format.
25794 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25796         stdalign: port to Sun C 5.9
25797         * doc/posix-headers/stdalign.texi: Document this.
25798         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25799         __attribute__ ((__aligned__ (...))).
25801 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25803         time_rz: fix comment about tzalloc
25804         * lib/time_rz.c (tzalloc): Fix comment.
25806 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25808         stdalign: work around pre-4.9 GCC x86 bug
25809         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25810         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25811         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25813 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25815         maint.mk: sc_tight_scope: remove extraneous expressions
25816         * top/maint.mk (tight_scope): This is not really required since
25817         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25818         that matches all nm entries.  But it does remove extraneous entries
25819         that may be confusing or cause issue in future maintenance.
25821 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25823         time_rz: return NULL if localtime_r fails
25824         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25825         while still attempting to pacify bleeding-edge GCC.
25827         fts: port to C11 alignof
25828         * doc/posix-headers/stdalign.texi (stdalign.h):
25829         Document the C11 restriction.
25830         * lib/fts.c: Include stddef.h, for max_align_t.
25831         (fts_alloc): Align using max_align_t, not FTSENT.
25832         * modules/fts (Depends-on): Add stddef.
25834 2015-10-18  Jim Meyering  <meyering@fb.com>
25836         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25837         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25838         would see this:
25840         lib/time_rz.c: In function 'localtime_rz':
25841         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25842           [-Werror=nonnull]
25843                    if (tm && !save_abbr (tz, tm))
25844                        ^
25846         That was complaining about "tm" because it is a parameter that was
25847         declared with the __nonnull__ attribute.
25848         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25849         result of localtime_r.
25851 2015-10-17  Jim Meyering  <meyering@fb.com>
25853         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25854         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25855         name-extraction regexp mistakenly used \S+, and would mistakenly
25856         extract "*F" from "extern int *F()" rather than the desired "F".
25857         Use \w+ instead.
25859 2015-10-17  Jim Meyering  <meyering@fb.com>
25861         maint.mk: sc_tight_scope: factor and support OS X
25862         * top/maint.mk (_gl_tight_scope): Address three issues:
25863         - factor out four instances of code that wraps a string in "^...$"
25864         - allow nm-reported symbol names to have an optional leading "_"
25865         - add "main" to the list of ignored variable names, because on os x,
25866         "main" has nm-reported type "S" in the variable-checking section.
25868 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25870         safe-alloc-tests: fix typo in license header
25871         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25873 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25875         copy-file: fix mem leak in error case
25876         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25877         upon error opening or performing I/O to the src and dest files.
25879 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25881         localename: control langinfo.h inclusion
25882         This header is only used to work around buggy behavior in old
25883         versions of glibc, so do not include it all the time.  Otherwise
25884         we get build failures on systems that do not provide langinfo.h.
25885         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25886         in the source later on.
25887         The patch was originally submitted to gettext as:
25888         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25890 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25892         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25893         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25894         * lib/u64.c, lib/unistd.c:
25895         Append 'typedef int dummy;', to pacify compilers that are picky
25896         about empty translation units.
25898 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25900         accept4-tests: fix to avoid non portable flags
25901         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25902         as they are the only documented ones, and passing others may trigger
25903         EINVAL (seen on FreeBSD 10.1-RELEASE).
25904         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25905         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25907 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25909         gnulib-tool: fix tests of 'extensions' module
25910         This complements f8fe25fab60e3c687a124 commit.
25911         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25912         emitting of initial gl_EARLY macros.
25913         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25914         replaced with func_emit_pre_early_macros call.
25916 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25918         unicase/locale-language: fix typo in utf-8 cookie
25919         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25920         Problem reported by Zbigniew Jędrzejewski-Szmek.
25922 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25924         xalloc: do not worry about GCC 5 warning on 32 bit
25925         * lib/xalloc.h: Revert previous change.
25926         I found a better way to fix this in coreutils.
25928 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25930         xalloc: avoid GCC 5.1 warning on 32 bit
25931         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25932         xalloc_oversized(), which was seen to give this warning
25933         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25934         when simplifying conditional".
25936 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25938         uniname/uniname-tests: avoid compiler warnings
25939         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25940         unused local variables.
25941         (test_alias_lookup): Fix alias name display in failure cases.
25943 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25945         c-ctype: do not worry about EBCDIC + char signed
25946         Drop support for EBCDIC with char being signed, as this breaks too
25947         many programs.  Problem reported by Ben Pfaff in:
25948         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25949         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25950         char being signed.
25951         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25952         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25953         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25954         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25955         * tests/test-c-ctype.c (test_all):
25956         Simplify by assuming standard char values cannot be negative.
25957         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25959 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25961         c-ctype: port better to z/OS EBCDIC
25962         Problems reported by Daniel Richard G. in:
25963         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25964         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25965         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25966         (_C_CTYPE_OTHER_CNTRL): New macro.
25967         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25968         from SCHAR_MIN, as the functions are defined only from values
25969         promoted from char or from unsigned char, not necessarily from
25970         signed char.
25972 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25974         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25976         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25977         and ARFLAGS variables.  Doing this unconditionally could break
25978         later Automake's AM_PROG_AR invocation (at least it's
25979         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25981         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25982         Amsterdam Compiler Kit, so make the previous code to have effects
25983         only on ACK, and rather automatically call the Automake's
25984         AM_PROG_AR as soon as possible to decide other cases.
25986         References:
25987         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25989         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25990         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25991         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25992         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25993         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25994         'extensions' module is used.
25995         * modules/extensions (configure.ac-early): Remove as this snippet
25996         is added to gnulib-comp.m4 earlier anyway.
25998 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26000         sockets: MS Windows initalization fixes
26001         Problem reported by Test User in:
26002         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26003         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26004         Correct the endianness.
26005         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26006         number mismatch, not just on <.  Cleanup before any such failure.
26008 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26010         gc: fix detection of installed libgcrypt version
26011         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26012         at least as recent as 1.4.4.  The previously used macro is not
26013         available now, since modules were removed in version 1.6.0.
26015 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26017         c-ctype: rewrite to use inline functions
26018         This simplifies maintenance, since it makes for just one
26019         implementation of each function, letting the compiler have the fun
26020         of optimization.  In practice this works well nowadays with GCC.
26021         E.g., c_isascii might need only three instructions even though the
26022         source code lists every ASCII character individually in a large
26023         switch statement.
26024         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26025         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26026         * NEWS: Document the API change.
26027         * lib/c-ctype.c: Drastically simplify, since this now just expands
26028         inline functions.
26029         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26030         (C_CTYPE_INLINE): New macro.
26031         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26032         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26033         Verify that either ASCII or EBCDIC is being used.
26034         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26035         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26036         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26037         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26038         New private macros.
26039         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26040         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26041         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26042         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26043         (c_tolower, c_toupper): When converting, return the unsigned char,
26044         as that is what z/OS does.
26045         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26046         of some c-ctype.h macros.
26047         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26048         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26049         c_tolower promotion to be compatible with z/OS.
26051 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26053         gitlog-to-changelog: trim only trailing whitespaces
26054         This is fix for --format regression introduced by commit
26055         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26056         doubled %n string) had no effect anymore.  This format
26057         specification has been used e.g. by GNU paxuitils (commit
26058         edfd8bcc3).
26060         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26061         newlines in commmit messages.
26063 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26065         Test that c_iscntrl agrees with iscntrl, etc.
26066         Suggested by Daniel Richard G. in:
26067         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26068         * modules/c-ctype-tests (Depends-on): Add ctype.
26069         * tests/test-c-ctype.c: Include <ctype.h>.
26070         (NCHARS): New constant.
26071         (test_agree_with_C_locale): New function.
26072         (main): Use it.
26073         (test_all): Use named constants.
26075         c-ctype: improve c_isascii testing
26076         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26077         Add a test to count the number of ASCII characters.
26079 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26081         savewd: remove SAVEWD_CHDIR_READABLE
26082         It was problematic in the light of file systems that ignore umask.
26083         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26084         * NEWS: Document this.
26085         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26086         successful, -1 (setting errno) on failure, rather than something
26087         more complicated than that.
26088         * lib/mkdir-p.c (make_dir_parents):
26089         Do not use SAVEWD_CHDIR_READABLE.
26090         * lib/savewd.c (savewd_chdir):
26091         Remove support for SAVEWD_CHDIR_READABLE.
26092         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26094         c-ctype: port better to EBCDIC
26095         Problems reported by Daniel Richard G. in
26096         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26097         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26098         Include "verify.h".
26099         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26100         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26101         Define as enum constants with value false, if not defined, so that
26102         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26103         code more portable, as both branches of the 'if' are compiled on
26104         all platforms.
26105         (C_CTYPE_EBCDIC): New constant.
26106         Verify that the character set is either ASCII or EBCDIC.
26107         (to_char): New static function.
26108         (c_isascii, c_iscntrl):
26109         Assume standard control-character assignments for EBCDIC.
26110         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26111         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26112         Rewrite to use 'if' instead of 'ifdef'.
26113         Use to_char if non-ASCII.  Prefer <= to >=.
26114         Prefer true and false to 1 and 0, for booleans.
26115         (c_iscntrl): Use 'if', not 'ifdef'.
26116         * modules/c-ctype (Depends-on): Add verify.
26117         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26118         (to_char): New function.
26119         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26121 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26123         nanosleep: fix return code for interrupted replacement
26124         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26125         that we return -1 in the case the call is interrupted by a signal,
26126         rather than the current value of 1.
26127         Diagnosed and tested by Daniel Richard G.
26129 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26131         Diagnose ERE '()|\1'
26132         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26133         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26134         track of the set of previously-completed subexpressions available
26135         before the first alternative, and restore this set just before
26136         parsing each subsequent alternative.  This lets us diagnose the
26137         invalid back-reference in the ERE '()|\1'.
26139         regex: merge patches from libc
26141         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26142         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26143         * lib/regex_internal.h:
26144         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26146         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26147         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26148         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26149         wcscoll.
26150         * lib/regexec.c (check_node_accept_bytes): Likewise.
26152         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26153         Fix regex wcrtomb namespace (bug 18496).
26154         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26155         instead of wcrtomb.
26157         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26158         Fix regex wctype namespace (bug 18495).
26159         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26160         instead of towlower.
26161         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26162         instead of iswlower.  Call __towupper instead of towupper.
26163         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26164         instead of iswalnum.
26166         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26167         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26168         COLL_SYM in a couple of places to avoid uninitialized variable
26169         wanings on tilegx gcc 4.8.2.
26171         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26172         * lib/regex_internal.h: Remove NOT_IN_libc.
26174         2014-11-17  Andreas Schwab  <schwab@suse.de>
26175         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26177         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26178         Move findidx nested functions to top-level.
26179         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26180         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26181         Pass new arguments to findidx.
26182         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26183         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26184         Don't #include it inside the function.  Pass new arguments to findidx.
26185         * lib/regex_internal.h:
26186         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26187         (re_string_elem_size_at): Don't #include it inside the function.
26188         Pass new arguments to findidx.
26190         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26191         Check if DEBUG is defined in regex_internal.c
26192         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26194 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26196         ceill: detect buggy OpenBSD implementation
26197         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26198         which returns zero for small values.  Discussed here:
26199         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26201 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26203         mountlist: add me_mntroot field on Linux machines
26204         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26205         mount_entry so Linux machines based on /proc/self/mountinfo can
26206         distinguish between bind mounts and original mounts.  In reality bind
26207         mounts aren't treated differently than mountroot=/ mounts by the
26208         kernel, but the user often wants these bind mounts distinguished.
26209         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26210         More details at https://pad.lv/1432871
26212 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26214         doc: Describe to use multiple instances of gnulib
26215         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26216         instances of gnulib with different modules can be used, for example one
26217         for a lib and another one for associated tools.
26219 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26221         base32: mark function as __attribute__ const
26222         * lib/base32.h (isbase32): Mark __attribute__ const as
26223         suggested by GCC, and consistent with the base64 module.
26225 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26227         gnulib-tool: don't transform binary files with sed
26228         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26229         .mo and .class files.
26230         Reported by Denis Denisov.
26232 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26234         gperf: respect silent rules
26235         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26236         V_GPERF_0 for silent rules.
26237         * modules/iconv_open (Makefile.am): Use V_GPERF.
26238         * modules/unicase/locale-language (Makefile.am): Likewise.
26239         * modules/unicase/special-casing (Makefile.am): Likewise.
26240         * modules/unictype/category-byname (Makefile.am): Likewise.
26241         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26242         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26243         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26244         * modules/unictype/property-byname (Makefile.am): Likewise.
26245         * modules/unictype/scripts (Makefile.am): Likewise.
26246         * modules/uninorm/composition (Makefile.am): Likewise.
26248 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26250         Improve port of stdalign to C++11
26251         Problem reported by Sundaram in:
26252         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26253         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26254         (__alignas_is_defined): Define if C++11 or newer.
26256 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26258         pmccabe2html: fix gawk regex escaping
26259         * build-aux/pmccabe2html: Add one more backslash to properly
26260         escape the gsub replacement value.  Fixes this error:
26261         gawk: ./build-aux/pmccabe2html:425: \
26262         warning: escape sequence `\&' treated as plain `&'
26264 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26266         time_rz: port to pedantic memcpy
26267         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26268         that reject memcpy (..., NULL, 0).
26270 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26272         time_rz: port better to MinGW
26273         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26274         Instead, store the tzname copy in the struct tm_zone object.
26275         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26276         * lib/strftime.c [!_LIBC]:
26277         * lib/time_rz.c: Include time-internal.h.
26278         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26279         name from *TZ rather than from TZNAME, doable because *TZ now has
26280         a tzname_copy member.
26281         * lib/time-internal.h: New file, with contents taken from
26282         lib/time_rz.c.  It's separate because strftime.c now accesses
26283         struct tm_zone members.
26284         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26285         New member tzname_copy.
26286         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26287         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26288         Initialize tzname_copy member.
26289         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26290         in tzname_copy member.
26291         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26292         (restore_tzname): Remove; no longer needed.  All calls removed.
26293         * modules/time_rz (Files): Add lib/time-internal.h.
26295         time: port __need_time_t to MinGW
26296         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26297         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26299 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26301         strftime: fix newly-introduced bug on Solaris
26302         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26303         consistently at the start, rather than doing some of the setup at
26304         the start and some in the %Z format spec.  This is cleaner, and
26305         works better with time_rz on platforms like Solaris where struct
26306         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26307         mktime_z and localtime_rz can mess up the tzname cache.
26309         test-strftime: test for Solaris bug
26310         * modules/strftime-tests (Depends-on): Add strerror.
26311         * tests/test-strftime.c: Include <errno.h>.
26312         (posixtm_test): New function, containing the old 'main'.
26313         (struct tzalloc_test, struct localtime_rz_test): New types.
26314         (TZ, LT): New static vars.
26315         (tzalloc_test): New function.
26316         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26318         time_rz: port to Solaris etc.
26319         Works around a tzname problem on platforms like Solaris that have
26320         tzname but not tm_zone, by setting tzname at the appropriate time
26321         and restoring it later.
26322         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26323         New static vars.
26324         (save_abbr) [HAVE_TZNAME]: Set them.
26325         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26326         (restore_tzname): New function.
26327         (localtime_rz, mktime_z): Use it.
26329         time_rz: now LGPL
26330         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26332         time_rz: make a constant 'const'
26333         * lib/time_rz.c (local_tz): Now const.
26335         time_rz: fix off-by-one typo
26336         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26338 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26340         fprintftime, strftime: use timezone_t args
26341         * NEWS: Document the change.
26342         * lib/fprintftime.h (fprintftime):
26343         * lib/strftime.c (extra_args) [my_strftime]:
26344         * lib/strftime.h (nstrftime):
26345         Time zone arg is now of type timezone_t, not int.
26346         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26347         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26348         (my_strftime) [emacs && !my_strftime]:
26349         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26350         Remove; Emacs doesn't need this any more.
26351         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26352         fprintftime and nstrftime to call tzset.
26353         (ut) [!my_strftime]: Remove, replacing with ...
26354         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26355         (strftime_case_): Use localtime_rz and mktime_z instead
26356         of localtime_r and mktime.
26357         * modules/fprintftime (Depends-on): Add time_rz.
26358         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26359         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26361         time_rz: new module
26362         * MODULES.html.sh: Add time_rz.
26363         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26364         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26365         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26367         New var HAVE_TIMEZONE_T (default 0).
26368         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26369         New var GNULIB_TIME_RZ (default 0).
26370         * modules/time (time.h): Substitute the new vars.
26372         flexmember: license is now unlimited
26373         * modules/flexmember (License): Change to unlimited,
26374         since its only source file gives an unlimited license.
26376 2015-07-15  Eric Blake  <eblake@redhat.com>
26378         maint: update copyright paper procedures
26379         * config/srclist.txt: Drop outdated files.
26380         * doc/Copyright/conditions.txt: Update to latest.
26381         * doc/Copyright/assign.changes.manual: Delete.
26382         * doc/Copyright/assign.future.manual: Likewise.
26383         * doc/Copyright/assign.manual: Likewise.
26384         * doc/Copyright/assign.translation.manual: Likewise.
26385         * doc/Copyright/disclaim.changes.manual: Likewise.
26386         * doc/Copyright/disclaim.manual: Likewise.
26387         * doc/Copyright/disclaim.program: Likewise.
26389 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26391         localename: fix link error on Illumos
26392         Illumos defines __sun, but does not have getlocalename_l nor the
26393         equivalent.  This partially reverts commit 387c214.
26394         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26395         available, as well as uselocale.
26396         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26397         use getlocalename_l if it is not available.
26399 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26401         unistr/uN-strtok-tests: avoid a trivial leak
26402         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26403         input and delim after the multibyte delimiter tests.
26405 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26407         file-has-acl, acl-permissions: fix HP-UX typos
26408         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26409         * lib/file-has-acl.c (file_has_acl):
26410         * lib/set-permissions.c (context_acl_from_mode)
26411         (context_aclv_from_mode, set_acls):
26412         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
26413         They were introduced by the recent ACL changes.
26415         regex: match current GNU grep behavior
26416         These symbols have not matched GNU grep behavior for quite some time.
26417         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
26418         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
26419         Change to match current GNU behavior.
26420         Simplify by expressing it as differences from POSIX BREs and EREs.
26421         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
26423 2015-07-03  Jim Meyering  <meyering@fb.com>
26425         set-permissions.c: adjust acl_from_mode's cpp guard
26426         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
26427         directives identical to those guarding the sole use.
26428         Otherwise, on some systems, we'd get a warning about
26429         the function being defined but not used.
26430         Also, filter through cppi to correct misleading indentation
26431         of cpp directives.
26433 2015-07-03  Pádraig Brady  <P@draigBrady.com>
26435         tests: restrict shells to those that support 'local'
26436         The local keyword is very widely supported and used
26437         in tests in coreutils and grep at least.  Therefore
26438         restrict to testing with shells that support it.
26439         This mainly excludes /bin/sh on Solaris.
26440         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26442 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26443         and Daiki Ueno  <ueno@gnu.org>
26445         unistr/uN-strtok: handle multibyte delimiters
26446         Previously, uN_strtok moved PTR to the next unit to the token end.
26447         When DELIM contained a multibyte character, the new position could
26448         be a middle of a multibyte character.
26449         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26450         after the token.
26451         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26452         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26453         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26454         * modules/unistr/u8-strtok (Depends-on): Depend on
26455         unistr/u8-strmblen.
26456         * modules/unistr/u16-strtok (Depends-on): Depend on
26457         unistr/u16-strmblen.
26458         * modules/unistr/u32-strtok (Depends-on): Depend on
26459         unistr/u32-strmblen.
26460         * tests/unistr/test-u-strtok.h: New file.
26461         * tests/unistr/test-u8-strtok.c: New file.
26462         * tests/unistr/test-u16-strtok.c: New file.
26463         * tests/unistr/test-u32-strtok.c: New file.
26464         * modules/unistr/u8-strtok-tests: New file.
26465         * modules/unistr/u32-strtok-tests: New file.
26466         * modules/unistr/u16-strtok-tests: New file.
26468 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26470         update-copyright: fix test failure with perl >= 5.22 (trivial)
26471         * build-aux/update-copyright: Escape a literal left curly bracket,
26472         required with perl >= 5.22
26474 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26476         u{16,32}-strstr-tests: relax timeout condition
26477         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26478         tests can take longer than 5 seconds to complete.
26479         Reported by Dagobert Michelsen in:
26480         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26481         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26482         seconds to 10 seconds.
26483         * tests/unistr/test-u32-strstr.c (main): Likewise.
26485 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26487         gnulib-common.m4: change the ARFLAGS default to 'cr'
26488         In some GNU/Linux distributions people started to compile 'ar'
26489         binary with --enable-deterministic-archives (binutils project).
26490         That, however, in combination with previous autotools long time
26491         working default AR{_,}FLAGS=cru causes warnings on such
26492         installations:
26493         ar: `u' modifier ignored since `D' is the default (see `U')
26494         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26495         set already.
26497 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26499         selinux-h: avoid double free after *getfilecon()
26500         Originally reported by Ben Shelton on bug-tar:
26501         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26502         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26503         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26504         param should be freed by freecon(3) (regardless the return value).
26506 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26508         fix pty related tests issues on Windows (trivial)
26509         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26510         however it's still present in tests/ subdirectory of the final project.
26511         Therefore avoid it to pass `make check`.
26512         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26513         will just return -ENOSYS, so avoid this non applicable test allowing
26514         the build to proceed.
26516 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26518         acl: fix definition of acl_from_mode on FreeBSD
26519         This was causing basic coreutils copy operations to fail
26520         with ENOTSUP or ENOENT error messages.
26521         * lib/acl-internal.h (acl_from_mode): Only define when
26522         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26523         of acl_from_mode() defined in lib/set-permissions.c to
26524         be used on FreeBSD at least.
26525         * lib/set-permissions.c: Fix up comment spelling,
26526         and a redundant variable assignment; noticed in passing.
26528 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26530         readutmp: port to FreeBSD >= 9
26531         * lib/readutmp.h: Map utmpxname() to setutxdb().
26532         With that coreutils who(1) and pinky(1) tests pass.
26534 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26536         mgetgroups: port to strict OS X
26537         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26538         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26539         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26540         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26542 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26544         mgetgroups: port to strict OS X
26545         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26546         Document the getgrouplist problem.
26547         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26548         New macro.
26549         (mgetgroups): Use it.
26550         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26551         Check for OS X signature for getgrouplist.
26553 2015-06-29  Jim Meyering  <meyering@fb.com>
26555         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26556         It started like this when building coreutils' latest on OS X,
26557         invoking ./configure with a nonempty --cache=.cache:
26559           lib/linkat.c:46:42: error: operator '||' has no right operand
26560           lib/linkat.c: In function 'rpl_linkat':
26561           lib/linkat.c:330:27: error: #if with no expression
26563         Here's linkat.c's line 46:
26565           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26567         Here's some context:
26569           $ grep linkat_nofoll .cache
26570           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26571           $ grep LINKAT_SYM lib/config.h
26572           #define LINKAT_SYMLINK_NOTSUP
26574         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26575         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26576         but that violates a tenet of AC_CACHE_CHECK: it must
26577         have no side effect other than setting its cache variable.
26579         What happens is that when the cache is set, we'd skip the
26580         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26581         defined to whatever value it happened to have in configure's
26582         environment.  In my case, it was not defined, so this later code:
26584           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26585             [Define to 1 if linkat can create hardlinks to symlinks])
26587         would emit code with an empty RHS.
26589         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26590         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26592 2015-06-28  Jim Meyering  <meyering@fb.com>
26594         mountlist: avoid an unused-label warning on OS X
26595         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26596         Building on OS X, I saw a warning about the "free_then_fail" label
26597         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26599         error.c: correct printf-style format: %d -> %u
26600         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26601         rather than %d, to match the type of "line_number", unsigned int.
26603 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26605         fts: avoid reading beyond the heap allocation
26606         GCC 5.1.1 with -O2 and -fsanitize=address reports
26607         a read of size 4 from a heap object of size 3 is indeed invalid,
26608         though this may be due to incorrect padding assumptions by GCC, see:
26609         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26610         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26611         * modules/fts: Depend on stdalign.
26613 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26615         savedir: avoid undefined behavior in qsort call
26616         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26617         "runtime error: null pointer passed as argument 1,
26618          which is declared to never be null"
26619         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26621 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26623         userspec: avoid undefined behavior in gettext call
26624         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26625         "runtime error: null pointer passed as argument 2,
26626          which is declared to never be null"
26627         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26629 2015-06-20  Glenn Morris  <rgm@gnu.org>
26631         gitlog-to-changelog: improve gitmerge.el commits
26632         Let the Emacs ChangeLog generation process exclude "skipped"
26633         messages from merge commits (Bug#20717).
26634         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26636 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26638         wchar: fix MinGW compilation warnings
26639         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26640         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26641         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26643 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26645         uniname/uniname-tests: use pristine data files
26646         For copyright and maintenance reasons, use the data files from UCD
26647         without modification.
26648         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26649         (getfield): Remove.
26650         (aliases_count): New global variable.
26651         (fill_names): Skip comments and empty lines in the input.  Don't
26652         use getfield.
26653         (fill_aliases): Likewise.
26654         (main): Change the expected command line arguments to:
26655         NAMES... ["--" ALIASES...].
26656         * tests/uniname/test-uninames.sh: Adjust to the change in
26657         test-uninames.c.
26658         * tests/uniname/UnicodeDataNames.txt: Remove.
26659         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26660         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26661         file from Unicode 8.0.0.
26663 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26665         linked-list, linkedhash-list: avoid compiler warnings
26666         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26667         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26669 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26671         libunistring: bump minimum version to 0.9.6
26672         * all modules depending on updated Unicode data: Regenerate.
26673         The modules are listed by a script that does:
26674         - for each file listed by: git show --oneline --name-only 705f4efc
26675           - deduce the containing modules, based on "Files:"
26676         - deduce the modules which depend on the containing modules, based
26677           on "Depends-on:"
26679 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26681         uniname/uniname: update to Unicode 8.0.0
26682         * lib/uniname/uninames.h: Regenerate.
26683         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26684         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26686 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26688         libunistring: update to Unicode 8.0.0
26689         * lib/gen-uni-tables.c (SIZEOF): New macro.
26690         (output_numeric): Increase the maximum number of fractions from
26691         128 to 160.  Increase the level3 value width from 7 bits to 8
26692         bits.  Use SIZEOF instead of a hard-coded integer.
26693         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26694         0x28000.
26695         (fill_blocks): Increase the maximum number of blocks from 256 to
26696         384.  Use SIZEOF instead of a hard-coded integer.
26697         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26698         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26699         value width.
26700         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26701         a new case added to LBP22.
26702         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26703         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26704         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26705         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26706         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26707         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26708         lib/uniwidth/width.c.
26709         * all generated files under lib/uni* and tests/uni*: Regenerate.
26711 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26713         gnu-web-doc-update: add --mirror to remove stale files
26714         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26715         out of date files from the CVS server.  Since this is usually
26716         appropriate, a prompt is given when the option is not specified,
26717         along with the `cvs remove` command that would be run.
26719 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26721         acl-permissions: pacify -Wsuggest-attribute=const
26722         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26723         * lib/acl-internal.h (free_permission_context):
26724         Declare with attribute const if ! (defined USE_ACL &&
26725         (HAVE_ACL_GET_FILE || defined GETACL)).
26727         fsync: document AIX misbehavior
26728         * doc/posix-functions/fsync.texi (fsync):
26729         Document failure on AIX with read-only file descriptor.
26731 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26733         stdio: Don't redefine gets when using C++
26734         * lib/stdio.in.h (gets): Disable warning on C++.
26736 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26738         acl-permissions: port to AIX, C89 HP-UX
26739         Problems reported by Michael Felt.
26740         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26741         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26742         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26743         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26744         Add cast for AIX, whose system calls are declared to accept
26745         char * even though the arguments are really char const *.
26746         * lib/get-permissions.c (get_permissions):
26747         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26748         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26749         that broke a build.
26750         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26751         Rework types to pacify xlc.
26753 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26755         vasprintf-posix: avoid compiling vasnprintf where possible
26756         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26757         module where not required.  For example on a GNU/Linux system
26758         when gnulib-tool is run with the --conditional-dependencies option.
26760 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26762         file-has-acl: fix build on Mac OS X 10
26763         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26764         which has an incompatible 6 parameter getxattr() call.
26765         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26766         call on Mac OS X >= 10.4.
26767         * doc/glibc-functions/fgetxattr.texi: Likewise.
26768         * lib/file-has-acl.c: Revert to more complete combined check.
26769         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26770         Reported by Jack Howarth.
26772 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26774         prefix-gnulib-mk: remove no longer needed special case
26775         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26776         continued lib_SOURCES lines are no longer present,
26777         so special case handling of such entries is not required.
26779 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26781         acl: don't depend on the deprecated qacl module
26782         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26784 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26786         gnulib-tool: concatenate lib_SOURCES to a single line
26787         * gnulib-tool: Refactor the line merging sed logic,
26788         and use that to output a single lib_SOURCES line for each module.
26789         gnulib using projects often postprocess this output to prepend
26790         subdir paths to each item, and having a single line simplifies this
26791         processing allowing better decoupling from the gnulib-tool output.
26793 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26795         pthread_sigmask: discount system version if a simple macro (trivial)
26796         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26798         function to ensure it's available.
26800 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26802         readlinkat: avoid OS X 10.10 trailing slash bug
26803         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26804         has this bug.
26805         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26806         that OS X 10.10 has this function.
26807         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26808         as done for readlink().
26809         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26810         trailing slash bug, and assume readlinkat() has the same issue.
26811         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26812         rather than the correct $gl_cv_decl_readlinkat_works.
26814 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26816         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26817         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26818         module rewrite.
26820         acl-permissions: Fix build on Solaris and Cygwin
26821         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26822         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26823         ace_entries variables have moved into struct permission_context but
26824         they were still accessed as local variables here.
26826 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26828         linkat: avoid OS X 10.10 trailing slash with symlink bug
26829         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26830         causes the symlink to be dereferenced, and if it points
26831         to a non existent file, that file will be created as
26832         a hard link to "path1".
26833         This fixes a test failure in test-linkat.c.
26834         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26835         this case.  The existing workaround in linkat.c for
26836         trailing slash issues, suffices for this case.
26837         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26838         the list of platforms with trailing slash issues.
26840 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26842         unlinkat: handle ignoring of ".." on Darwin 14
26843         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26844         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26845         so handle in the same manner.
26846         * m4/unlinkat.m4: Comment on this Darwin issue.
26847         * doc/posix-functions/unlink.texi: Update the latest version
26848         where the issue was seen.
26849         * doc/posix-functions/unlinkat.texi: Mention this issue.
26850         Fixes a test failure in test-unlinkat.c.
26852 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26854         qacl: split into qcopy-acl and qset-acl
26855         Emacs needs the former, but not the latter.
26856         * modules/acl-permissions: New file, containing most of the old qacl.
26857         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26858         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26859         * modules/qcopy-acl, modules/qset-acl: New files.
26860         * MODULES.html.sh (File system functions):
26861         Mention the new modules, and mention qacl while we're at it.
26863 2015-05-27  Glenn Morris  <rgm@gnu.org>
26865         gitlog-to-changelog: new option --ignore-line
26866         (This patch is imported from the GNU Emacs master.)
26867         This option ignores individual commit lines matching a pattern.
26868         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26870 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26872         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26873         Implement get_permissions and set_permissions primitives for getting all
26874         the permissions of a file, storing them, and later setting them. (In the
26875         minimal case, the permissions consist only of a file mode.) Reimplement
26876         qset_acl and qcopy_acl based on these new primitives: this avoids code
26877         duplication and makes error handling more consistent.
26878         The Solaris and Cygwin code still uses duplicate code paths for setting
26879         a file mode while making sure that no acls exist and setting an explicit
26880         acl; this is no worse than before, but could be cleaned up.  The AIX
26881         code still doesn't read ACLs, it only makes sure that acls don't get in
26882         the way when setting a file mode.
26883         * lib/acl-internal.h (struct permission_context): New data structure.
26884         (get_permissions, set_permissions, free_permission_context): Declare.
26885         * lib/acl-internal.c (free_permission_context): New helper function.
26886         * lib/get-permissions.c (get_permissions): New helper function split off
26887         from qcopy_acl.
26888         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26889         AIX, set a file's permissions based only on a file mode.
26890         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26891         other platforms construct a temporary acl from the file mode and set
26892         that acl in the same way as setting an acl read from the source file.
26893         This should help avoid code duplication and inconsistent / buggy
26894         behavior.
26895         (set_acls): New helper function Split off from qcopy_acl.
26896         (chmod_or_fchmod): Moved here from qset-acl.c.
26897         (set_permissions): New helper function.
26898         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26899         set_permissions.
26900         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26901         * modules/qacl: Add get-permissions.c and set-permissions.c.
26903         file-has-acl: Split feature tests again (Bug#20667)
26904         * lib/file-has-acl.c: Instead of testing for
26905         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26906         define them when needed.
26907         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26908         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26910 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26912         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26913         This avoids a conflict with "FORTIFY_SOURCE" variants
26914         of the string functions when they're replaced on NetBSD-6.0.1
26915         and Darwin-14.3.0 at least.
26916         * lib/string.in.h: Avoid including our "lib/string.h" while
26917         including the system <string.h>.
26919 2015-05-26  Eric Blake  <eblake@redhat.com>
26921         stdio: limit __gnu_printf__ witness to gcc 4.4+
26922         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26923         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26925         error: use correct printf attributes on mingw
26926         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26928         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26929         * modules/inttypes (Depends-on): Require extensions, so that mingw
26930         always uses GNU style inttypes.
26931         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26933         stdio: fix probe on mingw under gcc 5.1
26934         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26935         around new gcc preprocessor rules.
26937 2015-05-07  Glenn Morris  <rgm@gnu.org>
26939         gitlog-to-changelog: parse "Tiny-change"
26940         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26941         "Copyright-paperwork-exempt".  (Bug#20324)
26943 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26945         doc: document glibc posix_fallocate() issues
26946         * doc/posix-functions/posix_fallocate.texi: Mention the
26947         glibc efficiency problems and issues with NFS.
26949 2015-05-05  Karl Berry  <karl@freefriends.org>
26951         * build-aux/gendocs.sh (usage): document new css default
26952         for HTML (--htmlarg).
26954 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26956         extern-inline: no need for workaround in GCC 5.1
26957         * doc/extern-inline.texi (extern inline):
26958         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26959         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26960         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26961         two we can remove these workarounds.
26963 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26965         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26966         Avoid [-Wunknown-attributes] warnings like:
26967         warning: unknown attribute '__alloc_size__' ignored
26968         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26969         with clang, as support has been fully removed as of clang 3.5:
26970         https://github.com/llvm-mirror/clang/commit/c047507a
26971         * lib/eealloc.h: Likewise.
26972         * lib/pagealign_alloc.h: Likewise.
26974 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26976         tests: pacify GCC 5.1's stricter printf checking
26977         * tests/test-dirname.c (main):
26978         * tests/test-getaddrinfo.c (simple):
26979         * tests/test-getlogin.c (main):
26980         * tests/test-getndelim2.c (main):
26981         * tests/test-inttostr.c (CK):
26982         * tests/test-md5.c (main):
26983         * tests/test-read-file.c (main):
26984         * tests/test-sha1.c (main):
26985         Fix mismatches between printf format and value signedness.
26986         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26987         Remove, as CAST_VAL always returned a value of type uintmax_t.
26989         fts: port to GCC 5.1 with --enable-gcc-warnings
26990         Without this fix, GCC 5.1 (correctly) warns about a subscript
26991         error on the fts_name component of FTSENT.  It's actually a
26992         flexible member, so define it that way on C99 or later hosts.
26993         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26994         structure that now has a flexible array member.
26995         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26996         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26997         * modules/fts (Depends-on): Add flexmember.
26999 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27001         file-has-acl: port to CentOS 6
27002         Problem reported by Tom G. Christensen in:
27003         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27004         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27005         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27006         HAVE_GETXATTR.
27007         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27008         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27009         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27010         file-has-acl.c actually needs.
27012 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27014         file-has-acl: always return false when ACLs aren't supported
27015         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27016         change the GNU/Linux getxattr path, to transform "not supported"
27017         errors to a false return rather than an error.  This is handled
27018         within file_has_acl() due to the platform specific tests to
27019         determine if ACLs are not supported.
27021 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27023         gettext: propagate po/Makefile.in.in too
27024         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27025         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27026         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27027         between Makefile.in.in and the gettext-runtime m4 files.
27029 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27031         file-has-acl: new module, split from acl
27032         And add a new module file-has-acl-tests to match.
27033         I ran into a problem with the recent changes to the acl module,
27034         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27035         When using the fixed version with Emacs, I discovered that
27036         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27037         had multiple libraries, but needed only one), so I fixed that too.
27038         * NEWS: Document this incompatible change.
27039         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27040         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27041         Initialize gl_need_lib_has_acl.
27042         (gl_FUNC_ACL): Require it.
27043         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27044         Move the file-has-acl.c-relevant stuff to ...
27045         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27046         use_xattrs = 0' typo, and omit some needless work.  Set
27047         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27048         when gl_FUNC_ACL is called.
27049         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27050         (Link): Remove $(LIB_HAS_ACL).
27051         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27052         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27053         modules/file-has-acl-tests.
27054         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27056         manywarnings: add GCC 5.1 warnings
27057         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27058         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27059         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27060         -Wsuggest-override, -Wuse-without-only.  Change
27061         -Wnormalized=... operands to match 5.1.
27062         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27063         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27064         -Wdiscarded-qualifiers, -Wformat-signedness,
27065         -Wincompatible-pointer-types, -Wint-conversion,
27066         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27067         -Wshift-count-negative, -Wshift-count-overflow,
27068         -Wsizeof-array-argument, -Wsuggest-final-methods,
27069         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27070         and add -Warray-bounds=2 as a special case.
27072 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27074         doc: update FDL template to match FDL examples.
27075         * doc/alloca-opt.texi:
27076         * doc/alloca.texi:
27077         * doc/c-ctype.texi:
27078         * doc/c-strcase.texi:
27079         * doc/c-strcaseeq.texi:
27080         * doc/c-strcasestr.texi:
27081         * doc/c-strstr.texi:
27082         * doc/c-strtod.texi:
27083         * doc/c-strtold.texi:
27084         * doc/ctime.texi:
27085         * doc/error.texi:
27086         * doc/gcd.texi:
27087         * doc/gnulib-tool.texi:
27088         * doc/inet_ntoa.texi:
27089         * doc/intprops.texi:
27090         * doc/lib-symbol-visibility.texi:
27091         * doc/maintain.texi:
27092         * doc/parse-datetime.texi:
27093         * doc/quote.texi:
27094         * doc/regexprops-generic.texi:
27095         * doc/standards.texi: Remove spurious 'with' in FDL license
27096         template.
27098 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27100         lstat: fix cross-compilation 'ln -s' problem
27101         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27102         Have the test program call 'symlink' rather than a separate
27103         script run 'ln -s'; this is more likely to work in
27104         cross-compilation environments.  Reported by Pavel Fedin in:
27105         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27107 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27109         gendocs.sh: default to a common CSS style sheet for HTML output
27110         * build-aux/gendocs.sh (htmlarg): Change default value.
27112 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27114         gnulib-tool: output bold attribute more portably
27115         * gnulib-tool (func_show_module_list): Change hexadecimal
27116         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27117         encoded numbers as arguments to `printf' is not portable,
27118         and is not claimed by POSIX.  This is the case with FreeBSD.
27120 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27122         qacl: Simplify HP-UX acl_nontrivial check
27123         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27124         acl_nontrivial. Check if the acl has at most three entries instead (it must
27125         have exactly three entries according to the HP-UX documentation). Ignore
27126         uids and gids as long as an entry is either for a user (i.e., the owner),
27127         a group (i.e., the owning group), or others.
27128         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27129         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27131 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27133         acl: On Linux, check for acls without libacl
27134         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27135         library function to check for the presence of acls, avoiding a library.
27136         * lib/file-has-acl.c: Include xattr headers if we have them.
27137         (file_has_acl): On Linux, use getxattr().
27138         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27139         file_has_acl(). Check for xattr headers and getxattr().
27141 2015-04-14  Ángel González  <keisial@gmail.com>
27143         tempname: avoid unused parameter warnings (trivial)
27144         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27145         (try_nocreate): Likewise.
27147 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27149         fseeko: fix build failure on NetBSD >= 6 (trivial)
27150         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27151         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27153 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27155         gitlog-to-changelog: port to MS-Windows
27156         * build-aux/gitlog-to-changelog (git_dir_option):
27157         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27158         MS-Windows Perl.  Reported by Eli Zaretskii in:
27159         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27161 2015-04-07  Karl Berry  <karl@gnu.org>
27163         gendocs: new option --tex for passing args to texi2dvi.
27164         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27165         (TEXI2DVI): cut to just command name.
27166         (usage): mention new option, and update copyright.
27167         <generate_tex>: use it.
27169 2015-04-07  Karl Berry  <karl@gnu.org>
27171         * config/srclistvars.sh (GETTEXT): new definition.
27172         * config/srclist.txt: use it for gettext .m4 files.
27173         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27174         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27175         and continuing into April.
27177 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27179         uniname/uniname-tests: fix failure due to alias
27180         Reported by Jack Howarth in:
27181         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27182         * tests/uniname/test-uninames.c (name_has_alias): New function.
27183         (test_inverse_lookup): Exclude character name with valid alias,
27184         from randomly generated character names.
27185         (main): Fill unicode_aliases before calling test functions.
27187 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27189         hash: remove deprecated hash_insert0 function
27190         * lib/hash.h (hash_insert0): Remove deprecated function.
27191         * lib/hash.c (hash_insert0): Likewise.
27193 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27195         mountlist: remove dependency on libmount
27196         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27197         directly, rather than depending on libmount, which has many
27198         dependencies due to its dependence on libselinux, as detailed at:
27199         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27200         Note we restrict this to __linux__ as that's probably where this
27201         interface will remain.  If ever porting, it would be best
27202         to first pull the makedev() wrapper from coreutils to a gnulib module.
27203         Note also we don't add a getline dependency to the mountlist module,
27204         as all Linux versions are sufficient.
27206 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27208         stddef: port to pre-C11 GCC on x86
27209         On this platform, max_align_t should have an alignment of 8 even
27210         though the storage alignments of double, long, etc. max out at 4.
27211         Inspired by a comment of Andreas Schwab's here:
27212         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27213         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27214         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27215         * tests/test-stddef.c: Test __alignof__ too, if available.
27217 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27219         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27220         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27222 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27224         yesno: make EOL optional in ENABLE_NLS case also (trival)
27225         * lib/yesno.c (yesno): Check for EOL before replacing.
27226         * tests/test-yesno.sh: Add a test case (test along with gettext).
27228 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27230         fdopendir-tests: test it does not close its arg
27231         * tests/test-fdopendir.c (main): Test that fdopendir does not
27232         close its argument.  From a suggestion by David Grayson in:
27233         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27235 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27237         gitlog-to-changelog: trim trailing white space
27238         * build-aux/gitlog-to-changelog (main):
27239         Trim trailing white space from commit message lines.
27240         This is helpful for processing the GNU Emacs repository,
27241         which dates back to 1985 and contains a lot of such lines.
27243         gitlog-to-changelog: new option --ignore-matching
27244         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27245         Support new option --ignore-matching=PAT, which ignores all
27246         commit messages whose first line matches PAT.
27248 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27250         fdopendir: port better to MinGW
27251         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27252         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27253         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27254         * modules/fdopendir (Depends-on): Add dirfd.
27256 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27258         fdopendir: fix typo in comment
27259         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27261 2015-03-09  Eric Blake  <eblake@redhat.com>
27263         error: document all entry points provided
27264         * doc/glibc-functions/error_print_progname.texi
27265         (error_print_progname): Mention the error module.
27266         * doc/glibc-functions/error_at_line.texi (error_at_line):
27267         Likewise.
27268         * doc/glibc-functions/error_message_count.texi
27269         (error_message_count): Likewise.
27270         * doc/glibc-functions/error_one_per_line.texi
27271         (error_one_per_line): Likewise.
27273 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27275         vasnprintf: pacify clang 3.5.0
27276         Problem reported by Werner Lemberg in:
27277         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27278         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27279         The casts aren't needed, since the characters in question are ASCII.
27281 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27283         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27284         * lib/dirent--.h (GNULIB_defined_opendir):
27285         * lib/dirent.in.h (GNULIB_defined_opendir)
27286         (GNULIB_defined_closedir):
27287         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27288         #undef only if Gnulib defined it.
27290         poll: port to MSVC v18 on MS-Windows 8.1
27291         Problem reported by Gisle Vanem in:
27292         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27293         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27294         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27295         Add sys_socket.
27297 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27299         tests: support stderr verification with returns_()
27300         * tests/init.sh (returns_): Disable tracing for this wrapper
27301         function, so that stderr of the wrapped command is unchanged,
27302         allowing for verification of the contents.
27304 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27306         passfd: avoid valgrind uninitalised data warning
27307         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27308         to include just the fd we've initialized, rather than including
27309         the extra space used for alignment.
27311 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27313         uniwbrk/u32-wordbreaks-tests: fix copyright
27314         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27316         dup2: doc and test for Android bug
27317         Reported by Kevin Cernekee in:
27318         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27319         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27320         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27322 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27324         Replace dup2() on Android
27325         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27326         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27327         fails.  Using rpl_dup2() fixes this because it has an explicit test
27328         for this condition.
27330 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27332         Android doesn't define RLIM_SAVED_*
27333         Portability problem reported by Kevin Cernekee in:
27334         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27335         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27336         Mention the portability problem.
27337         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27338         Define if not defined.
27339         * m4/dup2.m4 (gl_FUNC_DUP2):
27340         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27341         Likewise.
27343 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27345         vasnprintf-posix-tests: use consistent test
27346         * tests/test-vasnprintf-posix.c (test_function):
27347         Use "<" in assert instead of "<=", for consistency with other tests.
27349 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27351         printf, isinf, etc.: noncanonical != NaN
27352         Do not require that isinf, printf, etc. treat noncanonical
27353         values as NaNs.  Instead, require only that they do not crash.
27354         Problem reported by Joseph Myers in:
27355         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27356         * doc/posix-functions/dprintf.texi (dprintf):
27357         * doc/posix-functions/fprintf.texi (fprintf):
27358         * doc/posix-functions/isfinite.texi (isfinite):
27359         * doc/posix-functions/isinf.texi (isinf):
27360         * doc/posix-functions/isnan.texi (isnan):
27361         * doc/posix-functions/printf.texi (printf):
27362         * doc/posix-functions/snprintf.texi (snprintf):
27363         * doc/posix-functions/sprintf.texi (sprintf):
27364         * doc/posix-functions/vdprintf.texi (vdprintf):
27365         * doc/posix-functions/vfprintf.texi (vfprintf):
27366         * doc/posix-functions/vprintf.texi (vprintf):
27367         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27368         * doc/posix-functions/vsprintf.texi (vsprintf):
27369         Document this.
27370         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27371         * m4/isinf.m4 (gl_ISINFL_WORKS):
27372         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27373         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27374         * tests/test-isfinite.c (test_isfinitel):
27375         * tests/test-isinf.c (test_isinfl):
27376         * tests/test-isnan.c (test_long_double):
27377         * tests/test-isnanl.h (main):
27378         * tests/test-snprintf-posix.h (test_function):
27379         * tests/test-sprintf-posix.h (test_function):
27380         * tests/test-vasnprintf-posix.c (test_function):
27381         * tests/test-vasprintf-posix.c (test_function):
27382         Test only that noncanonical values do not cause crashes, not that
27383         they are treated as NaNs.  In some cases this means a larger
27384         output buffer is needed.
27386 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27388         fts: remove redundant close() (trivial)
27389         * lib/fts.c (fts_read): Remove redundant call to close().
27390         Spotted by coverity.
27392 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27394         getdtablesize: port better for Android
27395         Problem reported by Kevin Cernekee in:
27396         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27397         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27398         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27399         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27401         poll: fixes for large fds
27402         * lib/poll.c (poll): Don't check directly for NFD too large.
27403         Don't rely on undefined behavior in FD_SET when an arg exceeds
27404         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27405         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27406         as that makes the test a bit stricter.
27408 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27410         fcntl: Fix cross compiling
27411         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27412         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
27414 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27416         dup2, fcntl: cross-compile better for Android
27417         Problem reported by Kevin Cernekee in:
27418         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
27419         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
27420         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
27421         there's little need to cross-compile for older kernels nowadays.
27422         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
27423         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
27425 2015-02-18  Pádraig Brady  <P@draigBrady.com>
27427         getopt: don't crash on memory exhaustion
27428         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
27429         memory exhaustion.  In the _LIBC case we use alloca() as is
27430         already done in glibc, so we don't need to consider the separate
27431         error path in that awkward case.  Also fix a memory leak when
27432         ambiguous options are present.
27433         Reported by Tobias Stoeckmann
27435 2015-02-17  Mike Miller  <mtmiller@ieee.org>
27437         tempname: allow compilation with C++ (trivial)
27438         * lib/tempname.h [C++]: Specify extern "C" linkage.
27439         * lib/tempname.h (try_tempname):
27440         * lib/tempname.c (__try_tempname, __gen_tempname):
27441         Rename 'try' to 'tryfunc'.
27443 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27445         dup2, fcntl: port to AIX
27446         * m4/dup2.m4 (gl_FUNC_DUP2):
27447         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27448         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27449         The former works on AIX 7.1 but the latter does not.
27450         Also, this may work better with Android; see:
27451         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27453 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27455         getdtablesize, dup2, fcntl: port to Android
27456         Problem reported by Kevin Cernekee in:
27457         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27458         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27459         Mention that getdtablesize doesn't work on Android.
27460         * lib/getdtablesize.c: Use getrlimit substitute only if
27461         getdtablesize is declared.  This should suffice for Cygwin
27462         while not breaking Android.
27463         * m4/dup2.m4 (gl_FUNC_DUP2):
27464         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27465         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27466         standardized but the latter is not, and sysconf works on Android.
27467         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27468         Also check that getdtablesize is declared.
27469         This removes the need for a special case for Android.
27471 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27473         localename: Implement gl_locale_name_thread_unsafe for Android
27474         * lib/localename.c: Android API level >= 21 supports two hardcoded
27475         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27476         the internal __locale_t struct.
27478 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27480         fts: avoid crash when a cycle is added while traversing
27481         This could be triggered by auto-mounting a recursive bind mount.
27482         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27483         * lib/fts.c (fts_read): Avoid removing the original hash table item
27484         when leaving a directory that caused a cycle, and preserve the FTS_DC
27485         flag.
27487 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27489         uniname/uniname: support character alias
27490         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27491         Generate one-way mapping from aliases to codepoints in the
27492         generated tables.  Special case variation selectors to reduce
27493         table size.
27494         * lib/uniname/uniname.c (unicode_character_name): Special case
27495         variation selectors.
27496         (unicode_name_character): Special case variation selectors and
27497         their aliases.
27498         * lib/uniname/uninames.h: Regenerate.
27499         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27500         * modules/uniname/uniname-tests (Files): Add
27501         tests/uniname/NameAliases.txt.
27502         * tests/uniname/test-uninames.c: Mark as static.
27503         (ALIASLEN): Define.
27504         (struct unicode_alias): New struct.
27505         (unicode_aliases): New variable.
27506         (fill_aliases): New function.
27507         (test_alias_lookup): New test function.
27508         (main): Run the 'test_alias_lookup' test if the second argument is
27509         given.
27510         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27511         second argument.
27513 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27515         Fix FILE struct compatibility with Android API level >= 21
27516         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27517         __sferror.  Recent versions of Bionic's stdio.h no longer define
27518         __sferror.
27519         * lib/fbufmode.c: Likewise.
27520         * lib/fflush.c: Likewise.
27521         * lib/fpurge.c: Likewise.
27522         * lib/freadable.c: Likewise.
27523         * lib/freadahead.c: Likewise.
27524         * lib/freading.c: Likewise.
27525         * lib/freadptr.c: Likewise.
27526         * lib/freadseek.c: Likewise.
27527         * lib/fseeko.c: Likewise.
27528         * lib/fseterr.c: Likewise.
27529         * lib/fwritable.c: Likewise.
27531         Assume unbroken ungetc() on Android
27532         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27533         test case passed when running on an Android host, and the code
27534         hasn't really changed since 2009.
27536         getdtablesize: Fix Android build
27537         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27538         versions have this symbol in the .so library (at least 32-bit
27539         platforms) but are missing the declaration in the header file,
27540         causing the m4 logic to guess incorrectly.
27542         localename: Fix Android build
27543         * modules/localename (Depends-on): Add langinfo.
27545         getugroups: Fix Android build
27546         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27547         functions.
27549         euidaccess: Fix Android build
27550         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27551         AT_EACCESS gets declared.
27553         linkat_nofollow: Add fallback case for cross compiling
27554         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27556         net_if: Handle content-free <net/if.h> system headers
27557         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27558         struct if_nameindex.  If not, enable the replacement header.
27560         signal_h: Fix Android build
27561         * lib/signal.in.h: Add Android to the list of platforms that declare
27562         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27564         duplocale: Fix Android build of duplocale-tests
27565         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27566         is included by test-duplocale.c (but not by duplocale.c).
27567         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27568         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27569         * doc/posix-headers/monetary.texi: Add Android to the list of
27570         platforms missing monetary.h.
27572 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27574         tests: avoid recent -Werror=unused-variable regression in test-locale
27575         * tests/test-locale.c (main): Reference the variable to avoid the
27576         "unused variable" warning.
27578 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27580         maint: various whitespace cleanups in tempname
27581         * lib/tempname.c: Normalize spacing and line length.
27582         * lib/tempname.h: Likewise.
27583         * modules/tempname: Likewise.
27585 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27587         tests: provide returns_() to simplify exit status checking
27588         * tests/init.sh (returns_): A new function for use in tests,
27589         to allow for easier checking of return values, where you expect
27590         a command to exit with failure status.  By checking for a particular
27591         exit code, you don't hide any crashes for example.
27593 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27595         mountlist: only use libmount when specified
27596         There are currently many shared libs dependencies introduced by
27597         libmount with associated runtime and virt mem overhead.
27598         Therefore don't enable by default.
27599         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27601 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27603         uniname/unimame-tests: don't link with -lunistring
27604         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27605         $(LIBUNISTRING).  Document the rationale why we need to
27606         conditionalize the test.
27608 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27610         fstrcmp: don't assume strlen < INT_MAX
27611         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27612         (uintptr_t): Remove, as we're now assuming stdint.
27613         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27614         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27615         if the input string is long.
27616         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27617         uintptr_t to size_t when the underlying value is a pointer casted
27618         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27619         * modules/fstrcmp (Depends-on): Add stdint.
27621         diffseq: prefer ptrdiff_t to ssize_t
27622         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27623         ptrdiff_t is the natural type for signed indexes.
27624         On a few older platforms, ssize_t is narrower than size_t.
27626         xalloc: fix typo that suppressed warnings
27627         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27628         This typo, introduced a couple of years ago, mistakenly suppressed
27629         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27630         -Wmissing-declarations warnings.
27632         full-read: fix license notice typo
27633         * lib/full-read.h: Remove a stray line in the license notice.
27634         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27636         crypto/gc: fix a -Wswitch warning
27637         Reported by Bruce Korb in:
27638         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27639         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27641 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27643         gnulib-tool: fix handling of patch(1) diagnostics
27644         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27645         as otherwise gnulib-tool will reparse that output and attempt
27646         to lookup modules.
27648 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27650         bootstrap: exit immediately upon gnulib-tool failure
27651         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27652         This was noticed when gnulib-tool exited early due to failure
27653         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27654         but various confusing errors were then given as the build proceeded.
27656 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27658         symlinkat: include all required header files
27659         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27660         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27661         Reported at https://savannah.gnu.org/bugs/index.php?44151
27662         and by Jack Howarth.
27664 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27666         localename: support Solaris 12 and illumos
27667         * lib/localename.c (gl_locale_name_thread_unsafe): call
27668         getlocalename_l() on newer __sun platforms.
27669         Reported by Alexander Pyhalov.
27670         Fix suggested by Rich Burridge.
27672 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27674         locale: fix tests on illumos (trivial)
27675         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27676         so move from global scope to main().
27678 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27680         unictype: avoid undefined left-shift behavior
27681         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27682         gcc's -fsanitize=shift and running its tests triggered:
27683           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27684             places cannot be represented in type 'int'
27685         Cast LHS to 'unsigned int' after integer promotion.
27686         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27687         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27689 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27691         libunistring: bump version of unitypes dependants
27692         Due to the header file search order, all the headers which depend
27693         on unitypes.h need to be generated, when the preinstalled
27694         libunistring is older.
27695         * modules/unicase/base (configure.ac): Bump minimum version to
27696         0.9.4.
27697         * modules/uniconv/base (configure.ac): Likewise.
27698         * modules/unilbrk/base (configure.ac): Likewise.
27699         * modules/uninorm/base (configure.ac): Likewise.
27700         * modules/unistdio/base (configure.ac): Likewise.
27701         * modules/unistr/base (configure.ac): Likewise.
27702         * modules/uniwbrk/base (configure.ac): Likewise.
27703         * modules/uniwidth/base (configure.ac): Likewise.
27705 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27707         unictype/category-none: fix link with libunistring
27708         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27709         prefixed with "libstring_" when compiled as part of libunistring.
27710         To avoid undefined symbol at link time, increase the minimum
27711         version when the dependant modules are updated.
27712         * modules/unictype/category-none (configure.ac): Bump minimum
27713         version to 0.9.5.
27715 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27717         unitypes: fix build with installed libunistring
27718         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27719         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27720         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27722 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27724         time: port to MinGW32 3.21
27725         Problem reported by Eli Zaretskii in:
27726         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27727         * lib/time.in.h:
27728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27729         * modules/time (Depends-on):
27730         Fall back on unistd.h if the other include files don't define
27731         struct timespec.
27733         update-copyright: apply to self
27734         * build-aux/update-copyright: Fix copyright date.  How ironic!
27736 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27738         libunistring: update to Unicode 7.0.0
27739         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27740         Manichaean names.
27741         * lib/unictype/joininggroup_name.h: Likewise.
27742         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27743         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27744         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27745         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27746         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27747         enum values.
27748         (is_property_alphabetic): Accept newly added characters to
27749         cuneiform numeric signs.
27750         (is_property_default_ignorable_code_point): Reject U+0605.
27751         (FIELDLEN): Increase from 120 to 160.
27752         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27753         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27754         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27755         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27756         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27757         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27758         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27759         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27760         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27761         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27762         U+1E8D0..U+1E8D6.
27763         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27764         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27765         lib/uniwidth/width.c.
27766         * all generated files under lib/uni* and tests/uni*: Regenerate.
27768 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27770         libunistring: update to Unicode 6.3.0
27771         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27772         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27773         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27774         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27775         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27776         Update WB5, WB9, WB10, WB13a, and WB13b.
27777         * tests/uniwbrk/test-uc-wordbreaks.c
27778         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27779         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27780         (UC_BIDI_PDI): New enumeration values.
27781         (bidi_category_byname): Support those enum values.
27782         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27783         dedicated property assigned.
27784         (is_property_case_ignorable): Check 0x0027.
27785         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27786         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27787         (output_wbp): Support those enum values.
27788         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27789         (UC_BIDI_PDI): New enumeration values.
27790         * lib/unictype/bidi_byname.gperf: Add those property names.
27791         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27792         U+180E, U+1A1B, and U+2066..U+2069.
27793         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27794         lib/uniwidth/width.c.
27795         * all generated files under lib/uni* and tests/uni*: Regenerate.
27797 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27799         libunistring: update to Unicode 6.2.0
27800         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27801         (unilbrk_table): Adjust table size.
27802         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27803         for LBP_RI.
27804         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27805         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27806         Normalize table index skipping ignored properties.
27807         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27808         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27809         the table.
27810         * lib/uniwbrk/wbrktable.h: Adjust table size.
27811         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27812         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27813         Support rule GB8a.
27814         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27815         * tests/unigbrk/test-uc-is-grapheme-break.c
27816         (graphemebreakproperty_to_string): Support GBP_RI.
27817         * tests/uniwbrk/test-uc-wordbreaks.c
27818         (wordbreakproperty_to_string): Support WBP_RI.
27819         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27820         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27821         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27822         LBP_AL to LBP_ID.
27823         (output_lbp): Support LBP_RI.
27824         (WBP_RI): New enumeration value.
27825         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27826         (output_wbp): Support WBP_RI.
27827         (GBP_RI): New enumeration value.
27828         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27829         * all generated files under lib/uni* and tests/uni*: Regenerate.
27831 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27833         libunistring: update to Unicode 6.1.0
27834         * lib/gen-uni-tables.c (output_joining_group): Switch to
27835         3-level table to accommodate joining groups defined with higher
27836         codepoint value.  Since there are only 88 groups defined in
27837         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27838         (get_lbp): Update for Unicode 6.1.0.
27839         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27840         3-level table.
27841         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27842         joining group name.
27843         * lib/unictype/joininggroup_name.h: Likewise.
27844         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27845         (unilbrk_table): Adjust table size.
27846         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27847         for LBP_HL.
27848         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27849         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27850         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27851         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27852         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27853         U+302E..U+302F.
27854         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27855         lib/uniwidth/width.c.
27856         * all generated files under lib/uni* and tests/uni*: Regenerate.
27857         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27859 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27861         uniwbrk/u32-wordbreaks-tests: add conformance test
27862         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27863         tests/uniwbrk/test-uc-wordbreaks.c,
27864         tests/uniwbrk/test-uc-wordbreaks.sh, and
27865         tests/uniwbrk/WordBreakTest.txt.
27866         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27867         test-uc-wordbreaks to $(check_PROGRAMS), and define
27868         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27869         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27870         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27872 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27874         uniwbrk: ignore Extended/Format characters at BOL not BOS
27875         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27876         characters if the previous character property is one of
27877         WBP_NEWLINE, WBP_CR, and WBP_LF.
27879 2015-01-11  Jim Meyering  <meyering@fb.com>
27881         test-strstr.c: avoid a trivial leak
27882         * tests/test-strstr.c (main): Free haystack.
27884         update-copyright: recognize groff's \(co marker
27885         * build-aux/update-copyright (circle_c_re): Also accept
27886         uses of \(co, as found in gzip.1.
27888 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27890         maint.mk: fix compatibility with OS X nm
27891         * top/maint.mk (_gl_tight_scope): Use the -g option to
27892         show exported items rather than the -e option which is
27893         ignored on all platforms except OS X where it gives an error.
27894         Reported by Assaf Gordon.
27896 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27898         localcharset: improve charset detection on OS/2
27899         Use system codepage when appropriate.  Map OS/2 codepages to
27900         GNU canonical charset names if possible.
27901         * lib/config.charset: Don't output aliases if "$os" is os2*.
27902         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27903         result for OS/2.
27904         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27905         from the locale name which is neither "C" nor "POSIX".
27907 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27909         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27910         This reverts the last patch but one, as it shouldn't be needed now
27911         that the typo is fixed.
27912         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27913         * lib/count-trailing-zeros.h:
27914         * lib/count-one-bits.h:
27915         Go back to using 64-bit intrinsics.
27917         count-leading-zeros: fix pragma typos
27918         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27919         Fix typos in declaration of intrinsics when _MSC_VER.
27921 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27923         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27924         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27925         intrinsics in this case.
27926         * lib/count-trailing-zeros.h: Likewise.
27927         * lib/count-one-bits.h: Likewise.
27929 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27931         uniname/uniname: update to Unicode 7.0.0
27932         To accommodate new characters added since Unicode 5.1.0, this
27933         changes the internal representation of codepoint ranges.
27934         Previously, we grouped codepoint ranges by manually assigned 4-bit
27935         tag, which only allowed 16 groups.  This removes the limitation by
27936         switching to binary search on a table.  For the detail rationale
27937         and the benchmark results, see:
27938         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27939         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27940         to INDEX, as it no longer represents a codepoint.
27941         (range): New struct.
27942         (main): Switch to intervals list from a bit-pattern based
27943         classification.
27944         * lib/uniname/uninames.h: Regenerate.
27945         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27946         * modules/uniname/base (configure.ac): Bump minimum version to
27947         0.9.5.
27948         * modules/uniname/uniname (configure.ac): Bump minimum version to
27949         0.9.5.
27951 2015-01-05  Eric Blake  <eblake@redhat.com>
27953         doc: update INSTALL from autoconf
27954         * doc/install.texi: Resync from autoconf.
27955         * doc/INSTALL: Reflect recent autoconf update.
27956         * doc/INSTALL.ISO: Likewise.
27957         * doc/INSTALL.UTF-8: Likewise.
27959         stdio: fix use of PRIdMAX on modern mingw
27960         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27961         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27962         to work with modern mingw.
27964 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27966         pthread: detect git mingw builds with only partial pollution
27967         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27968         pollution, as seen temporarily in Fedora 21.
27970 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27972         lib-symbol-versions: cache script check
27973         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27974         Cache the check for linker version scripts.
27975         From a suggestion by Christophe Curis in:
27976         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27978 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27980         maint: fix grammar nits in propername (trivial change)
27981         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27982         and use an adequate verb and tense.
27984 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27986         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27987         * module/gendocs: Add 'doc/gendocs_template_min'.
27989         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27990         from to Gnulib's.
27991         (scripturl, templateurl): Adjust accordingly.
27993 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27995         gendocs: copyright date and version fix
27996         Reported by Karl Berry in:
27997         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27998         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27999         Fix copyright date.
28000         * build-aux/gendocs.sh (scriptversion): Update.
28002 2015-01-01  Karl Berry  <karl@gnu.org>
28004         * doc/install.texi,
28005         * build-aux/mdate-sh,
28006         * build-aux/depcomp,
28007         * build-aux/config.guess,
28008         * build-aux/config.sub,
28009         * build-aux/ar-lib,
28010         * build-aux/compile: revert copyright updates (some from last
28011         year) in slaved files.
28013 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28015         version-etc: new year
28016         * doc/gnulib.texi:
28017         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28018         * all files: Run 'make update-copyright'.
28020 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28022         xstrtol: ensure errno is reset
28023         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28024         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28026         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28028 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28030         utimens: fix dependency typo
28031         * modules/utimens (Depends-on): Remove 'assure'.
28032         This bug was introduced in the recent 'assure' patch.
28034 2014-12-22  Eric Blake  <eblake@redhat.com>
28036         docs: mention why libgen.h is bad
28037         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28039 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28041         assure: new module
28042         This works better than 'assert' when compiling with -DNDEBUG,
28043         as it avoids some compiler diagnostics in that case.
28044         Reported by Norihiro Tanaka in:
28045         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28046         * MODULES.html.sh (func_all_modules): Add 'assure'.
28047         * lib/assure.h, modules/assure: New files.
28048         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28049         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28050         Prefer 'assure' to 'assert'.
28051         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28052         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28053         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28054         Depend on 'assure'.
28056 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28058         stdalign: port better to HP compilers
28059         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28060         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28062         stdalign: work around Apple GCC 4.0 bug
28063         Reported by David Fang in:
28064         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28065         * lib/stdalign.in.h (_Alignas):
28066         * m4/stdalign.m4 (gl_STDALIGN_H):
28067         Do not use aligned attribute with GCC 4.0 on Apple.
28069 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28071         getcwd: fix test failure on OS X 10.9
28072         * m4/getcwd-path-max.m4: Avoid the replacement if it
28073         won't be effective due to the PATH_MAX limitation of lstat().
28074         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28075         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28076         for this case for use in tests, and also exclude this
28077         case when setting REPLACE_GETCWD.
28078         * tests/test-getcwd.c (test_long_name): Restrict the
28079         tested path length so that lstat() will not be passed
28080         a path greater than PATH_MAX.
28081         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28082         than AT_FDCWD, since the latter is set unconditionally
28083         since Sep 2009 in commit 52c658e9.
28085 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28087         parse-datetime: avoid a compiler warning with byacc (trivial)
28088         * lib/parse-datetime.y (yylex): Use the same prototype in the
28089         function definition as the declaration, to avoid a -Wstrict-prototypes
28090         warning seen when using byacc.
28092 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28094         unicase/locale-language-tests: fix LOCALE_FR test
28095         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28096         a French locale with traditional encoding.
28097         Reported by umerqayam in:
28098         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28100 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28102         stddef: support C11's max_align_t
28103         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28104         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28105         Do not undef, as that might cause max_align_t to be defined twice.
28106         Instead, change use to check for _GL_STDDEF_WINT_T too.
28107         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28108         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28109         Check for max_align_t.
28110         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28111         * modules/stddef-tests (Depends-on): Add stdalign.
28112         * tests/test-stddef.c: Test max_align_t.
28114 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28116         unistd: fix iOS check conditional
28117         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28118         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28119         yielded true on non-iOS environment.
28120         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28121         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28122         they are defined.
28124 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28126         posixtm: avoid compiler warning in a better way
28127         * lib/posixtm.c (IF_LINT): Remove.
28128         (year, posix_time_parse):
28129         Return true (not 0) if successful.  All callers changed.
28130         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28132 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28134         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28135         started with '/' on EMX.
28137 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28139         freopen: workaround freopen() on OS/2 kLIBC
28140         * lib/freopen.c (rpl_freopen): Workaround.
28141         * m4/freopen.m4: Add os2* case.
28143         get_shared_library_fullname: port to EMX
28144         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28145         on EMX, respectively.
28146         (_DLL_InitTerm): New on EMX.
28147         (get_shared_library_fullname): Implement on EMX.
28149         find_executable: port to EMX
28150         * lib/progreloc.c (find_executable): Implement on EMX.
28152         sched: check struct sched_param in spawn.h as well
28153         * lib/sched.in.h: Include spawn.h on kLIBC.
28154         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28156 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28158         bootstrap: Allow perl modules in $buildreq
28159         * build-aux/bootstrap: Add case for perl modules.
28161 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28163         apply _GL_ATTRIBUTE_PURE to some inline functions
28164         clang 3.4.2 flagged these inline functions as pure
28165         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28166         * lib/sig-handler.h (get_handler): Likewise.
28167         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28168         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28170 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28172         vasnprintf: fix potential use after free
28173         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28174         flagged by clang-analyzer 3.4.2.
28176 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28178         filevercmp, posixtm: avoid compiler warnings with -O3
28179         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28180         * lib/posixtm.c: (IF_LINT): Define.
28181         (posix_time_parse): Use it to void a "may be used uninitialized"
28182         warning, seen only with -O3.
28184 2014-12-05  Bruno Haible  <bruno@clisp.org>
28186         Fix LDBL80_WORDS macro on big endian platforms.
28187         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28188         LDBL80_WORDS macro.
28189         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28190         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28191         * tests/test-isfinite.c (test_isfinitel): Likewise.
28192         * tests/test-isinf.c (test_isinfl): Likewise.
28193         * tests/test-isnan.c (test_long_double): Likewise.
28194         * tests/test-isnanl.h (main): Likewise.
28195         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28196         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28197         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28198         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28199         Reported by Pádraig Brady.
28201 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28203         git-version-gen: do not print new line characters
28204         * build-aux/git-version-gen: Use printf instead of echo and tr.
28206         gnulib-tool: recognize x:* as an absolute path
28207         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28208         (func_relconcat): Likewise.
28210 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28212         argp: avoid extraneous translation and mem leak with empty pre doc
28213         * lib/argp-help.c (argp_doc): Never translate the empty string,
28214         when "\v" is the first or last character of the string, as that
28215         has a reserved meaning to return the header info from a po file.
28216         This also fixes a small memory leak in the !post case.
28217         The issue can be seen with this command for example:
28218         LC_MESSAGES=en_US grub2-mknetdir --help
28220 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28222         uniname/uniname-tests: skip if system's libunistring is used
28223         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28224         uniname/uniname module is not compiled.
28226 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28228         printf: fix configure check on big endian systems
28229         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28231 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28233         pipe-filter-gi, pipe-filter-ii: port to AIX
28234         On AIX 7.1, 'select' is defined as static and cannot be referred
28235         to from inline function.
28236         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28237         the definition...
28238         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28239         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28241 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28243         gitlog-to-changelog: add --until
28244         * build-aux/gitlog-to-changelog: Support new --until option.
28245         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28247 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28249         extern-inline: update commentary about GCC bugs
28250         * m4/extern-inline.m4: Add another GCC bug number to comments.
28252 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28254         gen-uni-tables: untabify
28255         * lib/gen-uni-tables.c: Untabify.
28257 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28259         gen-uni-tables: check out-of-range values added to 3-level tables
28260         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28261         (output_joining_type, output_ident_category): Check out-of-range
28262         values added to 3-level tables.
28264 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28266         gen-uni-tables: utilize 'assert'
28267         * lib/gen-uni-tables.c: Include <assert.h>.
28268         (output_category, output_combclass, output_decimal_digit_test)
28269         (output_decimal_digit, output_digit_test, output_digit)
28270         (output_numeric, get_mirror_value, fill_properties)
28271         (fill_property30, is_property_alphabetic)
28272         (is_property_default_ignorable_code_point)
28273         (is_property_uppercase, is_property_lowercase)
28274         (is_property_cased, is_property_case_ignorable)
28275         (is_property_changes_when_lowercased, is_property_iso_control)
28276         (is_property_math, fill_arabicshaping, output_joining_group)
28277         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28278         (output_wbp, fill_org_gbp, get_decomposition)
28279         (output_decomposition, fill_composition_exclusions)
28280         (debug_output_composition_tables, output_composition_tables)
28281         (redistribute_casefolding_rules, output_casing_rules): Use
28282         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28283         reporting.
28285 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28287         gen-uni-tables: cosmetic improvements
28288         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28289         variables specification.
28290         (is_outdigit): Remove unused function.
28292 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28294         fcntl-h-tests: port to PA-RISC GNU/Linux
28295         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28297 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28299         fts: port to C89
28300         Problem reported for MSVC 16 by Gisle Vanem in:
28301         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28302         * lib/fts.c (fts_build): Avoid declaration before statement.
28304 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28306         unistd: port to iOS
28307         Problem reported by André Klitzing in:
28308         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28309         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28311 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28313         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28314         Problem reported by Alan Modra in:
28315         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28316         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28317         Always cast the function arg, reverting this part of the previous
28318         change.
28320 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28322         obstack: avoid potentially-nonportable function casts
28323         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28324         Remove, replacing with ...
28325         (call_chunkfun, call_freefun): New static functions.
28326         All uses changed.  Avoid potentially-nonportable casts.
28327         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28328         (_obstack_begin_worker): Omit last two args, since they
28329         rely on potentially-nonportable casts.  All callers changed.
28330         * lib/obstack.h (_OBSTACK_CAST): New macro.
28331         Use it everywhere the old API used a potentially-nonportable cast.
28332         The new API doesn't cast.
28333         (struct obstack): Use unions rather than requiring
28334         potentially-nonportable casts.
28335         (obstack_chunkfun, obstack_freefun): Return void.
28337 2014-11-03  Alan Modra  <amodra@gmail.com>
28339         obstack: fix macro return values
28340         * lib/obstack.h (obstack_next_free): Return void *.
28341         (obstack_1grow_fast, obstack_blank_fast): Return void.
28342         For __GNUC__ macros:
28343         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28344         For !__GNUC__ macros:
28345         (obstack_make_room, obstack_grow, obstack_grow0)
28346         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28348 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28350         obstack: do not assume system-supplied obstack is size_t safe
28351         * m4/obstack.m4: New file.
28352         * modules/obstack (Files): Add it.
28354         obstack: port to platforms that #define __alignof__
28355         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28356         not if !_LIBC.  We don't know of any platforms that #define
28357         __alignof__, but it might be useful in tests.  Conversely,
28358         glibc assumes GCC.
28360 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28362         linkat: don't unconditionally replace on GNU/Linux
28363         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28364         was redundant for a few reasons.  It was present to support compiling
28365         on new systems but running on the old narrow window of Linux 2.6.1[67].
28366         It setup and cleaned up test files which weren't actually used.
28367         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28368         implicit in the following check.
28370 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28372         linkat: wrap to handle symlinks on OS X 10.10
28373         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28374         but not usable because it doesn't support creating hardlinks
28375         to symlinks.  Therefore add a generic test for this capability
28376         and fallback to our emulation if linkat() fails with ENOTSUP.
28378 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28380         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28381         * doc/posix-functions/open.texi (open):
28382         * doc/posix-functions/openat.texi (openat):
28383         Document that these functions do not set errno to ELOOP when
28384         a symlink is opened with O_NOFOLLOW.
28386 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28388         obstack: add NEWS entry for recent incompatible changes
28389         * NEWS: Describe recent changes.
28391 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28393         mountlist: don't use libmount to decide on dummy/remote
28394         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28395         routines to determine whether a file system is dummy or remote,
28396         as they're not currently compatible.  For example the remoteness
28397         is determined on file system type (for which the list seems incomplete),
28398         rather than simply checking for a ':' in the device name.
28399         Also libmount currently determines that 'tmpfs' is a dummy file system
28400         even though it has associated storage.
28402 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28404         obstack: prefer __alignof__ to alignof
28405         This is for portability to pre-4.7 GCC when compiling glibc.
28406         See Joseph S. Myers in:
28407         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28408         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28409         New macro, defined by including and using <alignof.h>.
28410         (MAX): New macro.
28411         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28412         Do not use enums as they are not portable to some broken compilers.
28413         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
28415         obstack: prefer alignof to calculating alignments by hand
28416         * lib/obstack.c: Include <stdalign.h>.
28417         (struct fooalign): Remove.
28418         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
28419         * modules/obstack (Depends-on): Add stdalign.
28421 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28423         obstack: use size_t alignments and check for overflow
28424         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
28425         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
28426         * lib/obstack.h (struct obstack.alignment_mask):
28427         Use _OBSTACK_SIZE_T, not int, for alignments.
28428         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
28429         overflows, e.g., when adding the alignment.
28431 2014-10-29  Alan Modra  <amodra@gmail.com>
28433         obstack: 64-bit obstack support, part 3
28434         This finally enables full 64-bit obstack support.  The glibc
28435         shared library specific code is removed from obstack.c too, and
28436         the error handling code conditionally compiled under control of
28437         another macro, _OBSTACK_NO_ERROR_HANDLER.
28438         * lib/obstack.h: Include string.h earlier.
28439         (_OBSTACK_INTERFACE_VERSION): Define.
28440         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28441         * lib/obstack.c: Don't include shlib-compat.h.
28442         (OBSTACK_INTERFACE_VERSION): Delete.
28443         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28444         glibc code is compatible with version 2.  Don't include stdio.h for
28445         __GNU_LIBRARY.
28446         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28447         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28448         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28449         glibc shared library specific source.
28451         obstack: 64-bit obstack support, part 2
28452         This gets us 4G obstack support, without changing ABI
28453         compatibility, apart from possibly introducing some
28454         signed/unsigned comparison warnings in code that uses obstack.h.
28455         a) Replace "int" size parameters, return values, and macro local vars
28456            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28457         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28458         c) Make all obstack macros checking available room use obstack_room.
28459            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28460            allocated near the top of memory.
28461         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28462         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28463         in place of "int" size parameters, return values and local vars.
28464         (_CHUNK_SIZE_T): Define.
28465         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28466         union use an _OBSTACK_SIZE_T integer type.
28467         For __GNUC__ versions of the following macros...
28468         (obstack_room): Rename local var.
28469         (obstack_make_room): Use obstack_room.
28470         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28471         obstack_int_grow, obstack_blank): Likewise.
28472         (obstack_finish): Use unsigned comparison when comparing aligned
28473         next_free against chunk_limit.
28474         (obstack_free): Cast OBJ to remove possible const qualifier.
28475         For !__GNUC__ versions of the following macros...
28476         (obstack_make_room): Use obstack_room.
28477         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28478         obstack_int_grow, obstack_blank): Likewise.
28479         (obstack_finish): Use unsigned comparision when comparing aligned
28480         next_free against chunk_limit.
28481         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28482         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28483         _OBSTACK_SIZE_T.
28484         (_obstack_begin, _obstack_begin_1): Likewise.
28485         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28486         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28488         obstack: 64-bit obstack support, part 1
28489         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28490            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28491            and "size_t" 64 bits.
28492         b) Consolidate _obstack_begin and _obstack_begin1 code.
28493         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28494         use "size_t" rather than "long".
28495         (_obstack_begin, _obstack_begin1): Likewise.
28496         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28497         obstack_chunkfun): Update alloc function casts.
28498         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28499         (chunkfun_type, freefun_type): New typdefs.
28500         (_obstack_begin_worker): Split out from ..
28501         (_obstack_begin, _obstack_begin_1): ..here.
28503         obstack: tidy part 2
28504         a) Don't be concerned about "not polluting the namespace with stddef.h
28505            symbols" in obstack.h, since gnulib string.h includes stddef.h
28506            anyway, and it seems unlikely that anyone would care.
28507         b) Don't roll our own slow memcpy in _obstack_newchunk.
28508         c) Rename obstack_free to _obstack_free.  This makes the naming
28509            consistent with other obstack functions and obviates the need for
28510            __obstack_free.  Ancient obstack.c defined both obstack_free and
28511            _obstack_free.  We continue to do that for _LIBC via an alias.
28512         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28513            is clever, but nowadays gcc warns on undefined macros.  You'll get
28514            an undefined macro warning if simulating an old gcc with -U__GNUC__
28515            -U__GNUC_MINOR__ -D__GNUC__=1.
28516         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28517         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28518         (__obstack_free): Delete, update refs.
28519         (_obstack_free): Rename from obstack_free.
28520         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28521         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28522         * lib/obstack.c: Don't include stddef.h.
28523         (COPYING_UNIT): Delete.
28524         (_obstack_begin): Formatting fix.
28525         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28526         (_obstack_free): Rename from __obstack_free, update alias.  Move
28527         undef of obstack_free to where it is needed.
28529         obstack: tidy part 1
28530         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28531            to me, and result in overlong lines after later patches.
28532         b) Move error handling code, to avoid a forward declaration and to
28533            simplify later patches in this series.
28534         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28535         and update all uses.
28536         * lib/obstack.c: Include stdlib.h earlier.
28537         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28538         in file.
28539         (print_and_abort): Remove now redundant forward declaration.
28541 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28543         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28544         Without this change, in bleeding-edge fileutils Autoconf complains
28545         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28546         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28547         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28548         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28550 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28552         iconv: avoid false detection of non-working iconv
28553         The INBUF arguments of iconv can be either 'const char **'
28554         or 'char **'.  If CC is g++, the difference causes a compile error
28555         and thus leads to a false detection of non-working iconv.
28556         Reported by Eli Zaretskii and Werner LEMBERG in:
28557         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28558         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28559         iconv.  Bump serial number.
28561 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28563         bootstrap: print more diagnostics for missing programs
28564         * build-aux/bootstrap: only suppress stderr when checking for
28565         alternative program names.  This supports programs issuing non
28566         standard error messages.
28568 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28570         bootstrap: only update the gnulib submodule
28571         * build-aux/bootstrap: Restrict the "submodule update" command
28572         to the gnulib path.
28574 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28576         symlinkat: port to AIX 7.1
28577         * doc/posix-functions/symlinkat.texi (symlinkat):
28578         Mention AIX porting problem.
28579         * lib/symlinkat.c: Always include errno.h.
28580         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28581         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28582         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28584         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28585         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28586         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28588         readlinkat: port to AIX 7.1
28589         * doc/posix-functions/readlink.texi (readlink):
28590         * doc/posix-functions/readlinkat.texi (readlinkat):
28591         Mention AIX porting problem.
28592         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28593         New function.
28594         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28595         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28597         * modules/readlinkat (configure.ac): Also compile replacement
28598         if REPLACE_READLINKAT.
28599         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28601 2014-10-12  Karl Berry  <karl@gnu.org>
28603         * doc/posix-functions/dirname.texi: remove spurious {.
28605 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28607         basename, dirname: Improve documentation.
28608         * doc/posix-functions/basename.texi: Mention dirname module and
28609         base_name() function.
28610         * doc/posix-functions/dirname.texi: Mention dir_name() and
28611         mdir_name() functions.
28612         Suggested by Werner LEMBERG <wl@gnu.org>.
28614 2014-09-24  Jim Meyering  <meyering@fb.com>
28616         exclude: declare exclude_patopts static
28617         * lib/exclude.c (exclude_patopts): Declare static,
28618         to avoid triggering a -Wmissing-prototypes warning.
28619         The alternative (declaring it in the .h file) would
28620         require publicizing the private "struct patopts".
28622 2014-09-21  Werner Lemberg  <wl@gnu.org>
28624         dirname: support compilation with C++
28625         * lib/dirname.h: Add necessary C linkage declarations.
28627 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28629         qsort_r: include <config.h>
28630         Problem reported by Tom G. Christensen in:
28631         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28632         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28634 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28636         avltree-list: avoid compiler warnings (trivial)
28637         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28638         -Werror=suggest-attribute=pure.
28639         * lib/gl_array_list.c: Likewise.
28640         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28641         declaration to avoid -Werror=missing-prototypes.  This is not added
28642         to a header as only exported for tests.  Add (void) to the
28643         check_invariants() call to indicate we're discarding the result
28644         in this context which avoids -Werror=unused-value.  Note we don't
28645         use ignore_value here to avoid a dependency as we know we'll not
28646         be adding __attribute__((warn_unused_result)) to check_invariants().
28647         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28649 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28651         qsort_r: new module, for GNU-style qsort_r
28652         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28654 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28656         strerror_r-posix: support compilation with C++
28657         * lib/strerror_r.c: Add necessary C linkage declarations.
28659 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28661         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28662         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28664 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28666         mountlist: use /proc/self/mountinfo when available
28667         Use libmount to propagate device IDs provided by Linux in
28668         /proc/self/mountinfo.  This will give more accurate output when
28669         using df in chroot'ed environments as the device IDs are not
28670         determined by stat() which may be inaccurate within the chroot.
28671         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28672         from util-linux to parse "/proc/self/mountinfo" or fall back to
28673         standard getmntent() processing.
28674         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28675         getmntent() is used, as is the case on GNU/Linux.
28677 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28679         users.txt: add cmogstored
28680         cmogstored has used gnulib since the beginning in 2012 to support
28681         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28683 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28685         Trivial change.
28686         * gnulib-tool: Use same options as build-aux/bootstrap to download
28687         PO files.
28689 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28691         Trivial change.
28692         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28694 2014-09-04  Eric Blake  <eblake@redhat.com>
28696         maintainer-makefile: add syntax check for useless ';;'
28697         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28699 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28701         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28702         Problem reported by Assaf Gordon in:
28703         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28704         Apparently Ubuntu is doing some fancy link-time optimization
28705         that doesn't work with -lpthread but does work with -pthread.
28706         Work around the bug by preferring -pthread to -lpthread.
28707         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28708         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28709         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28710         Treat -pthread like -lpthread.
28712 2014-09-04  Eric Blake  <eblake@redhat.com>
28714         error: drop spurious semicolon
28715         * lib/error.c (__error_at_line): Fix ';;'.
28717 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28719         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28720         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28721         Override AC_C_RESTRICT unconditionally.
28722         Update from autoconf, incorporating:
28723         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28724         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28726 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28728         manywarnings: add GCC 4.9 warnings
28729         Also, make it easier to maintain this in the future.
28730         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28731         -Wconditionally-supported, -Wdelete-incomplete,
28732         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28733         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28734         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28735         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28736         only for older GCC versions that need them.  Handle
28737         -Wnormalized=nfc specially, so that the 'comm' command used
28738         for maintenance doesn't get confused.
28740 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28742         vasnprintf: fix bugs in width computation
28743         * lib/vasnprintf.c (VASNPRINTF):
28744         Rework previous change, which introduced a bug,
28745         to avoid the warning in a different way.
28746         Avoid undefined behavior if the width arg is less than -INT_MAX.
28747         Avoid unnecessary use of HAS_WIDTH local.
28749 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28751         vasnprintf: Avoid signed/unsigned comparison warning.
28752         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28753         compare end addr of generated string w/ maximum end addr.
28755 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28757         parse-datetime: Avoid pointer difference.
28758         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28759         instead of calculating difference of pointers.  This removes an
28760         annoying warning, devoid of any use.
28762 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28764         qsort_r: new module, for GNU-style qsort_r
28765         This works even on FreeBSD, which has an incompatible qsort_r API.
28766         * MODULES.html.sh: Add it.
28767         * doc/glibc-functions/qsort_r.texi: It's now supported.
28768         * lib/qsort.c: New file, taken from glibc with minor changes
28769         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28770         removed.
28771         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28772         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28774         * modules/qsort_r, modules/qsort_r-tests: New files.
28775         * modules/stdlib (Makefile): Set up its defaults.
28776         * tests/test-qsort_r.c: New file.
28778 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28780         vla: new module
28781         GNU RCS can use this, mostly for documentation I expect.  See:
28782         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28783         * MODULES.html.sh: Add vla.
28784         * lib/vla.h, modules/vla: New files.
28786 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28788         localename: make gl_locale_name_thread really thread-safe on Windows
28789         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28790         "glthread/lock.h".
28791         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28792         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28794 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28796         getpass: don't assume struct termios
28797         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28798         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28799         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28801         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28802         Problem reported by Jonas 'Sortie' Termansen in:
28803         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28804         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28805         Implement via sysconf for platforms that lack getdtablesize.
28807         vararrays: modernize AC_C_VARARRAYS for C11
28808         This backports a change I recently made to Autoconf.
28809         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28810         VLAs are not supported, as this is what C11 does.  The old macro
28811         HAVE_C_VARARRAYS is still defined if they are supported, but is
28812         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28814 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28816         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28817         * build-aux/install-reloc (func_create_wrapper): Also wrap
28818         strerror-override, stat, stat.
28820 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28822         sys_select: fix FD_ZERO problem on Solaris 10
28823         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28824         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28825         to expand to an expression that invoked memset without necessarily
28826         including <string.h>.  The problem was that the first include
28827         defined _SYS_TIME_H, causing the second include to short-circuit.
28828         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28829         Also, fix what appears to be a cut-and-paste typo, by replacing
28830         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28831         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28833         accept: document Solaris 10 type glitch
28834         * doc/posix-functions/accept.texi (accept): Mention that
28835         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28837 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28839         extern-inline: port to FreeBSD, DragonFly
28840         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28841         is present if either __DragonFly__ or __FreeBSD__ is defined.
28842         FreeBSD problem reported by Andrey Borzenkov in:
28843         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28844         Also, worry about __APPLE__ only if __MACH__ is also defined,
28845         as this is more consistent with the rest of gnulib.
28846         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28847         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28849 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28851         regex: Make #if/#ifdef usage consistent for DEBUG
28852         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28853         of the inconsistent usage of #if and #ifdef as that works with
28854         both Glibc and Gnulib's style.
28856 2014-07-31  Eric Blake  <eblake@redhat.com>
28858         openat-die: use _Noreturn markup
28859         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28860         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28861         _Noreturn.
28863 2014-07-30  Eric Blake  <eblake@redhat.com>
28865         test-open: port to cygwin, which lacks Fortify
28866         * tests/test-open.h (ALWAYS_INLINE): New macro.
28867         (__always_inline): Don't abuse internal symbol on non-glibc.
28869 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28871         localename: Enforce declarations before statements.
28872         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28873         first statement.
28875 2014-07-18  Jim Meyering  <meyering@fb.com>
28877         test-userspec: don't look up numeric user names
28878         * tests/test-userspec.c: I found a system for which getpwnam("0")
28879         returned a pointer to a non-root user's entry, and that made the
28880         test fail.
28881         (T): Prefix each numeric input with "+", to inhibit lookup.
28883 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28885         localcharset, localename: MS-Windows support for non-default locales
28886         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28887         falling back on the default system codepage, try extracting
28888         the codepage from what 'setlocale' returns.  This allows to
28889         take into account changes of the codeset due to non-default
28890         locale set by a previous call to 'setlocale'.
28891         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28892         Define if not already defined.
28893         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28894         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28895         current locale by calling 'setlocale', then converting the
28896         locale name into LCID by calling 'get_lcid'.  This allows to
28897         take into account changes in the current locale from the
28898         default one, in contrast to GetThreadLocale.
28900 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28902         announce-gen: avoid failure when Digest::SHA is installed
28903         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28904         Digest::SHA1->new in print_checksums fails.
28905         * build-aux/announce-gen (digest_classes): New associative array
28906         for available message digest implementations.
28907         (print_locations): Use it.
28909 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28911         gettext: revert "update macros to version 0.19"
28912         This reverts commit 9b9370ca, as it currently requires that
28913         developers of any project that explicitly uses the gettext module
28914         or implicitly uses it through the utimens-tests or
28915         futimens-tests modules, use gettext >= 0.19.
28916         However there are some stability and availablity issues with
28917         that version at present.  We can reinstate this soon, when stability
28918         is addressed and packages are more readily available.
28920 2014-07-12  Jim Meyering  <meyering@fb.com>
28922         regex: don't deref NULL upon heap allocation failure
28923         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28924         failure in one more place.
28925         To trigger the segfault, configure grep -with-included-regex,
28926         build it, and run these commands:
28927         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28928         I discovered this while replying to a private report from
28929         Jens Schleusener about excessive memory consumption by grep
28930         when using a regular expression like the one above.
28932 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28934         regex: fix memory leak in compiler
28935         Fix by Andreas Schwab in:
28936         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28937         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28938         constructed tree before returning error.
28940 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28942         announce-gen: avoid perl warnings
28943         * build-aux/announce-gen: add two minor checks to avoid
28944         "use of uninitialized value" warnings when command-line parameters are
28945         missing.
28947 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28949         localename: avoid -Wsuggest-attribute={const,pure} warnings
28950         * lib/localename.c (string_has): Tag internal function as pure.
28951         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28952         as const when appropriate.
28954 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28956         nl_langinfo: Fix last change.
28957         * lib/nl_langinfo.c (includes): Drop redundant include.
28959 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28961         error: Fix -Wundef warnings in glibc
28962         * lib/error.c [_LIBC]: Define default macros for
28963         glibc.
28964         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28965         Check _LIBC before STRERROR_R_CHAR_P.
28967         error: Sync from glibc master
28968         * lib/error.c [_LIBC]: Remove INTUSE usage.
28969         (error_tail): Remove unused macro ALLOCA_LIMIT.
28970         Fix potential buffer overflow.  Fix potential NULL dereference
28971         in strcmp.
28973 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28975         nl_langinfo: fix build under mingw
28976         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28978 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28980         mountlist: do not classify a bind-mounted dir entry as "dummy"
28981         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28982         1-argument getmntent() (instead of assuming absence).
28984 2014-07-08  Eric Blake  <eblake@redhat.com>
28986         maint.mk: less syntax-check noise when SIGPIPE is ignored
28987         * top/maint.mk (_sc_header_without_use)
28988         (sc_require_config_h_first): Parse full list.
28990 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28991             Paul Eggert  <eggert@cs.ucla.edu>
28993         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28994         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28995         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28996         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28997         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28998         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28999         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29000         Include <stdio.h> if Microsoft Windows.
29001         Include <time.h> if !REPLACE_NL_LANGINFO.
29002         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29003         and with improvements for Microsoft Windows.
29004         (rpl_nl_langinfo): Use it.
29005         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29006         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29007         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29008         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29009         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29010         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29011         corresponding values returned by 'localeconv'.  Compute the values
29012         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29013         'strftime' with a suitable struct tm value.
29015 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29017         Bruno Haible has stepped down as maintainer.
29018         See Karl Berry in:
29019         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29020         Daiki Ueno has volunteered to maintain libunistring; see:
29021         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29022         * modules/gen-uni-tables, modules/libunistring:
29023         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29024         * modules/unicase/base, modules/unicase/cased:
29025         * modules/unicase/empty-prefix-context:
29026         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29027         * modules/unicase/locale-language, modules/unicase/special-casing:
29028         * modules/unicase/tocasefold, modules/unicase/tolower:
29029         * modules/unicase/totitle, modules/unicase/toupper:
29030         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29031         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29032         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29033         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29034         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29035         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29036         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29037         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29038         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29039         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29040         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29041         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29042         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29043         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29044         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29045         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29046         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29047         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29048         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29049         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29050         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29051         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29052         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29053         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29054         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29055         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29056         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29057         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29058         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29059         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29060         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29061         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29062         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29063         * modules/uniconv/u16-conv-to-enc:
29064         * modules/uniconv/u16-strconv-from-enc:
29065         * modules/uniconv/u16-strconv-from-locale:
29066         * modules/uniconv/u16-strconv-to-enc:
29067         * modules/uniconv/u16-strconv-to-locale:
29068         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29069         * modules/uniconv/u32-strconv-from-enc:
29070         * modules/uniconv/u32-strconv-from-locale:
29071         * modules/uniconv/u32-strconv-to-enc:
29072         * modules/uniconv/u32-strconv-to-locale:
29073         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29074         * modules/uniconv/u8-strconv-from-enc:
29075         * modules/uniconv/u8-strconv-from-locale:
29076         * modules/uniconv/u8-strconv-to-enc:
29077         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29078         * modules/unictype/bidicategory-all:
29079         * modules/unictype/bidicategory-byname:
29080         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29081         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29082         * modules/unictype/bidiclass-byname:
29083         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29084         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29085         * modules/unictype/block-all, modules/unictype/block-list:
29086         * modules/unictype/block-of, modules/unictype/block-test:
29087         * modules/unictype/category-C, modules/unictype/category-Cc:
29088         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29089         * modules/unictype/category-Co, modules/unictype/category-Cs:
29090         * modules/unictype/category-L, modules/unictype/category-LC:
29091         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29092         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29093         * modules/unictype/category-Lu, modules/unictype/category-M:
29094         * modules/unictype/category-Mc, modules/unictype/category-Me:
29095         * modules/unictype/category-Mn, modules/unictype/category-N:
29096         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29097         * modules/unictype/category-No, modules/unictype/category-P:
29098         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29099         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29100         * modules/unictype/category-Pi, modules/unictype/category-Po:
29101         * modules/unictype/category-Ps, modules/unictype/category-S:
29102         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29103         * modules/unictype/category-Sm, modules/unictype/category-So:
29104         * modules/unictype/category-Z, modules/unictype/category-Zl:
29105         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29106         * modules/unictype/category-all, modules/unictype/category-and:
29107         * modules/unictype/category-and-not, modules/unictype/category-byname:
29108         * modules/unictype/category-longname, modules/unictype/category-name:
29109         * modules/unictype/category-none, modules/unictype/category-of:
29110         * modules/unictype/category-or, modules/unictype/category-test:
29111         * modules/unictype/category-test-withtable:
29112         * modules/unictype/combining-class:
29113         * modules/unictype/combining-class-all:
29114         * modules/unictype/combining-class-byname:
29115         * modules/unictype/combining-class-longname:
29116         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29117         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29118         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29119         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29120         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29121         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29122         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29123         * modules/unictype/digit, modules/unictype/joininggroup-all:
29124         * modules/unictype/joininggroup-byname:
29125         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29126         * modules/unictype/joiningtype-all:
29127         * modules/unictype/joiningtype-byname:
29128         * modules/unictype/joiningtype-longname:
29129         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29130         * modules/unictype/mirror, modules/unictype/numeric:
29131         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29132         * modules/unictype/property-ascii-hex-digit:
29133         * modules/unictype/property-bidi-arabic-digit:
29134         * modules/unictype/property-bidi-arabic-right-to-left:
29135         * modules/unictype/property-bidi-block-separator:
29136         * modules/unictype/property-bidi-boundary-neutral:
29137         * modules/unictype/property-bidi-common-separator:
29138         * modules/unictype/property-bidi-control:
29139         * modules/unictype/property-bidi-embedding-or-override:
29140         * modules/unictype/property-bidi-eur-num-separator:
29141         * modules/unictype/property-bidi-eur-num-terminator:
29142         * modules/unictype/property-bidi-european-digit:
29143         * modules/unictype/property-bidi-hebrew-right-to-left:
29144         * modules/unictype/property-bidi-left-to-right:
29145         * modules/unictype/property-bidi-non-spacing-mark:
29146         * modules/unictype/property-bidi-other-neutral:
29147         * modules/unictype/property-bidi-pdf:
29148         * modules/unictype/property-bidi-segment-separator:
29149         * modules/unictype/property-bidi-whitespace:
29150         * modules/unictype/property-byname:
29151         * modules/unictype/property-case-ignorable:
29152         * modules/unictype/property-cased:
29153         * modules/unictype/property-changes-when-casefolded:
29154         * modules/unictype/property-changes-when-casemapped:
29155         * modules/unictype/property-changes-when-lowercased:
29156         * modules/unictype/property-changes-when-titlecased:
29157         * modules/unictype/property-changes-when-uppercased:
29158         * modules/unictype/property-combining:
29159         * modules/unictype/property-composite:
29160         * modules/unictype/property-currency-symbol:
29161         * modules/unictype/property-dash:
29162         * modules/unictype/property-decimal-digit:
29163         * modules/unictype/property-default-ignorable-code-point:
29164         * modules/unictype/property-deprecated:
29165         * modules/unictype/property-diacritic:
29166         * modules/unictype/property-extender:
29167         * modules/unictype/property-format-control:
29168         * modules/unictype/property-grapheme-base:
29169         * modules/unictype/property-grapheme-extend:
29170         * modules/unictype/property-grapheme-link:
29171         * modules/unictype/property-hex-digit:
29172         * modules/unictype/property-hyphen:
29173         * modules/unictype/property-id-continue:
29174         * modules/unictype/property-id-start:
29175         * modules/unictype/property-ideographic:
29176         * modules/unictype/property-ids-binary-operator:
29177         * modules/unictype/property-ids-trinary-operator:
29178         * modules/unictype/property-ignorable-control:
29179         * modules/unictype/property-iso-control:
29180         * modules/unictype/property-join-control:
29181         * modules/unictype/property-left-of-pair:
29182         * modules/unictype/property-line-separator:
29183         * modules/unictype/property-logical-order-exception:
29184         * modules/unictype/property-lowercase, modules/unictype/property-math:
29185         * modules/unictype/property-non-break:
29186         * modules/unictype/property-not-a-character:
29187         * modules/unictype/property-numeric:
29188         * modules/unictype/property-other-alphabetic:
29189         * modules/unictype/property-other-default-ignorable-code-point:
29190         * modules/unictype/property-other-grapheme-extend:
29191         * modules/unictype/property-other-id-continue:
29192         * modules/unictype/property-other-id-start:
29193         * modules/unictype/property-other-lowercase:
29194         * modules/unictype/property-other-math:
29195         * modules/unictype/property-other-uppercase:
29196         * modules/unictype/property-paired-punctuation:
29197         * modules/unictype/property-paragraph-separator:
29198         * modules/unictype/property-pattern-syntax:
29199         * modules/unictype/property-pattern-white-space:
29200         * modules/unictype/property-private-use:
29201         * modules/unictype/property-punctuation:
29202         * modules/unictype/property-quotation-mark:
29203         * modules/unictype/property-radical:
29204         * modules/unictype/property-sentence-terminal:
29205         * modules/unictype/property-soft-dotted:
29206         * modules/unictype/property-space:
29207         * modules/unictype/property-terminal-punctuation:
29208         * modules/unictype/property-test, modules/unictype/property-titlecase:
29209         * modules/unictype/property-unassigned-code-value:
29210         * modules/unictype/property-unified-ideograph:
29211         * modules/unictype/property-uppercase:
29212         * modules/unictype/property-variation-selector:
29213         * modules/unictype/property-white-space:
29214         * modules/unictype/property-xid-continue:
29215         * modules/unictype/property-xid-start:
29216         * modules/unictype/property-zero-width, modules/unictype/scripts:
29217         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29218         * modules/unictype/syntax-c-whitespace:
29219         * modules/unictype/syntax-java-ident:
29220         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29221         * modules/unigbrk/u16-grapheme-breaks:
29222         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29223         * modules/unigbrk/u32-grapheme-breaks:
29224         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29225         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29226         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29227         * modules/unigbrk/uc-is-grapheme-break:
29228         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29229         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29230         * modules/unilbrk/u16-width-linebreaks:
29231         * modules/unilbrk/u32-possible-linebreaks:
29232         * modules/unilbrk/u32-width-linebreaks:
29233         * modules/unilbrk/u8-possible-linebreaks:
29234         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29235         * modules/unilbrk/ulc-possible-linebreaks:
29236         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29237         * modules/uniname/uniname, modules/uninorm/base:
29238         * modules/uninorm/canonical-decomposition:
29239         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29240         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29241         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29242         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29243         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29244         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29245         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29246         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29247         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29248         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29249         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29250         * modules/unistdio/base, modules/unistdio/u-printf-args:
29251         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29252         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29253         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29254         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29255         * modules/unistdio/u16-u16-sprintf:
29256         * modules/unistdio/u16-u16-vasnprintf:
29257         * modules/unistdio/u16-u16-vasprintf:
29258         * modules/unistdio/u16-u16-vsnprintf:
29259         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29260         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29261         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29262         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29263         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29264         * modules/unistdio/u32-u32-asnprintf:
29265         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29266         * modules/unistdio/u32-u32-sprintf:
29267         * modules/unistdio/u32-u32-vasnprintf:
29268         * modules/unistdio/u32-u32-vasprintf:
29269         * modules/unistdio/u32-u32-vsnprintf:
29270         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29271         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29272         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29273         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29274         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29275         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29276         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29277         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29278         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29279         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29280         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29281         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29282         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29283         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29284         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29285         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29286         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29287         * modules/unistr/u16-check, modules/unistr/u16-chr:
29288         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29289         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29290         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29291         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29292         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29293         * modules/unistr/u16-move, modules/unistr/u16-next:
29294         * modules/unistr/u16-prev, modules/unistr/u16-set:
29295         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29296         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29297         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29298         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29299         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29300         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29301         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29302         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29303         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29304         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29305         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29306         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29307         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29308         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29309         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29310         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29311         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29312         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29313         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29314         * modules/unistr/u32-next, modules/unistr/u32-prev:
29315         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29316         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29317         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29318         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29319         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29320         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29321         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29322         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29323         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29324         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29325         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29326         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29327         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29328         * modules/unistr/u8-check, modules/unistr/u8-chr:
29329         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29330         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29331         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29332         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29333         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29334         * modules/unistr/u8-next, modules/unistr/u8-prev:
29335         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29336         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29337         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29338         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29339         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29340         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29341         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29342         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29343         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29344         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29345         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29346         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29347         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29348         * modules/uniwbrk/base, modules/uniwbrk/table:
29349         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29350         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29351         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29352         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29353         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29354         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29355         * modules/uniwidth/width, modules/utf16-ucs4:
29356         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29357         * modules/utf8-ucs4-unsafe:
29358         Change maintainer from Bruno Haible to Daiki Ueno.
29359         This is my guess at the libunistring modules; please feel free
29360         to fix if I guessed incorrectly.
29361         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29362         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29363         * modules/areadlink, modules/array-list, modules/array-mergesort:
29364         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29365         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29366         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29367         * modules/binary-io, modules/bison-i18n, modules/btowc:
29368         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29369         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29370         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29371         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29372         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29373         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29374         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29375         * modules/closedir, modules/concat-filename, modules/copy-file:
29376         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29377         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29378         * modules/csharpcomp-script, modules/csharpexec:
29379         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29380         * modules/dprintf, modules/dprintf-posix, modules/dup:
29381         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29382         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29383         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29384         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29385         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29386         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29387         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29388         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29389         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29390         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29391         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29392         * modules/findprog, modules/findprog-lgpl, modules/floor:
29393         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29394         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29395         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29396         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29397         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29398         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29399         * modules/freadable, modules/freadahead, modules/freadptr:
29400         * modules/freadseek, modules/freopen, modules/frexp:
29401         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29402         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29403         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29404         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29405         * modules/ftello, modules/full-read, modules/full-write:
29406         * modules/fwritable, modules/fwriteerror, modules/gcd:
29407         * modules/get-rusage-as, modules/get-rusage-data:
29408         * modules/getdtablesize, modules/getrusage, modules/gettext:
29409         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29410         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29411         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29412         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
29413         * modules/iconv, modules/iconv-h, modules/iconv_open:
29414         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
29415         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
29416         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
29417         * modules/integer_length_ll, modules/ioctl, modules/isatty:
29418         * modules/isblank, modules/isnand, modules/isnand-nolibm:
29419         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
29420         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
29421         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
29422         * modules/javaexec, modules/javaexec-script, modules/javaversion:
29423         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
29424         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
29425         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
29426         * modules/lib-symbol-visibility, modules/libsigsegv:
29427         * modules/linked-list, modules/linkedhash-list, modules/list:
29428         * modules/localcharset, modules/locale, modules/localeconv:
29429         * modules/localename, modules/lock, modules/log, modules/log-ieee:
29430         * modules/log10, modules/log10-ieee, modules/log10f:
29431         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
29432         * modules/log1p, modules/log1p-ieee, modules/log1pf:
29433         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
29434         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
29435         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
29436         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
29437         * modules/logf, modules/logf-ieee, modules/login_tty:
29438         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29439         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29440         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29441         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29442         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29443         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29444         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29445         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29446         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29447         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29448         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29449         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29450         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29451         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29452         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29453         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29454         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29455         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29456         * modules/posix_spawn, modules/posix_spawn-internal:
29457         * modules/posix_spawn_file_actions_addclose:
29458         * modules/posix_spawn_file_actions_adddup2:
29459         * modules/posix_spawn_file_actions_addopen:
29460         * modules/posix_spawn_file_actions_destroy:
29461         * modules/posix_spawn_file_actions_init:
29462         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29463         * modules/posix_spawnattr_getpgroup:
29464         * modules/posix_spawnattr_getschedparam:
29465         * modules/posix_spawnattr_getschedpolicy:
29466         * modules/posix_spawnattr_getsigdefault:
29467         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29468         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29469         * modules/posix_spawnattr_setschedparam:
29470         * modules/posix_spawnattr_setschedpolicy:
29471         * modules/posix_spawnattr_setsigdefault:
29472         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29473         * modules/pow, modules/powf, modules/printf-frexp:
29474         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29475         * modules/progname, modules/propername, modules/pselect:
29476         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29477         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29478         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29479         * modules/read, modules/readdir, modules/readlink:
29480         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29481         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29482         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29483         * modules/relocatable-script, modules/remainder:
29484         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29485         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29486         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29487         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29488         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29489         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29490         * modules/setlocale, modules/sh-quote, modules/shutdown:
29491         * modules/signal, modules/signbit, modules/sigpipe:
29492         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29493         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29494         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29495         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29496         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29497         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29498         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29499         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29500         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29501         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29502         * modules/streq, modules/strerror_r-posix, modules/striconv:
29503         * modules/striconveh, modules/striconveha, modules/strncat:
29504         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29505         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29506         * modules/sys_wait, modules/system-posix, modules/system-quote:
29507         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29508         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29509         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29510         * modules/truncf, modules/truncf-ieee, modules/truncl:
29511         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29512         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29513         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29514         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29515         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29516         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29517         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29518         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29519         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29520         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29521         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29522         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29523         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29524         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29525         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29526         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29527         * modules/write, modules/xconcat-filename, modules/xlist:
29528         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29529         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29530         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29531         * modules/y0, modules/y1, modules/yn:
29532         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29533         change the maintainer to 'all'.  Let's hope someone volunteers.
29535 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29537         mktime: merge #if/#ifdef usage from glibc
29538         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29539         as that works with both Glibc's and Gnulib's style.
29540         See thread starting at Siddhesh Poyarekar's bug report at:
29541         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29543 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29545         git-version-gen: improve option descriptions
29546         * build-aux/git-version-gen: Mention that --prefix and --fallback
29547         have a mandatory argument.
29549 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29551         regex: fix memory leak in compiler
29552         Fix by Andreas Schwab in:
29553         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29554         * lib/regcomp.c (parse_expression): Deallocate partially
29555         constructed tree before returning error.
29557         regex: merge patch from libc
29558         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29559         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29560         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29562 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29564         acl: port to gcc -Wredundant-decls
29565         From a request by Dmitry Antipov in:
29566         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29567         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29568         "#ifndef _GL_ACL_H".
29570 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29571         Jim Meyering  <meyering@fb.com>
29573         parse-duration: eliminate 68-year duration limit
29574         * lib/parse-duration.c: Include "intprops.h".
29575         (TIME_MAX): Rename to MAX_DURATION and define to
29576         TYPE_MAXIMUM(time_t).
29577         * modules/parse-duration (Depends-on): Add intprops.
29578         Reported by Jonas 'Sortie' Termansen.
29580 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29582         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29583         * modules/pthread (Depends-on): Add 'extensions', as it defines
29584         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29585         (configure.ac-early): New section.
29586         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29587         it is no longer needed.
29589 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29591         pthread: define thread-safe macros on some platforms
29592         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29593         for thread-safe operation on some platforms.
29595 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29597         regex: don't be multithreaded if USE_UNLOCKED_IO.
29598         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29599         * lib/regex_internal.h: Do not use multithreaded version if
29600         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29601         around a porting bug with coreutils 8.22 on AIX 7.1.
29603 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29605         gettext: update macros to version 0.19
29606         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29607         depend on gl_EXTERN_INLINE and drop support for older Bison
29608         versions.
29610 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29612         select,poll: fix console handle check on windows 8
29613         lib/poll.c (IsConsoleHandle): Change from testing the lower
29614         2 bits of the handle to the more expensive but accurate syscall.
29615         lib/select.c: Likewise.
29617 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29619         select: fix waiting on anonymous pipes on MS-Windows
29620         * lib/select.c (rpl_select): Fall back to polling when select()
29621         indicates there is nothing to check, while due to the timeout not
29622         expiring, activity is indicated on one of the handles.
29623         Also clear the TIMEOUT argument if the timer does expire.
29625 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29627         times: fix to return non constant value on MS-Windows
29628         * lib/times.c (times): Don't use the process creation time,
29629         rather clock() which on windows returns the number of
29630         clock ticks since the process started.
29632 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29634         isatty: fix to work on windows 8
29635         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29636         2 bits of the handle to the more expensive but accurate syscall.
29638 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29640         maint: fix typo in fdl.texi
29641         * doc/fdl.texi: Fix typo (missing '@').
29642         Somehow this was in fdl.texi but not fdl-1.3.texi.
29644 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29646         mountlist: avoid hasmntopt const type warning on solaris
29647         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29648         with char * instead of const char *.  Passing the constant string
29649         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29650         to avoid the warning.
29652 2014-06-04  Eric Blake  <eblake@redhat.com>
29654         maintainer-makefile: delete obsolete code
29655         * top/maint.mk (build_aux): Drop old code, as threatened.
29657         maintainer-makefile: avoid spurious error messages
29658         * top/maint.mk (syntax-check): Guard definition and use of
29659         $(shell) by whether Makefile is present.
29661 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29663         rename: avoid unused-but-set-variable compiler warning
29664         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29665         it is possible that dst_exists may be set but not used.  Mark it with
29666         the unused attribute to avoid compiler warnings.
29668 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29670         rename: mark a label as potentially unused
29671         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29672         by marking the out label as potentially unused.
29673         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29675 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29677         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29678         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29680 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29682         acl: apply pure attribute to two functions
29683         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29684         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29686 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29688         gnulib-common.m4: add _GL_UNUSED_LABEL
29689         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29690         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29692 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29694         dup2, fcntl, fcntl-h: port to AIX 7.1
29695         This fixes some porting problems discovered when testing the latest
29696         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29697         in grep but it could be important for other applications.
29698         * doc/posix-functions/dup2.texi:
29699         * doc/posix-functions/fcntl.texi:
29700         * doc/posix-headers/fcntl.texi:
29701         Document AIX bugs.
29702         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29703         Define to 0 if outside 'int' range.
29704         * m4/dup2.m4 (gl_FUNC_DUP2):
29705         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29706         Check for getdtablesize.  If it's available, test a value just
29707         outside its range instead of testing 1000000.  When cross-compiling,
29708         guess that AIX will fail this improved test.
29710 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29712         printf, config.rpath: Port to FreeBSD 10.
29713         Problem reported by Tijl Coosemans in:
29714         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29715         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29716         (hardcode_direct): Simplify FreeBSD configuration.
29717         (library_names_spec): Don't mishandle FreeBSD 10+.
29718         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29719         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29720         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29721         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29722         Don't mishandle FreeBSD 10+ when cross-compiling.
29724         ftoastr: work around compiler bug in IBM xlc 12.1
29725         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29726         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29727         around a compiler bug in IBM xlc 12.1.0.0: it complains
29728         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29729         _GL_FLT_PREC_BOUND.'
29731 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29733         valgrind-tests: fixed misleading help message
29734         * m4/valgrind-tests.m4: The help message generated by configure
29735         implied that valgrind was disabled by default, which it wasn't.
29736         Adjusted the help message using s/enable/disable/ to clarify.
29738 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29740         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29741         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29742         first double of a PowerPC "double double" pair.
29743         * tests/test-isinf.c (test_isinfl): Likewise.
29744         * tests/test-isnan.c (test_long_double): Likewise.
29745         * tests/test-isnanl.h (main): Likewise.
29746         * tests/test-signbit.c (test_signbitl): Likewise.
29748 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29750         exclude-tests: port to AIX 7.1
29751         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29752         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29753         the regex code uses locks.
29755 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29757         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29758         Without this fix, Emacs would sometimes call sigprocmask instead
29759         of pthread_sigmask, which is a no-no in multithreaded applications.
29760         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29761         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29762         Suppress check for pthread_sigmask working without -lpthread if
29763         the application always links with -lpthread.  Do not link with
29764         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29765         * m4/timer_time.m4 (gl_TIMER_TIME):
29766         Require gl_THREADLIB only if it is defined.  Do not append
29767         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29769 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29771         gnulib-tool: wget translations using --no-verbose rather than --quiet
29772         This allows the user to see error messages if any (--quiet hides them)
29773         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29775 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29777         gnulib-tool: adjust translation wget to avoid a https redirection
29778         Context: http://translationproject.org/latest/gnulib redirects to
29779            https://translationproject.org/latest/gnulib/
29780         Rationale: if the user falls back to wget, she doesn't have rsync and
29781         is probably in a minimal build environment, where packages such as
29782         'ca-certificates' are missing as well, resulting in a failed (and
29783         difficult to detect since ignored) translation initial fetch.
29784         Consequently let's avoid https if possible, and add the missing
29785         trailing slash.  This also avoids an unnecessary 302 redirection.
29786         * gnulib-tool: Add trailing slash to gnulib URL.
29788 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29790         getlogin_r-tests: check return value rather than errno
29791         * tests/test-getlogin_r.c (main): As per POSIX we should be
29792         verifying the return value from getlogin_r() rather than errno.
29794 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29796         getlogin_r-tests: fix various issues in recent change
29797         * tests/test-getlogin_r.c: Include required headers that were
29798         missed in recent commit eec20b4e.
29799         Also consistently check the errno rather than the return value from
29800         getlogin_r as POSIX only specifies that non zero is returned on error.
29801         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29803 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29805         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29806         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29807         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29808         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29809         * lib/spawn-pipe.c:
29810         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29811         and then 'int open64(const char *, int, ...);', which means the
29812         declaration for 'open' gets lost if we later '#undef open'.
29813         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29814         where the compilation reported the non-fatal error "In function
29815         'openat_proc_name' ... warning: implicit declaration of function
29816         'open'".  In this case the error is relatively harmless, but in
29817         other cases it might not be so minor.
29819 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29821         xalloc: don't potentially generate invalid code for xmemdup calls
29822         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29823         this function can initialize the newly-allocated storage with new
29824         pointers, which means this function is not malloc-like.  See:
29825         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29827 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29829         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29830         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29831         changes from commit 97249cf29 to not depend on environment variables.
29833 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29835         getlogin-tests: avoid false failure under cron
29836         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29837         since that's not what's under test.  Centos 6 was seen to return
29838         EINVAL for ttyname() when run from cron.
29840 2014-05-16  Jim Meyering  <meyering@fb.com>
29842         mbrtowc.m4: fix a comment typo
29843         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29844         emitted documentation string.
29846 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29848         mbrlen, mbrtowc: fix bug with empty input
29849         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29850         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29851         so this is mainly for documentation.
29852         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29853         (gl_FUNC_MBRTOWC): Use it.
29854         * tests/test-mbrtowc.c (main): Test for the bug.
29856 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29858         doc: document mbrtowc and mbrlen problem with empty input
29859         * doc/posix-functions/mbrlen.texi (mbrlen):
29860         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29861         Document portability problem when the input string is empty.  See:
29862         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29864         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29865         Problem reported by Eli Zaretskii in:
29866         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29867         * doc/posix-functions/execl.texi (execl):
29868         * doc/posix-functions/execle.texi (execle):
29869         * doc/posix-functions/execlp.texi (execlp):
29870         * doc/posix-functions/execv.texi (execv):
29871         * doc/posix-functions/execve.texi (execve):
29872         * doc/posix-functions/execvp.texi (execvp):
29873         Mention spawn+exit problem on non-Cygwin Windows platforms.
29875 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29877         getlogin-tests: avoid false failure under sudo/ssh etc.
29878         * modules/getlogin-tests (configure.ac): Check for ttyname().
29879         * tests/test-getlogin.c (main): Don't depend on environment variables
29880         to correlate with getlogin(), since sudo and ssh etc. can tamper
29881         with the LOGNAME and USER env vars.  Instead lookup the name from
29882         the uid associated with the stdin tty.
29884 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29886         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29887         These were found when building the latest grep snapshot on IRIX 6.5.
29888         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29889         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29890         never used later.
29891         * lib/quotearg.c (quoting_options_from_style):
29892         * lib/xstrtol.c (__xstrtol):
29893         Use enum instead of 0, to pacify IRIX 6.5 cc.
29895 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29897         gitlog-to-changelog: revert inclusion of git-log-fix file
29898         * build-aux/git-log-fix: Delete dummy file.
29899         * modules/gitlog-to-changelog: Don't reference (overwrite)
29900         the project specific git-log-fix file.
29902 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29904         maint.mk: Relax the copyright check to cater for non FSF projects
29905         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29906         to not require the "Free" suffix after the copyright years.
29908 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29910         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29911         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29912         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29913         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29914         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29916 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29918         exclude: port to strict C99
29919         Strict C does not allow converting a function pointer to void *
29920         and vice versa.  Pass a pointer to a function pointer instead.
29921         * lib/exclude.c (add_exclude_file):
29922         Pass the address of the function pointer.
29923         (call_addfn): And deference the address here, to match.
29925 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29927         regex: do not depend on malloc-gnu
29928         * modules/regex (Depends-on): Remove malloc-gnu.
29929         It's no longer needed, because of the 2012-12-29 patch
29930         "regex: port to hosts where malloc (0) == NULL".
29931         Reported by Nathan Kennedy in:
29932         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29934 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29936         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29937         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29938         * doc/posix-functions/expl.texi: Mention the workaround.
29940 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29942         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29943         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29944         size to be zero even when the pointer is nonnull.  This
29945         accommodates the use case where P is malloc (0) and *PN is 0 on a
29946         host where malloc (0) yields nonnull.
29948 2014-04-09  Eric Blake  <eblake@redhat.com>
29950         fts: avoid unnecessary strlen calls
29951         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29953 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29955         fts: avoid unnecessary strlen calls
29956         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29957         when that can be faster than strlen.
29959 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29961         fts: avoid unnecessary strlen calls
29962         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29963         (fts_build): Store the length of the dp->d_name entry in a local variable
29964         instead of calling strlen() several times via the above, removed macro.
29965         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29966         run by ~4%, yet this reduces the execution time by about a third if run
29967         via "ltrace -c rm -rf some-dir".
29969 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29971         obstack: Remove ancient NeXTSTEP gcc support conditional
29972         This change will ease merging with glibc.  The "#if ... __NEXT__"
29973         causes a warning with -Wundef which glibc now enables by default.
29974         Problem reported by Will Newton in
29975         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29976         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29977         so go with that.
29978         * lib/obstack.h (__extension__):
29980 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29982         obstack: merge with glibc changes
29983         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29984         This is mostly indenting and commentary changes.
29985         Instances of 'register' have been removed.
29987 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29989         strftime: wrap macros in "do {...} while(0)"
29990         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29991         this macro in "do {...} while(0)" to prevent false use as a
29992         single statement, e.g., in an un-braced "{}" else-block.
29993         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29994         (strftime_case_): Remove 'else' after 'goto' - which was the
29995         only non-fatal, un-braced use of one of the above macros.
29996         Spotted by coverity (NESTING_INDENT_MISMATCH).
29998 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30000         modechange: avoid memory leaks for invalid octal modes
30001         * lib/modechange.c (mode_compile): During the parsing of
30002         notations like +40, free the 'mc' buffer for invalid mode
30003         strings like +17777 (greater than the maximum octal mode),
30004         =18 (bad octal mode characters) or u=1 ('affected' with
30005         octal modes).
30006         Reproducer, e.g.:
30007             $ valgrind --leak-check=full chmod +17777 file
30008         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30009         add notations +40, 00440, etc.".
30010         Spotted by coverity (RESOURCE_LEAK).
30012 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30014         gitlog-to-changelog: include a dummy git-log-fix file
30015         Problem reported by Nathan Stratton Treadway in:
30016         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30017         * build-aux/git-log-fix: New file.
30019 2014-03-13  Jim Meyering  <meyering@fb.com>
30021         gitlog-to-changelog: also include the file, git-log-fix
30022         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30023         Reported by Assaf Gordon.
30025 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30027         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30028         This fixes a bug when ignoring case and when comparing the
30029         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30030         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30031         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30032         titlecase letter is neither lowercase nor uppercase, but
30033         uppercasing the titlecase letter (via towupper) yields the
30034         uppercase letter, so the two letters should match when ignoring case.
30035         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30036         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30037         Don't test whether a character is lowercase before uppercasing it.
30039 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30041         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30042         This is basically one of the options Bruno Haible proposed in:
30043         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30044         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30045         * lib/stdint.in.h: Use it.
30046         * modules/stdint (Depends-on): Add sys_types.
30048 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30050         parse-datetime: fix crash or infloop in TZ="" parsing
30051         * lib/parse-datetime.y (parse_datetime): Break out of the
30052         TZ="" parsing loop once the second significant " is found.
30053         Also skip over any subsequent whitespace to be consistent
30054         with the non TZ= case.
30055         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30057 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30059         savedir: new symbol for fast-read version
30060         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30061         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30062         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30063         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30065 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30067         unistd: port readlink to Mac OS X 10.3.9
30068         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30069         around self-include problem in Mac OS X 10.3.9 when combined with
30070         readlink module.  Problem reported by Klaus Zietler in
30071         <http://bugs.gnu.org/16825>.
30073 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30075         diffseq: remove TOO_EXPENSIVE heuristic
30076         Problem with diffutils reported by Vincent Lefevre in
30077         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30078         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30079         Although appropriate for circa-1993 hardware, these days the heuristic
30080         seems to be more trouble than it's worth.
30081         * lib/diffseq.h: Modernize citations.
30082         (struct context): Remove member too_expensive.
30083         All uses changed.
30084         (struct partition): Remove members lo_minimal, hi_minimal.
30085         All uses changed.
30086         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30087         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30088         1993 to make 'diff' run faster (but not as well) on large inputs.
30089         These days, computers are fast enough that it's typically better
30090         to run slower but more accurately.
30091         * lib/fstrcmp.c: Remove duplicate comment.
30092         * lib/fstrcmp.c (strcmp_bounded):
30093         * lib/git-merge-changelog.c (compute_differences):
30094         Adjust to diffseq.h changes.
30095         * NEWS: Document the change.
30097         savedir: simplify by using stpcpy
30098         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30099         (streamsavedir): Use stpcpy instead.
30100         * modules/savedir (Depends-on): Add stpcpy.
30102 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30104         spawn: fix link error on uclibc
30105         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30106         to incorporate -lrt if needed (on uclibc for example).
30107         * modules/posix_spawn: Reference the substituted LIB.
30109 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30110         timer: fix uClibc detection of threading
30111         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30112         enabled in uClibc.
30114 2014-02-21  Eric Blake  <eblake@redhat.com>
30116         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30117         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30119 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30121         exclude: add support for posix regexps
30123         This commit adds support for POSIX extended regular expressions
30124         and fixes a long-standing memory leak (pattern buffer was never
30125         freed).  It also implements a new interface function to read
30126         exclude patterns from a FILE, which passes an additional parameter
30127         to its callback function, thereby allowing to preserve its state
30128         between invocations.
30130         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30131         (pattern_buffer): New struct.
30132         (exclude): New member patbuf.
30133         (exclude_add_pattern_buffer): New function.
30134         (free_exclude_segment): Free regexps.
30135         (free_exclude): Free allocated pattern buffers.
30136         (exclude_patopts): New function.
30137         (file_pattern_matches): Use exclude_patopts.
30138         (add_exclude): support regexps.
30139         (add_exclude_fp): New function.
30140         (add_exclude_file): Rewrite using add_exclude_fp.
30141         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30142         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30143         (add_exclude_fp)
30144         (add_exclude_file): Rewrite using add_exclude_fp.
30145         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30146         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30147         (add_exclude_fp)
30148         (exclude_add_pattern_buffer): New prototypes.
30149         * modules/exclude: Depends on regex and filename.
30151 2014-02-20  Eric Blake  <eblake@redhat.com>
30153         maintainer-makefiles: use $(SED) for syntax check
30154         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30155         * top/maint.mk: Change sed to $(SED).
30157 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30158             Paul Eggert  <eggert@cs.ucla.edu>
30160         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30161         Patch based on an idea by Dick Streefland in
30162         <https://savannah.gnu.org/patch/?7892>.
30163         * NEWS: Document this.
30164         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30165         (direntry_t, comparison_function): New types.
30166         (direntry_cmp_name): New function.
30167         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30168         (streamsavedir, savedir): New arg OPTION.
30169         (streamsavedir): Simplify memory allocation.
30170         (fdsavedir): Remove.
30171         * lib/savedir.h (enum savedir_option): New type.
30172         (streamsavedir, savedir): New arg OPTION.
30173         (fdsavedir): Remove.
30175 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30177         file-type: add support for doors and other less-common file types
30178         Problem with S_ISDOOR reported by Rich Burridge.
30179         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30180         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30181         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30183 2014-01-23  Eric Blake  <eblake@redhat.com>
30185         pthread: work around winpthread header pollution on mingw
30186         * lib/time.in.h: Move pthread workarounds...
30187         * lib/pthread.in.h: ...here.
30188         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30189         detect macro pollution on mingw.
30190         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30192 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30194         qacl: check for fchmod
30195         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30196         and qset-acl.c both use HAVE_FCHMOD.
30198 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30200         fdopen-tests: port to Tru64
30201         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30202         descriptor that is not open, as POSIX doesn't specify the
30203         resulting behavior and the test does not work on Tru64.
30204         Problem reported by Steven M. Schweda in:
30205         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30207         stdalign: port to HP-UX compilers
30208         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30209         if __HP_cc or __HP_aCC are nonzero.
30211 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30213         strtoimax: port to platforms lacking 'long long'
30214         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30215         check whether strtoll is declared, which causes the C file to
30216         wrongly report an error.  Problem reported by Steven M. Schweda in:
30217         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30218         * lib/strtoimax.c (strtoull):
30219         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30220         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30222 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30224         relocatable-perl: fix texi syntax
30225         * doc/relocatable-maint.texi: Escape braces.
30227 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30229         relocatable-perl: like relocatable-script, but for Perl scripts
30230         * build-aux/relocatable.pl.in: Add.
30231         * doc/relocatable-maint.texi: Add documentation.
30232         * modules/relocatable-perl: Add.
30234 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30236         tests: fix export bug in previous patch
30237         Problem reported by Jim Meyering.
30238         * tests/init.sh (re_shell): New var, which is exported instead of
30239         re_shell_.
30241         tests: simplify porting to Solaris 10 /bin/sh
30242         Some test cases in 'grep' need a shell that groks '$(';
30243         export re_shell_ for their benefit.  Problem reported for 'grep'
30244         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30245         * tests/init.sh (re_shell_): Export if it's used.
30247 2014-01-06  Eric Blake  <eblake@redhat.com>
30249         md5, sha1, sha256, sha512: support older autoconf
30250         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30251         for autoconf < 2.63b.
30253         include_next: port to autoconf 2.63
30254         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30256 2014-01-04  Jim Meyering  <meyering@fb.com>
30258         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30259         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30260         so that "make sc_maint" will ding anyone who puts non-ascii
30261         in any of gnulib's .texi files.
30263 2014-01-03  Jim Meyering  <meyering@fb.com>
30265         freadable, fwritable, fwriting: declare with the "pure" attribute
30266         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30267         * lib/fwritable.h (fwritable): Likewise.
30268         * lib/fwriting.h (fwriting): Likewise.
30269         Suggested by Bruno Haible.
30271         maint.mk: adapt openat.h-include-without-use test
30272         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30273         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30274         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30275         With this change, running "make sc_maint" in gnulib's top-level
30276         directory now passes for me.
30278 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30280         doc: use ASCII in .texi files where UTF-8 isn't needed
30281         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30282         * doc/posix-functions/setkey.texi, doc/regex.texi:
30283         Use ASCII input, not UTF-8.
30285 2014-01-02  Jim Meyering  <meyering@fb.com>
30287         freading: declare with the "pure" attribute
30288         * lib/freading.h (freading): Declare with the "pure" attribute.
30290         manywarnings: remove -Wmudflap
30291         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30292         it is no longer supported in gcc-4.9-to-be.
30294 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30296         relocatable-script: remove unused code
30297         Problem reported by Reuben Thomas in:
30298         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30299         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30301 2014-01-01  Jim Meyering  <meyering@fb.com>
30303         maint: fix public-submodule-commit to work with newer git
30304         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30305         We were over-quoting the test arguments, and somewhere prior to
30306         version 1.8.5.2.229, git stopped removing those excess quotes,
30307         which made the test fail, since the unexpanded strings would
30308         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30309         command wasn't even being run.
30311 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30313         doc: update main copyright year
30314         * doc/gnulib.texi: Update copyright date.
30316 2014-01-01  Eric Blake  <eblake@redhat.com>
30318         version-etc: new year
30319         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30320         * all files: run 'make update-copyright'
30322 2013-12-24  Eric Blake  <eblake@redhat.com>
30324         passfd: give nicer error for recvfd at eof
30325         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30326         * tests/test-passfd.c (main): Enhance test to cover this.
30328 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30330         gettimeofday: port recent C++ fix to Emacs
30331         Without this further patch, Emacs won't build due to
30332         the portcheck failing.  Also, this simplifies the patch a bit.
30333         * lib/time.in.h (localtime, gmtime): Don't replace unless
30334         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30335         * lib/time.in.h (localtime, gmtime):
30336         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30337         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30338         * modules/time (time.h):
30339         Don't worry about the possibility of localtime and gmtime
30340         being absent; they're present in all C libraries we know about.
30341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30342         Don't assume sys_time is present and has been initialized.
30343         Instead, use a hack that should work even if it hasn't been.
30344         Don't use a portcheck for gmtime or localtime; this supports
30345         the hack.
30346         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30348 2013-12-17  John W. Eaton  <jwe@gnu.org>
30350         gettimeofday: fix C++ crosscompilation
30352         Never replace gmtime and localtime by macros when compiling with
30353         C++, this prevents <ctime> from being included.
30355         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30356         define gmtime and localtime as preprocessor macros.  Instead
30357         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30358         REPLACE_LOCALTIME substitutions.
30359         * lib/time.in.h: Declare gmtime and localtime when needed.
30360         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30361         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30362         * modules/time: Depend on gettimeofday, and substitute the above
30363         variables in time.h.
30365 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30367         qacl: port to Windows better
30368         See Eli Zaretskii in
30369         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30370         * lib/file-has-acl.c (acl_access_nontrivial):
30371         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30372         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30374 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30376         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30377         * lib/gl_openssl.h: Cast void pointers to a specific type.
30379 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30381         open-tests: fix build failure with -Werror=old-style-declaration
30382         * tests/test-open.h: Reorder the inline to avoid the issue.
30384 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30386         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30387         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30388         init time, so that if early checks find crypto routines,
30389         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30390         avoiding link failures.
30392 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30394         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30395         This provides a new way to specify the default for
30396         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30397         Emacs uses this, as well as the old way.
30398         This attempts to implement a suggestion by Pádraig Brady in
30399         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30400         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30401         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30403         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30404         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30405         Add support for a new option, --with-openssl=auto, which causes
30406         the library to be used if available and silently ignored if not.
30407         Add support to allow configure.ac to specify its own
30408         default, by setting with_openssl_default before invoking gl_INIT.
30410 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30412         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
30413         Problem reported by Daiki Ueno in:
30414         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
30415         * tests/test-open.h (__always_inline):
30416         New macro, if not already defined.
30417         (test_open): Use it.
30419 2013-12-04  Eric Blake  <eblake@redhat.com>
30421         include_next: minimize code duplication
30422         * modules/include_next (Depends-on): Add absolute-header.
30423         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
30424         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
30426 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30428         getcwd: fix compile error in configure check
30429         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
30431 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30433         regex: suppress core dumps from detection code
30434         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
30435         to suppress core dumps that may well occur on glibc systems.
30436         These core dumps might not be cleaned up automatically, or could
30437         trigger some system core dump handling logic.
30439 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30441         md5, sha1, sha256, sha512: support mandating use of openssl
30442         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30443         description, to list the now 3 separate options.  also don't
30444         mention the default=no, since this is implicit given the option
30445         is described as --with-openssl rather than --without-openssl.
30446         If projects change the default they're free to document that.
30447         with --with-openssl[=yes] we now error out when the specified
30448         hash algorithm is not available in libcrypto.
30450 2013-12-03  Ivailo  <xakepa10@gmail.com>
30452         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30453         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30454         -Wformat-nonliteral checks, as these edge cases are part of the test.
30456 2013-12-03  Eric Blake  <eblake@redhat.com>
30458         regex: avoid glibc deadlock during configure
30459         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30460         glibc bug 15078 in turn triggers bug 16159.
30461         Reported by Michal Privoznik.
30463 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30465         md5, sha1, sha256, sha512: use openssl routines if available.
30466         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30467         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30468         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30469         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30470         in the standard system location.
30471         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30472         * m4/sha256.m4: Likewise with SHA256.
30473         * m4/sha512.m4: Likewise with SHA512.
30474         * m4/md5.m4: Likewise with MD5.
30475         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30476         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30477         * lib/sha256.h: Likewise with SHA256.
30478         * lib/sha512.h: Likewise with SHA512.
30479         * lib/md5.h: Likewise with MD5.
30480         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30481         * lib/sha256.c: Likewise with SHA256.
30482         * lib/sha512.c: Likewise with SHA512.
30483         * lib/md5.c: Likewise with MD5.
30484         * modules/crypto/sha1 (Link:): Add the new optional lib.
30485         (Depends-on:): Add dependency on extern-inline.
30486         * modules/crypto/sha256: Likewise.
30487         * modules/crypto/sha512: Likewise.
30488         * modules/crypto/md5: Likewise.
30489         * modules/crypto/sha1-tests: Reference the lib here too.
30490         * modules/crypto/md5-tests: Likewise.
30491         * modules/crypto/gc-des-tests: Likewise.
30492         * modules/crypto/gc-hmac-md5-tests: Likewise.
30493         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30494         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30495         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30496         * modules/crypto/gc-md5-tests: Likewise.
30497         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30498         * modules/crypto/gc-sha1-tests: Likewise.
30499         * modules/crypto/gc-tests: Likewise.
30500         * modules/crypto/hmac-md5-tests: Likewise.
30501         * modules/crypto/hmac-sha1-tests: Likewise.
30502         * modules/crypto/hmac-sha256-tests: Likewise.
30503         * modules/crypto/hmac-sha512-tests: Likewise.
30505 2013-11-29  RV1971  <rv1971@web.de>
30507         base64: (trivial) fix compilation regression on some compilers
30508         * lib/base64.c: Don't return the void function,
30509         instead split to a separate return statement.
30511 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30513         ignore-value: revert previous code change
30514         * lib/ignore-value.h (ignore_value): Use __extension__ and
30515         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30516         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30517         Change the comment to try to explain this better.
30519 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30521         selinux-h: improve stub types and add more stub functions
30523         * lib/se-selinux.in.h: Change security_context_t to a typedef
30524         rather than a define, as it's a pointer type and so is better
30525         as a typedef to avoid issues declaring multiple variables
30526         with the comma operator.  Also add stub for string_to_security_class().
30527         * lib/se-context.in.h: Add stub functions for
30528         context_{type,range,role,user}_get().
30530 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30532         ignore-value: prefer GCC version back through 2.0
30533         The code didn't match the comments, so I did a bit of software
30534         archaeology.  GCC 2.0 seems to support __extension__ and
30535         __typeof__, so fix both code and comments to use 2.0.
30536         * lib/ignore-value.h (ignore_value): Use __extension__ and
30537         __typeof__ for GCC 2.0 through 3.3, too.
30539 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30541         pty: Activate the signature wrapper of forkpty.
30542         The intended preprocessor macro HAVE_FORKPTY is
30543         never defined, yet `lib/forkpty.c' depends on it.
30545         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30546         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30547         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30549 2013-11-18  Jim Meyering  <meyering@fb.com>
30550         and Paul Eggert  <eggert@cs.ucla.edu>
30552         quotearg: don't attempt to store 1 << 31 into an "int"
30553         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30554         gcc's new -fsanitize=undefined and running its tests triggered some
30555         new test failures due to undefined behavior, all with this diagnostic:
30556           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30557             cannot be represented in type int
30558         Rather than shifting "1" left to form a mask, shift the bits right and
30559         simply use "1" as the mask.
30561 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30563         error: depend on stdio
30564         Problem reported by Nikos Mavrogiannopoulos in
30565         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30566         * modules/error (Depends-on): Add stdio.
30568 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30570         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30571         wording.
30572         Reported by Reuben Thomas <rrt@sc3d.org>.
30574 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30576         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30577         New function and macro, to work around _DARWIN_C_SOURCE problem.
30578         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30580 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30582         base64: provide a fast path for encoding well sized buffers
30583         Avoid conditionals in the base64 encoding loop,
30584         which was seen to give 60% better throughput.
30585         * lib/base64.c (base64_encode_fast): A new function to be called
30586         when we don't want to NUL terminate, and we have enough space
30587         in the output to encode the given input.
30588         (base64_encode): Call the _fast() version when appropriate.
30589         Also remove a redundant mask with 0x3F on the first encoded byte.
30591 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30593         extern-inline: port better to OS X 10.9
30594         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30595         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30596         OS X 10.9, except for g++ where the bug is still present.
30597         See <http://trac.macports.org/ticket/41033>.
30599 2013-11-08  Eric Blake  <eblake@redhat.com>
30601         fpending: fix regression on DragonFly BSD
30602         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30603         * lib/fpending.h (__fpending): Don't declare twice.
30604         Reported by GW in
30605         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30607 2013-11-05  Jim Meyering  <meyering@fb.com>
30609         hash: relax license to LGPLv2+, for libguestfs
30610         * modules/hash (License): Change from GPL to LGPLv2+.
30612 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30614         intprops: port to Oracle Studio c99
30615         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30616         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30618 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30620         obstack: pacify HP C
30621         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30622         warning "conversion from pointer to smaller integer" from HP
30623         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30624         C89 or later nowadays, so cast to void instead of int.  Privately
30625         reported by H.Merijn Brand.  Also, change header to match glibc's,
30626         to make checking against glibc easier.
30628 2013-10-29  Jim Meyering  <meyering@fb.com>
30630         maint.mk: prefer gpgv2 over gpgv
30631         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30632         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30633         Reported by Gary Vaughan.
30635 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30637         isnan: port to VAX
30638         Reported by John Klos for NetBSD-5/VAX in
30639         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30640         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30641         (FUNC): Use it.
30643 2013-10-28  Jim Meyering  <meyering@fb.com>
30645         gnulib-tool: protect against CDPATH
30646         * gnulib-tool: Many "cd" built-in functions print a directory name
30647         to stdout when CDPATH is set, e.g.,
30648           $ bash -c 'CDPATH=/; cd tmp'
30649           /tmp
30650         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30652         maint.mk: restore functionality removed by recent change...
30653         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30654         the context of a shallow-cloned gnulib repository: "git describe"
30655         would fail in such a directory.  However, that change made it so
30656         the reported gnulib revision no longer includes the version number
30657         or a commit count, even when run from a full clone.
30658         * top/maint.mk (gnulib-version): Use the full "git describe"
30659         output when possible, e.g., the form above, rather than the
30660         abbreviated, no-tag, no-commit-count string, and fall back to
30661         using a 10-byte hash, rather than the default minimal-length
30662         hash prefix, since while the minimal-length one may be fine today,
30663         it is likely not to be unique for very long.
30665 2013-10-26  Jim Meyering  <meyering@fb.com>
30667         maint.mk: fix "release" target to build _version
30668         This fixes a bug in README-release whereby following the outlined
30669         steps, one would publish a tarball whose programs would report
30670         --version output not consistent with the package version number.
30671         This bug caused grep-2.15 to produce a grep program whose
30672         --version option made it print 2.14.56-1e3d rather than 2.15.
30673         * top/maint.mk (release): Making this target build "_version"
30674         ensures that the new version number is reflected in configure.
30676 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30678         install-reloc: Support multi-binary installation.
30679         * build-aux/install-reloc: Support installing multiple programs in
30680         one invocation, as done by Automake starting with commit
30681         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30682         Haible <bruno@clisp.org>, archived at
30683         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30684         Reported by Sylvain <beuc@gnu.org>.
30686 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30688         selinux-h: Really build without selinux when library is missing.
30689         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30690         continue without selinux, as already told in the warning message.
30692 2013-10-21  Jim Meyering  <meyering@fb.com>
30694         regex: also remove dependency on HAVE_WCSCOLL
30695         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30697 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30699         xfreopen: Fix typo. s/frepoen/freopen/
30700         * lib/xfreopen.c: Fix description.
30701         * modules/xfreopen: Likewise.
30703 2013-10-21  Jim Meyering  <meyering@fb.com>
30705         regex: don't depend on wcscoll
30706         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30707         It is no longer used.
30709 2013-10-20  Jim Meyering  <meyering@fb.com>
30711         error: add the printf attribute to a static function
30712         * lib/error.c (error_tail): Add the printf attribute, to placate
30713         gcc's -Werror=suggest-attribute=format option.
30715 2013-09-30  Jim Meyering  <meyering@fb.com>
30717         fpending, obstack, strerror-override: use pure+const function attrs
30718         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30719         * lib/obstack.c (_obstack_allocated_p): Likewise.
30720         * lib/obstack.h (_obstack_memory_used): Likewise.
30721         (_obstack_memory_used): Likewise.
30722         * lib/strerror-override.h (strerror_override): Declare with
30723         the "const" attribute.
30725 2013-10-18  Eric Blake  <eblake@redhat.com>
30727         extern-inline: make safe for -Wundef usage
30728         Reported by Vladimir 'phcoder' Serbinenko in
30729         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30730         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30732 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30734         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30735         Problem reported by Daniel Richard G. in
30736         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30737         * doc/posix-functions/mkfifo.texi (mkfifo):
30738         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30739         * doc/posix-functions/mknod.texi (mknod):
30740         * doc/posix-functions/mknodat.texi (mknodat):
30741         Document the HP-UX 11.11 bug.
30742         * tests/test-mkfifo.h (test_mkfifo):
30743         Allow the HP-UX 11.11 bug.
30745 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30747         acl: allow cross-compilation to Gentoo
30748         Problem reported by Gabriel Marcano in
30749         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30750         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30751         test only whether it links.
30753 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30755         mgetgroups: remove dependency on realloc-gnu
30756         The dependency violates the comment in realloc-gnu, which
30757         says that tests can't depend on realloc-gnu; some tests depend
30758         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30759         Problem reported by Daniel Richard G. in
30760         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30761         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30762         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30763         not realloc-gnu.
30765 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30767         regex-tests: port to HP-UX 11.11
30768         Problem reported by Daniel Richard G. in
30769         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30770         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30772 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30774         verify: document some 'assume' pitfalls
30775         * doc/verify.texi (Compile-time Assertions):
30776         Mention that 'assume (E)' can sometimes slow things down.
30777         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30779 2013-10-10  Eric Blake  <eblake@redhat.com>
30781         strtoumax: fix typo in previous commit.
30782         * modules/strtoumax (Depends-on): Fix typo.
30783         * modules/strtoimax (Depends-on): Likewise.
30785 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30787         strtoumax: port to Solaris 8
30788         This problem was introduced in the recent HP-UX patch.
30789         Reported by Tom G. Christensen in
30790         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30791         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30792         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30794 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30796         strtoimax, strtoumax: port to HP-UX 11.11
30797         Problem reported by Daniel Richard G. in
30798         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30799         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30800         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30801         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30802         REPLACE_STRTOUMAX.
30803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30805         Replace the function if defined as a macro but not as a function.
30806         * modules/inttypes-incomplete (inttypes.h): Substitute
30807         REPLACE_STRTOUMAX.
30808         * modules/strtoumax (configure.ac): Replace strtoumax if
30809         REPLACE_STRTOUMAX.
30811 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30813         strtoimax: port to HP-UX 11.11
30814         Problem reported by Daniel Richard G.
30815         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30816         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30817         they might clash with inttypes.h.
30819 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30821         New module 'count-trailing-zeros'.
30822         * MODULES.html.sh: Mention it.
30823         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30824         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30825         * modules/count-trailing-zeros-tests:
30826         * tests/test-count-trailing-zeros.c:
30827         New files.
30829         count-leading-zeros: port to MSC; support types wider than 64 bits
30830         The ideas behind the MSC port are stolen from Emacs.
30831         * lib/count-leading-zeros.h:
30832         Don't include verify.h: it's no longer needed, as types wider than
30833         64 bits are now supported.
30834         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30835         performance with MSC.  All uses changed.  Do not assume that TYPE
30836         has at most 64 bits.
30837         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30838         All uses changed.  Fold the subtraction from 31 into the table.
30840         count-one-bits: port to MSC; support types wider than 64 bits
30841         The ideas behind the MSC port are stolen from Emacs.
30842         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30843         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30844         Don't include verify.h: it's no longer needed, as types wider than
30845         64 bits are now supported.
30846         (COUNT_ONE_BITS_GENERIC): New macro.
30847         (popcount_supported) [_MSC_VER]: New inline function.
30848         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30849         performance with MSC.  All uses changed.  Do not assume that TYPE
30850         has at most 64 bits.
30851         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30853 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30855         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30856         * lib/mountlist.c (read_file_system_list): fix leak of directory
30857         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30859 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30861         tests: improve diagnostic when an assertion fails
30862         * tests/macros.h (ASSERT): Report the assertion that failed.
30864 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30866         verify: new macro 'assume'
30867         This is taken from Emacs, and should be generally useful.
30868         * doc/verify.texi (assume): Document it.
30869         * lib/verify.h (assume): New macro.
30870         (__has_builtin): Expand to 0 if not defined.
30872 2013-09-26  Eric Blake  <eblake@redhat.com>
30874         dup2, dup3: work around another cygwin crasher
30875         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30876         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30877         * tests/test-dup2.c (main): Likewise.
30878         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30879         * lib/dup3.c (dup3): Likewise.
30880         * doc/posix-functions/dup2.texi (dup2): Document it.
30881         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30883         getdtablesize: work around cygwin issue
30884         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30885         * modules/getdtablesize (configure.ac): Build replacement.
30886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30887         * modules/unistd (Makefile.am): Expose the witness.
30888         * lib/unistd.in.h (getdtablesize): Declare replacement.
30889         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30890         * tests/test-getdtablesize.c (main): Test it.
30891         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30893 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30895         pmccabe2html: escaping of special characters
30896         Escape all '<', '>', and '&' in HTML output.
30897         * build-aux/pmccabe2html (html_fnc): Call gsub()
30898         instead of sub() to capture all '<', '>', and '&'.
30899         Neither of '<' and '>' is special in a regexp,
30900         so first arguments to gsub() are corrected. Also,
30901         in replacement strings, ampersand must be escaped.
30902         Finally, '&' must be handled first, then '<' and '>'.
30904 2013-09-24  Eric Blake  <eblake@redhat.com>
30906         manywarnings: enable nicer gcc warning messages
30907         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30908         some -f options for optimal warnings.
30910 2013-09-21  Jim Meyering  <meyering@fb.com>
30912         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30913         * lib/timespec-add.c (timespec_add): Also replace 999999999
30914         with TIMESPEC_RESOLUTION - 1.
30915         * lib/timespec-sub.c (timespec_sub): Likewise.
30917 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30919         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30920         Problem reported by Dagobert Michelsen via Eric Blake in
30921         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30922         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30923         not AC_COMPILE_IFELSE.
30925 2013-09-23  Eric Blake  <eblake@redhat.com>
30927         configmake: support new --runstatedir option
30928         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30929         even if autoconf was too old to provide the command line option.
30930         * modules/configmake (Makefile.am): Propagate it to .h file.
30932 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30934         ctype, string: depend on extern-inline
30935         This is needed to complete the recent OS X fixes.
30936         Also, fix related documentation as suggested by Eric Blake.
30937         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30938         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30939         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30940         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30941         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30942         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30943         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30944         * doc/posix-functions/toupper.texi:
30945         List the 'ctype' gnulib module.
30946         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30947         * doc/posix-functions/strncpy.texi:
30948         List the 'string' gnulib module.
30949         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30950         Add string.
30951         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30953 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30955         userspec: support optional parameters to parse_user_spec()
30956         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30957         then avoid group processing and treat the full spec as a user.
30958         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30959         be optional params (NULL), in which case they're ignored.
30961 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30963         timespec: new function make_timespec, and new constants
30964         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30965         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30966         (make_timespec): New function.
30967         * lib/dtotimespec.c (dtotimespec):
30968         * lib/timespec-add.c (timespec_add):
30969         * lib/timespec-sub.c (timespec_sub):
30970         * lib/utimens.c (validate_timespec):
30971         * lib/utimensat.c (rpl_utimensat):
30972         Use these new constants and functions.
30974         stdio: OS X port of putc_unlocked + extern inline
30975         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30976         * doc/posix-functions/putc_unlocked.texi:
30977         * doc/posix-functions/putchar_unlocked.texi:
30978         Document this portability problem.
30980         signal: OS X port of sigaddset etc. + extern inline
30981         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30982         (sigismember): #undef on problematic Apple platforms.
30983         * doc/posix-functions/sigaddset.texi:
30984         * doc/posix-functions/sigdelset.texi:
30985         * doc/posix-functions/sigemptyset.texi:
30986         * doc/posix-functions/sigfillset.texi:
30987         * doc/posix-functions/sigismember.texi:
30988         Document this portability problem.
30990         extern-inline: do not always suppress extern inline on OS X
30991         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30992         extern inline on Apple only if the particular compile-time
30993         configuration is known to have the problem.
30994         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30995         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30996         other Gnulib modules.
30998         extern-inline: document fixes for ctype and wctype macros
30999         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31000         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31001         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31002         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31003         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31004         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31005         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31006         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31007         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31008         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31009         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31010         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31011         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31012         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31013         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31014         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31015         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31016         * doc/posix-functions/strncpy.texi:
31017         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31018         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31019         Document that Gnulib fixes portability problems with these
31020         functions on OS X 10.8 and earlier when called from plain inline
31021         or extern inline functions.
31023 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31025         fflush, freadahead, fseeko: Fix for Android
31026         Suggested by Bruno Haible in:
31027         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31028         * lib/stdio-impl.h: Use local __sfileext definition.
31030 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31032         pmccabe2html: Portability to other awk versions.
31033         The functions systime() and strftime() are available
31034         in Gawk only.  Properly close two HTML-tags 'style'
31035         and 'span'.
31036         * build-aux/pmccabe2html (BEGIN): Store timing
31037         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31038         systime() in HTML_COMMENT.
31039         (html_header): Correctly close tag 'style'.
31040         (END): Replace strftime() by CHRONOS_TIME.  Close
31041         tag 'span' correctly, not as 'div'.
31043 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31045         getgroups: statement without effect
31046         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31047         Change equality conditional to expected assignment.
31049 2013-09-09  Eric Blake  <eblake@redhat.com>
31051         glob: fix compilation
31052         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31054 2013-09-07  Eric Blake  <eblake@redhat.com>
31056         glob: fix build for platforms without __THROW
31057         * lib/glob.in.h (__THROW): Add definition again.
31059 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31061         regex-quote: fix buffer access out of bounds
31062         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31063         * lib/regex-quote.c (regex_quote_spec_pcre):
31064         Fix typo that resulted in an out-of-bounds read.
31066 2013-09-04  Eric Blake  <eblake@redhat.com>
31068         glob: avoid -Wattribute warnings on glibc
31069         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31070         __THROWNL, not __THROW, on static functions.
31071         * lib/glob.in.h (__THROW): Adjust...
31072         (__THROWNL): ...accordingly.
31074 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31076         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31077         Suggested by Bruce Korb in:
31078         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31079         * doc/extern-inline.texi (extern inline):
31080         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31081         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31082         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31083         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31084         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31085         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31086         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31087         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31088         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31089         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31090         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31091         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31092         * lib/xtime.h:
31093         Check that _GL_INLINE_HEADER_BEGIN is defined.
31095 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31097         bootstrap: remove the --version requirement from ancillary tools
31098         * build-aux/bootstrap (check_exists): A new refactored function to
31099         determine if a command exists.
31100         (find_tool): Use the new function which does not require the
31101         --version option to be supported.
31102         (check_versions): Use the new function.
31104 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31106         gc: support HMAC-SHA256 and HMAC-SHA512.
31107         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31108         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31109         functions.
31110         (gc_hmac_md5): Use symbolic constant.
31111         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31112         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31113         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31114         * m4/sha256.m4: Protect against empty expansion.
31115         * m4/sha512.m4: Likewise.
31116         * lib/hmac-sha256.c: New file.
31117         * lib/hmac-sha512.c: Likewise.
31118         * m4/gc-hmac-sha256.m4: Likewise.
31119         * m4/gc-hmac-sha512.m4: Likewise.
31120         * m4/gc-sha256.m4: Likewise.
31121         * m4/gc-sha512.m4: Likewise.
31122         * modules/crypto/gc-hmac-sha256: Likewise.
31123         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31124         * modules/crypto/gc-hmac-sha512: Likewise.
31125         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31126         * modules/crypto/hmac-sha256: Likewise.
31127         * modules/crypto/hmac-sha256-tests: Likewise.
31128         * modules/crypto/hmac-sha512: Likewise.
31129         * modules/crypto/hmac-sha512-tests: Likewise.
31130         * tests/test-gc-hmac-sha256.c: Likewise.
31131         * tests/test-gc-hmac-sha512.c: Likewise
31132         * tests/test-hmac-sha256.c: Likewise.
31133         * tests/test-hmac-sha512.c: Likewise
31135 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31137         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31138         of AC_CHECK_DECLS.
31140 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31142         selinux-at: omit unnecessary include
31143         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31144         this source file doesn't use its macros, and subsidiary files that
31145         use the macros already include it.
31147 2013-08-21  Eric Blake  <eblake@redhat.com>
31149         d-ino: avoid false negative on symlink
31150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31151         Reported by Stephane Chazelas.
31153 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31155         bootstrap: port to OpenBSD sed
31156         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31157         does not interpret `-' as a file argument to mean stdin.
31159 2013-08-15  Eric Blake  <eblake@redhat.com>
31161         warnings: minor optimization
31162         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31164         warnings: check -Wfoo rather than -Wno-foo
31165         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31166         -Wno-, test if the compiler recognizes the positive form instead.
31168 2013-08-15  Karl Berry  <karl@gnu.org>
31170         * config/srclist-update: add option "doclicense" to placate
31171         pulling *.texi files from Emacs.  Write terse usage
31172         documentation at the top.
31174 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31176         xvasprintf-tests: port to GCC with hardening flags
31177         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31178         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31179         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31181 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31183         fpending: port to recent Cygwin change to stdio_ext.h
31184         Reported by LRN in
31185         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31186         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31187         just declare __fpending unless it's a macro.
31188         A duplicate decl shouldn't hurt.
31189         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31190         call compiles and links, instead of separately checking for
31191         decl and lib function.
31192         * modules/fpending (configure-ac):
31193         Adjust to fpending.m4's renaming of shell variable.
31195 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31197         sys_time: port to OpenBSD
31198         * lib/sys_time.in.h: Simply delegate to the system's header
31199         in the BSDish cases as well.  Problem reported by Mike Miller in
31200         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31201         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31202         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31203         wider than time_t.
31205 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31207         bootstrap: support checksum utils having -c but not --status
31208         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31209         Add sha1 to the list of supported checksum utils since it's now
31210         supported through adjustments below.
31211         (update_po_files): Remove the use of --status
31212         in a way that will suppress all error messages, but since this is
31213         only used to minimize updates, it shouldn't cause an issue.
31214         Exit early if there is a problem updating the po file checksums.
31215         (find_tool): Remove the check for --version support as this
31216         is optional as per commit 86186b17.  Don't even check for the
31217         presence of the command as if that is needed, it's supported
31218         through configuring prerequisites in bootstrap.conf.
31219         Prompt that when a tool isn't found, one can define an environment
31220         variable to add to the hardcoded search list.
31222 2013-08-05  Jim Meyering  <meyering@fb.com>
31224         regex: port to non-glibc/lock-using systems
31225         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31226         system with GNULIB_LOCK would fail due to absence of the
31227         included "glthread/lock.h".  This would affect any package
31228         for which the "lock" module is used only by the regex module,
31229         and not explicitly used.
31230         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31231         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31232         Add a dependency on the "lock" module.
31234 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31236         localecharset: make locale_charset thread-safe on Mac OS X
31237         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31238         instead of MB_CUR_MAX.
31240 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31242         gettext: update to version 0.18.3
31243         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31244         require AC_PROG_SED to allow user to specify custom sed command when
31245         generating en@quot PO file.
31247 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31249         bootstrap: use correct source when copying build-aux files
31250         * build-aux/bootstrap (gnulib_extra_files): This variable is
31251         relative to upstream gnulib layout, not downstream.
31253 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31255         tmpdir: fix bug in VMS port
31256         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31257         See Steven M. Schweda in
31258         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31260 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31262         tmpdir: port to VMS, to // != /, and to long dirs
31263         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31264         __secure_getenv, so that we're more like the glibc version.
31265         All uses changed.
31266         (path_search): Don't put slash after directory if __VMS.
31267         Problem reported by Steven M. Schweda in
31268         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31269         Simplify code to add slash; no need for a loop.
31270         Do not remove trailing slash from "//".
31271         Do not assume dlen <= INT_MAX.
31273 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31275         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31276         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31277         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31278         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31280         accept4, dup3, pipe2: port to Cygwin
31281         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31282         * lib/accept4.c (accept4) [O_BINARY]:
31283         * lib/dup3.c (dup3) [O_BINARY]:
31284         * lib/pipe2.c (pipe2) [O_BINARY]:
31285         Use set_binary_mode, not setmode.
31286         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31287         * modules/binary-io (Depends-on): Remove module indicator.
31288         These last two bits undo the previous change to pipe2 and binary-io.
31290 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31292         mountlist: add support for deallocating returned list entries
31293         * lib/mountlist.c (free_mount_entry): A new exported function
31294         to deallocate a mount list entry.
31295         (read_file_system_list): Refactor to use the new deallocation function.
31296         Suggested by Anton Ovchinnikov.
31298 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31300         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31301         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31302         * lib/stdalign.in.h (_Alignas, _Alignof):
31303         Port to FreeBSD 9.1, and to C11 and C++11.
31304         (_Alignas): Also support ICC.
31305         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31306         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31308 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31310         fnmatch: don't goto over declaration
31311         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31312         undefined behavior for goto over a declaration.
31313         Problem reported by Charlie Brown in
31314         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31316         pipe2: decouple from binary-io a bit
31317         This is for Emacs, which needs pipe2 but not binary-io.
31318         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31319         * modules/binary-io (Depends-on): Add module indicator.
31321 2013-07-03  Eric Blake  <eblake@redhat.com>
31323         mgetgroups: relax license to LGPLv2+
31324         * modules/getugroups (License): Change from GPLv3+.
31325         * modules/mgetgroups (License): Likewise.
31326         * modules/getgroups (License): Change from LGPLv3+.
31328         xalloc-oversized: relax license to LGPLv2+
31329         * modules/xalloc-oversized (License): Change from GPLv3+.
31331         nproc: relax license to LGPLv2+
31332         * modules/nproc (License): Change from LGPLv3+.
31334         bootstrap: honor --no-git
31335         * build-aux/bootstrap: Don't even try to use git when user is
31336         pointing to a static checkout.
31338 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31340         ignore-value: port to gcc -pedantic
31341         * lib/ignore-value.h (ignore_value):
31342         Port to gcc -pedantic, by using __extension__.
31343         Reindent as per usual gnulib style nowadays.
31344         Simplify GCC version check.
31346 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31348         extern-inline: port to gcc -std=c89
31349         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31350         Do not use __gnu_inline__ if pedantic and pre-C99.
31352 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31354         doc: document extern-inline
31355         * doc/extern-inline.texi: New file.
31356         * doc/gnulib.texi (alloca-opt): Include it.
31357         * m4/extern-inline.m4: Move some comments to documentation,
31358         and others closer to what they describe.
31360         doc: chatter less
31361         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31362         (updated-stamp): Use it.  This causes 'make' to output just
31363         one file name rather than zillions.
31365         fflush, fseeko: port to musl cross-compiles
31366         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31367         on some implementation that (1) is not known to be buggy,
31368         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31369         cross-compiled to so we can't easily check for lack of
31370         conformance.  This is for cross-compiling to musl.
31371         Reported by Rich Felker in
31372         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31373         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31374         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31375         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31376         Adjust to above change.
31377         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31378         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31379         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31380         known not to work, or unknown.
31382 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31384         msvc-inval: port to mingw-w64
31385         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31386         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31387         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31389 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31391         getcwd-lgpl: port to Tru64
31392         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31393         Problem reported by Steven M. Schweda in
31394         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31396         tests: port large-fd POSIX spawn tests to OS X
31397         Problem reported by Daiki Ueno in
31398         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31399         * tests/test-posix_spawn_file_actions_addclose.c:
31400         * tests/test-posix_spawn_file_actions_adddup2.c:
31401         * tests/test-posix_spawn_file_actions_addopen.c:
31402         Include <limits.h>, for OPEN_MAX, if available.
31403         (big_fd): New static function.
31404         (main): Use it.
31406 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31408         tests/nap.h: use an adaptive delay to avoid ctime update issues
31409         The recent change in nap.h (5191133e) decreased the probability of lost
31410         races to about a third, however such problems could still be observed
31411         in virtual machines and openSUSE's OBS.
31412         Before, nap() detected the needed time once empirically and then used
31413         that delay (together with a small correction multiplier) in further
31414         calls.  This problem has been reported and discussed several times,
31415         including guesses about possible kernel issues:
31416         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
31417         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
31418         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
31419         http://bugs.gnu.org/12820
31420         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
31421         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
31422         Now, nap() avoids the race alltogether by verifying on a reference
31423         file whether a timestamp difference has happened.
31424         * tests/nap.h (nap_fd): Define file descriptor variable for the
31425         witness file.
31426         (nap_works): Change return value to bool.  Change passing
31427         the old file's status by value instead of by reference as this function
31428         does no longer update that timestamp; rename the function argument from
31429         st to old_st.  Remove the local variables cdiff and mdiff because that
31430         function now returns true/false instead of the precise delay.
31431         (guess_delay): Remove function.
31432         (clear_tmp_file): Add new function to close and unlink the witness file.
31433         (nap): Instead of re-using the delay which has been calculated during
31434         the first call, avoid the race by actually verifying that a timestamp
31435         difference can be observed on the current file system.  Use an adaptive
31436         approach for the delay to minimize execution time.  Assert that the
31437         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31438         = 2^31 - 1 = 2.1s.
31439         Use atexit to call clear_tmp_file when the process terminates.
31441 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31443         sig2str: port to C++
31444         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31445         Reported by Daniel J Sebald in
31446         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31448 2013-05-30  Eric Blake  <eblake@redhat.com>
31450         docs: mention cygwin shortcoming in <sys/un.h>
31451         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31453         vasnprintf: silence mingw compiler warning
31454         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31456 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31458         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31459         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31460         This fixes a porting bug I recently reintroduced in regex, and
31461         some other instances that I discovered while testing the fix.
31462         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31463         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31464         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31465         with an empty argument if this is a pedantic pre-C99 GCC.
31466         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31467         pre-C11 GCC.
31469         regex: adapt to locking regime instead of depending on pthread
31470         Instead of depending on pthread, adapt to whatever thread
31471         modules are in use.  Problem reported by Ludovic Courtès in
31472         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31473         and by Mats Erik Andersson in
31474         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31475         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31476         Support either the 'lock' module, or the 'pthread' module, or
31477         no module.
31478         (lock_lock, lock_unlock): New macros.
31479         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31480         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31481         * modules/regex (Depends-on): Remove pthread.
31483 2013-05-22  Eric Blake  <eblake@redhat.com>
31485         getgroups: document portability issues
31486         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31487         multithread safety.
31488         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31489         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31490         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31491         getugroups.
31492         * doc/posix-functions/getgroups.texi (getgroups): Mention
31493         multithread safety and mgetgroups.
31495 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31497         test-lchown, test-chown: also skip test if chown fails with EPERM
31498         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31499         skip this test, to handle FAT file systems.
31500         * tests/test-chown.h (test_chown): Likewise.
31502 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31504         regex: fix dfa race in multithreaded uses
31505         Problem reported by Ludovic Courtès in
31506         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31507         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31508         New macros.  All uses of __libc_lock_define, __libc_lock_init
31509         changed to use the first two of these.
31510         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31511         non-glibc platforms.
31512         (struct re_dfa_t): Define the lock unconditionally.
31513         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31514         '#ifdef _LIBC"s.
31515         * modules/regex (Depends-on): Add pthread, if we use the
31516         included regex.
31518         * lib/regcomp.c: Do actions that are not needed for glibc,
31519         but may be needed elsewhere.
31520         (regfree, re_compile_internal): Destroy the lock.
31521         (re_compile_internal): Check for lock-initialization failure.
31523         malloca: port to compilers that reject size-zero arrays
31524         This fixes a bug introduced in my previous patch.
31525         * lib/malloca.c (struct preliminary_header): Use an int
31526         rather than a character array of size int; that's simpler.
31527         (struct header): Remove, replacing with ...
31528         (union header): New type.  This avoids the need for declaring a
31529         character array of size zero, which is not allowed on some platforms.
31530         All uses changed.
31532 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31534         parse-datetime, tests: don't use "string" + int
31535         Recent versions of 'clang' complain about C source code that
31536         uses expressions of the form '"string literal" + integer',
31537         I guess on the theory that it's confusing for readers who are
31538         used to C++.  On those grounds I suppose it's OK to make this
31539         minor style change.
31540         * lib/parse-datetime.y (parse_datetime):
31541         * tests/test-fchdir.c (main):
31542         * tests/test-snprintf-posix.h (test_function):
31543         * tests/test-snprintf.c (main):
31544         * tests/test-vasnprintf-posix.c (test_function):
31545         * tests/test-vasnprintf.c (test_function):
31546         * tests/test-vsnprintf.c (main):
31547         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31548         Rewrite '"str" + E' to '&"str"[E]'.
31550 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31552         argmatch: port to C++
31553         * lib/argmatch.h [__cplusplus]: Add extern "C".
31555         argp: typo fix
31556         * lib/argp-help.c: Typo in comment.
31558 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31560         manywarnings: update for GCC 4.8.0
31561         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31562         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31563         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31564         -Wmissing-noreturn, as they are duplicates of other warnings.
31565         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31566         was documented to be flaky in earlier versions of GCC.
31568         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31569         * tests/test-spawn.c (main):
31570         * tests/test-sys_socket.c (main):
31571         * tests/test-sys_wait.c (main):
31572         Don't have a switch value that isn't covered by a case.
31574         getaddrinfo-tests: port --enable-gcc-warnings to clang
31575         * tests/test-getaddrinfo.c (simple):
31576         Avoid casts from looser to stricter-aligned pointers.
31578         thread: port --enable-gcc-warnings to clang
31579         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31580         Include <signal.h>, to pacify a warning about pthread_sigmask.
31582         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31583         * lib/stdio.in.h (fwrite):
31584         When working around bug 11959, use __REDIRECT rather than '#define
31585         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31586         fix the -Wunused-value issue with clang, and it works with GCC too.
31587         Problem with targeting reported by Eric Blake in
31588         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31589         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31590         debugging the fwrite issue.
31592         stdio: port --enable-gcc-warnings to clang
31593         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31594         since the GCC workaround for fwrite does not pacify clang.
31596         sig2str: port --enable-gcc-warnings to clang
31597         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31599         obstack: port --enable-gcc-warnings to clang
31600         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31601         Avoid casts from looser to stricter-aligned pointers.
31603         memchr2: port --enable-gcc-warnings to clang
31604         * lib/memchr2.c (memchr2):
31605         Avoid casts from looser to stricter-aligned pointers.
31607         mbsstr: port --enable-gcc-warnings to clang
31608         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31609         Avoid casts from looser to stricter-aligned pointers.
31611         malloca: port --enable-gcc-warnings to clang
31612         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31613         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31615         inttostr: port --enable-gcc-warnings to clang
31616         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31618         warnings: port to clang
31619         Problem reported by Daniel P. Berrange via Eric Blake in
31620         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31621         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31622         (gl_WARN_ADD): Use it.
31624 2013-05-11  Jim Meyering  <meyering@fb.com>
31626         quotearg: do not read beyond end of buffer
31627         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31628         end of an ARG for which no length was specified.  With an N-byte
31629         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31630         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31631         via coreutils' misc/sort-debug-keys.sh test and detected by running
31632         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31633         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31634         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31635         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31636         characters correctly."
31638 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31640         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31641         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31642         compilation target is Mac OS X 10.6.
31643         Problem reported by parafin and Andoni Morales in
31644         <http://savannah.gnu.org/bugs/?37844> and
31645         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31647 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31649         mkdir-p: remove assumptions about umask and mode
31650         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31651         umask is 0, or that MODE is a subset of MODE_BITS.
31653 2013-05-10  Eric Blake  <eblake@redhat.com>
31655         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31656         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31658 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31660         deps: require Automake >= 1.9.6 in generated Makefile fragments
31662         That is the same minimal version required in the DEPENDENCIES file.
31663         Moreover, the old code generated a requirement of Automake >= 1.5,
31664         and that is an insanely outdated version.
31666         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31667         * tests/havelib/rpathlx/Makefile.am: Likewise.
31668         * tests/havelib/rpathly/Makefile.am: Likewise.
31669         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31670         * tests/havelib/rpathlz/Makefile.am: Likewise.
31671         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31672         * tests/havelib/rpathx/Makefile.am: Likewise.
31673         * tests/havelib/rpathy/Makefile.am: Likewise.
31674         * tests/havelib/rpathz/Makefile.am: Likewise.
31676 2013-05-08  Eric Blake  <eblake@redhat.com>
31678         bootstrap: AC_INIT may have more than four parameters
31679         * build-aux/bootstrap (extract_package_name): Correctly extract
31680         non-empty tarname field.  Avoid range in regex.
31681         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31683 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31685         qacl: port to MS-Windows port of GNU Emacs
31686         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31687         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31688         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31689         <http://bugs.gnu.org/14295#14>.
31691 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31693         acl: include quote.h
31694         * lib/copy-acl.c: Include quote.h.
31695         * lib/set-acl.c: Likewise.
31697 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31699         fchownat, renameat, unlinkat: update statat dependencies
31700         These modules use statat and lstatat, not fstatat; so depend on
31701         the statat module, which was split out recently from fstatat.
31702         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31703         * modules/renameat: Likewise.  Also delete fstat.
31704         URL: http://bugs.gentoo.org/468790
31706 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31708         Assume gnulib is checked out from Git, not CVS
31710         In fact, access to the gnulib repository through CVS has been
31711         disabled, or more precisely, got broken and was never restored; see:
31712         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31714         Note that support for CVS is not removed completely and unthinkingly
31715         by this change: only support for CVS checkouts of gnulib itself is
31716         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31717         files and CVS directories, for the benefit of those poor gnulib clients
31718         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31720         * gnulib-tool: Simplify accordingly.
31721         * posix-modules: Likewise.
31722         * MODULES.html.sh: Likewise.
31723         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31724         repository.
31725         * doc/gnulib-intro.texi: Likewise.
31726         * doc/gnulib-readme.texi: Likewise.
31727         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31728         sample '.gitignore' file rather than a sample '.cvsignore'.
31729         * NEWS: Update.
31730         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31731         to "CVS Autoconf" rather than "git Autoconf".
31733 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31735         utimensat-tests, etc.: try to fix some races
31736         Problem reported by Bernhard Voelker in
31737         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31738         I don't know whether this patch fixes that race condition, but it
31739         fixes *some* race conditions, so it should be a win.
31740         * modules/chown-tests (Depends-on):
31741         * modules/fchownat-tests (Depends-on):
31742         * modules/fdutimensat-tests (Depends-on):
31743         * modules/futimens-tests (Depends-on):
31744         * modules/lchown-tests (Depends-on):
31745         * modules/stat-time-tests (Depends-on):
31746         * modules/utimens-tests (Depends-on):
31747         * modules/utimensat-tests (Depends-on):
31748         Depend on nanosleep, not usleep.
31749         * modules/chown-tests (test_chown_LDADD):
31750         * modules/lchown-tests (test_lchown_LDADD):
31751         * modules/stat-time-tests (test_stat_time_LDADD):
31752         New macro.
31753         * modules/fchownat-tests (test_fchownat_LDADD):
31754         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31755         * modules/futimens-tests (test_futimens_LDADD):
31756         * modules/utimens-tests (test_utimens_LDADD):
31757         * modules/utimensat-tests (test_utimensat_LDADD):
31758         Add $(LIB_NANOSLEEP).
31759         * modules/stat-time-tests (Files): Add tests/nap.h.
31760         * tests/nap.h: Include <limits.h>, for INT_MAX.
31761         (lt_mtime): Remove.
31762         (diff_timespec): New function.
31763         (get_stat): Rename from get_mtime.  All callers changed.
31764         (nap_works): Determine the needed delay by inspecting the
31765         file system's timestamp jumps; this should be more reliable.
31766         Look at both mtime and ctime, and take the maximum of the two jumps.
31767         (nap_works, guess_delay):
31768         Return a nanosecond count, not a microsecond count.
31769         All callers changed.
31770         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31771         failure.
31772         (nap): Multiply the guess by 1.125, to accommodate the case where
31773         the file system's clock is a bit slower than nanosleep's clock.
31774         * tests/test-stat-time.c (BASE): New macro.
31775         Include nap.h.
31776         (nap): Remove; nap.h now defines this.  This removes a duplicate
31777         implementation of 'nap'.
31779         utimens, utimensat: work around Solaris UTIME_OMIT bug
31780         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31781         Linux kernel 2.6.32 does.  Work around it in the same way.
31782         * doc/posix-functions/futimens.texi (futimens):
31783         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31784         * lib/utimens.c (fdutimens, lutimens):
31785         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31787         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31788         Formerly, it was your responsibility to do this for all Makefile.ams
31789         other than Gnulib's.  Now it's your responsibility to do it for
31790         Gnulib's Makefile.am, too.
31791         * NEWS: Document this.
31792         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31794         acl: include errno.h to get errno
31795         Reported by Daiki Ueno in
31796         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31797         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31799 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31801         tests: don't assume getdtablesize () <= 10000000
31802         * modules/cloexec-tests:
31803         * modules/dup2-tests:
31804         * modules/dup3-tests:
31805         * modules/nonblocking-tests:
31806         * modules/posix_spawn_file_actions_addclose-tests:
31807         * modules/posix_spawn_file_actions_adddup2-tests:
31808         * modules/posix_spawn_file_actions_addopen-tests:
31809         * modules/unistd-safer-tests:
31810         Depend on the getdtablesize module.
31811         * tests/test-cloexec.c:
31812         * tests/test-dup-safer.c:
31813         * tests/test-dup2.c:
31814         * tests/test-dup3.c:
31815         * tests/test-fcntl.c:
31816         * tests/test-nonblocking.c:
31817         * tests/test-posix_spawn_file_actions_addclose.c:
31818         * tests/test-posix_spawn_file_actions_adddup2.c:
31819         * tests/test-posix_spawn_file_actions_addopen.c:
31820         Don't assume getdtablesize () <= 10000000.
31822 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31824         extern-inline: work around bug in Sun c99
31825         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31826         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31828 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31830         qacl: new module, broken out from the acl module
31831         This is for GNU Emacs, which wants the acl functions but does
31832         not want 'error' invoked when they fail.
31833         * lib/acl-internal.h: Do not include error.h, quote.h.
31834         (ENOSYS, ENOTSUP): Remove; no longer needed.
31835         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31836         * lib/acl.h: Include <stdbool.h>.
31837         (acl_errno_valid): New function.
31838         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31839         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31840         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31841         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31842         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31843         * lib/file-has-acl.c (file_has_acl):
31844         * lib/qcopy-acl.c (qcopy_acl):
31845         * lib/qset-acl.c (qset_acl):
31846         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31847         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31848         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31849         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31850         Add lib/set-acl.c.
31851         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31852         Add qacl.
31853         (configure.ac): Move gl_FUNC_ACL to qacl module.
31854         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31855         Rename set-mode-acl.c to set-acl.c.
31856         * lib/acl-errno-valid.c: New file.
31857         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31858         copy_acl function remains in copy-acl.c.
31859         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31860         (_): Remove; not needed.
31861         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31862         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31863         * modules/qacl: New file, moved from the old modules/acl.
31864         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31865         Remove set-mode-acl.c, copy-acl.c.
31866         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31868         alignof, intprops, malloca: port better to IBM's C compiler
31869         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31870         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31871         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31873 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31875         wctype-h: fix gettext link error on mingw
31876         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31877         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31878         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31879         rpl_towupper and rpl_towupper.
31881 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31883         regex-tests, regex: allow glibc re_search behavior
31884         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31885         re_search input data to make the multi-character collating element
31886         in it clearly visible, and treat re_search return code 0 as valid.
31887         * m4/regex.m4 (gl_REGEX): Likewise.
31889 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31891         stdalign: doc fix
31892         * doc/posix-headers/stdalign.texi (stdalign.h):
31893         Gnulib doesn't support '_Alignof expr'.
31895 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31897         stdalign: port to stricter ISO C11
31898         ISO C11 says that _Alignof's operand must be a parenthesized type.
31899         Problem reported by Eli Zaretskii in
31900         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31901         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31902         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31904 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31906         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31907         Problem reported by Marco Atzeri in
31908         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31909         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31910         Simply delegate to the system <sys/select.h> in this case too.
31911         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31912         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31913         be needed on Solaris either.
31914         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31915         Simply delegate to the system <sys/time.h> in this case.
31917 2013-03-19  Karl Berry  <karl@gnu.org>
31919         * build-aux/gnupload: check for erroneous (with gnupload) use of
31920         ftp-upload.gnu.org, tweak help.
31922 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31924         copy-file, rpmatch: fix problems found by cppcheck
31925         Reported by Arno Onken in
31926         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31927         * lib/rpmatch.c (try): Fix memory leak.
31928         * lib/copy-file.c: Include "ignore-value.h".
31929         (qcopy_file_preserving): Ignore chown value.
31930         * modules/copy-file (Depends-on): Add ignore-value.
31932 2013-01-27  Jim Meyering  <jim@meyering.net>
31934         prefix-gnulib-mk: give better diagnostics
31935         * build-aux/prefix-gnulib-mk: Don't just "die".
31936         Give better diagnostics upon failure.
31938 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31940         putenv: port to Solaris 10
31941         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31942         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31943         is not what is wanted here.
31944         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31945         declaration, not for its existence.
31947 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31949         mktime: fix configure typo
31950         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31952 2013-03-12  Eric Blake  <eblake@redhat.com>
31954         regex-tests: skip UTF-8 test on mingw
31955         * modules/regex-tests (Depends-on): Add localcharset.
31956         * tests/test-regex.c (main): Use it to skip test on mingw.
31958 2013-03-11  Eric Blake  <eblake@redhat.com>
31960         tests: make it easier to bypass alarm time in debugger
31961         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31962         * tests/test-memmem.c (main): Likewise.
31963         * tests/test-passfd.c (main): Likewise.
31964         * tests/test-ptsname.c (main): Likewise.
31965         * tests/test-ptsname_r.c (main): Likewise.
31966         * tests/test-strcasestr.c (main): Likewise.
31967         * tests/test-strstr.c (main): Likewise.
31969         regex: port to mingw's recent addition of undeclared alarm
31970         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31971         exists but still doesn't work in newer mingw.
31972         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31973         not existence.  Ensure SIGALRM is not trapped.
31974         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31975         * m4/regex.m4 (gl_REGEX): Likewise.
31976         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31977         * tests/test-regex.c (main): Use correct probe for alarm.
31979         putenv: avoid compilation warning on mingw
31980         * lib/putenv.c (_unsetenv): Protect variable declaration.
31981         (putenv): Fix indentation.
31983 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31985         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31986         * lib/unistd.in.h: be careful not to include un-needed system
31987         stdlib.h from here, because that prevents gnulib stdlib.h from
31988         defining rpl_strtod correctly.
31990 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31992         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31993         changesets, but for the 'precision 0' test.
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.51 to 1 here.
31998         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31999         changeset.
32000         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32001         round-to-even, since POSIX says rounding is implementation-defined
32002         and OS X 10.8.2 rounds 1.5 to 1 here.
32004 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32006         vasnprintf-posix-tests: allow rounding 1.5 to 1
32007         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32008         round-to-even, since POSIX says rounding is implementation-defined
32009         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32010         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32012         bootstrap: port to FreeBSD
32013         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32014         that treat '--' differently.  Reported by Mats Erik Andersson in
32015         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32017 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32019         regex: rename remaining __attribute calls to __attribute__.
32020         2012-02-25 changed definition of __attribute, but left some uses
32021         unchanged, preventing compilation of regex module on most non-gcc
32022         environments.
32023         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32024         (lookup_collation_sequence_value, build_range_exp)
32025         (build_collating_symbol): Set attributes with newly renamed
32026         __attribute__ decorator.
32027         * lib/regex_internal.c (re_string_peek_byte_case)
32028         (re_node_set_compare, re_node_set_contains): Likewise.
32029         * lib/regexec.c (acquire_init_state_context): Likewise.
32031 2013-03-06  Bruno Haible  <bruno@clisp.org>
32033         execute: Revert last change, but use a different condition.
32034         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32035         on Windows.
32037 2013-03-05  Eric Blake  <eblake@redhat.com>
32039         execute: drop dead code
32040         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32042 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32044         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32045         * m4/non-recursive-gnulib-prefix-hack.m4
32046         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32047         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32048         <http://bugs.gnu.org/10305#237>.
32050 2013-03-04  Eric Blake  <eblake@redhat.com>
32052         test-getsockopt: avoid compiler warning
32053         * tests/test-getsockopt.c (includes): Ensure close is declared.
32055 2013-03-02  Bruno Haible  <bruno@clisp.org>
32057         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32058         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32060 2013-03-02  Bruno Haible  <bruno@clisp.org>
32062         gettext: Update to version 0.18.2.
32063         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32064         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32065                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32067 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32069         regex: merge patches from libc
32071         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32072         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32073         All uses changed.
32074         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32075         (re_string_wchar_at, re_string_elem_size_at):
32076         Mark function as possibly unused.
32078         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32079         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32080         elements compare against the byte sequence of it, not its name.
32082 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32084         putenv: port better to native Windows
32085         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32086         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32087         (_unsetenv): Use _putenv if available.
32088         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32089         a bit less likely to cause damage.
32090         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32091         Fix the wrong value with SetEnvironmentVariable.
32092         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32093         code better.
32095 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32097         regex: ignore old-style-definition warnings
32098         * lib/regex.c: Add pragma to ignore these warnings.
32099         Problem reported for GNU tar by Pavel Raiskup.
32101 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32103         getcwd: support coreutils better
32104         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32105         but this might not be correct in coreutils, which disables
32106         the raw decl checks.  Problem reported by Nagendra in
32107         <http://bugs.gnu.org/10305#192>.
32108         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32109         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32110         Test the getcwd function, not any macro, since getcwd.c wants the
32111         function.
32112         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32113         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32114         compile, as might happen if there's a macro but no function.
32116         strtod: support coreutils better
32117         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32118         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32119         disables the raw decl checks.  This assumes there is an underlying
32120         strtod, but that's a safe assumption these days.
32121         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32123         mountlist: port to HP NonStop
32124         Reported by Joachim Schmitz in
32125         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32126         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32127         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32129 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32131         extern-inline: avoid compilation error with HP-UX cc
32132         Reported by Richard Lloyd in
32133         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32134         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32135         Suppress extern inline with HP-UX cc.  This should be safe,
32136         though it may hurt performance.  Perhaps someone with some HP-UX
32137         experience can come up with a higher-performance fix.
32139 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32141         putenv: fix heap corruption with mixed putenv/_putenv
32142         Problem reported by Michael Goffioul in
32143         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32144         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32145         Rely on _putenv to allocate the new environment.
32146         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32147         * modules/putenv (configure.ac): Use it.
32149 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32151         unsetenv etc.: port to Solaris 11 + GNU Emacs
32152         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32153         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32154         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32155         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32156         idea but is too painful to fix right now), and without this gnulib
32157         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32158         compiling unsetenv.c on Solaris 11.  Fix the problem for
32159         unsetenv.c, and fix other similar occurrences.
32161 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32163         secure_getenv: fix C++ declaration typo
32164         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32165         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32166         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32168 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32170         careadlinkat: stop exporting careadlinkatcwd
32171         Only Emacs used it directly, and Emacs no longer needs it.
32172         * NEWS: Document this simplification.
32173         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32174         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32175         for readlink.
32176         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32177         Don't include stdlib.h; no longer needed.
32178         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32179         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32180         * modules/areadlink (Depends-on): Add readlink.
32181         (Maintainer): Add self.
32182         * modules/careadlinkat (Depends-on): Remove readlink.
32184         extensions: port better to HP-UX
32185         This is merged from git Autoconf.
32186         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32187         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32188         so that it's compatible with the value used when compiling.
32190         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32191         Problem reported by Mats Erik Andersson in
32192         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32193         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32194         openpty function exists, not merely when we intend to replace it.
32195         This corrects the 2013-01-31 patch, which mistakenly defined
32196         HAVE_OPENPTY even on hosts that lacked it.
32198 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32200         secure_getenv: fix include typo
32201         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32203         secure_getenv: port better to FreeBSD and Solaris
32204         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32205         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32206         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32207         This works better on BSDish platforms.
32208         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32209         Test for issetugid if __secure_getenv is missing.
32211 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32213         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32214         Some of these changes are merged in from git Autoconf.
32215         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32216         When deciding whether to define _XOPEN_SOURCE, inspect the
32217         preprocessor macro __hpux instead of the more-heavyweight
32218         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32219         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32220         as the key for __EXTENSIONS__.
32222         unistd: avoid namespace pollution on non-glibc systems
32223         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32224         This avoids namespace pollution on non-glibc systems, by causing
32225         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32226         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32227         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32229 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32231         tmpdir: use secure_getenv
32232         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32233         Define to secure_getenv, not getenv.
32234         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32235         as that's now secure_getenv's job.
32236         * modules/tmpdir (Depends-on): Add secure_getenv.
32238         tempname: use secure_getenv
32239         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32240         Define to secure_getenv, not getenv.
32241         * modules/tempname (Depends-on):
32242         Add secure_getenv.
32244         secure_getenv: new module
32245         * MODULES.html.sh (Extra functions based on ANSI C 89):
32246         Add secure_getenv.
32247         * doc/glibc-functions/secure_getenv.texi: New file.
32248         * doc/gnulib.texi: Include it.
32249         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32250         New files.
32251         * lib/stdlib.in.h (secure_getenv): New decl.
32252         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32253         * modules/stdlib (stdlib.h):
32254         Add secure_getenv checks.
32256 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32258         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32259         Reported for OS X 10.8.2 by Assaf Gordon in
32260         <http://bugs.gnu.org/13516>.
32261         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32262         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32263         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32264         so that they can be kept in sync more easily.  Avoid PATH_MAX
32265         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32266         mkdir or chdir failure.
32267         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32268         lib/getcwd.c.
32269         (test_abort_bug): Do not test for the deep directory bug unless we
32270         have openat support.  Avoid PATH_MAX test on the Hurd.
32272         regex-tests, regex: fix bug: memset undeclared
32273         * tests/test-regex.c: Don't include regex.h twice.  Include
32274         string.h, to declare memset.  Christensen's report also mentioned
32275         this issue.
32276         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32277         test-regex.c, to avoid future problems like this.  Remove
32278         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32279         twice.
32281         regex-tests: fix link errors on older Solaris
32282         These need to link with @LIBINTL@ to get libintl_gettext.
32283         Problem reported by Tom G. Christensen in
32284         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32285         * modules/regex-tests (test_regex_LDADD): New macro.
32287 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32289         regex-tests: new module
32290         * modules/regex-tests, tests/test-regex.c: New files.
32292         regex: fix off-by-one error in configure test
32293         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32295 2013-01-31  Eric Blake  <eblake@redhat.com>
32297         regex: avoid infinite configure test
32298         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32300 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32302         openpty: fix bug where HAVE_OPENPTY wasn't defined
32303         See the thread starting at:
32304         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32305         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32306         openpty function exists, not merely when we intend to replace it.
32308 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32310         sys_time: port to Solaris 2.6
32311         There is a circularity problem on Solaris 2.6, where <time.h> includes
32312         <sys/time.h> for struct timespec.  The include nesting is gnulib
32313         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32314         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32315         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32316         <sys/siginfo.h>; the last, innermost file needs struct
32317         timestruc_t, which is defined in <sys/time.h>, which has not been
32318         fully parsed.  Problem reported by Tom G. Christensen in
32319         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32320         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32321         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32322         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32323         uses split double-inclusion guards.
32325 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32327         regex: test for buffer overrun
32328         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32329         for the just-fixed regex bug.
32331 2013-01-29  Andreas Schwab  <schwab@suse.de>
32333         regex: fix buffer overrun in regexp matcher [BZ #15078]
32334         * lib/regexec.c (extend_buffers): Add parameter min_len.
32335         (check_matching): Pass minimum needed length.
32336         (clean_state_log_if_needed): Likewise.
32337         (get_subexp): Likewise.
32339 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32341         mountlist: don't consider "devtmpfs" as dummy
32342         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32343         as there is storage associcated with it.
32345 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32347         futimens-tests, utimens-tests: Depend on gettext.
32348         This works around a problem introduced in my 2013-01-12 patch,
32349         which added @LIBINTL@ to these modules.
32350         * modules/futimens-tests (Depends-on):
32351         * modules/utimens-tests (Depends-on): Add gettext.
32353 2013-01-26  Eric Blake  <eblake@redhat.com>
32355         test-getpeername: fix typo
32356         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32358 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32360         bootstrap: remove the need for a sorted .gitignore file
32361         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32362         rename to insert_if_absent(), so that we don't need or generate
32363         a sorted .gitignore file.  We do require a .gitignore with no
32364         existing duplicate entries and enforce that.
32365         (sort_patterns): Remove this function as we now use the simpler
32366         technigue of inserting blacklist entries at the top of the file,
32367         assuming gnulib won't be inserting !whitelist entries.
32369 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32371         readlinkat: don't depend on gl_FUNC_OPENAT
32372         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32373         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32374         renameat.m4, symlinkat.m4; but one thing at a time.
32376         statat: new module, split out from fstatat
32377         GNU Emacs needs the POSIX-specified fstatat, but not the
32378         gnulib-specified statat and lstat.  Split the latter two into a
32379         new module 'statat'.
32380         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32381         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32382         Rename from FSTATAT_INLINE. All uses changed.
32383         * modules/fstatat (Files): Remove lib/statat.c.
32384         (gl_MODULE_INDICATOR([fstatat])): Remove.
32385         (lib_SOURCES): Remove.
32386         (Maintainer): Add self.
32387         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32388         * tests/test-fstatat.c (BASE): Don't define if already defined.
32389         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32391 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32393         tests: don't assume fd 99 is closed
32394         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32395         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32396         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32397         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32398         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32399         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32400         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32401         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32402         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32403         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32404         * tests/test-fwrite.c, tests/test-getpeername.c:
32405         * tests/test-getsockname.c, tests/test-getsockopt.c:
32406         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32407         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32408         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32409         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32410         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32411         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32412         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
32413         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
32414         * tests/test-unlinkat.c, tests/test-unlockpt.c:
32415         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
32416         Close file descriptor 99, instead of assuming it's already closed.
32418 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32420         stpncpy: port to OS X 10.8
32421         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
32422         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
32424 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32426         unistd: port to recent mingw
32427         * lib/unistd.in.h: Remove special invocation convention for mingw,
32428         which breaks for the latest mingw version.  See John W. Eaton in
32429         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
32431         largefile: port better to Mac OS X 10.5
32432         This patch is backported from Autoconf git.
32433         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
32434         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
32435         with ino_t size being different for configuration time versus
32436         build/run time.  Problem reported by PHO in
32437         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32439 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32441         doc: clarify -Werror
32442         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32443         clarify that it's intended for developers, not for ordinary builds,
32444         and mention --enable-gcc-warnings as one possible use.
32446 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32448         stdint: fix build with Android's Bionic fox x86
32449         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32450         was already included as _SSIZE_T_DEFINED_ might also be defined
32451         in include/machine/_types.h, which is included by stdio.h
32453 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32455         net_if-tests: port to Solaris 7 + GCC 3.4.6
32456         Problem reported by Tom G. Christensen in
32457         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32458         * tests/test-net_if.c (ni): Move to next the code that uses it,
32459         so that it's declared only if needed.
32461 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32463         net_if-tests: port to older Solaris
32464         Problem reported by Tom G. Christensen in
32465         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32466         * modules/net_if-tests (NET_IF_LIB): New substitution.
32467         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32468         (HAVE_IF_NAMEINDEX): New C macro.
32469         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32471         system-quote-tests: port to older Solaris
32472         Problem reported by Tom G. Christensen in
32473         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32474         * tests/test-system-quote-child.c (fopen, fread): Undef.
32476         c-xvasprintf etc.: fix link errors on older Solaris
32477         These need to link with @LIBINTL@ to get libintl_gettext.
32478         Problem reported by Tom G. Christensen in
32479         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32480         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32481         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32482         * modules/futimens-tests (test_futimens_LDADD):
32483         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32485 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32487         locale: port to Solaris 2.6 and 7 + GNU gettext
32488         * lib/locale.in.h: Just include_next <locale.h> when
32489         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32490         when combining the localename module with GNU gettext 0.18.2.
32491         Problem reported by Tom G. Christensen in
32492         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32494 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32496         stdlib: port to Solaris 2.6
32497         Also, the code worked on Solaris 7 through 9 only by accident.
32498         Problem reported by Tom G. Christensen in
32499         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32500         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32501         simply include the system stdlib.h.
32502         * lib/getopt.in.h (__need_system_stdlib_h):
32503         * lib/pthread.in.h (__need_system_stdlib_h):
32504         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32505         Define when including <stdlib.h>, to avoid problems at least for
32506         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32507         with the system stdlib.h.
32509 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32511         doc: update main copyright year
32512         * doc/gnulib.texi: Update copyright date.
32514         doc: improve ISO 8601 discussion
32515         * doc/parse-datetime.texi (Combined date and time of day items):
32516         Specify more carefully what formats are supported and what is
32517         done with excess precision.
32519 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32521         doc: avoid small caps
32522         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32523         they're more trouble than they're worth.  Suggested by Karl Berry
32524         in <http://bugs.gnu.org/13360>.
32526         regex: conform to strict C
32527         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32528         From Aharon Robbins.
32530         gnulib-tool: fix incompatibility with autopoint 0.18.2
32531         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32532         Problem reported by Tom G. Christensen in
32533         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32535 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32537         fprintftime: bring back and reword fwrite comment
32538         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32540         stdio: remove now-unnecessary stdio.c
32541         Since stdio.in.h no longer uses inline functions, we no longer
32542         need to compile the extern versions.
32543         * lib/stdio.c: Remove.
32544         * modules/stdio (Files): Remove lib/stdio.c.
32545         (lib_SOURCES): Remove.
32547         unicodeio: depend on stdio, not ignore-value
32548         * lib/unicodeio.c: Do not include ignore-value.h.
32549         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32550         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32552         fprintftime: depend on stdio, not ignore-value
32553         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32554         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32555         since the stdio module arranges to silence that warning now.
32556         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32558 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32560         stdint-tests: Fix expanded-before-required-warning.
32561         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32563 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32565         fwrite: silence __wur only for older glibc versions
32566         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32567         This will help us remove this workaround some time in the far future.
32569 2013-01-03  Eric Blake  <eblake@redhat.com>
32571         fwrite: silence __wur without using inline
32572         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32573         just gcc, and in a way that avoids inline issues.
32574         * modules/stdio (Depends-on): Drop extern-inline.
32576 2013-01-03  Jim Meyering  <jim@meyering.net>
32578         update-copyright: avoid copyright notice date corruption
32579         Given a sequence of copyright year numbers in which the final
32580         one was a two-digit number that happened to be a substring of
32581         a preceding four-digit year number, we would mistakenly update
32582         the substring (from two- to four-digit) rather than the two-digit
32583         number at the end, which, combined with the addition of the current
32584         4-digit year number would yield two 5-digit year numbers, e.g.,
32585         here, it would convert the first "99" to "1999, 2013" rather than
32586         the final one:
32587           1991, 99
32588           11999, 20131, 1999
32589         * build-aux/update-copyright: Tighten a regexp.
32590         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32591         Reported by Joseph Myers in
32592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32594 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32596         regex: omit needless signed-pointer casts
32597         * lib/regcomp.c (build_charclass, build_charclass_op):
32598         Use char *, not unsigned char *, for class name and extra.
32599         The char values are always nonnegative so there's no need to
32600         insist on unsigned char * here, and using char * removes the need
32601         for casts.  Reported by Aharon Robbins in
32602         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32604         regex: support Gawk, which never uses alloca
32605         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32606         Do not include in this case.  Gawk doesn't supply a substitute
32607         alloca.h and doesn't need one.
32609         regex: port __libc_lock_define usage to C89
32610         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32611         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32612         does not conform to C89, as it has an empty macro argument.
32613         Reported by Aharon Robbins in
32614         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32616 2013-01-01  Eric Blake  <eblake@redhat.com>
32618         maint: update all copyright year number ranges
32619         Run "make update-copyright".
32621         version-etc: bump copyright year reported in --version
32622         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32624 2012-12-31  Eric Blake  <eblake@redhat.com>
32626         sigprocmask-tests: skip test if pid is unexpectedly large
32627         * tests/test-sigprocmask.c (main): Add range check.
32629         git-version-gen: avoid test -z portability glitch
32630         * build-aux/git-version-gen: Prefer portable test spelling, since
32631         git-version-gen is run on more than just developer machines.
32633 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32635         git-version-gen: add --fallback option to use if git is not present
32636         * build-aux/git-version-gen: Add support for the new option --fallback,
32637         which comes into play when there is no $tarball_version_file and
32638         git is not working.
32639         (scriptversion): Update.
32641         maint.mk: handle missing git with more grace
32642         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32643         Quietly proceed if git is not present.
32645 2012-12-31  Eric Blake  <eblake@redhat.com>
32647         dup2: work around cygwin bug
32648         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32649         * lib/dup2.c (rpl_dup2): Work around it.
32650         * doc/posix-functions/dup2.texi (dup2): Document it.
32652 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32654         regex: remove unnecessary dependency on localcharset.h
32655         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32656         hasn't been needed for years.
32657         * modules/regex (Depends-on): Remove localcharset.
32659         regex: revert single-byte change
32660         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32661         to this function.  This was alredy fixed in a different way, at
32662         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32663         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32664         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32666         regex: simplify based on Gawk version
32667         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32668         Reported by Aharon Robbins in
32669         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32671 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32673         regex: check that pattern char is single-byte
32674         Reported by Aharon Robbins in
32675         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32676         * lib/regexec.c (check_node_accept_bytes):
32677         Return 0 if the pattern string has a multibyte character here.
32679         regex: implement rational ranges
32680         Reported by Aharon Robbins in
32681         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32682         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32683         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32684         Implement rational ranges.
32686         regex: avoid redefining __wctype
32687         Reported by Aharon Robbins in
32688         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32689         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32690         #undef before defining.
32692         regex: port to hosts where malloc (0) == NULL
32693         Reported by Aharon Robbins in
32694         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32695         * lib/regex_internal.c (re_node_set_alloc):
32696         Don't assume that malloc (0) yields nonnull.
32697         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32698         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32699         * modules/regex (Files): Add m4/eealloc.m4.
32701         regex: port to C89
32702         Reported by Aharon Robbins in
32703         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32704         * lib/regcomp.c (init_word_char): Declaration before statement.
32706         regex: merge glibc changes
32707         Also, copy the license wording from glibc.  This simplifies
32708         merging changes.  gnulib-tool will change the wording to GPL as
32709         appropriate, when importing it to other packages.  The only
32710         glibc change made since the last merge, which needs merging, is:
32711         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32712         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32714         * users.txt: Add Emacs.
32716         doc: omit mention of version when not needed
32717         * doc/gnulib-intro.texi (Portability and Application Code):
32718         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32719         Don't mention particular dates or versions when not necessary, so
32720         that the documentation won't go out of date so quickly.
32722         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32724 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32726         bootstrap: pass --force to autoreconf.
32727         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32728         Add "--force" so that Automake's ylwrap and other such tools
32729         be updated at each bootstrap invocation.
32730         Use it.
32732 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32734         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32735         The earlier patch forgot to update one of the #if conditions, causing
32736         a problem on Debian testing i386 reported by Mats Erik Andersson
32737         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32738         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32739         (__argp_fmtstream_puts, argp_fmtstream_puts)
32740         (__argp_fmtstream_write, argp_fmtstream_write)
32741         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32743         * doc/gnulib-readme.texi: Minor fixups.
32744         (Portability guidelines): Modernize URLs.  Remove some repetition.
32745         (Indent with spaces not TABs): Reword to avoid too-long lines.
32746         Remove some '@ifset standalone' stuff that isn't used.
32748         * doc/gnulib-readme.texi (Portability guidelines):
32749         ctype.h, not ctime.h.
32751         Correct name of POSIX.1-2001.
32752         * doc/posix-functions/fgetc.texi (fgetc):
32753         * doc/posix-functions/fgets.texi (fgets):
32754         * doc/posix-functions/fread.texi (fread):
32755         * doc/posix-functions/fscanf.texi (fscanf):
32756         * doc/posix-functions/getc.texi (getc):
32757         * doc/posix-functions/getchar.texi (getchar):
32758         * doc/posix-functions/scanf.texi (scanf):
32759         POSIX.1-2001, not POSIX-2001.
32761         doc: move README into manual
32762         * README: Move contents to new file doc/gnulib-readme.texi.
32763         Replace with a one-line summary.
32764         * doc/gnulib.texi (Brief Overview): New section,
32765         with old intro preface.  Include gnulib-readme.texi for contents.
32766         (Philosophy): Rename from "Introduction", since this
32767         section no longer introduces the rest.  Write a new preface.
32768         * doc/gnulib-readme.texi: New file, with the old contents of
32769         README texinfo-ized.  This way, the README info appears
32770         in the online and printed manual.
32772 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32774         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32775         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32776         c_vasprintf() prototype.
32778 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32780         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32781         * lib/c-vasprintf.h: Remove stray semicolon.
32783 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32785         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32786         It is obsolete and is planned to be removed from Automake 1.14; see
32787         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32788         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32789         (installdirs-data, installdirs-data-yes):
32790         Use $(MKDIR_P), not $(mkdir_p).
32791         * m4/intl.m4 (AM_INTL_SUBDIR):
32792         * m4/po.m4 (AM_PO_SUBDIRS):
32793         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32795 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32797         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32798         On this platform, we are not optimizing but we are using
32799         the substitute for extern inlines, so compile as if
32800         C99-style extern inline, or a substitute, is available.
32801         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32802         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32803         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32804         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32805         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32806         Declare as ARGP_FS_EI, not as extern.
32807         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32808         (__option_is_short, _option_is_end, __option_is_end)
32809         [!_LIBC && __USE_EXTERN_INLINES]:
32810         Declare as ARGP_EI, not as extern.
32812 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32814         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32815         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32816         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32817         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32818         ...), as the latter is fatal with older Autoconfs.
32819         Problem reported and fix suggested by Eric Blake in thread starting at
32820         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32822 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32824         AC_PROG_MKDIR_P: don't workaround if not buggy
32825         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32826         Define only for Autoconf versions before 2.62.
32827         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32828         undocumented m4_PACKAGE_VERSION, for consistency with the
32829         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32830         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32831         was introduced in 2.62.
32833 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32835         New 'c-*printf' modules for formatted output in C locale.
32837         New module 'c-vasnprintf'.
32838         * modules/c-vasnprintf: New file.
32839         * lib/c-vasnprintf.c: New file.
32840         * lib/c-vasnprintf.h: New file.
32842         New module 'c-snprintf'.
32843         * modules/c-snprintf: New file.
32844         * modules/c-snprintf-tests: New file.
32845         * lib/c-snprintf.c: New file.
32846         * lib/c-snprintf.h: New file.
32847         * tests/test-c-snprintf.c: New file.
32848         * tests/test-c-snprintf.sh: New file.
32850         New module 'c-vsnprintf'.
32851         * modules/c-vsnprintf: New file.
32852         * modules/c-vsnprintf-tests: New file.
32853         * lib/c-vsnprintf.c: New file.
32854         * lib/c-vsnprintf.h: New file.
32855         * tests/test-c-vsnprintf.c: New file.
32856         * tests/test-c-vsnprintf.sh: New file.
32858         New module 'c-vasprintf'.
32859         * modules/c-vasprintf: New file.
32860         * modules/c-vasprintf-tests: New file.
32861         * lib/c-asprintf.c: New file.
32862         * lib/c-vasprintf.c: New file.
32863         * lib/c-vasprintf.h: New file.
32864         * tests/test-c-vasprintf.c  +: New file.
32865         * tests/test-c-vasprintf.sh: New file.
32867         New module 'c-xvasprintf'.
32868         * modules/c-xvasprintf: New file.
32869         * modules/c-xvasprintf-tests: New file.
32870         * lib/c-xasprintf.c: New file.
32871         * lib/c-xvasprintf.c: New file.
32872         * lib/c-xvasprintf.h: New file.
32873         * tests/test-c-xvasprintf.c: New file.
32874         * tests/test-c-xvasprintf.sh: New file.
32876 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32878         argp: better 'inline'
32879         Use extern-inline module to declare extern inline functions.
32880         This avoids some bogus warning diagnostics.  Problem discovered
32881         when modifying GNU tar to use the manywarnings module.
32882         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32883         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32884         Define based on extern-inline.
32885         * modules/argp (Depends-on): Add extern-inline.
32887 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32889         filemode, sys_stat: Handle MPX files a la AIX.
32890         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32891         * lib/sys_stat.in.h (S_ISMPX): New macro.
32892         * tests/test-sys_stat.c: Add tests for MPX files.
32894 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32896         x-to-1: honor $PERL
32897         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32898         a chance to use his preferred version of Perl.  This is typically
32899         required by Darwin users whose default /usr/bin/perl does not have all
32900         the libraries required by help2man, and who need to use their MacPorts
32901         installation of Perl instead.
32903 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32905         gnu-web-doc-update: add all the new files, even in new directories
32906         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32907         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32908         Use it.
32909         (main): Don't use cvsutils to get the list of unknown files,
32910         just add all the existing files and directories.
32912 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32914         gnu-web-doc-update: improve --help
32915         * build-aux/gnu-web-doc-update: Move comments into --help.
32917 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32919         mountlist: recognize more "dummy" file systems
32920         * lib/mountlist.c (ME_DUMMY_0):
32921         Add these dummy FS names to the list:
32922         - "debugfs" virtual filesystem for kernel debugging
32923         - "devpts" PTY slave filesystem
32924         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32925         - "fusectl" control filesystem for FUSE
32926         - "mqueue" enumerates POSIX message queues
32927         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32928         - "sysfs" is for exporting kernel objects
32929         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32931 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32933         extern-inline: avoid incompatibility with Darwin Libc
32934         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32935         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32936         Problem reported by Akim Demaille in
32937         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32939 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32941         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32942         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32943         let it handle password prompting.
32945 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32947         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32948         * lib/canonicalize.c (canonicalize_filename_mode):
32949         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32950         fetching the current directory.  Don't overrun the beginning of
32951         rpath if there's no slashes after the MS-Windows drive letter.
32953 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32955         maint.mk: avoid extra forks
32956         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32957         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32958         So use that instead of "$(shell test -f FILE && echo FILE)".
32960 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32962         vasnprintf: fix ASCII_ONLY typo
32963         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32964         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32965         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32966         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32967         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32969 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32971         list, oset, xlist, xoset: fix extern inline issue with C99
32972         This was introduced by my recent changes for 'inline'.
32973         Problem reported for gettext by Daiki Ueno in
32974         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32975         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32976         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32977         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32978         (gl_list_previous_node, gl_list_get_at)
32979         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32980         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32981         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32982         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32983         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32984         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32985         (gl_list_iterator_free, gl_sortedlist_search)
32986         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32987         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32988         (gl_sortedlist_remove):
32989         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32990         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32991         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32992         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32993         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32994         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32995         (gl_list_add_at, gl_sortedlist_add):
32996         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32997         Wrap these extern decls inside "#if 0", because they are implemented
32998         as inline functions, and extern inline is not what's wanted here.
32999         It would simplify these .h files to remove the extern decls entirely,
33000         although a downside would be less-clear separation between
33001         specification and implementation.
33003 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33005         sys_stat: no 'static inline'
33006         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33009         extern-inline: no 'static inline'
33010         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33011         Do not require AC_C_INLINE.
33012         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33013         'static inline', for older compilers.
33015         snippet/warn-on-use: no 'static inline'
33016         * build-aux/snippet/warn-on-use.h:
33017         Remove unnecessary 'inline' in comment.
33019         rbtree-list, rbtreehash-list: no 'static inline'
33020         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33021         * lib/gl_anytree_list2.h (node_at):
33022         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33023         (gl_oset_first, add_nodes_to_buckets):
33024         Now static, not static inline.
33026         regex: no 'static inline'
33027         * lib/regex_internal.c (calc_state_hash):
33028         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33029         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33030         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33031         Now static, not static inline.
33032         (inline) [__GNUC__ < 3 && _LIBC]:
33033         Remove macro; no longer needed.
33035         xvasprintf: no 'static inline'
33036         * lib/xvasprintf.c (xstrcat):
33037         Now static, not static inline.
33038         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33039         Do not require AC_C_INLINE.
33041         parse-datetime, parse-duration: no 'static inline'
33042         * lib/parse-datetime.y (to_uchar):
33043         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33044         (scale_n_add):
33045         Now static, not static inline.
33046         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33047         * modules/parse-duration (configure.ac):
33048         Do not require AC_C_INLINE.
33050         getaddrinfo: no 'static inline'
33051         * lib/getaddrinfo.c (validate_family):
33052         Now static, not static inline.
33053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33054         Do not require AC_C_INLINE.
33056         ftruncate, fts, lstat, openat, raise: no 'static inline'
33057         * lib/ftruncate.c (chsize_nothrow):
33058         * lib/fts.c (opendirat, diropen):
33059         * lib/lstat.c (orig_lstat):
33060         * lib/openat.c (orig_openat):
33061         * lib/raise.c (raise_nothrow):
33062         Now static, not static inline.
33063         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33064         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33065         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33066         * m4/openat.m4 (gl_PREREQ_OPENAT):
33067         * m4/raise.m4 (gl_PREREQ_RAISE):
33068         Do not require AC_C_INLINE.
33070         fflush, stat: no 'static inline'
33071         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33072         (clear_ungetc_buffer, disable_seek_optimization)
33073         (restore_seek_optimization, update_fpos_cache):
33074         * lib/stat.c (orig_stat):
33075         Now static, not static inline.
33076         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33077         (update_fpos_cache):
33078         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33079         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33080         * m4/stat.m4 (gl_PREREQ_STAT):
33081         Do not require AC_C_INLINE.
33083         error, filevercmp: no 'static inline'
33084         * lib/error.c (is_open, flush_stdout):
33085         * lib/filevercmp.c (order):
33086         Now static, not static inline.
33087         * m4/error.m4 (gl_PREREQ_ERROR):
33088         * modules/filevercmp (configure.ac):
33089         Do not require AC_C_INLINE.
33091         dup, execute, fatal-signal, etc.: no 'static inline'
33092         * lib/dup.c (dup_nothrow):
33093         * lib/execute.c (nonintr_close, nonintr_open):
33094         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33095         * lib/fopen.c (orig_fopen):
33096         * lib/freadseek.c (freadptrinc):
33097         * lib/freopen.c (orig_freopen):
33098         * lib/fstat.c (orig_fstat, fstat_nothrow):
33099         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33100         (get_rusage_as_via_iterator):
33101         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33102         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33103         * lib/isatty.c (_isatty_nothrow):
33104         * lib/open.c (orig_open):
33105         * lib/read.c (read_nothrow):
33106         * lib/sigprocmask.c (signal_nothrow):
33107         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33108         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33109         * lib/wait-process.c (unregister_slave_subprocess):
33110         * lib/write.c (write_nothrow):
33111         Now static, not static inline.
33112         * lib/spawn-pipe.c (nonintr_open): Define only if
33113         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33114         * m4/dup.m4 (gl_PREREQ_DUP):
33115         * m4/execute.m4 (gl_EXECUTE):
33116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33117         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33118         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33119         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33120         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33121         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33122         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33123         * m4/open.m4 (gl_PREREQ_OPEN):
33124         * m4/read.m4 (gl_PREREQ_READ):
33125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33126         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33128         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33129         * m4/write.m4 (gl_PREREQ_WRITE):
33130         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33131         Do not require AC_C_INLINE.
33133         c-strtod, memcoll, readutmp: no 'static inline'
33134         * lib/c-strtod.c (c_locale):
33135         * lib/memcoll.c (strcoll_loop):
33136         * lib/readutmp.c (desirable_utmp_entry):
33137         Now static, not static inline.
33138         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33139         * m4/memcoll.m4 (gl_MEMCOLL):
33140         * m4/readutmp.m4 (gl_READUTMP):
33141         Do not require AC_C_INLINE.
33143         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33144         * lib/arctwo.c (to_uchar):
33145         * lib/md4.c (set_uint32):
33146         * lib/md5.c (set_uint32):
33147         * lib/sha1.c (set_uint32):
33148         * lib/sha256.c (set_uint32):
33149         * lib/sha512.c (set_uint64):
33150         Now static, not static inline.  This is a bit simpler, and doesn't
33151         affect performance with GCC and default optimization.
33152         * m4/arctwo.m4 (gl_ARCTWO):
33153         * m4/md4.m4 (gl_MD4):
33154         * m4/md5.m4 (gl_MD5):
33155         * m4/sha1.m4 (gl_SHA1):
33156         * m4/sha256.m4 (gl_SHA256):
33157         * m4/sha512.m4 (gl_SHA512):
33158         Do not require AC_C_INLINE.
33160         cond, lock, thread: better 'inline'
33161         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33162         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33163         New macros.  Use them instead of static inline, for header functions.
33164         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33165         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33166         * lib/glthread/lock.c (gl_waitqueue_init)
33167         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33168         * lib/glthread/thread.c (get_current_thread_handle):
33169         Change 'static inline' to 'inline'.
33170         * lib/glthread/cond.h, lib/glthread/thread.h:
33171         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33172         * m4/cond.m4 (gl_COND):
33173         * m4/lock.m4 (gl_PREREQ_LOCK):
33174         * m4/thread.m4 (gl_THREAD):
33175         Do not require AC_C_INLINE.
33176         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33178         chdir-long, cycle-check, savewd: better 'inline'
33179         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33180         (find_non_slash):
33181         * lib/cycle-check.c (is_zero_or_power_of_two):
33182         * lib/savewd.c (savewd_delegating):
33183         Change 'static inline' to 'inline'.
33184         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33185         Replace all remaining uses of 'static inline' with it.
33186         * lib/savewd.h:
33187         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33188         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33189         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33190         * m4/savewd.m4 (gl_SAVEWD):
33191         Do not require AC_C_INLINE.
33192         * modules/savewd (Depends-on): Add extern-inline.
33194         base32, base64: no need for 'inline'
33195         * lib/base32.c (to_uchar, get_8, decode_8):
33196         * lib/base64.c (to_uchar, get_4, decode_4):
33197         Change 'static inline' to 'inline'.
33198         * m4/base32.m4 (gl_PREREQ_BASE32):
33199         * m4/base64.m4 (gl_PREREQ_BASE64):
33200         Do not require AC_C_INLINE.
33202         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33203         * lib/gl_array_oset.c (gl_array_nx_add_at):
33204         (gl_array_remove_at):
33205         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33206         (add_to_bucket, remove_from_bucket):
33207         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33208         Change 'static inline' to 'static', as it's simpler to omit
33209         'inline' unless there's a significant performance advantage.
33211         list, oset, xlist, xoset, xsublist: simplify via extern inline
33212         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33213         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33214         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33215         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33216         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33217         New macro.  Replace all uses of 'static inline' with it.
33218         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33219         instead of as macros FOO that are defined to static inline
33220         functions FOO_inline.
33221         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33222         * lib/gl_xsublist.c:
33223         Reimplement from scratch, by defining the corresponding *_INLINE
33224         macro and including the corresponding .h file.  This is simpler.
33225         * modules/list, modules/oset, modules/xlist, modules/xoset:
33226         (Files): Remove m4/gl_list.m4.
33227         (configure.ac): Remove gl_LIST.
33228         * m4/gl_list.m4: Remove.
33229         * modules/list, modules/oset, modules/xlist, modules/xoset:
33230         * modules/xsublist:
33231         (Depends-on): Depend on extern-inline, not inline.
33233         xalloc: better 'inline'
33234         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33235         New macro.  Replace all uses of 'static inline' with it.
33236         (static_inline): Remove.
33237         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33238         Let 'extern inline' do the work automatically, instead of doing
33239         it by hand.
33240         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33241         Remove.  All uses removed.
33242         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33244         gethrxtime: better 'inline'
33245         * lib/xtime.c: New file.
33246         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33247         * lib/xtime.h (XTIME_INCLUDE):
33248         New macros.  Replace all uses of 'static inline' with them.
33249         * lib/gethrxtime.c (gethrxtime): Define only if
33250         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33251         this source file is now always compiled, because of the extern inline.
33252         * lib/gethrxtime.h, lib/xtime.h:
33253         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33254         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33255         if gethrtime works, as they're not needed in that case.
33256         (gl_XTIME): Do not require AC_C_INLINE.
33257         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33258         compiled now.  Move the check into gl_GETHRXTIME.
33259         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33260         (Depends-on): Add extern-inline.
33261         (configure.ac): gethrxtime is always compiled now.
33262         (lib_SOURCES): Add gethrxtime.c.
33264         wctype-h: better 'inline'
33265         * lib/wctype-h.c: New file.
33266         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33267         New macro.  Replace all uses of 'static inline' with it.
33268         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33269         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33270         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33271         (Depends-on): Add extern-inline.
33273         unistd: better 'inline'
33274         * lib/unistd.c: New file.
33275         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33276         New macro.  Replace all uses of 'static inline' with it.
33277         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33278         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33279         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33280         (Depends-on): Add extern-inline.
33282         sys_socket: better 'inline'
33283         * lib/sys_socket.c: New file.
33284         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33285         New macro.  Replace all uses of 'static inline' with it.
33286         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33288         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33289         (Depends-on): Add extern-inline.
33291         stdio: better 'inline'
33292         * lib/stdio.c: New file.
33293         * lib/stdio.in.h (_GL_STDIO_INLINE):
33294         New macro.  Replace all uses of 'static inline' with it.
33295         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33296         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33297         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33298         (Depends-on): Add extern-inline.
33300         sigaction: better 'inline'
33301         * lib/sig-handler.c: New file.
33302         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33303         New macro.  Replace all uses of 'static inline' with it.
33304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33305         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33306         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33307         (Depends-on): Add extern-inline.
33309         selinux-h: better 'inline'
33310         * lib/se-context.c, lib/se-selinux.c: New files.
33311         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33312         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33313         New macro.  Replace all uses of 'static inline' with it.
33314         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33315         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33316         New macro.  Replace all uses of 'static inline' with it.
33317         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33318         * modules/selinux-h (Files, lib_SOURCES):
33319         Add lib/se-context.c, lib/se-selinux.c.
33320         (Depends-on): Add extern-inline.
33321         (configure.ac): Do not require AC_C_INLINE.
33323         pthread: better 'inline'
33324         * lib/pthread.c: New file.
33325         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33326         New macro.  Replace all uses of 'static inline' with it.
33327         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33328         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33329         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33330         * modules/pthread (Files): Add lib/pthread.c.
33331         (Depends-on): Add extern-inline.
33333         math: better 'inline'
33334         * lib/math.c: New file.
33335         * lib/math.in.h (_GL_MATH_INLINE):
33336         New macro.  Replace all uses of 'static inline' with it.
33337         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33338         * m4/math_h.m4 (gl_MATH_H):
33339         Do not require AC_C_INLINE.
33340         * modules/math (Files, lib_SOURCES):
33341         Add lib/math.c.
33342         (Depends-on): Add extern-inline.
33344         count-one-bits: better 'inline'
33345         * lib/count-one-bits.c: New file.
33346         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33347         New macro.  Replace all uses of 'static inline' with it.
33348         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33349         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33350         Do not require AC_C_INLINE.
33351         * modules/count-one-bits (Files, lib_SOURCES):
33352         Add lib/count-one-bits.c.
33353         (Depends-on): Add extern-inline.
33355         count-leading-zeros: better 'inline'
33356         * lib/count-leading-zeros.c: New file.
33357         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33358         New macro.  Replace all uses of 'static inline' with it.
33359         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33360         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33361         Do not require AC_C_INLINE.
33362         * modules/count-leading-zeros (Files, lib_SOURCES):
33363         Add lib/count-leading-zeros.c.
33364         (Depends-on): Add extern-inline.
33366         bitrotate: better 'inline'
33367         * lib/bitrotate.c: New file.
33368         * lib/bitrotate.h (BITROTATE_INLINE):
33369         New macros.
33370         Replace all uses of 'static inline' with them.
33371         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33372         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33373         (Depends-on): Add extern-inline.
33374         (configure.ac): Do not require AC_C_INLINE.
33376 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33378         maint.mk: avoid gratuitous failure
33379         Reported by Stefano Lattarini in
33380         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33381         * top/maint.mk (public-submodule-commit): Quote more safely.
33383 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33385         canonicalize, canonicalize-lgpl: support MS-Windows file names
33386         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33387         for test cases, which it'd be nice to add at some point.
33388         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33389         * lib/canonicalize.c (canonicalize_filename_mode):
33390         * lib/canonicalize-lgpl.c (__realpath):
33391         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33392         slash is at the beginning of the file name.  Use ISSLASH, instead
33393         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33394         the first character with '/'.  Test for
33395         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33396         with a drive letter.
33397         * lib/canonicalize.c (SLASHES): New macro.
33398         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33400 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33402         fts: introduce FTS_VERBATIM
33403         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33404         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33405         * lib/fts.c (fts_open): Honor it.
33407 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33409         getlogin-tests: allow errno == ENXIO
33410         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33411         with errno == ENXIO (No controlling tty).
33412         getlogin_r-tests: Likewise. Also allow errno == ENOENT
33413         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
33414         with errno == ENOENT.  This was reported to happen in various
33415         situations on GNU/Linux.
33417 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33419         getlogin-tests: allow errno == ENOENT
33420         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33421         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
33422         when running a test in an Emacs shell buffer.
33424 2012-11-08  Jim Meyering  <jim@meyering.net>
33426         tests/nap.h: avoid warning about unused variable
33427         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
33429         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
33430         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
33431         white space before each of the special-cased file names, to avoid
33432         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
33433         in http://bugs.gnu.org/12830.
33435 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33437         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33438         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33439         fails with errno == EBADF when fd is opened with O_PATH.
33440         Reported by Jim Meyering in
33441         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33442         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33443         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33445 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33447         test-utimens: speed up by taking shorter naps
33448         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33449         New functions.
33450         (nap): Use them, to do a better job of guessing the delay.
33451         On Fedora 17 with ext4 atop md atop hard disks, this made
33452         test-utimens run 10x faster, because the test napped for
33453         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33454         <http://bugs.gnu.org/12820#11>.
33456 2012-11-07  Jim Meyering  <jim@meyering.net>
33458         mountlist.c: fix a compilation failure
33459         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33460         I introduced while transforming commit v0.0-7683-g613bcb6
33462 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33464         errno: port to LynxOS 178 2.2.2
33465         Problem reported by Joel Brobecker in
33466         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33467         * doc/posix-headers/errno.texi (errno.h): Document this.
33468         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33469         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33470         Supply a string for EILSEQ.
33471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33473 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33475         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33476         Linux kernel 2.6.39 introduced O_PATH (see
33477         <http://lwn.net/Articles/433854/>) and this is a better fallback
33478         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33479         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33480         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33481         * lib/fcntl.in.h (O_ACCMODE):
33482         * tests/test-fcntl-h.c (main):
33483         Do not reject O_ACCMODE merely because it has more than the
33484         minimal number of bits, as POSIX allows extensions here.
33486 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33488         mountlist: do not classify a bind-mounted dir entry as "dummy"
33489         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33490         the "none"-testing clause.
33491         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33492         exception for bind-mounted directories.
33494 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33496         quote: provide a means to escape strings with nul characters
33497         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33498         (quote, quote_n): Rename formal arguments for consistency with
33499         quotearg.
33501 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33503         test-raise: don't assume 199 is an invalid signal
33504         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33506         sh-quote-tests: port to Solaris 9
33507         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33508         Problem reported by Dagobert Michelsen in
33509         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33511 2012-10-28  Jim Meyering  <jim@meyering.net>
33513         maint.mk: rename a new configurable variable
33514         * top/maint.mk (_gl_translatable_string_re): Rename from
33515         translation-markers: _gl_ prefix to insulate from user Makefile code,
33516         and the _re suffix to inform that it's a regular expression.
33518 2012-10-26  Eric Blake  <eblake@redhat.com>
33520         maint.mk: let packages tweak sc_po_check pattern
33521         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33522         finding files with other translation markers.
33524 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33526         euidaccess: speed up 'configure' on GNU hosts
33527         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33528         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33529         it's needed only in this case.  Use AC_CHECK_DECLS, not
33530         AC_CHECK_DECLS_ONCE.
33531         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33532         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33534         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33536 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33538         fchmodat, fchownat, fstatat: port to non-inlining compilers
33539         Problem reported for FreeBSD 9 by Jim Meyering in
33540         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33541         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33542         New files, which define FCHMODAT_INLINE etc.
33543         * lib/fchmodat.c (FCHMODAT_INLINE):
33544         * lib/fchownat.c (FCHOWNAT_INLINE):
33545         * lib/fstatat.c (FSTATAT_INLINE):
33546         Remove, as chmodat.c etc. now do this.
33547         * modules/fchmodat (Files): Add lib/chmodat.c.
33548         * modules/fchownat (Files): Add lib/chownat.c.
33549         * modules/fstatat (Files): Add lib/statat.c.
33551 2012-10-15  Jim Meyering  <jim@meyering.net>
33553         fchmodat.c, fchownat.c: compile-impeding typos
33554         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33555         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33556         Introduced in commit v0.0-7636-gd202279.
33558 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33560         fcntl-h: support GNU flags like O_IGNORE_CTTY
33561         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33562         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33563         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33564         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33565         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33566         Define to 0 if not already defined.
33567         * tests/test-fcntl-h.c: Test these new flags.
33569 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33571         faccessat, etc.: support AT_FDCWD-only use
33572         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33573         this function only if its first argument is AT_FDCWD.
33574         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33575         values other than AT_FDCWD, so it doesn't want all the openat
33576         machinery with fchdir etc.
33577         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33578         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33579         * modules/unlinkat (Files):
33580         Remove lib/openat-priv.h, as at-internal supplies this file.
33581         Removing this file here allows us to support programs like Emacs
33582         that avoid at-internal.
33584         faccessat: speed up 'configure' on mainstream hosts
33585         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33586         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33587         since it's only on unusual platforms that we need to check for
33588         'access', and it's better not to slow 'configure' down on all
33589         platforms.
33591         faccessat: port to Solaris 10
33592         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33593         Needed on Solaris 10, which doesn't have AT_EACCESS,
33594         so we need the Gnulib fcntl.h, which defines it.
33596 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33597         canonicalize: fix C89 compilation
33598         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33599         declarations so C89 is supported.  Also remove the comment
33600         referencing memorty allocation as the suggested feature could
33601         not be implemented as suggested.
33602         Reported by Michael Goffioul.
33604 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33606         group-member: omit unnecessary dependencies
33607         This is for Emacs, which has its own allocator and where we
33608         don't want to use xalloc.
33609         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33610         since we no longer use xmalloc.  Do not include stdbool.h, since
33611         the changes below happen to remove the only use of bool.
33612         (GROUPBUF_SIZE): New constant.
33613         (struct group_info): Remove n_groups member.  Add groupbuf member.
33614         This lets us get the groups without using malloc, usually.
33615         (free_group_info, get_group_info): Adjust to this.
33616         (get_group_info): Return the number of groups found, or -1 on error.
33617         Use plain malloc not xmalloc, and treat its failure as if there
33618         are no groups, as the user already loses in case of error.
33619         (group_member): Simplify, based on changes to get_group_info.
33620         * modules/group-member (Depends-on): Remove dependencies on
33621         xalloc and stdbool.  Add dependency on xalloc-oversized.
33623 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33625         gethrxtime: port to C++
33626         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33628 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33630         ptsname: fix macro-name typo
33631         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33633 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33635         inttostr: Relax license.
33636         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33638 2012-10-03  Eric Blake  <eblake@redhat.com>
33640         ptsname_r: support ptys returned by FreeBSD posix_openpt
33641         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33642         lives in /dev/pts/.
33644 2012-10-02  Eric Blake  <eblake@redhat.com>
33646         pselect: reject invalid file descriptors
33647         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33648         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33649         * modules/pselect (Depends-on): Add dup2.
33650         * doc/posix-functions/pselect.texi (pselect): Document this.
33652         select: reject invalid file descriptors
33653         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33654         * lib/select.c (rpl_select) [!win32]: Work around it.
33655         * modules/select (Depends-on): Add dup2.
33656         * doc/posix-functions/select.texi (select): Document this.
33658         select: enhance test
33659         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33660         New functions.
33661         (test_function): Enhance test.
33662         (do_select_bad_fd): Avoid any stale errno values.
33664         ptsname: reject invalid file descriptors
33665         http://www.austingroupbugs.net/view.php?id=503
33666         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33668         * modules/stdlib (Makefile.am): Replace witness.
33669         * lib/stdlib.in.h (ptsname): Allow for replacement.
33670         * modules/ptsname (configure.ac): Trigger replacement.
33671         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33673 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33675         hash-pjw-bare: new module
33676         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33677         * lib/hash-pjw-bare.h: Likewise.
33678         * modules/hash-pjw-bare: New file.
33679         * MODULES.html.sh (Misc): Add it.
33681 2012-10-02  Eric Blake  <eblake@redhat.com>
33683         manywarnings: cater to more gcc infelicities
33684         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33685         -Wuninitialized without -O.
33687 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33689         select, poll tests: Make setsockopt invocation effective.
33690         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33691         the bind() call.
33692         * tests/test-select.h (open_server_socket): Likewise.
33694 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33696         sockets, sys_stat: restore AC_C_INLINE
33697         This undoes the 2012-09-22 patch.
33698         * m4/sockets.m4 (gl_SOCKETS):
33699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33700         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33701         and does not support plain 'inline'.  Reported by Bruno Haible in
33702         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33704 2012-09-30  Bruno Haible  <bruno@clisp.org>
33706         localeconv tests: Avoid test failure on OpenIndiana.
33707         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33708         skip the 'grouping' and 'mon_grouping' tests.
33709         Reported by Jim Meyering.
33711 2012-09-30  Bruno Haible  <bruno@clisp.org>
33713         havelib: Follow libtool developments.
33714         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33715         Suggested by Simon Josefsson.
33717 2012-09-29  Jim Meyering  <meyering@redhat.com>
33719         fstatat.c: fix a compile-impeding typo
33720         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33721         Introduced in commit v0.0-7636-gd202279.
33722         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33724 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33726         extern-inline: provide a -Wundef safe config.h
33727         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33728         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33729         to produce a -Wundef warning free config.h.
33731 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33733         hash-pjw: relax license to LGPLv2+
33734         * modules/hash-pjw (License): Relax, with consent of author.
33736 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33738         maint.mk: fix strict vs. lazy variable issues with RELEASE
33739         * top/maint.mk (_equal): New function.
33740         (member_check): Strip the result to avoid spurious spaces.
33741         (url_dir_list): Do not use ifeq, which is strict, as it will
33742         require RELEASE_TYPE to be defined.
33743         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33744         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33745         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33746         (announcement_Cc_beta,announcement_mail_headers_beta)
33747         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33748         (release): Do not depend on $(release-type), as it forces its
33749         evaluation.  Bounce to it.
33751 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33753         maint.mk: formatting changes
33754         * top/maint.mk: Indent bodies of if's.
33756 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33758         maint.mk: factor the validation of RELEASE_TYPE
33759         With help from Jim Meyering.
33760         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33761         * top/maint.mk (_empty, _sp): Move their definition earlier.
33762         (member-check, release-type): New.
33763         Use the latter instead of $(RELEASE_TYPE).
33764         Remove now useless local checks.
33766 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33768         maint.mk: provide "make upload" to ease uploading
33769         See
33770         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33771         Do not depend simply on the current $(VERSION), as there may have been
33772         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33773         as "make release-commit" already does.
33775         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33776         "make TYPE".
33778         * top/maint.mk (upload_command, upload, release): New.
33779         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33780         (VERSION): first word of $(RELEASE) is always right.
33781         (emit_upload_commands): Adjust.
33782         * top/README-release: Update.
33784 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33786         maint.mk: silent rules
33787         With help from Stefano Lattarini.
33788         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33789         (announcement): Use $(AM_V_at).
33791 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33793         localename: port gl_locale_name_thread_unsafe to FreeBSD
33794         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33795         and use the simpler FreeBSD implementation on Mac OS X as well.
33796         Original idea suggested by Ed Maste in
33797         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33799 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33801         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33802         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33803         * lib/mbuiter.c, lib/xsize.c: New files.
33804         * lib/binary-io.h (BINARY_IO_INLINE):
33805         * lib/eealloc.h (EEALLOC_INLINE):
33806         * lib/mbfile.h (MBFILE_INLINE):
33807         * lib/mbiter.h (MBITER_INLINE):
33808         * lib/mbuiter.h (MBUITER_INLINE):
33809         * lib/xsize.h (XSIZE_INLINE):
33810         New macros.
33811         Replace all uses of 'static inline' with them.
33812         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33813         * m4/eealloc.m4 (gl_EEALLOC):
33814         * m4/mbfile.m4 (gl_MBFILE):
33815         * m4/mbiter.m4 (gl_MBITER):
33816         * m4/xsize.m4 (gl_XSIZE):
33817         Do not require AC_C_INLINE.
33818         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33819         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33820         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33821         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33822         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33823         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33824         * modules/binary-io, modules/eealloc, modules/mbfile:
33825         * modules/mbiter, modules/mbuiter:
33826         (Depends-on): Add extern-inline.
33828         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33829         * lib/pipe-filter-aux.c: New file.
33830         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33831         Replace all uses of 'static inline' with it.
33832         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33833         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33834         (filter_retcode): No real need for inline here.
33835         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33836         (Files): Add lib/pipe-filter-aux.c.
33837         (Depends-on): Add extern-inline.
33838         (configure.ac): Do not require AC_C_INLINE.
33839         (lib_SOURCES): Add pipe-filter-aux.c.
33841         fdutimensat: omit unnecessary AC_C_INLINE
33842         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33844         fchmodat, fchownat, fstatat: use extern-inline
33845         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33846         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33847         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33848         New macros.
33849         * lib/openat.h:
33850         Replace all uses of 'static inline' with them.
33851         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33852         * modules/fchmodat, modules/fchownat, modules/fstatat:
33853         * modules/openat-h:
33854         (Depends-on):
33855         Add extern-inline.
33856         (configure.ac): Remove AC_C_INLINE.
33858         acl, mbchar, priv-set: use extern-inline
33859         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33860         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33861         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33862         New macros.
33863         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33864         Replace all uses of 'static inline' with it.
33865         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33866         * m4/acl.m4 (gl_FUNC_ACL):
33867         * m4/mbchar.m4 (gl_MBCHAR):
33868         * m4/priv-set.m4 (gl_PRIV_SET):
33869         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33870         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33871         Add extern-inline.
33873         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33874         * m4/sockets.m4 (gl_SOCKETS):
33875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33876         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33877         environments where it's already guaranteed to work, so we needn't
33878         check for it at 'configure'-time.
33880         tls-tests: omit unnecessary 'inline'
33881         * tests/test-tls.c (perhaps_yield): No longer inline.
33882         Simplicity and portability trump efficiency in test cases.
33884         utimens-tests: avoid unnecessary 'inline'
33885         * modules/fdutimensat-tests (configure.ac):
33886         * modules/futimens-tests (configure.ac):
33887         * modules/utimens-tests (configure.ac):
33888         * modules/utimensat-tests (configure.ac):
33889         Remove AC_C_INLINE.
33890         * tests/test-utimens-common.h (ctime_compare):
33891         No longer inline.  Simplicity and portability trump efficiency here.
33893         misc: don't limit commentary to inline functions
33894         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33895         * lib/xalloc-oversized.h, lib/xsize.h:
33896         Contrast macros to functions in general, not just to inline functions,
33897         when the commentary does not apply only to inline functions.
33899 2012-09-20  Jim Meyering  <meyering@redhat.com>
33901         non-recursive-gnulib-prefix-hack: new module
33902         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33903         the file that originated in Bison.
33904         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33905         largely copied from a snippet that resided in bison's configure.ac.
33906         * modules/non-recursive-gnulib-prefix-hack: New file.
33907         * MODULES.html.sh (Support for maintaining and releasing projects):
33908         Add it.
33910 2012-09-18  Jim Meyering  <meyering@redhat.com>
33912         maint.mk: generalize _gl_tight_scope for non-recursive make
33913         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33914         that *.h would describe additional .h files in the directory
33915         specified by $(_gl_TS_dir).  I.e., add this...
33916         (_gl_TS_other_headers): New variable.
33918         maint.mk: exempt trailing blanks found in "binary" files
33919         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33920         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33921         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33923 2012-09-17  Jim Meyering  <meyering@redhat.com>
33925         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33926         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33927         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33928         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33930 2012-09-17  Jim Meyering  <meyering@redhat.com>
33932         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33933         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33934         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33935         It is not in the same category as "exit (0)" or "exit (1)", and
33936         besides, I know of no symbolic name for that 77.  Reported by
33937         Richard W.M. Jones in
33938         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33940 2012-09-17  Jim Meyering  <meyering@redhat.com>
33942         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33943         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33944         all uses of #define, not just those that start in column 1.
33945         Richard W.M. Jones reported a false positive in
33946         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33948 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33950         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33951         * lib/localcharset.c (locale_charset) [DARWIN7]:
33952         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33953         as these two values are incompatible.  Problem reported by Max Horn.
33954         For more discussion, please see
33955         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33957         doc: document sticky-EOF issue
33958         * doc/posix-functions/fgetc.texi (fgetc):
33959         * doc/posix-functions/fgets.texi (fgets):
33960         * doc/posix-functions/fread.texi (fread):
33961         * doc/posix-functions/fscanf.texi (fscanf):
33962         * doc/posix-functions/getc.texi (getc):
33963         * doc/posix-functions/getchar.texi (getchar):
33964         * doc/posix-functions/scanf.texi (scanf):
33965         Mention that glibc and default Solaris do not conform to
33966         C99 and POSIX-2001 or later, with respect to how getchar
33967         etc. behave when feof reports nonzero.
33969 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33971         poll: fix poll(0, NULL, msec)
33972         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33973         but nfd is 0.  In that case poll should behave like select.
33975 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33976             Paolo Bonzini  <bonzini@gnu.org>
33978         poll: fix for systems that can't recv() on a non-socket
33979         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33980         is readable.  In this case POLLHUP will not be supported.
33981         * doc/posix-functions/poll.texi: Document this.
33983 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33985         poll/select: document portability problems not fixed by Gnulib.
33986         * doc/posix-functions/poll.texi: poll does not work well on
33987         pipes under Windows.  It has the same limitations as select on
33988         BeOS.
33989         * doc/posix-functions/select.texi: select does not work well
33990         on pipes under Windows.
33992 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33994         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33995         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33996         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33997         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33999 2012-09-06  Eric Blake  <eblake@redhat.com>
34001         net_if: give more details about the bug being fixed
34002         * doc/posix-headers/net_if.texi: Add clarification.
34004 2012-09-05  Eric Blake  <eblake@redhat.com>
34006         net_if: new module
34007         * modules/net_if: New module, borrowing ideas from netinet_in.
34008         * m4/net_if_h.m4: New file.
34009         * lib/net_if.in.h: Likewise.
34010         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34011         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34012         * tests/test-net_if.c: Make function checks conditional.
34013         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34015 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34017         readutmp: fix non-portable UT_PID use
34018         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34019         Use `UT_PID (u) > 0' as absolute condition.
34021 2012-09-04  Jim Meyering  <meyering@redhat.com>
34023         fts: reduce two or more trailing spaces to just one, usually
34024         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34025         or more slashes, trim all but the final one.  But if a name consists
34026         solely of two slashes, don't modify it.  If it consists solely of
34027         three or more slashes, strip all but one.
34029         This is part of the solution to a minor problem with rm:
34030         it would print a bogus ELOOP diagnostic when failing to remove
34031         the slash-decorated name of a symlink-to-directory:
34033             $ mkdir d && ln -s d s && env rm -r s/
34034             rm: cannot remove 's': Too many levels of symbolic links
34036         With the change below and a trivial don't-trim-trailing-slashes
34037         adjustment to remove.c, it does this:
34039             $ env rm -r s/
34040             rm: cannot remove 's/': Not a directory
34042         Improved by: Eric Blake
34044         fts: when there is no risk of overlap, use memcpy, not memmove
34045         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34047 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34049         stdbool: be more compatible with mixed C/C++ compiles
34050         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34051         Define to bool, true, false, respectively, as GCC's builtin
34052         stdbool.h does.  Problem reported by Michael Goffioul in
34053         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34055 2012-08-28  Jim Meyering  <meyering@redhat.com>
34057         revert last change: it was not needed
34058         * tests/test-vc-list-files-git.sh: There's already a test for
34059         a working git, just below.
34061 2012-08-28  Jim Meyering  <meyering@redhat.com>
34063         tests: test-vc-list-files-git.sh: skip if git is not available
34064         * tests/test-vc-list-files-git.sh: Skip this test when git is
34065         not available.
34067 2012-08-26  Bruno Haible  <bruno@clisp.org>
34069         gnulib-tool: Remove no-op option --no-changelog.
34070         * gnulib-tool (func_usage): Don't mention --no-changelog.
34071         (do_changelog): Remove variable.
34072         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34074 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34076         doc: remove fdl-1.2.texi
34077         It is no longer used or maintained, and its use of @acronym
34078         is problematic.  See the thread containing
34079         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34080         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34081         * doc/old-licenses/fdl-1.2.texi: Remove.
34083         execinfo: port to FreeBSD
34084         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34085         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34086         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34087         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34089 2012-08-23  Jim Meyering  <meyering@redhat.com>
34091         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34092         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34093         to placate gcc's -Wold-style-declaration.
34095 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34097         doc: do not use @acronym
34098         * doc/inet_ntoa.texi (inet_ntoa):
34099         * doc/parse-datetime.texi (Seconds since the Epoch)
34100         (Specifying time zone rules):
34101         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34102         Don't use @acronym.  Problem reported by John Darlington in
34103         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34105 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34107         stdnoreturn: port to newer GCCs
34108         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34109         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34110         Problem reported by Jim Meyering in
34111         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34112         Also, rename the 'test' function to a void a clash with the
34113         already-supplied 'main' function; this fixes a bug that incorrectly
34114         rejected GCC 4.7.1's <stdnoreturn.h>.
34115         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34116         Document GCC problem.
34118 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34120         pipe-filter: fix comment typo
34121         * lib/pipe-filter.h: Mention correct function.
34123 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34125         execinfo: new module
34126         This is for Emacs.  Currently, it provides a no-effect stub
34127         on all platforms where it does not already work.
34128         It already works on glibc-based systems, and on Solaris 11.
34129         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34130         New files.
34131         * doc/glibc-headers/execinfo.texi (execinfo.h):
34132         * MODULES.html.sh (Misc): Document it.
34134 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34136         extern-inline: support old GCC 'inline'
34137         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34138         if available.  This applies to GCC versions 2.7 through 4.2, or
34139         when newer GCC is using -fgnu89-inline.  The goal is to address
34140         some of the performance issues mentioned by Bruno Haible in
34141         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34143 2012-08-20  Eric Blake  <eblake@redhat.com>
34145         maint.mk: avoid redundant file name in message
34146         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34147         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34148         (sc_makefile_path_separator_check): Remove bogus $(ME).
34150 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34152         timer-time: fix link order when static linking on glibc
34153         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34154         _after_ -lrt so that it's significant.
34156 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34158         timespec: omit unnecessary AC_C_INLINE
34159         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34161         stat-time: omit unnecessary AC_C_INLINE
34162         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34163         Do not require AC_C_INLINE.
34165         ignore-value: omit unnecessary AC_C_INLINE
34166         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34168         sys_select: avoid 'static inline'
34169         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34171         mktime: avoid 'static inline'
34172         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34173         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34175 2012-08-19  Bruno Haible  <bruno@clisp.org>
34177         gnulib-tool: Improve coding style.
34178         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34179         func_emit_lib_Makefile_am.
34180         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34182 2012-08-19  Bruno Haible  <bruno@clisp.org>
34184         gnulib-tool: Fix indentation.
34185         * gnulib-tool (func_import): Fix indentation.
34187 2012-08-19  Bruno Haible  <bruno@clisp.org>
34189         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34190         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34191         on the list of removed files.
34193 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34195         test-parse-datetime: avoid glibc leap-second glitch
34196         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34197         with the 2012 rules.  Problem reported by Bruce Dubbs in
34198         <http://bugs.gnu.org/12206>.
34200 2012-08-14  Bruno Haible  <bruno@clisp.org>
34202         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34203         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34204         from argument.
34205         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34207 2012-08-14  Eric Blake  <eblake@redhat.com>
34209         ldexp: relax license
34210         * modules/ldexp (License): Trivial relax, since the module only
34211         provides a permissively licensed m4 file.
34213 2012-08-13  Bruno Haible  <bruno@clisp.org>
34215         gnulib-tool: Fix persistence of --witness-c-macro option.
34216         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34217         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34219 2012-08-11  Eric Blake  <eblake@redhat.com>
34221         count-leading-zeros: use a lookup table on non-gcc compilers
34222         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34223         alternate implementation, suggested by Jim Meyering.
34225 2012-08-10  Eric Blake  <eblake@redhat.com>
34227         count-leading-zeros: new module
34228         * modules/count-leading-zeros: New module.
34229         * m4/count-leading-zeros.m4: New file.
34230         * lib/count-leading-zeros.h: Likewise.
34231         * modules/count-leading-zeros-tests: New test.
34232         * tests/test-count-leading-zeros.c: New file.
34233         * MODULES.html.sh (Integer arithmetic functions): Document it.
34235 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34236             Jim Meyering  <meyering@redhat.com>
34238         maintainer-makefile: Fix syntax error with dash.
34239         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34240         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34242 2012-08-05  Jim Meyering  <meyering@redhat.com>
34244         extern-inline: also ignore -Wmissing-declarations
34245         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34246         required with gcc-4.8.0-to-be.
34248         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34249         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34250         for /error ?([^,]*)/.  This avoids false-positives for strings like
34251         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34253 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34255         gnumakefile: better interaction with Automake-NG
34256         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34257         Automake-NG always contain a definition of VPATH, even in non-VPATH
34258         builds (its value being simply '.' in that case).  So, in the
34259         'clean-GNUmakefile' rule, to determine whether running under a
34260         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34261         '$(VPATH)' expands to the empty string.
34263 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34265         base64: Use extern C scope in header file, for C++.
34266         * lib/base64.h: Add C++ namespace protection.
34268 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34270         stat-time, timespec, u64: support naive out-of-dir builds
34271         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34272         Use '#include "foo.h"', not '#include <foo.h>', when including
34273         one's own interface.  This works better when configuring with
34274         out-of-directory builds, since packages need not add an
34275         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34277 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34279         utimens: use extern-inline
34280         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34281         * lib/utimens.h: Add copyright notice, since this is now large enough
34282         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34283         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34284         * modules/utimens (Depends-on): Add extern-inline.
34286         u64: use extern-inline
34287         * lib/u64.c: New file.
34288         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34289         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34290         * modules/u64 (Files): Add lib/u64.c.
34291         (Depends-on): Add extern-inline.
34292         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34293         does that now.
34294         (lib_SOURCES): Add u64.c.
34296         timespec: use extern-inline
34297         * lib/timespec.c: New file.
34298         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34299         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34300         * modules/timespec (Files): Add lib/timespec.c.
34301         (Depends-on): Add extern-inline.
34302         (lib_SOURCES): Add timespec.c.
34304         stat-time: use extern-inline
34305         * lib/stat-time.c: New file.
34306         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34307         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34308         * modules/stat-time (Files): Add lib/stat-time.c.
34309         (Depends-on): Add extern-inline.
34310         (lib_SOURCES): Add stat-time.c.
34312         extern-inline: new module
34313         * modules/extern-inline, m4/extern-inline.m4: New files.
34314         This is for better support of 'extern inline' a la ISO C99,
34315         with a portable alternative on compilers that do not support
34316         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34317         of the Emacs executable, when compiled with debugging disabled,
34318         which is a typical way that Emacs is built while developing.
34320 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34322         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34323         * build-aux/do-release-commit-and-tag: Move variable definitions
34324         together.
34325         ($branch): Instead of defaulting to "master", default to the current
34326         branch (as gnu-web-doc-update does).
34327         (help): Display the current values of the option arguments.
34328         * top/maint.mk (release-commit): New.
34329         * top/README-release: Simplify the corresponding step.
34331 2012-07-30  Eric Blake  <eblake@redhat.com>
34333         passfd: fix comment on recvfd
34334         * lib/passfd.c (recvfd): Fix comment.
34335         Reported by Jann Horn <jannhorn@googlemail.com>.
34337 2012-07-30  Jim Meyering  <meyering@redhat.com>
34339         maint.mk: avoid a sub-shell
34340         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34342 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34344         maint.mk: use silent-rules support from Automake
34345         * top/maint.mk (news-check, vc-diff-check, announcement)
34346         (no-submodule-changes, alpha beta stable, release-prep)
34347         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34349 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34351         maint.mk: provide a web-manual-update target
34352         * top/maint.mk: here.
34353         * top/README-release: Use it to simplify the web manual update step.
34355 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34357         README-release: shorten the circuit to post a news
34358         * top/README-release: Point directly to the news submission form.
34360 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34362         gnu-web-doc-update: fix --help
34363         * build-aux/gnu-web-doc-update: The information "top level" was written
34364         twice.
34366 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34368         maint.mk: absolute VPATH issue
34369         * top/maint.mk (release-prep): Help Git find .git/.
34370         From Jim Meyering.
34372 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34374         gitlog-to-changelog: fix previous change
34375         * build-aux/gitlog-to-changelog: Fix condition.
34376         Add missing ";".
34378 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34380         gitlog-to-changelog: don't expect .git to be in $srcdir
34381         Reported by Bruno Haible.
34382         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34383         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34384         Use it.
34386 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34388         maint.mk: absolute VPATH build fix
34389         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34390         $(srcdir) is not a parent of $(builddir).
34392 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34394         clean-temp: Fix memory leak.
34395         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34396         'files' members of tmpdir.
34398 2012-07-27  Jim Meyering  <meyering@redhat.com>
34400         maint.mk: new rule: refresh-gnulib-patches
34401         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34402         Use this rule to refresh them.
34403         * top/maint.mk (refresh-gnulib-patches): New rule.
34405 2012-07-24  Bruno Haible  <bruno@clisp.org>
34407         gnulib-tool: Fix handling of inctests variable.
34408         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34409         Reported by Nick Bowler <nbowler@elliptictech.com>.
34411 2012-07-22  Bruno Haible  <bruno@clisp.org>
34413         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
34414         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
34415         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34416         Remove exemption for getpass.h.
34417         Suggested by Eric Blake.
34419 2012-07-20  Eric Blake  <eblake@redhat.com>
34421         verify: document conflict with -Wnested-externs
34422         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
34424         maint.mk: forbid exit(-1)
34425         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
34427 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34429         fsusage: port back to Solaris
34430         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
34431         error (fsd not declared) on Solaris 10.  Reported privately by
34432         Andrew Borodin.
34434 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
34436         gnu-web-doc-update: fix error messages
34437         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34439         gnu-web-doc-update: check the requirements.
34440         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34441         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34442         * build-aux/bootstrap (find_tool): Comment change.
34444 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34446         maint.mk: minor simplication.
34447         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34448         for default values.
34450 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34452         gitlog-to-changelog: VPATH build issues
34453         If builddir is not a subdirectory of srcdir, running git from it will
34454         fail.
34455         * build-aux/gitlog-to-changelog (--srcdir): New option.
34457 2012-07-15  Bruno Haible  <bruno@clisp.org>
34459         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34460         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34461         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34462         Remove exemption for fpending.h.
34463         Suggested by Eric Blake.
34465 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34467         pthread_sigmask: fix bug on FreeBSD 9
34468         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34469         Include string.h.
34470         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34471         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34472         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34473         but pthread_sigmask (1729, NULL, NULL) returns zero.
34474         See <http://bugs.gnu.org/11884>.
34475         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34476         by inspecting whether the main call changed the old mask.
34478 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34480         README-release: make it more legible
34481         * top/README-release: Improve typography slightly.
34483 2012-07-15  Jim Meyering  <meyering@redhat.com>
34485         maint: require that each sc_... command start with "@"
34486         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34487         "make sc_maint" helps us avoid this nit.
34489 2012-07-15  Jim Meyering  <meyering@redhat.com>
34491         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34492         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34494 2012-07-13  Eric Blake  <eblake@redhat.com>
34496         maint.mk: new syntax check for HAVE_DECL checks
34497         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34498         * cfg.mk
34499         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34500         Exempt some false positives.
34501         Based on a report by Karel Zak.
34503         argp: make HAVE_DECL usage consistent
34504         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34505         macros, not whether they are defined.
34506         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34507         convention with other declaration checks.
34508         Reported by Karel Zak, with suggestions from Paul Eggert.
34510         stat-time: relax license to LGPLv2+
34511         * modules/stat-time (License): Relax, with consent of all authors.
34513         strndup: fix m4 usage error
34514         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34515         defined, to either 0 or 1.
34516         Reported by Karel Zak.
34518 2012-07-11  Jim Meyering  <meyering@redhat.com>
34520         maint: enable the sc_avoid_if_before_free syntax-check rule
34521         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34522         (if_before_free_offenders_): Define.
34523         (if_before_free_basename_re_): Define.
34524         Exempt current files with useless if-before-free.
34526 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34528         gettext: do not assume '#define ... defined ...' behavior
34529         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34530         Do not use '#define FOO ... defined BAR ...', as the C standard says
34531         it's not portable to expect that this works after macro expansion.
34532         Problem reported for gzip by Steven M. Schweda in
34533         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34535 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34537         getloadavg: clean out old Emacs and Autoconf cruft
34538         See Glenn Morris in <http://bugs.gnu.org/11905>.
34539         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34540         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34541         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34542         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34544 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34546         bootstrap: let warn be like tests/init.sh's warn_
34547         Reported by Jim Meyering.
34548         * build-aux/bootstrap (warn): Remove, replaced by...
34549         (warnf_, warn_): these.
34550         Adjust callers.
34551         Shorten messages that no longer fit in 80 columns.
34553 2012-07-09  Bruno Haible  <bruno@clisp.org>
34555         getopt: Simplify after Emacs changed.
34556         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34557         (gl_GETOPT_IFELSE): Remove macro.
34559 2012-07-09  Jim Meyering  <meyering@redhat.com>
34561         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34562         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34564         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34565         Bugs in both of those conspired to make the
34566         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34567         _sc_search_regexp's handling of non-empty $in_files would filter
34568         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34569         choice of in_files value meant there would be no match in most
34570         projects, due to the presence of two or more Makefile.in files.
34571         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34572         Fix a bug in how a non-empty $$in_files was processed:
34573         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34574         in spite of the name, it's a regexp, not a list of file names.
34576 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34578         getloadavg, getopt: fix commentary re configure.in
34579         Autoconf is deprecating the name 'configure.in', so change it to
34580         to the new name 'configure.ac' in a couple of places.
34581         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34582         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34583         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34584         Emacs has renamed it to configure.ac, and it no longer refers
34585         to these macros anyway.
34587         timespec: mark functions with const attributes
34588         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34589         Mark with _GL_ATTRIBUTE_CONST.
34591 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34593         canonicalize[-lgpl]: handle "guessing" values when cross-building
34594         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34595         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34596         matches "*yes" instead of just "yes".  Regression introduced in commit
34597         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34599 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34600             Bruno Haible  <bruno@clisp.org>
34602         canonicalize: make the right guess when cross-compiling to GNU
34603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34604         determine whether cross-compiling to glibc systems, so as to
34605         include GNU/Hurd.
34607 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34609         timespec-sub: avoid duplicate include
34610         * lib/timespec-sub.c: Do not include <config.h> twice.
34611         Reported by Juanma Barranquero.
34613 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34615         bootstrap: use a more consistent error reporting scheme
34616         * build-aux/bootstrap (warn, die): New.
34617         Use them.
34619 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34621         sys_time: allow too-wide tv_sec
34622         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34623         timeval even if tv_sec is wider than time_t.  This allows
34624         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34625         as without this patch gnulib replaces struct timeval
34626         and OpenBSD futimes therefore has a type mismatch.
34627         * doc/posix-headers/sys_time.texi: Mention this.
34629         pthread: check for both pthread_create and pthread_join
34630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34631         alter the check so that it tests for both pthread_create and
34632         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34633         Suggested by Bruno Haible and Richard Yao in
34634         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34636         parse-datetime: doc tuneup
34637         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34638         spacing issues.
34640 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34642         do-release-commit-and-tag: fix the previous commit
34643         * build-aux/do-release-commit-and-tag: Actually the test was right,
34644         but the comment and the error message were misleading.
34645         Fix comment, and improve error message.
34646         Perform check first, so that NEWS is not modified uselessly.
34648         do-release-commit-and-tag: fix typo
34649         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34650         _not_ start with a stub.
34652 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34654         pthread: check for pthread_create, not pthread_join
34655         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34656         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34657         pthread_join in libc.  I hope this removes the need for all the
34658         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34659         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34661 2012-07-04  Jim Meyering  <meyering@redhat.com>
34663         parse-datetime: fix failure to diagnose invalid input
34664         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34665         rather than diagnosing the invalid input.  Now it reports this:
34666         date: invalid date '\260'
34667         * lib/parse-datetime.y (to_uchar): Define.
34668         (yylex): Don't sign-extend "other" bytes.
34669         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34670         Thanks to Bruno Haible for the patch to this file.
34671         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34672         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34674 2012-07-03  Jim Meyering  <meyering@redhat.com>
34676         bootstrap: do not require now-removed build-aux/missing
34677         Now that build-aux/missing is, er, missing, bootstrap would
34678         silently fail.
34679         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34680         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34681         no longer part of gnulib.
34682         Diagnose the failure.
34684 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34686         alloca: add support for HP NonStop TNS/E native
34687         * lib/alloca.in.h (alloca): Support the new host.
34688         From a suggestion by Joachim Schmitz in
34689         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34691 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34693         fsusage: remove code not needed on non GNU/Linux systems.
34695         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34696         Don't include headers no longer needed in this case.
34697         * lib/fsusage.c [STAT_STATVFS &&
34698         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34699         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34701 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34703         fsusage: include files needed for glibc 2.6 fallback
34704         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34705         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34706         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34707         Problem reported by Ludovic Courtès in
34708         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34710         fsusage: avoid needless check on GNU/Linux
34711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34712         on GNU/Linux systems, since it can't possibly work.
34714 2012-07-01  Bruno Haible  <bruno@clisp.org>
34716         log: Fix an autoconf >= 2.64 warning.
34717         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34718         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34720 2012-06-28  Bruno Haible  <bruno@clisp.org>
34722         log10f: Fix possible configuration problem.
34723         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34724         $LOGF_LIBM.
34725         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34727 2012-06-28  Bruno Haible  <bruno@clisp.org>
34729         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34730         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34731         not gl_cv_func_unlink_works.
34732         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34734 2012-06-27  Eric Blake  <eblake@redhat.com>
34736         config: drop scripts that automake says are not independent
34737         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34738         * build-aux/elisp-comp: Delete.
34739         * build-aux/missing: Likewise.
34740         * build-aux/ylwrap: Likewise.
34741         * modules/elisp-comp: Likewise.
34742         * MODULES.html.sh: Drop mention of elisp-comp.
34743         * NEWS: Mention this.
34745 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34747         root-uid: new module
34748         This is for portability to Tandem's NonStop Kernel.
34749         * lib/root-uid.h, modules/root-uid: New files.
34750         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34751         * lib/write-any-file.c, tests/test-sethostname2.c:
34752         Include "root-uid.h".
34753         * lib/euidaccess.c (euidaccess):
34754         * lib/pt_chown.c (main):
34755         * lib/unlinkdir.c (cannot_unlink_dir):
34756         * lib/write-any-file.c (can_write_any_file):
34757         * m4/mknod.m4 (gl_FUNC_MKNOD):
34758         * tests/test-sethostname2.c (geteuid, main):
34759         Don't assume ROOT_UID == 0.
34760         * modules/euidaccess (Depends-on):
34761         * modules/pt_chown (Depends-on):
34762         * modules/sethostname-tests (Depends-on):
34763         * modules/unlinkdir (Depends-on):
34764         * modules/write-any-file (Depends-on):
34765         Add root-uid.
34767         regex: use locale-independent comparison for codeset name
34768         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34769         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34770         for codeset name.
34771         * lib/regex_internal.h: Do not include <strings.h>, since we
34772         no longer use strcasecmp.
34773         * modules/regex (Depends-on): Remove strcase.
34775 2012-06-23  Bruno Haible  <bruno@clisp.org>
34777         getopt-posix: No longer guarantee that option processing is resettable.
34778         * doc/posix-functions/getopt.texi: Drop description of problem with
34779         internal state. Fix info about mingw and msvc9.
34780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34781         option processing by getopt(). Run three test programs instead of one.
34782         Simplify cross-compilation guess.
34783         * NEWS: Mention the change.
34784         Reported by Rich Felker <dalias@aerifal.cx>.
34786 2012-06-26  Bruno Haible  <bruno@clisp.org>
34788         argp, regex: Ensure strcasecmp gets declared.
34789         * lib/argp-help.c: Include <strings.h>.
34790         * lib/regex_internal.h: Likewise.
34791         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34793 2012-06-24  Bruno Haible  <bruno@clisp.org>
34795         ptsname_r: Make it consistent with ptsname on AIX.
34796         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34797         implementation as for OSF/1.
34798         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34799         a pty master.
34801         ptsname_r: Make it consistent with ptsname on OSF/1.
34802         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34803         OSF/1.
34805 2012-06-24  Bruno Haible  <bruno@clisp.org>
34807         ttyname_r: Fix result on OSF/1, Solaris.
34808         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34810 2012-06-24  Bruno Haible  <bruno@clisp.org>
34812         ptsname_r: Add support for Solaris.
34813         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34814         Solaris.
34816         ptsname_r: Fix test failure on native Windows.
34817         * modules/ptsname_r (Depends-on): Add isatty.
34819         ptsname_r: Fix test failures on IRIX, Solaris.
34820         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34821         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34822         accordingly.
34823         * lib/ptsname_r.c: Include <fcntl.h>.
34824         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34825         set errno if fd is invalid.
34826         * tests/test-isatty.c (main): Update comments.
34828 2012-06-24  Bruno Haible  <bruno@clisp.org>
34830         ptsname test: Extend test.
34831         * tests/test-ptsname.c: Include <errno.h>.
34832         (main): Test behaviour with invalid file descriptor.
34834 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34836         time: fix obsolete comment
34837         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34838         reference to HAVE_STRUCT_TIMESPEC in comment.
34840 2012-06-23  Bruno Haible  <bruno@clisp.org>
34842         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34844         does not handle abbreviated long options with equivalent
34845         disambiguations, set gl_replace_getopt to yes.
34846         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34848 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34850         time_r: fix typo that always overrode localtime_r decl
34851         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34852         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34853         not in a standard include.
34855 2012-06-22  Bruno Haible  <bruno@clisp.org>
34857         Write "Mac OS X" instead of "MacOS X".
34858         * README: Write "Mac OS X" instead of "MacOS X".
34859         * build-aux/bootstrap: Likewise.
34860         * build-aux/install-reloc: Likewise.
34861         * lib/acl-internal.h: Likewise.
34862         * lib/acl_entries.c: Likewise.
34863         * lib/argp-ba.c: Likewise.
34864         * lib/argp-pv.c: Likewise.
34865         * lib/config.charset: Likewise.
34866         * lib/copy-acl.c: Likewise.
34867         * lib/csharpexec.c: Likewise.
34868         * lib/euidaccess.c: Likewise.
34869         * lib/fbufmode.c: Likewise.
34870         * lib/fflush.c: Likewise.
34871         * lib/file-has-acl.c: Likewise.
34872         * lib/filemode.h: Likewise.
34873         * lib/fpurge.c: Likewise.
34874         * lib/freadable.c: Likewise.
34875         * lib/freadahead.c: Likewise.
34876         * lib/freading.c: Likewise.
34877         * lib/freadptr.c: Likewise.
34878         * lib/freadseek.c: Likewise.
34879         * lib/fseeko.c: Likewise.
34880         * lib/fseterr.c: Likewise.
34881         * lib/fsusage.c: Likewise.
34882         * lib/fwritable.c: Likewise.
34883         * lib/fwriting.c: Likewise.
34884         * lib/get-rusage-as.c: Likewise.
34885         * lib/get-rusage-data.c: Likewise.
34886         * lib/getdomainname.c: Likewise.
34887         * lib/idpriv-drop.c: Likewise.
34888         * lib/idpriv-droptemp.c: Likewise.
34889         * lib/localcharset.c: Likewise.
34890         * lib/locale.in.h: Likewise.
34891         * lib/localename.c: Likewise.
34892         * lib/mbsrtowcs-state.c: Likewise.
34893         * lib/nproc.c: Likewise.
34894         * lib/passfd.c: Likewise.
34895         * lib/posix_openpt.c: Likewise.
34896         * lib/printf-parse.c: Likewise.
34897         * lib/progreloc.c: Likewise.
34898         * lib/safe-read.h: Likewise.
34899         * lib/safe-write.h: Likewise.
34900         * lib/sched.in.h: Likewise.
34901         * lib/set-mode-acl.c: Likewise.
34902         * lib/signal.in.h: Likewise.
34903         * lib/stdint.in.h: Likewise.
34904         * lib/stdio-impl.h: Likewise.
34905         * lib/stdlib.in.h: Likewise.
34906         * lib/strtod.c: Likewise.
34907         * lib/sys_select.in.h: Likewise.
34908         * lib/tcgetsid.c: Likewise.
34909         * lib/unistd.in.h: Likewise.
34910         * lib/unlockpt.c: Likewise.
34911         * lib/vasnprintf.c: Likewise.
34912         * lib/vma-iter.c: Likewise.
34913         * lib/wcsrtombs-state.c: Likewise.
34914         * m4/acl.m4: Likewise.
34915         * m4/acosl.m4: Likewise.
34916         * m4/asinl.m4: Likewise.
34917         * m4/atanl.m4: Likewise.
34918         * m4/c-stack.m4: Likewise.
34919         * m4/cosl.m4: Likewise.
34920         * m4/expl.m4: Likewise.
34921         * m4/extensions.m4: Likewise.
34922         * m4/fdatasync.m4: Likewise.
34923         * m4/fmal.m4: Likewise.
34924         * m4/frexp.m4: Likewise.
34925         * m4/frexpf.m4: Likewise.
34926         * m4/frexpl.m4: Likewise.
34927         * m4/fsusage.m4: Likewise.
34928         * m4/getdomainname.m4: Likewise.
34929         * m4/getloadavg.m4: Likewise.
34930         * m4/getopt.m4: Likewise.
34931         * m4/gettext.m4: Likewise.
34932         * m4/gnulib-common.m4: Likewise.
34933         * m4/intdiv0.m4: Likewise.
34934         * m4/intlmacosx.m4: Likewise.
34935         * m4/largefile.m4: Likewise.
34936         * m4/ldexpl.m4: Likewise.
34937         * m4/link-follow.m4: Likewise.
34938         * m4/locale-ar.m4: Likewise.
34939         * m4/locale-fr.m4: Likewise.
34940         * m4/locale-ja.m4: Likewise.
34941         * m4/locale-tr.m4: Likewise.
34942         * m4/locale-zh.m4: Likewise.
34943         * m4/locale_h.m4: Likewise.
34944         * m4/lock.m4: Likewise.
34945         * m4/logl.m4: Likewise.
34946         * m4/mathfunc.m4: Likewise.
34947         * m4/minus-zero.m4: Likewise.
34948         * m4/mktime.m4: Likewise.
34949         * m4/mmap-anon.m4: Likewise.
34950         * m4/multiarch.m4: Likewise.
34951         * m4/nanosleep.m4: Likewise.
34952         * m4/nocrash.m4: Likewise.
34953         * m4/poll.m4: Likewise.
34954         * m4/printf-frexpl.m4: Likewise.
34955         * m4/printf.m4: Likewise.
34956         * m4/signbit.m4: Likewise.
34957         * m4/sinl.m4: Likewise.
34958         * m4/sqrtl.m4: Likewise.
34959         * m4/strerror_r.m4: Likewise.
34960         * m4/tanl.m4: Likewise.
34961         * m4/threadlib.m4: Likewise.
34962         * m4/ttyname_r.m4: Likewise.
34963         * m4/unlink.m4: Likewise.
34964         * m4/visibility.m4: Likewise.
34965         * m4/wcwidth.m4: Likewise.
34966         * tests/minus-zero.h: Likewise.
34967         * tests/test-alloca-opt.c: Likewise.
34968         * tests/test-copy-acl.sh: Likewise.
34969         * tests/test-copy-file.sh: Likewise.
34970         * tests/test-fdatasync.c: Likewise.
34971         * tests/test-file-has-acl.sh: Likewise.
34972         * tests/test-flock.c: Likewise.
34973         * tests/test-fsync.c: Likewise.
34974         * tests/test-localename.c: Likewise.
34975         * tests/test-malloca.c: Likewise.
34976         * tests/test-nonblocking-pipe.h: Likewise.
34977         * tests/test-nonblocking-socket.h: Likewise.
34978         * tests/test-openpty.c: Likewise.
34979         * tests/test-posix_openpt.c: Likewise.
34980         * tests/test-ptsname.c: Likewise.
34981         * tests/test-ptsname_r.c: Likewise.
34982         * tests/test-sameacls.c: Likewise.
34983         * tests/test-select.h: Likewise.
34984         * tests/test-set-mode-acl.sh: Likewise.
34985         * tests/test-snprintf-posix.h: Likewise.
34986         * tests/test-sprintf-posix.h: Likewise.
34987         * tests/test-strtod.c: Likewise.
34988         * tests/test-time.c: Likewise.
34989         * tests/test-vasnprintf-posix.c: Likewise.
34990         * tests/test-vasprintf-posix.c: Likewise.
34991         * doc/acl-resources.txt: Likewise.
34992         * doc/**/*.texi: Likewise.
34993         Reported by Max Horn <max@quendi.de>.
34995 2012-06-22  Bruno Haible  <bruno@clisp.org>
34997         grantpt: Relax requirement regarding invalid file descriptors.
34998         * lib/grantpt.c: Don't include <fcntl.h>.
34999         (grantpt): Don't verify the validity of the file descriptor.
35000         * modules/grantpt (Depends-on): Remove fcntl-h.
35001         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35002         file descriptors.
35003         * doc/posix-functions/grantpt.texi: Document more platforms on which
35004         grantpt succeeds for invalid file descriptors.
35005         Reported by Rich Felker <dalias@aerifal.cx>.
35007 2012-06-22  Bruno Haible  <bruno@clisp.org>
35009         fbufmode test: Don't test unportable behaviour.
35010         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35011         (main): Invoke it three times.
35012         Reported by Szabolcs Nagy <nsz@port70.net>
35013         and Rich Felker <dalias@aerifal.cx>.
35015 2012-06-21  Bruno Haible  <bruno@clisp.org>
35017         gnulib-tool: Refactor inctests variable.
35018         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35019         (func_modules_transitive_closure,
35020         func_modules_transitive_closure_separately,
35021         func_import, func_create_testdir): Update.
35023         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35024         * gnulib-tool: Accept option --without-tests.
35025         (func_usage): Document --without-tests option. Rearrange.
35026         (inctests): Normalize according to the mode.
35027         * NEWS: Mention the change.
35028         Suggested by Simon Josefsson.
35030 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35032         parse-duration test: Avoid spurious output.
35033         * tests/test-parse-duration.sh: Reindent with leading tabs.
35035 2012-06-21  Jim Meyering  <meyering@redhat.com>
35037         maint: disable the strncpy prohibition
35038         * cfg.mk: Do not prohibit strncpy here.
35040 2012-06-21  Bruno Haible  <bruno@clisp.org>
35042         nonblocking: Avoid compilation error on mingw64.
35043         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35044         fscanf.
35045         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35046         * modules/vfscanf (configure.ac): Likewise.
35047         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35048         definition only if stdio.h has prepared it.
35049         Reported by Daniel P. Berrange <berrange@redhat.com>.
35051 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35053         gnulib-tool: Use readlink if it is available.
35054         * gnulib-tool (func_readlink): Choose function more appropriately.
35056 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35058         posixtm-tests: port to buggy compiler
35059         Problem reported by Simon Josefsson in
35060         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35061         * modules/posixtm-tests (Depends-on): Add stdint.
35062         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35063         Now of type int_least64_t, not int64_t, both because that's
35064         what INT64_C returns and because int_least64_t works even
35065         on 72-bit hosts.
35066         (T): Use INT64_C on constants outside the traditional int range,
35067         to work around compiler bug noted by Simon.
35069         mktime: fix integer overflow in 'configure'-time test
35070         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35071         after integer overflow.  Problem reported by Rich Felker in
35072         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35073         Also, don't look for further instances of a bug if we've already
35074         found one instance; this helps 'configure' run faster.
35076 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35078         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35079         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35080         GetVersionEx correctly.
35081         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35083 2012-06-20  Bruno Haible  <bruno@clisp.org>
35085         fdopen: Allow implementations that don't reject invalid fd arguments.
35086         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35087         succeeds.
35088         Reported by Rich Felker <dalias@aerifal.cx>.
35090 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35092         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35093         bring in LIBINTL.
35095 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35097         init.sh: do not rely on autoupated PWD
35098         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35099         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35100         Although Nelson's bug was not necessarily fixed by this patch,
35101         it seems wise to make the change for safety.
35102         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35103         automagically after 'cd'; this is not reliable on older shells.
35104         (setup_): Fail if we cannot cd to temporary directory.
35106 2012-06-19  Bruno Haible  <bruno@clisp.org>
35108         stat, fstat: Avoid warnings on mingw64.
35109         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35110         redefining.
35111         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35112         Reported by Daniel P. Berrange <berrange@redhat.com>.
35114 2012-06-19  Bruno Haible  <bruno@clisp.org>
35116         stdioext: Add support for musl libc.
35118         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35119         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35121         * m4/fseterr.m4: New file.
35122         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35123         function exists.
35124         * modules/fseterr (Files): Add m4/fseterr.m4.
35125         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35126         __fseterr does not exist.
35127         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35129         * lib/freadable.h: Update comment.
35131         * lib/fwritable.h: Update comment.
35133         * lib/freading.h: Update comment.
35135         * lib/fwriting.h: Update comment.
35137         * m4/freadahead.m4: New file.
35138         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35139         that function exists.
35140         * modules/freadahead (Files): Add m4/freadahead.m4.
35141         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35142         __freadahead does not exist.
35143         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35145         * m4/freadptr.m4: New file.
35146         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35147         function exists.
35148         * modules/freadptr (Files): Add m4/freadptr.m4.
35149         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35150         __freadptr does not exist.
35151         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35153         * m4/freadseek.m4: New file.
35154         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35155         exists.
35156         * modules/freadseek (Files): Add m4/freadseek.m4.
35157         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35159         * lib/fpurge.c (fpurge): Update comment.
35161         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35163 2012-06-19  Bruno Haible  <bruno@clisp.org>
35165         *printf-posix: Put more info into config.log.
35166         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35167         exit code into config.log.
35169 2012-06-19  Bruno Haible  <bruno@clisp.org>
35171         getopt-gnu: Fix exit code overflow in autoconf test.
35172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35173         to keep them below < 128.
35175 2012-06-17  Jim Meyering  <meyering@redhat.com>
35177         maint.mk: fix typo in code to derive GPG key at release time
35178         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35180 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35182         regex: avoid warning when pointers are not long
35183         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35184         and uintptr_t, not long, for portability to hosts where pointers and
35185         long have different sizes.  Issue noted by Daniel P. Berrange in
35186         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35187         and fix suggested by Bruno Haible in
35188         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35190 2012-06-17  Bruno Haible  <bruno@clisp.org>
35192         dummy: Relicense into the public domain.
35193         * modules/dummy (License): Set to "public domain".
35194         Suggested by Reuben Thomas.
35196 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35198         announce-gen: VPATH issues
35199         * build-aux/announce-gen (--srcdir): New option, used to trim the
35200         $srcdir part of the path from $builddir to NEWS.
35201         * top/maint.mk (announcement): Adjust.
35203 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35205         gnu-web-doc-update: VPATH builds
35206         * build-aux/gnu-web-doc-update (--builddir): New option.
35207         Revamp the handling of options.
35208         Prefer $(...) to `...`.
35209         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35210         the template, and it is GNU mktemp specific.
35211         Prefer set -e to long series of &&.
35212         Restore the initial git branch, not "master".
35213         Properly initialize submodules (don't rely only on bootstrap).
35214         Do not reconfigure blindly, use config.status.
35215         * top/README-release: Update instructions for gnu-web-doc-update.
35217 2012-06-11  Jim Meyering  <meyering@redhat.com>
35219         maint.mk: revert most of the previous change re "all these"
35220         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35221         For rationale, see the discussion at
35222         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35224 2012-06-10  Karl Berry  <karl@gnu.org>
35226         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35228         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35230 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35232         parse-duration: Relicense under LGPLv2+.
35233         * modules/parse-duration (License): Change to LGPLv2+.
35235 2012-06-10  Jim Meyering  <meyering@redhat.com>
35237         maint.mk: prohibit common grammar error: "all these"
35238         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35239         the list of prohibited word sequences.  It should be "all of these".
35240         * lib/tempname.c (__gen_tempname): Fix one of them.
35242 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35244         do-release-commit-and-tag: support VPATH builds
35245         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35246         (noteworthy): Defined earlier to factor its value.
35247         (noteworthy_stub): New.
35248         Use it to factor.
35249         (help_version): Split into...
35250         (help, version): these.
35251         Adjust the option processing part.
35252         Support "--option=value" in addition to "--option value".
35253         (builddir): New.
35254         (--builddir): New option.
35255         * top/README-release: Document this.
35256         Reword slightly so that the reader cannot understand that he
35257         has to do these steps before calling do-release-commit-and-tag.
35259 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35261         readme-release: also require announce-gen and maintainer-makefile
35262         * modules/readme-release (Depends-on): here.
35263         * modules/announce-gen, modules/do-release-commit-and-tag,
35264         modules/gnu-web-doc-update, modules/maintainer-makefile
35265         (Description): Point to readme-release.
35267 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35269         maint.mk: fix VPATH issues.
35270         * top/maint.mk (news-check): GNU Make understand $< very well.
35271         (release-prep): NEWS is in $(srcdir).
35273 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35275         readme-release: require the promoted modules.
35276         * modules/readme-release (Depends-on): Add
35277         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35278         in this text.
35280 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35281             Bruno Haible  <bruno@clisp.org>
35283         error, strerror-override: Support mingw64 from Fedora 17.
35284         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35285         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35286         EINPROGRESS.
35287         * lib/strerror-override.h (strerror_override): Test it.
35288         * lib/strerror-override.c (strerror_override): Likewise.
35289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35291 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35292             Bruno Haible  <bruno@clisp.org>
35294         error, strerror-override: Support mingw64 from Fedora 17.
35295         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35296         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35297         * lib/strerror-override.h (strerror_override): Test it.
35298         * lib/strerror-override.c (strerror_override): Likewise.
35300 2012-06-03  Bruno Haible  <bruno@clisp.org>
35302         error, strerror-override: Support new errno values from POSIX:2008.
35303         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35304         ENOTRECOVERABLE.
35305         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35306         platforms.
35307         * lib/strerror-override.c (strerror_override): Conditionalize the
35308         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35309         * lib/strerror-override.h (strerror_override): Declare also if
35310         GNULIB_defined_EOWNERDEAD is defined.
35311         * tests/test-errno.c (e130, e131): New variables.
35312         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35313         ENOTRECOVERABLE.
35314         Reported by Paolo Bonzini.
35316 2012-05-31  Jim Meyering  <meyering@redhat.com>
35318         savewd: add missing dependency on sys_wait module
35319         * modules/savewd (Depends-on): Add sys_wait, needed at least
35320         for MSVC.  Report and suggested change by Michael Goffioul.
35322 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35324         system-quote-tests: port to CentOS 5
35325         Problem reported by Tom G. Christensen in
35326         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35327         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35329 2012-05-29  Jim Meyering  <meyering@redhat.com>
35331         maint: fix typos in comments and ChangeLog
35332         Culprits identified and fixed mostly automatically using these commands:
35333         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35334         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35335         using http://github.com/lyda/misspell-check
35336         * ChangeLog: Fix typos.
35337         * doc/solaris-versions: Likewise.
35338         * lib/regexec.c (re_search_stub): Likewise.
35339         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35341 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35343         manywarnings: remove duplicate -Wmultichar entry
35344         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35345         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35346         so keep the entry marked as documented.
35348 2012-05-27  Karl Berry  <karl@gnu.org>
35350         * config/srclist.txt (mktime.c): remove last libc sync,
35351         perhaps just temporarily.
35353 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35355         regex: don't assume uint64_t or uint32_t
35356         * lib/regcomp.c (init_word_char): Don't assume that the types
35357         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35358         them, and on some 32-bit compilers there is no uint64_t.
35359         Problem reported by Gianluigi Tiesi in
35360         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35362 2012-05-25  Jim Meyering  <meyering@redhat.com>
35364         maint.mk: add strncpy-prohibiting syntax-check rule
35365         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35367 2012-05-24  Jim Meyering  <meyering@redhat.com>
35369         maint.mk: compute $(gpg_key_ID) more portably
35370         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35371         That use of sed is not portable to some fringe systems.
35372         Reported by Paul Eggert in
35373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35375 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35377         mktime: sync from glibc
35378         * config/srclist.txt: Uncomment mktime.c.
35379         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35380         First, indent with tabs, since glibc uses tabs and doesn't want to
35381         change and we'd rather be identical to glibc.  Also, two small
35382         coding changes:
35383         (isdst_differ): Use &&, not &, as && is the usual style.
35384         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35385         for clarity.
35387 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35389         announce-gen: du -h is more portable than du --human
35390         * build-aux/announce-gen (sizes): Invoke du with -h instead
35391         of --human.  Accept leading white space in its output.
35393 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35395         announce-gen: Improve diagnostics.
35396         * build-aux/announce-gen: When parsing command line options,
35397         prefer "announce-gen: option --release-type requires an argument"
35398         to "Option release-type requires an argument".
35400 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35402         maint.mk: gpg_key_ID: use sed more portably
35403         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35404         the closing brace.
35405         (refresh-po): Fuse two sed invocations into one.
35407 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35409         gitlog-to-changelog: support the log message format used in Bison.
35410         * build-aux/gitlog-to-changelog: Support --strip-tab and
35411         --strip-cherry-picked.
35413 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35415         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
35416         the rest of the current time slice to another thread in the current
35417         process. So if the thread that feeds the file decscriptor we're
35418         polling is not in the current process, we get busy-waiting.
35419         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
35420         Patch from Theodore Leblond.
35421         * lib/select.c: Split polling out of the loop that sets the output
35422         fd_sets.  Check for zero result and loop if the wait timeout is
35423         infinite.
35425 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35427         select: Fix build error on IRIX 6.5.
35428         * lib/select.c: Include stddef.h for NULL.
35430 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35432         gc: fix libgcrypt detection on older machines.
35433         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
35434         copyright years because the file has been distributed every year
35435         since it was created.
35437 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35439         crypto: fix bug in large buffer handling
35440         Problem reported by Serge Belyshev for glibc in
35441         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35442         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35443         * lib/md4.c (md4_process_block):
35444         * lib/md5.c (md5_process_block):
35445         * lib/sha1.c (sha1_process_block):
35446         * lib/sha256.c (sha256_process_block):
35447         Don't assume the buffer length is less than 2**32.
35448         * lib/sha512.c (sha512_process_block): Likewise.
35449         Here, the bug is present only in the rare case where the host does
35450         not support uint64_t or where size_t is wider than 64 bits.
35451         Use u64size to work around the problems.
35452         * lib/u64.h (u64size): New macro.
35454 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35456         fsusage: fix block size returned on older Linux 2.6
35458         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35459         which is available since Linux 2.6.
35460         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35461         when the member is available so it can be used as a fallback.
35462         * doc/posix-functions/statvfs.texi: Mention the hang issue
35463         on Linux < 2.6.36.
35465 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35467         bootstrap: suppress stderr chatter
35468         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35469         Omit unnecessary chatter to stderr.  The main program chatter
35470         was there only inadvertantly.
35472         bootstrap: .gitignore files created by autopoint, libtool
35473         I ran into this problem when bootstrapping the latest diffutils.
35474         After './bootstrap', 'git status' reported lots of untracked files
35475         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35476         autopoint and do not need to be version-controlled.
35477         * build-aux/bootstrap: Put into .gitignore the files that
35478         autopoint and libtool create, by keeping track of files that exist
35479         after but not before these programs are run.
35480         (version_controlled_file): Move up.  2nd arg is now full file
35481         name, not base name; this is more convenient.  Put CVS at the end,
35482         as it's now somewhat deprecated.
35484 2012-05-14  Jim Meyering  <meyering@redhat.com>
35486         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35487         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35488         definition.  Reported by Bruno Haible.
35490 2012-05-13  Bruno Haible  <bruno@clisp.org>
35491             Paul Eggert  <eggert@cs.ucla.edu>
35493         binary-io: Define set_binary_mode function.
35494         * lib/binary-io.h (set_binary_mode): New function.
35495         (SET_BINARY): Define in terms of set_binary_mode.
35496         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35497         * tests/test-binary-io.c (main): Accept an argument, and test either
35498         set_binary_mode or SET_BINARY depending on the argument.
35499         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35500         argument. Clean up also t-bin-out0.tmp.
35502 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35504         bootstrap: take advantage of POSIX shell features
35506         The 'bootstrap' script offered by Gnulib script already uses POSIX
35507         shell features (like $((...)) arithmetic expansions) that are not
35508         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35509         means that bootstrap must already be run using a proper POSIX shell,
35510         which will thus provide more features, like ${var#pattern} parameter
35511         expansion or inversion of a command exit status with '!'.  We can
35512         thus use these features to improve the clarity and the performances
35513         of the bootstrap script.
35515         Suggested by Eric Blake.
35517         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35518         of sed/expr plus command substitutions, to save some forks.  While
35519         we are at it, prefer the POSIX $(...) form of command substitution,
35520         rather than the legacy form `...` (since the former is visually
35521         clearer and interacts better with quoting), and prefer the idiom:
35522           "if ! CMD; then ACTION ..."
35523         over the idiom:
35524           "if CMD; then :; else ACTION ..."
35525         which was required by legacy Bourne shells not supporting '!'.
35527 2012-05-12  Bruno Haible  <bruno@clisp.org>
35529         system-quote: Add more comments.
35530         * lib/system-quote.h: Add more comments about wilcards and limitations.
35531         Suggested by Eli Zaretskii <eliz@gnu.org>.
35533         sh-quote, system-quote: Add comments about wildcards.
35534         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35535         * lib/system-quote.h: Likewise.
35536         Reported by Eli Zaretskii <eliz@gnu.org>.
35538 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35540         fsusage: check for GNU/Linux statvfs problem dynamically
35541         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35542         Define STAT_STATFS2_BSIZE too, since in this case the code now
35543         checks dynamically whether statvfs is reliable, falling back on
35544         Linux-style statfs otherwise.
35545         (statvfs_works): New function, for dynamically testing statvfs.
35546         (get_fs_usage) [STAT_STATVFS]: Use it.
35547         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35548         statvfs on GNU/Linux hosts, since it's now done dynamically.
35550 2012-05-10  Bruno Haible  <bruno@clisp.org>
35552         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35553         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35554         '?' character.
35555         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35556         * tests/test-system-quote-main.c (check_all): Check also strings like
35557         "??????????".
35558         Reported by Eli Zaretskii <eliz@gnu.org>.
35560 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35562         _Noreturn: port config.h to gcc -Wundef
35563         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35564         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35565         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35567 2012-05-10  Bruno Haible  <bruno@clisp.org>
35569         system-quote: Refactor.
35570         * lib/system-quote.h (system_quote_copy): Fix comment.
35571         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35572         New functions, extracted from system_quote_copy.
35573         (system_quote_length, system_quote_copy): Use these functions.
35574         Reported by Paul Eggert.
35576 2012-05-08  Bruno Haible  <bruno@clisp.org>
35578         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35579         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35581 2012-05-08  Bruno Haible  <bruno@clisp.org>
35583         Tests for module 'system-quote'.
35584         * modules/system-quote-tests: New file.
35585         * tests/test-system-quote.sh: New file.
35586         * tests/test-system-quote-main.c: New file.
35587         * tests/test-system-quote-child.c: New file.
35589         New module 'system-quote'.
35590         * lib/system-quote.h: New file.
35591         * lib/system-quote.c: New file.
35592         * modules/system-quote: New file.
35594 2012-05-08  Bruno Haible  <bruno@clisp.org>
35596         sh-quote: Make C++ safe and allow multiple inclusion.
35597         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35598         declarations in extern "C".
35600 2012-05-08  Bruno Haible  <bruno@clisp.org>
35602         sh-quote tests: Make tests stricter.
35603         * tests/test-sh-quote.c (check_one): Check the return value of
35604         shell_quote_copy.
35605         (main): Check a string with a CR character. Check a string that
35606         contains UCHAR_MAX.
35608 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35610         warnings.m4: provide a means to specify the program to compile.
35611         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35612         (gl_WARN_ADD): here.
35613         Use gl_AS_VAR_APPEND.
35614         Support an argument to specify the program to compile.
35615         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35616         AC_SUBST the WARN_CFLAGS when they are used.
35617         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35618         leave this to gl_WARN_ADD.
35620 2012-05-08  Eric Blake  <eblake@redhat.com>
35622         doc: recommendations on gettext version
35623         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35624         choice between versions.
35625         * DEPENDENCIES (gettext): Cover both approaches.
35627 2012-05-08  Jim Meyering  <meyering@redhat.com>
35629         init.sh: explain why EXEEXT support uses aliases rather than functions
35630         * tests/init.sh: Add a comment.
35632         init.sh: don't let bash aliases interfere with tests
35633         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35634         is bash.  This avoids problems for those who alias standard commands to
35635         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35636         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35638 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35640         stdint: be more consistent with glibc, SunOS libc
35641         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35642         (gl_int_fast16_t, gl_uint_fast16_t)
35643         (gl_int_fast32_t, gl_uint_fast32_t)
35644         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35645         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35646         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35647         Be consistent with glibc by default, and with SunOS 5.10 and later
35648         if __sun is defined.  This lessens the likelihood of clashes if
35649         code compiled for older hosts is combined with code compiled for
35650         newer ones.  Problem reported by Niels Möller in
35651         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35653 2012-05-07  Eric Blake  <eblake@redhat.com>
35655         isatty: relax license to LGPLv2+
35656         * modules/isatty (License): Relax license.
35658 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35660         stat-size: comment fix
35661         * lib/stat-size.h: Remove obsolete comment about indenting.
35663 2012-05-06  Bruno Haible  <bruno@clisp.org>
35665         Tests for module 'sh-quote'.
35666         * modules/sh-quote-tests: New file.
35667         * tests/test-sh-quote.c: New file.
35669 2012-05-06  Bruno Haible  <bruno@clisp.org>
35671         sh-quote: Improve shell_quote_argv's signature.
35672         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35673         * lib/sh-quote.c (shell_quote_argv): Likewise.
35675 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35677         stdint: document issues with int_fast8_t etc.
35678         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35679         stdint.h substitutes may define these types differently.  See
35680         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35682 2012-05-05  Bruno Haible  <bruno@clisp.org>
35684         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35686         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35687         or 'guessing no (mishandles large arguments)'.
35689 2012-05-05  Bruno Haible  <bruno@clisp.org>
35691         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35692         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35693         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35694         set gl_cv_func_link_follows_symlink to "guessing no".
35696 2012-05-05  Bruno Haible  <bruno@clisp.org>
35698         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35699         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35700         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35701         "guessing no".
35702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35704 2012-05-05  Bruno Haible  <bruno@clisp.org>
35706         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35707         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35708         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35709         set gl_cv_struct_dirent_d_ino to "guessing yes".
35711 2012-05-05  Bruno Haible  <bruno@clisp.org>
35713         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35714         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35715         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35716         "guessing yes".
35718 2012-05-05  Bruno Haible  <bruno@clisp.org>
35720         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35721         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35722         compiling to a glibc system, set gl_cv_func_signbit and
35723         gl_cv_func_signbit_gcc to "guessing yes".
35725 2012-05-05  Bruno Haible  <bruno@clisp.org>
35727         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35728         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35729         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35730         to "guessing yes".
35731         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35732         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35734 2012-05-05  Bruno Haible  <bruno@clisp.org>
35736         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35737         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35738         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35739         gl_cv_func_realpath_works to "guessing yes".
35741 2012-05-05  Bruno Haible  <bruno@clisp.org>
35743         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35745         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35747 2012-05-04  Bruno Haible  <bruno@clisp.org>
35749         Tweak last commit.
35750         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35751         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35753 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35755         unistd_h: make it easier to avoid sys_types_h
35756         This is useful for Emacs, which has its own method of porting to
35757         Windows, and which therefore does not need the sys_types_h module.
35758         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35759         code moved here from gl_SYS_TYPES_H.
35760         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35761         using the code directly.
35762         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35763         gl_SYS_TYPES_H.
35764         * modules/sys_types (Files):
35765         * modules/unistd (Files): Add m4/off_t.m4.
35767 2012-05-03  Bruno Haible  <bruno@clisp.org>
35769         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35770         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35771         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35772         "guessing yes" or "guessing no".
35773         (gl_FUNC_LSTAT): Update.
35774         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35775         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35776         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35778 2012-05-03  Bruno Haible  <bruno@clisp.org>
35780         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35781         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35782         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35783         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35784         cross-compiling, choose the first alternative on glibc systems.
35785         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35787 2012-05-03  Bruno Haible  <bruno@clisp.org>
35789         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35790         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35791         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35793 2012-05-03  Bruno Haible  <bruno@clisp.org>
35795         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35796         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35798 2012-05-03  Bruno Haible  <bruno@clisp.org>
35800         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35801         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35802         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35803         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35804         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35805         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35806         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35807         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35808         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35809         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35810         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35811         gl_cv_func_chown_ctime_works to "guessing yes".
35812         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35813         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35814         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35815         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35816         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35818         compiling to glibc systems, set gl_cv_func_open_directory_works to
35819         "guessing yes".
35820         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35821         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35822         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35823         "guessing yes".
35824         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35825         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35826         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35827         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35828         "guessing yes".
35829         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35830         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35831         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35832         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35833         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35834         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35835         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35836         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35837         "guessing yes".
35838         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35839         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35840         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35841         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35842         "guessing yes".
35843         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35844         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35845         "guessing yes".
35846         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35847         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35848         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35849         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35850         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35851         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35852         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35853         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35854         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35855         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35856         "guessing yes".
35857         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35858         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35859         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35860         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35861         "guessing yes".
35862         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35863         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35864         "guessing yes".
35865         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35866         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35867         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35868         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35869         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35870         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35871         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35873         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35874         "guessing yes".
35875         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35876         compiling to glibc systems, set gl_cv_func_mknod_works to
35877         "guessing yes".
35878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35879         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35880         "guessing yes".
35881         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35882         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35883         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35884         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35885         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35886         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35887         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35888         compiling to glibc systems, set gl_cv_func_svid_putenv to
35889         "guessing yes".
35890         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35891         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35892         "guessing yes".
35893         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35894         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35895         "guessing yes".
35896         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35897         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35898         to "guessing yes".
35899         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35900         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35901         to "guessing yes".
35902         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35903         compiling to glibc systems, set gl_cv_func_rmdir_works to
35904         "guessing yes".
35905         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35906         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35907         gl_cv_func_unlink_parent_fails to "guessing yes".
35908         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35909         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35910         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35911         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35912         gl_cv_func_rename_dest_works to "guessing yes".
35913         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35914         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35915         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35916         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35917         "guessing yes".
35918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35919         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35920         "guessing yes".
35921         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35922         compiling to glibc systems, set gl_cv_func_setenv_works to
35923         "guessing yes".
35924         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35925         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35926         "guessing yes".
35927         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35928         compiling to glibc systems, set gl_cv_func_sleep_works to
35929         "guessing yes".
35930         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35931         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35932         "guessing yes".
35933         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35934         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35935         "guessing yes".
35936         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35937         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35938         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35939         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35940         "guessing yes".
35941         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35942         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35943         "guessing yes".
35944         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35945         compiling to glibc systems, set gl_cv_func_usleep_works to
35946         "guessing yes".
35947         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35948         compiling to glibc systems, set gl_cv_func_futimesat_works to
35949         "guessing yes".
35951 2012-05-03  Bruno Haible  <bruno@clisp.org>
35953         Say "guessing yes" or "guessing no" when cross-compiling.
35954         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35955         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35956         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35957         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35958         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35959         am_cv_func_working_getline to "guessing yes" or "guessing no".
35960         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35961         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35962         (gl_FUNC_MEMMEM): When cross-compiling, set
35963         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35965         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35967         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35968         "guessing no".
35969         (gl_FUNC_STRCASESTR): When cross-compiling, set
35970         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35972         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35973         (gl_FUNC_STRSTR): When cross-compiling, set
35974         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35975         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35976         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35977         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35978         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35980 2012-05-01  Bruno Haible  <bruno@clisp.org>
35982         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35983         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35984         * build-aux/reloc-ldflags: Likewise.
35985         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35987 2012-05-01  Bruno Haible  <bruno@clisp.org>
35989         gnulib-tool: Remove transitional code.
35990         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35991         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35993 2012-05-01  Bruno Haible  <bruno@clisp.org>
35995         getcwd: Fix misindentation.
35996         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35998 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36000         exclude: process exclude and include directives in order
36001         This restores the pre-2009 behavior, and is part of a fix of a
36002         grep bug reported by Quentin Arce in
36003         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36004         * lib/exclude.c (struct exclude): Remove 'tail' member.
36005         (new_exclude_segment): Prepend the new segment instead of appending.
36006         Return void, since that's now more convenient.
36007         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36008         (file_name_matches): Renamed from excluded_file_name_p.
36009         (file_pattern_matches, file_name_matches):
36010         Return true if the pattern matches, not if it excludes.
36011         All callers changed.
36012         (excluded_file_name): Process the list in reverse order;
36013         since the list is now reversed this restores the pre-2009 behavior.
36014         (add_exclude): Adjust to new reversed-order list.  Use local var
36015         rather than macro, for clarity.
36016         * tests/test-exclude7.sh: Adjust to corrected behavior.
36018         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36019         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36020         it's not possible here.  Handle the case of \ at end of pattern
36021         without dumping core.
36022         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36024         _Noreturn: future-proof non-GNU and non-MSVC compilers
36025         * build-aux/snippet/_Noreturn.h (_Noreturn):
36026         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36027         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36028         C11 or later.  This is more likely to work with random future C
36029         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36030         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36032         exclude: handle wildcards with FNM_EXTMATCH
36033         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36034         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36035         comment that "has wildcards" really means "has or may have
36036         wildcards".  Simplify by avoiding the need to call strcspn.
36038 2012-04-29  Bruno Haible  <bruno@clisp.org>
36040         gnulib-tool: Fix list of authors.
36041         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36043 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36045         bootstrap: support Automake-NG in $buildreq
36046         * bootstrap (check_versions): Handle automake and aclocal from
36047         Automake-NG specially.  They can be specified as respectively
36048         the "automake-ng" and "aclocal-ng" requirements.
36050 2012-04-25  Eric Blake  <eblake@redhat.com>
36052         bootstrap: only force latest Makefile.in.in for gettext module
36053         * build-aux/bootstrap (with_gettext): Only install latest
36054         Makefile.in.in for projects requesting bleeding edge gettext.
36056 2012-04-22  Bruno Haible  <bruno@clisp.org>
36058         doc: Mention reason for replacement on glibc/Linux systems.
36059         * doc/posix-functions/dprintf.texi: Mention the problem with special
36060         'long double' values.
36061         * doc/posix-functions/fprintf.texi: Likewise.
36062         * doc/posix-functions/printf.texi: Likewise.
36063         * doc/posix-functions/snprintf.texi: Likewise.
36064         * doc/posix-functions/sprintf.texi: Likewise.
36065         * doc/posix-functions/vdprintf.texi: Likewise.
36066         * doc/posix-functions/vfprintf.texi: Likewise.
36067         * doc/posix-functions/vprintf.texi: Likewise.
36068         * doc/posix-functions/vsnprintf.texi: Likewise.
36069         * doc/posix-functions/vsprintf.texi: Likewise.
36070         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36071         platforms with F_DUPFD_CLOEXEC problems.
36072         * doc/posix-functions/glob.texi: Mention which platforms are affected
36073         by the problem with symbolic links.
36074         * doc/posix-functions/linkat.texi: Mention the problem with
36075         AT_SYMLINK_FOLLOW on Linux.
36077 2012-04-22  Bruno Haible  <bruno@clisp.org>
36079         pwrite: Don't replace on all platforms.
36080         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36082 2012-04-22  Bruno Haible  <bruno@clisp.org>
36084         rint* tests: Avoid gcc warnings.
36085         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36086         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36087         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36089 2012-04-21  Bruno Haible  <bruno@clisp.org>
36091         users.txt: Update.
36092         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36093         switched from CVS to git, bzr, or svn.
36095 2012-04-21  Bruno Haible  <bruno@clisp.org>
36097         Large File Support for native Windows platforms.
36099         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36100         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36102         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36103         type.
36104         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36105         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36106         * doc/posix-headers/sys_types.texi: Mention the effect of the
36107         'largefile' module.
36109         * lib/fcntl.in.h: Add comments about off_t.
36110         * modules/fcntl-h (Depends-on): Add sys_types.
36112         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36113         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36114         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36115         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36116         * modules/unistd (Depends-on): Add sys_types.
36117         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36119         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36120         instead of lseek.
36121         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36122         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36123         * modules/lseek (Depends-on): Add sys_types.
36125         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36126         msvc-nothrow.h.
36127         (SetFileSize): New function.
36128         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36129         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36130         if Large File Support is requested.
36131         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36132         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36134         * lib/stdio.in.h: Add comments about off_t.
36135         * modules/stdio (Depends-on): Add sys_types.
36137         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36138         instead of ftello.
36139         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36140         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36141         (gl_PREREQ_FTELLO): New macro.
36142         * modules/ftello (Depends-on): Add sys_types.
36143         (configure.ac): Incoke gl_PREREQ_FTELLO.
36145         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36146         instead of fseeko.
36147         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36148         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36149         (gl_PREREQ_FSEEKO): New macro.
36150         * modules/fseeko (Depends-on): Add sys_types.
36151         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36153         * lib/sys_stat.in.h: Add comments about off_t.
36154         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36155         64-bit integer for st_size in 'struct stat'.
36156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36157         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36158         * modules/sys_stat (Depends-on): Add sys_types.
36159         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36161         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36162         instead of stat or _stat.
36164         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36165         'struct _stati64' instead of fstat and 'struct stat'.
36166         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36167         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36169         Reported by Ray Satiro <raysatiro@yahoo.com>.
36171 2012-04-19  Eric Blake  <eblake@redhat.com>
36173         bootstrap: accommodate older libtool
36174         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36175         Reported by Daniel P. Berrange.
36177 2012-04-19  Jim Meyering  <meyering@redhat.com>
36179         announce-gen: avoid failure due to lack of Digest::SHA1
36180         Even with the preferred Digest::SHA available, this script
36181         would fail when the backup module, Digest::SHA1, was not installed.
36182         * build-aux/announce-gen: Quote the conditional use of "use".
36183         Reported by Reuben Thomas in:
36184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36186         bootstrap: don't let a user's CDPATH setting affect this script
36187         When CDPATH is set, cd will sometimes generate output.
36188         When "cd" is run in a subshell whose output matters, that
36189         surprising-to-some output can cause malfunction.
36190         Unsetting CDPATH turns off this shell "feature."
36191         * build-aux/bootstrap (CDPATH): Unset.
36192         Reported by Reuben Thomas in:
36193         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36194         and inspired by his patch here:
36195         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36197 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36198         and Jim Meyering  <meyering@redhat.com>
36200         maint.mk: catch "see @xref{}" and similar
36201         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36202         prohibit "See also @xref{", "Also see @pxref{", and similar.
36204 2012-04-16  Jim Meyering  <meyering@redhat.com>
36206         bootstrap: really use gnulib's po/Makefile.in.in
36207         * build-aux/bootstrap: Correct the source file name in previous change.
36208         Reported by Akim Demaille.
36210         configmake: correct minor inconsistency in Makefile rule
36211         * modules/configmake (Makefile.am): All other rules like this one
36212         run the final "mv -f ..." in the same backslash-continued command
36213         as the one that does everything else.  This one put the mv -f ...
36214         command on a separate, non-backslash-continued line.
36215         Make it like the others.
36217         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36218         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36219         the one from gettext.  Reported by Akim Demaille.
36221 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36223         Fix recursion of install-* into po directories.
36224         Bison's install-pdf bug reported by Hans Aberg at
36225         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36226         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36227         (install-info, install-pdf, install-ps): New targets.
36229 2012-04-16  Jim Meyering  <meyering@redhat.com>
36231         maint: avoid spurious "make sc_maint" failure
36232         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36233         exempt all *.class file names, for lib/javaversion.class.
36235 2012-04-15  Bruno Haible  <bruno@clisp.org>
36237         lseek: Make configure test independent of environment.
36238         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36239         Windows, we know that lseek() on pipes is broken; skip the runtime
36240         test.
36242 2012-04-14  Bruno Haible  <bruno@clisp.org>
36244         stat: Bypass buggy override in mingw64.
36245         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36246         * lib/stat.c (stat) [mingw64]: Define to _stat.
36247         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36249 2012-04-14  Bruno Haible  <bruno@clisp.org>
36251         pathmax: Fix compilation error on MSVC 9.
36252         * modules/pathmax (Depends-on): Add unistd.
36254 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36256         README: document pointer comparison assumption
36257         * README (Portability guidelines): Document assumption about
36258         pointer comparisons, in response to a recent bug-gnulib comment by
36259         Jeffrey Kegler.
36261 2012-04-12  Bruno Haible  <bruno@clisp.org>
36263         Tests for module 'getrusage'.
36264         * modules/getrusage-tests: New file.
36265         * tests/test-getrusage.c: New file.
36267         New module 'getrusage'.
36268         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36269         warn-on-use.h.
36270         (getrusage): New declaration.
36271         * lib/getrusage.c: New file.
36272         * m4/getrusage.m4: New file.
36273         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36274         is declared.
36275         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36276         HAVE_GETRUSAGE.
36277         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36278         snippet/c++defs, snippet/warn-on-use.
36279         (Makefile.am): Update generation of sys/resource.h. Substitute
36280         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36281         * modules/getrusage: New file.
36282         * doc/posix-functions/getrusage.texi: Mention the new module.
36284 2012-04-12  Bruno Haible  <bruno@clisp.org>
36286         Tests for module 'sys_resource'.
36287         * modules/sys_resource-tests: New file.
36288         * tests/test-sys_resource.c: New file.
36290         New module 'sys_resource'.
36291         * lib/sys_resource.in.h: New file.
36292         * m4/sys_resource_h.m4: New file.
36293         * modules/sys_resource: New file.
36294         * doc/posix-headers/sys_resource.texi: Mention the new module.
36296 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36298         ioctl: Fix compilation error on mingw.
36299         * lib/ioctl.c: Include <windows.h>.
36300         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36302 2012-04-04  Jim Meyering  <meyering@redhat.com>
36304         regex: correct #pragma guard expression
36305         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36306         not 4.3.  Correct its cpp guard expression.
36308 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36310         regex: remove unnecessary type punning
36311         Problem reported by Vladimir Serbinenko in
36312         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36313         * lib/regex.h (struct re_pattern_buffer): Change the type of
36314         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36315         Fix comment to match code.
36316         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36317         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36318         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36319         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36320         (set_regs):
36321         Omit no-longer-necessary casts.
36323 2012-04-03  Bruno Haible  <bruno@clisp.org>
36325         Tests for module 'ilogbl'.
36326         * modules/ilogbl-tests: New file.
36327         * tests/test-ilogbl.c: New file.
36329         New module 'ilogbl'.
36330         * lib/math.in.h (ilogbl): New declaration.
36331         * lib/ilogbl.c: New file.
36332         * m4/ilogbl.m4: New file.
36333         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36335         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36336         Split sed invocation, to avoid the limit of 100 substitutions of
36337         HP-UX 'sed'.
36338         * modules/ilogbl: New file.
36339         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36340         * doc/posix-functions/ilogbl.texi: Mention the new module.
36342 2012-04-03  Bruno Haible  <bruno@clisp.org>
36344         Tests for module 'ilogbf'.
36345         * modules/ilogbf-tests: New file.
36346         * tests/test-ilogbf.c: New file.
36348         New module 'ilogbf'.
36349         * lib/math.in.h (ilogbf): New declaration.
36350         * lib/ilogbf.c: New file.
36351         * m4/ilogbf.m4: New file.
36352         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36354         REPLACE_ILOGBF.
36355         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36356         REPLACE_ILOGBF.
36357         * modules/ilogbf: New file.
36358         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36359         * doc/posix-functions/ilogbf.texi: Mention the new module.
36361 2012-04-03  Bruno Haible  <bruno@clisp.org>
36363         Tests for module 'ilogb'.
36364         * modules/ilogb-tests: New file.
36365         * tests/test-ilogb.c: New file.
36366         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36367         tests/test-logb-ieee.h.
36369         New module 'ilogb'.
36370         * lib/math.in.h (ilogb): New declaration.
36371         * lib/ilogb.c: New file.
36372         * m4/ilogb.m4: New file.
36373         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36375         REPLACE_ILOGB.
36376         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36377         REPLACE_ILOGB.
36378         * modules/ilogb: New file.
36379         * tests/test-math-c++.cc: Check the declaration of ilogb.
36380         * doc/posix-functions/ilogb.texi: Mention the new module.
36382 2012-04-03  Bruno Haible  <bruno@clisp.org>
36384         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36385         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36386         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36387         (main): Check their values.
36388         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36389         problem.
36391 2012-04-03  Bruno Haible  <bruno@clisp.org>
36393         Tests for module 'logbl-ieee'.
36394         * modules/logbl-ieee-tests: New file.
36395         * tests/test-logbl-ieee.c: New file.
36397         New module 'logbl-ieee'.
36398         * modules/logbl-ieee: New file.
36400         Tests for module 'logb-ieee'.
36401         * modules/logb-ieee-tests: New file.
36402         * tests/test-logb-ieee.c: New file.
36404         New module 'logb-ieee'.
36405         * modules/logb-ieee: New file.
36407         Tests for module 'logbf-ieee'.
36408         * modules/logbf-ieee-tests: New file.
36409         * tests/test-logbf-ieee.c: New file.
36410         * tests/test-logb-ieee.h: New file.
36412         New module 'logbf-ieee'.
36413         * modules/logbf-ieee: New file.
36415 2012-04-03  Bruno Haible  <bruno@clisp.org>
36417         Tests for module 'logbl'.
36418         * modules/logbl-tests: New file.
36419         * tests/test-logbl.c: New file.
36421         New module 'logbl'.
36422         * lib/math.in.h (logbl): New declaration.
36423         * lib/logbl.c: New file.
36424         * m4/logbl.m4: New file.
36425         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
36426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
36427         REPLACE_LOGBL.
36428         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
36429         REPLACE_LOGBL.
36430         * modules/logbl: New file.
36431         * tests/test-math-c++.cc: Check the declaration of logbl.
36432         * doc/posix-functions/logbl.texi: Mention the new module.
36434 2012-04-02  Bruno Haible  <bruno@clisp.org>
36436         Tests for module 'logbf'.
36437         * modules/logbf-tests: New file.
36438         * tests/test-logbf.c: New file.
36440         New module 'logbf'.
36441         * lib/math.in.h (logbf): New declaration.
36442         * lib/logbf.c: New file.
36443         * m4/logbf.m4: New file.
36444         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36446         REPLACE_LOGBF.
36447         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36448         REPLACE_LOGBF.
36449         * modules/logbf: New file.
36450         * tests/test-math-c++.cc: Check the declaration of logbf.
36451         * doc/posix-functions/logbf.texi: Mention the new module.
36453 2012-04-02  Bruno Haible  <bruno@clisp.org>
36455         logb tests: More tests.
36456         * tests/test-logb.h: New file, based on tests/test-logb.c and
36457         tests/test-frexp.h.
36458         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36459         (main): Just invoke test_function.
36460         * modules/logb-tests (Files): Add tests/test-logb.h,
36461         tests/minus-zero.h, tests/randomd.c.
36462         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36464         logb: Provide replacement and workarounds.
36465         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36466         is 1.
36467         * lib/logb.c: New file.
36468         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36469         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36471         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36472         * modules/logb (Files): Add lib/logb.c.
36473         (Depends-on): Add isfinite, frexp, isnand.
36474         (configure.ac): Compile the replacement code logb.c if needed.
36475         * tests/test-math-c++.cc: Check the declaration of logb.
36476         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36477         with subnormal numbers.
36479 2012-04-02  Bruno Haible  <bruno@clisp.org>
36481         log10* tests: Speed up.
36482         * tests/test-log10.h (test_function): Reduce amount of random numbers
36483         to test.
36485 2012-04-01  Bruno Haible  <bruno@clisp.org>
36487         logf-ieee: Fix test whether logf works.
36488         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36490 2012-04-01  Bruno Haible  <bruno@clisp.org>
36492         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36493         * lib/log10l.c: Include <float.h>
36494         (log10l): On IRIX, normalize the +Infinity value.
36495         * modules/log10l (Depends-on): Add 'float'.
36496         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36497         +Infinity.
36499         log10f-ieee: Work around test failure on NetBSD 5.1.
36500         * m4/log10f-ieee.m4: New file.
36501         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36502         test whether log10f works with a negative argument. Replace it if not.
36503         * lib/log10f.c (log10f): For negative arguments, return NaN.
36504         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36505         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36506         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36508         log10f-ieee: Work around test failure on Solaris 9.
36509         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36510         (configure.ac): Require gl_FUNC_LOG10F.
36512         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36513         * m4/log10-ieee.m4: New file.
36514         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36515         whether log10 works with a negative argument. Replace it if not.
36516         * lib/log10.c (log10): For negative arguments, return NaN.
36517         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36518         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36519         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36521         Tests for module 'log10l-ieee'.
36522         * modules/log10l-ieee-tests: New file.
36523         * tests/test-log10l-ieee.c: New file.
36525         New module 'log10l-ieee'.
36526         * modules/log10l-ieee: New file.
36528         Tests for module 'log10-ieee'.
36529         * modules/log10-ieee-tests: New file.
36530         * tests/test-log10-ieee.c: New file.
36532         New module 'log10-ieee'.
36533         * modules/log10-ieee: New file.
36535         Tests for module 'log10f-ieee'.
36536         * modules/log10f-ieee-tests: New file.
36537         * tests/test-log10f-ieee.c: New file.
36538         * tests/test-log10-ieee.h: New file.
36540         New module 'log10f-ieee'.
36541         * modules/log10f-ieee: New file.
36543 2012-04-01  Bruno Haible  <bruno@clisp.org>
36545         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36546         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36547         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36548         workaround.
36549         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36550         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36552         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36553         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36554         (Depends-on): Update conditions.
36555         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36556         IRIX 6.5, OSF/1 5.1 problems.
36558 2012-04-01  Bruno Haible  <bruno@clisp.org>
36560         log10f: Work around OSF/1 5.1 bug.
36561         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36562         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36563         workaround.
36564         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36565         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36567         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36568         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36569         (Depends-on): Update conditions.
36570         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36572 2012-04-01  Bruno Haible  <bruno@clisp.org>
36574         log10: Work around OSF/1 5.1 bug.
36575         * lib/math.in.h (log10): New declaration.
36576         * lib/log10.c: New file.
36577         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36578         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36579         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36581         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36582         * modules/log10 (Files): Add lib/log10.c.
36583         (Depends-on): Add math.
36584         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36585         * tests/test-math-c++.cc: Check the declaration of log10.
36586         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36588 2012-03-31  Bruno Haible  <bruno@clisp.org>
36590         log10l tests: More tests.
36591         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36592         tests/minus-zero.h, tests/randoml.c.
36593         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36594         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36595         (main): Invoke test_function.
36597         log10f tests: More tests.
36598         * modules/log10f-tests (Files): Add tests/test-log10.h,
36599         tests/minus-zero.h, tests/randomf.c.
36600         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36601         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36602         (main): Invoke test_function.
36604         log10 tests: More tests.
36605         * tests/test-log10.h: New file.
36606         * modules/log10-tests (Files): Add tests/test-log10.h,
36607         tests/minus-zero.h, tests/randomd.c.
36608         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36609         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36610         (main): Invoke test_function.
36612 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36614         fflush: Fix syntax error.
36615         * lib/fflush.c: Include unused-parameter.h, needed for
36616         _GL_UNUSED_PARAMETER.
36617         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36619 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36621         regex: pacify GCC when compiling GRUB
36622         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36623         a diagnostic.  Reported by Vladimir Serbinenko in
36624         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36626 2012-03-29  Eric Blake  <eblake@redhat.com>
36628         stdio: don't assume gets any more
36629         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36630         support.
36631         * modules/stdio (Makefile.am): Likewise.
36632         * lib/stdio-read.c (gets): Likewise.
36633         * tests/test-stdio-c++.cc: Likewise.
36634         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36635         * lib/stdio.in.h (gets): Make warning occur in more places.
36636         * doc/posix-functions/gets.texi (gets): Update documentation.
36637         Reported by Christer Solskogen.
36639         maint.mk: fix syntax checks without exclusions
36640         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36641         Reported by Daniel P. Berrange.
36643         strerror_r: avoid compiler warning
36644         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36645         level.
36647         fflush: avoid compiler warning
36648         * lib/fflush.c (update_fpos_cache): Mark variables that are
36649         potentially unused.
36651 2012-03-25  Bruno Haible  <bruno@clisp.org>
36653         Tests for module 'localeconv'.
36654         * modules/localeconv-tests: New file.
36655         * tests/test-localeconv.c: New file.
36657         New module 'localeconv'.
36658         * lib/locale.in.h (localeconv): New declaration.
36659         * lib/localeconv.c: New file.
36660         * m4/localeconv.m4: New file.
36661         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36662         REPLACE_LOCALECONV.
36663         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36664         REPLACE_LOCALECONV.
36665         * modules/localeconv: New file.
36666         * modules/nl_langinfo (Depends-on): Add localeconv.
36667         * modules/human (Depends-on): Likewise.
36668         * doc/posix-functions/localeconv.texi: Mention the new module.
36670 2012-03-25  Bruno Haible  <bruno@clisp.org>
36672         locale: Provide a complete 'struct lconv'.
36673         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36674         'struct lconv' does not contain int_p_cs_precedes.
36675         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36676         * doc/posix-headers/locale.texi: Update.
36678         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36679         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36680         * doc/posix-headers/locale.texi: Update.
36682         locale: Provide a working 'struct lconv'.
36683         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36684         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36685         'struct lconv' does not even contain decimal_point.
36686         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36687         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36688         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36689         * doc/posix-headers/locale.texi: Mention the problems with
36690         'struct lconv'.
36691         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36693 2012-03-24  Bruno Haible  <bruno@clisp.org>
36695         Enable common subexpression optimization in GCC.
36696         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36697         macros.
36698         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36699         GCC attribute 'const'.
36700         (uc_locale_language): Declare with GCC attribute 'pure'.
36701         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36702         with GCC attribute 'const'.
36703         * lib/unictype.in.h (uc_is_general_category_withtable,
36704         uc_combining_class, uc_combining_class_name,
36705         uc_combining_class_long_name, uc_bidi_class_name,
36706         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36707         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36708         uc_decimal_value, uc_digit_value, uc_numeric_value,
36709         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36710         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36711         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36712         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36713         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36714         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36715         Declare with GCC attribute 'const'.
36716         (uc_general_category_name, uc_general_category_long_name,
36717         uc_general_category_byname, uc_general_category,
36718         uc_is_general_category, uc_combining_class_byname,
36719         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36720         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36721         Declare with GCC attribute 'pure'.
36722         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36723         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36724         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36725         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36726         with GCC attribute 'pure'.
36727         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36728         'const'.
36729         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36730         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36731         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36732         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36733         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36734         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36735         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36736         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36737         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36738         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36739         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36740         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36741         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36742         GCC attribute 'pure'.
36743         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36744         'const'.
36745         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36746         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36747         u32_strwidth): Declare with GCC attribute 'pure'.
36749         Enable common subexpression optimization in GCC.
36750         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36751         (alphasort): Declare with GCC attribute 'pure'.
36752         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36753         (atoll): Declare with GCC attribute 'pure'.
36754         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36755         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36756         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36757         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36758         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36759         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36760         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36762 2012-03-24  Bruno Haible  <bruno@clisp.org>
36764         gnulib-tool: Avoid unintended error output from 'cmp'.
36765         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36766         "cmp -s", not "cmp > /dev/null".
36768 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36770         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36772         It's not just Automake versions < 1.9b that creates an empty
36773         pkgdatadir at installation time if pkgdata_DATA is specified
36774         to empty; modern automake versions do this as well, at least
36775         until automake 1.11.4 (not yet released at the moment of writing,
36776         but soon to appear).  That behaviour was generally considered a
36777         feature rather than a bug, at least until this discussion:
36778         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36780         See also automake bugs #10997 and #11030.
36782         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36783         reference to relevant automake bug numbers.
36784         (func_emit_tests_Makefile_am): Likewise.
36786 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36788         announce-gen: use Digest::SHA when possible
36789         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36790         back to Digest::SHA1 if necessary.
36792 2012-03-20  Jim Meyering  <meyering@redhat.com>
36794         tests: avoid gcc warnings about argv vs. const initializers
36795         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36796         warnings about discarding 'const' qualifier from pointer target type.
36797         * tests/test-posix_spawn2.c (main): Likewise.
36799 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36801         README-release: simplify slightly
36802         * top/README-release: Run "git checkout master" only once.
36804 2012-03-15  Mark Wielaard  <mark@klomp.org>
36806         git-merge-changelog: add specific example on how to use with hg.
36807         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36809 2012-03-18  Mark Wielaard  <mark@klomp.org>
36811         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36813 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36815         git-version-gen: don't let "prefix" envvar cause trouble
36816         * build-aux/git-version-gen (prefix): Initialize properly,
36817         so as not to use a value specified via the environment.
36818         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36820 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36822         regex: diagnose too-large repeat counts in EREs
36823         Previously, the code did not diagnose the too-large repeat count
36824         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36825         as if it were 'b\{1000000000}', which is unexpected.
36826         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36827         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36828         is a reasonable one for this problem.  Another option would be to
36829         create a new REG_OVERFLOW error for repeat counts that are too large.
36830         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36831         count is too large, so that the caller can distinguish the two cases.
36832         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36833         "Too large" return code, and that repeat counts are one example of this.
36835 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36837         doc: some glibc x32 integer width issues
36838         * doc/posix-headers/sys_types.texi (sys/types.h):
36839         * doc/posix-headers/time.texi (time.h):
36840         Mention that glibc x32 does not conform to POSIX in a couple of
36841         areas related to integer widths.
36843 2012-03-15  Bruno Haible  <bruno@clisp.org>
36845         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36846         * lib/fma.c (VOLATILE): New macro.
36847         (FUNC): Use it to work around a GCC compiler bug.
36849 2012-03-13  Bruno Haible  <bruno@clisp.org>
36851         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36852         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36853         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36854         REPLACE_HYPOTL to 1.
36855         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36857 2012-03-13  Bruno Haible  <bruno@clisp.org>
36859         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36860         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36861         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36862         REPLACE_REMAINDERL to 1.
36863         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36864         bug.
36866 2012-03-13  Bruno Haible  <bruno@clisp.org>
36868         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36869         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36870         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36871         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36872         too big rounding errors.
36873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36874         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36875         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36876         (Depends-on): Update conditions.
36877         * tests/test-sqrtl.c (my_ldexpl): New function.
36878         (main): Add test of a particular value.
36879         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36881 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36883         doc: Update timer_* platform portability notes.
36884         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36885         that always return ENOSYS.
36886         * doc/posix-functions/timer_delete.texi: Likewise.
36887         * doc/posix-functions/timer_gettime.texi: Likewise.
36888         * doc/posix-functions/timer_settime.texi: Likewise.
36890 2012-03-13  Bruno Haible  <bruno@clisp.org>
36892         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36893         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36894         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36895         REPLACE_CBRTL to 1.
36896         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36898 2012-03-13  Bruno Haible  <bruno@clisp.org>
36900         remainderl: Avoid compilation error on AIX >= 5.2.
36901         * lib/math.in.h (remainderl): Undefine macro from the system header.
36903 2012-03-13  Bruno Haible  <bruno@clisp.org>
36905         Avoid compilation errors with MSVC option -fp:strict.
36906         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36907         * lib/cbrtf.c: Likewise.
36908         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36910 2012-03-12  Bruno Haible  <bruno@clisp.org>
36912         uninorm: Don't crash in out-of-memory conditions.
36913         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36914         gracefully.
36915         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36916         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36918 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36920         quote: fix syntax-check
36921         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36922         also exports quote_quoting_options.
36924 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36926         Collapse list of copyright years to ranges.  See
36927         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36928         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36929         build-aux/csharpexec.sh.in, build-aux/gnupload,
36930         build-aux/install-reloc, build-aux/javacomp.sh.in,
36931         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36932         build-aux/move-if-change, build-aux/reloc-ldflags,
36933         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36935 2012-03-11  Bruno Haible  <bruno@clisp.org>
36937         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36938         * m4/log2f-ieee.m4: New file.
36939         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36940         whether log2f works with a minus zero argument. Replace it if not.
36941         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36942         (Depends-on): Add log2-ieee.
36943         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36944         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36946         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36947         * m4/log2-ieee.m4: New file.
36948         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36949         whether log2 works with a minus zero argument. Replace it if not.
36950         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36951         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36952         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36954         Tests for module 'log2l-ieee'.
36955         * modules/log2l-ieee-tests: New file.
36956         * tests/test-log2l-ieee.c: New file.
36958         New module 'log2l-ieee'.
36959         * modules/log2l-ieee: New file.
36961         Tests for module 'log2-ieee'.
36962         * modules/log2-ieee-tests: New file.
36963         * tests/test-log2-ieee.c: New file.
36965         New module 'log2-ieee'.
36966         * modules/log2-ieee: New file.
36968         Tests for module 'log2f-ieee'.
36969         * modules/log2f-ieee-tests: New file.
36970         * tests/test-log2f-ieee.c: New file.
36971         * tests/test-log2-ieee.h: New file.
36973         New module 'log2f-ieee'.
36974         * modules/log2f-ieee: New file.
36976 2012-03-11  Bruno Haible  <bruno@clisp.org>
36978         Tests for module 'log2l'.
36979         * modules/log2l-tests: New file.
36980         * tests/test-log2l.c: New file.
36982         New module 'log2l'.
36983         * lib/math.in.h (log2l): New declaration.
36984         * lib/log2l.c: New file.
36985         * m4/log2l.m4: New file.
36986         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36988         REPLACE_LOG2L.
36989         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36990         REPLACE_LOG2L.
36991         * modules/log2l: New file.
36992         * tests/test-math-c++.cc: Check the declaration of log2l.
36993         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36994         and OSF/1 problems.
36996 2012-03-11  Bruno Haible  <bruno@clisp.org>
36998         Tests for module 'log2f'.
36999         * modules/log2f-tests: New file.
37000         * tests/test-log2f.c: New file.
37002         New module 'log2f'.
37003         * lib/math.in.h (log2f): New declaration.
37004         * lib/log2f.c: New file.
37005         * m4/log2f.m4: New file.
37006         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37008         REPLACE_LOG2F.
37009         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37010         REPLACE_LOG2F.
37011         * modules/log2f: New file.
37012         * tests/test-math-c++.cc: Check the declaration of log2f.
37013         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37014         and OSF/1 and Cygwin problems.
37016 2012-03-11  Bruno Haible  <bruno@clisp.org>
37018         Tests for module 'log2'.
37019         * modules/log2-tests: New file.
37020         * tests/test-log2.c: New file.
37021         * tests/test-log2.h: New file.
37023         New module 'log2'.
37024         * lib/math.in.h (log2): New declaration.
37025         * lib/log2.c: New file.
37026         * m4/log2.m4: New file.
37027         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37029         REPLACE_LOG2.
37030         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37031         REPLACE_LOG2.
37032         * modules/log2: New file.
37033         * tests/test-math-c++.cc: Check the declaration of log2.
37034         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37035         and OSF/1 and Cygwin problems.
37037 2012-03-11  Bruno Haible  <bruno@clisp.org>
37039         exp2* tests: More tests.
37040         * tests/test-exp2.h (test_function): Test all integral arguments that
37041         don't need to overflow or denormalized numbers.
37042         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37043         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37044         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37046 2012-03-10  Bruno Haible  <bruno@clisp.org>
37048         log1pl-ieee: Work around test failure on AIX 7.1.
37049         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37051         log1pl-ieee: Work around test failure on IRIX 6.5.
37052         * m4/log1pl-ieee.m4: New file.
37053         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37054         test whether log1pl works with a minus zero argument. Replace it if
37055         not.
37056         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37058         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37059         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37060         (Depends-on): Update conditions.
37061         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37062         m4/signbit.m4.
37063         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37064         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37066         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37067         * m4/log1pf-ieee.m4: New file.
37068         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37069         test whether log1pf works with a minus zero argument. Replace it if
37070         not.
37071         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37072         m4/signbit.m4.
37073         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37074         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37076         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37077         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37078         (configure.ac): Require gl_FUNC_LOG1PF.
37080         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37081         * m4/log1p-ieee.m4: New file.
37082         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37083         whether log1p works with a minus zero argument. Replace it if not.
37084         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37086         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37087         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37088         (Depends-on): Update conditions.
37089         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37090         m4/signbit.m4.
37091         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37092         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37094         Tests for module 'log1pl-ieee'.
37095         * modules/log1pl-ieee-tests: New file.
37096         * tests/test-log1pl-ieee.c: New file.
37098         New module 'log1pl-ieee'.
37099         * modules/log1pl-ieee: New file.
37101         Tests for module 'log1p-ieee'.
37102         * modules/log1p-ieee-tests: New file.
37103         * tests/test-log1p-ieee.c: New file.
37105         New module 'log1p-ieee'.
37106         * modules/log1p-ieee: New file.
37108         Tests for module 'log1pf-ieee'.
37109         * modules/log1pf-ieee-tests: New file.
37110         * tests/test-log1pf-ieee.c: New file.
37111         * tests/test-log1p-ieee.h: New file.
37113         New module 'log1pf-ieee'.
37114         * modules/log1pf-ieee: New file.
37116 2012-03-10  Bruno Haible  <bruno@clisp.org>
37118         Tests for module 'log1pl'.
37119         * modules/log1pl-tests: New file.
37120         * tests/test-log1pl.c: New file.
37122         New module 'log1pl'.
37123         * lib/math.in.h (log1pl): New declaration.
37124         * lib/log1pl.c: New file.
37125         * m4/log1pl.m4: New file.
37126         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37128         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37129         * modules/log1pl: New file.
37130         * tests/test-math-c++.cc: Check the declaration of log1pl.
37131         * doc/posix-functions/log1pl.texi: Mention the new module.
37133 2012-03-10  Bruno Haible  <bruno@clisp.org>
37135         Tests for module 'log1pf'.
37136         * modules/log1pf-tests: New file.
37137         * tests/test-log1pf.c: New file.
37139         New module 'log1pf'.
37140         * lib/math.in.h (log1pf): New declaration.
37141         * lib/log1pf.c: New file.
37142         * m4/log1pf.m4: New file.
37143         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37145         REPLACE_LOG1PF.
37146         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37147         REPLACE_LOG1PF.
37148         * modules/log1pf: New file.
37149         * tests/test-math-c++.cc: Check the declaration of log1pf.
37150         * doc/posix-functions/log1pf.texi: Mention the new module.
37152 2012-03-10  Bruno Haible  <bruno@clisp.org>
37154         log1p tests: More tests.
37155         * tests/test-log1p.h: New file.
37156         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37157         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37158         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37159         (main): Invoke test_function.
37161         log1p: Provide replacement for Minix and MSVC.
37162         * lib/math.in.h (log1p): New declaration.
37163         * lib/log1p.c: New file.
37164         * m4/log1p.m4: New file.
37165         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37167         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37168         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37169         (Depends-on): Add math, isnand, log, round.
37170         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37171         HAVE_LOG1P is 0.
37172         * tests/test-math-c++.cc: Check the declaration of log1p.
37173         * doc/posix-functions/log1p.texi: Mention the replacement.
37175 2012-03-10  Bruno Haible  <bruno@clisp.org>
37177         math tests: Small simplification.
37178         * tests/test-exp.h (test_function): Use the same err_bound for
37179         'double' on platforms with sizeof (long double) == sizeof (double)
37180         than on platforms with sizeof (long double) > sizeof (double).
37181         * tests/test-exp2.h (test_function): Likewise.
37182         * tests/test-expm1.h (test_function): Likewise.
37183         * tests/test-log.h (test_function): Likewise.
37185 2012-03-10  Bruno Haible  <bruno@clisp.org>
37187         Fix some comments.
37188         * lib/expl.c: Fix an ambiguous comment.
37189         * lib/expm1.c: Likewise.
37190         * lib/expm1l.c: Likewise.
37191         * lib/exp2.c: Likewise.
37192         * lib/exp2l.c: Likewise.
37194 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37196         regex: allow inclusion of <regex.h> before <limits.h>
37197         Without this patch, portable programs had to include <limits.h> before
37198         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37199         I ran into this problem with a test version of GNU grep on Solaris 8.
37200         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37201         This is done conditionally so that this change can be merged
37202         back to glibc.
37203         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37204         using the included regex.
37206         fts: depend on fdopendir
37207         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37208         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37209         problem was introduced when fdopendir was split out.
37211 2012-03-10  Bruno Haible  <bruno@clisp.org>
37213         Remove unused variables.
37214         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37215         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37217 2012-03-10  Bruno Haible  <bruno@clisp.org>
37219         isnanf-nolibm: Fix last commit.
37220         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37222         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37223         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37225 2012-03-10  Bruno Haible  <bruno@clisp.org>
37227         logf-ieee: Work around test failure on NetBSD 5.1.
37228         * m4/logf-ieee.m4: New file.
37229         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37230         whether logf works with a negative argument. Replace it if not.
37231         * lib/logf.c (logf): For negative arguments, return NaN.
37232         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37233         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37234         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37236         logf-ieee: Work around test failure on Solaris 9.
37237         * modules/logf-ieee (Depends-on): Add log-ieee.
37238         (configure.ac): Require gl_FUNC_LOGF.
37240         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37241         * m4/log-ieee.m4: New file.
37242         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37243         log works with a negative argument. Replace it if not.
37244         * lib/log.c (log): For negative arguments, return NaN.
37245         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37246         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37247         * doc/posix-functions/log.texi: Mention the log-ieee module.
37249         Tests for module 'logl-ieee'.
37250         * modules/logl-ieee-tests: New file.
37251         * tests/test-logl-ieee.c: New file.
37253         New module 'logl-ieee'.
37254         * modules/logl-ieee: New file.
37256         Tests for module 'log-ieee'.
37257         * modules/log-ieee-tests: New file.
37258         * tests/test-log-ieee.c: New file.
37260         New module 'log-ieee'.
37261         * modules/log-ieee: New file.
37263         Tests for module 'logf-ieee'.
37264         * modules/logf-ieee-tests: New file.
37265         * tests/test-logf-ieee.c: New file.
37266         * tests/test-log-ieee.h: New file.
37268         New module 'logf-ieee'.
37269         * modules/logf-ieee: New file.
37271 2012-03-10  Bruno Haible  <bruno@clisp.org>
37273         log: Fix bug introduced on 2012-03-09.
37274         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37276 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37278         timer-time: link explicitly with pthreads on glibc
37279         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37280         to support static linking, when newer glibc is
37281         detected, as that contains pthread emulation of
37282         POSIX timer functions where required.
37283         * modules/timer-time: Depend on threadlib to
37284         pull in the appropriate library to link.
37286 2012-03-10  Bruno Haible  <bruno@clisp.org>
37288         log* tests: More tests.
37289         * tests/test-log.h: New file.
37290         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37291         (main): Invoke test_function.
37292         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37293         (main): Invoke test_function.
37294         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37295         (main): Invoke test_function.
37296         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37297         tests/randomd.c.
37298         (Makefile.am): Add randomd.c to test_log_SOURCES.
37299         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37300         tests/randomf.c.
37301         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37302         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37303         tests/randoml.c.
37304         (Depends-on): Add 'float'.
37305         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37307 2012-03-09  Bruno Haible  <bruno@clisp.org>
37309         logl: Work around OSF/1 5.1 bug.
37310         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37311         * lib/logl.c (logl): If logl exists, use it and provide just the
37312         workaround.
37313         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37314         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37316         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37317         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37318         (Depends-on): Update conditions.
37319         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37321 2012-03-09  Bruno Haible  <bruno@clisp.org>
37323         logf: Work around OSF/1 5.1 bug.
37324         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37325         * lib/logf.c (logf): If logf exists, use it and provide just the
37326         workaround.
37327         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37328         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37330         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37331         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37332         (Depends-on): Update conditions.
37333         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37335 2012-03-09  Bruno Haible  <bruno@clisp.org>
37337         log: Work around OSF/1 5.1 bug.
37338         * lib/math.in.h (log): New declaration.
37339         * lib/log.c: New file.
37340         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37341         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37342         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37344         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37345         * modules/log (Files): Add lib/log.c.
37346         (Depends-on): Add math.
37347         (configure.ac): If REPLACE_LOG is 1, compile an override.
37348         * tests/test-math-c++.cc: Check the declaration of log.
37349         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37351 2012-03-09  Jim Meyering  <meyering@redhat.com>
37353         readtokens.c: adjust wording in a comment
37354         * lib/readtokens.c: Insert omitted "that" in a comment.
37356 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37358         modechange: add notations +40, 00440, etc.
37359         * lib/modechange.c (mode_compile): Support new notations
37360         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37362 2012-03-08  Bruno Haible  <bruno@clisp.org>
37364         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37365         * m4/exp2l-ieee.m4: New file.
37366         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37367         test whether exp2l works with a NaN argument and with a negative
37368         infinity argument. Replace it if not.
37369         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37371         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37372         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37373         (Depends-on): Update conditions.
37374         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37375         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37376         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37378         Tests for module 'exp2l-ieee'.
37379         * modules/exp2l-ieee-tests: New file.
37380         * tests/test-exp2l-ieee.c: New file.
37382         New module 'exp2l-ieee'.
37383         * modules/exp2l-ieee: New file.
37385         Tests for module 'exp2-ieee'.
37386         * modules/exp2-ieee-tests: New file.
37387         * tests/test-exp2-ieee.c: New file.
37389         New module 'exp2-ieee'.
37390         * modules/exp2-ieee: New file.
37392         Tests for module 'exp2f-ieee'.
37393         * modules/exp2f-ieee-tests: New file.
37394         * tests/test-exp2f-ieee.c: New file.
37395         * tests/test-exp2-ieee.h: New file.
37397         New module 'exp2f-ieee'.
37398         * modules/exp2f-ieee: New file.
37400 2012-03-08  Bruno Haible  <bruno@clisp.org>
37402         Tests for module 'exp2l'.
37403         * modules/exp2l-tests: New file.
37404         * tests/test-exp2l.c: New file.
37406         New module 'exp2l'.
37407         * lib/math.in.h (exp2l): New declaration.
37408         * lib/exp2l.c: New file.
37409         * lib/expl-table.c: New file, extracted from lib/expl.c.
37410         * lib/expl.c (gl_expl_table): New declaration.
37411         (expl): Remove expl_table. Update reference.
37412         * m4/exp2l.m4: New file.
37413         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
37414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
37415         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
37416         * modules/exp2l: New file.
37417         * modules/expl (Files): Add lib/expl-table.c.
37418         (configure.ac): Compile also expl-table.c.
37419         * tests/test-math-c++.cc: Check the declaration of exp2l.
37420         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
37421         problem.
37423 2012-03-08  Bruno Haible  <bruno@clisp.org>
37425         Tests for module 'exp2f'.
37426         * modules/exp2f-tests: New file.
37427         * tests/test-exp2f.c: New file.
37429         New module 'exp2f'.
37430         * lib/math.in.h (exp2f): New declaration.
37431         * lib/exp2f.c: New file.
37432         * m4/exp2f.m4: New file.
37433         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
37434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
37435         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
37436         * modules/exp2f: New file.
37437         * tests/test-math-c++.cc: Check the declaration of exp2f.
37438         * doc/posix-functions/exp2f.texi: Mention the new module and the
37439         IRIX problem.
37441 2012-03-08  Bruno Haible  <bruno@clisp.org>
37443         Tests for module 'exp2'.
37444         * modules/exp2-tests: New file.
37445         * tests/test-exp2.c: New file.
37446         * tests/test-exp2.h: New file.
37448         New module 'exp2'.
37449         * lib/math.in.h (exp2): New declaration.
37450         * lib/exp2.c: New file.
37451         * m4/exp2.m4: New file.
37452         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37454         REPLACE_EXP2.
37455         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37456         REPLACE_EXP2.
37457         * modules/exp2: New file.
37458         * tests/test-math-c++.cc: Check the declaration of exp2.
37459         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37460         and OpenBSD problems.
37462 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37464         savedir: fix comment typo
37465         * lib/savedir.c (savedirstream): Fix typo in comment.
37467 2012-03-08  Bruno Haible  <bruno@clisp.org>
37469         test-readtokens.c: use const; remove unwarranted cast
37470         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37472 2012-03-08  Bruno Haible  <bruno@clisp.org>
37474         fmal: Avoid compilation error on AIX.
37475         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37476         AIX 5.2..7.1.
37478 2012-03-08  Bruno Haible  <bruno@clisp.org>
37480         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37481         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37482         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37483         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37484         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37485         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37486         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37488 2012-03-08  Bruno Haible  <bruno@clisp.org>
37490         remainderf: Override buggy system function on IRIX 6.5.
37491         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37492         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37493         when it exists.
37494         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37496 2012-03-08  Jim Meyering  <meyering@redhat.com>
37498         test-readtokens.c: avoid const-related compilation warnings
37499         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37501 2012-03-07  Jim Meyering  <meyering@redhat.com>
37502             Bruno Haible  <bruno@clisp.org>
37504         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37505         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37506         tests/randomd.c.
37507         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37508         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37509         tests/randoml.c.
37510         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37512 2012-03-07  Bruno Haible  <bruno@clisp.org>
37514         expm1l: Avoid compilation error on AIX.
37515         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37516         AIX 5.2..7.1.
37518 2012-03-07  Bruno Haible  <bruno@clisp.org>
37520         expm1l: Don't override undeclared system function on IRIX 6.5.
37521         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37522         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37523         it exists. Set HAVE_DECL_EXPM1L.
37524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37525         HAVE_EXPM1L.
37526         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37527         HAVE_EXPM1L.
37528         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37530 2012-03-07  Bruno Haible  <bruno@clisp.org>
37532         remainderl: Don't override undeclared system function on IRIX 6.5.
37533         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37534         HAVE_REMAINDERL.
37535         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37536         declared when it exists. Set HAVE_DECL_REMAINDERL.
37537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37538         not HAVE_REMAINDERL.
37539         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37540         HAVE_REMAINDERL.
37541         * doc/posix-functions/remainderl.texi: Mention missing declaration
37542         problem.
37544 2012-03-07  Bruno Haible  <bruno@clisp.org>
37546         rintf: Don't override undeclared system function on IRIX 6.5.
37547         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37548         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37549         exists. Set HAVE_DECL_RINTF.
37550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37551         HAVE_RINTF.
37552         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37553         HAVE_RINTF.
37554         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37556 2012-03-07  Bruno Haible  <bruno@clisp.org>
37558         roundl: Avoid compilation error on AIX.
37559         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37560         AIX 5.2..7.1.
37562 2012-03-07  Bruno Haible  <bruno@clisp.org>
37564         roundl: Don't override undeclared system function on IRIX 6.5.
37565         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37566         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37567         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37568         * modules/roundl (configure.ac): For replacement code, test
37569         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37570         (Depends-on): Update conditions.
37571         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37573 2012-03-07  Bruno Haible  <bruno@clisp.org>
37575         roundf: Don't override undeclared system function on IRIX 6.5.
37576         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37577         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37578         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37579         * modules/roundf (configure.ac): For replacement code, test
37580         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37581         (Depends-on): Update conditions.
37582         * modules/roundf-ieee (Depends-on): Update conditions.
37583         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37585 2012-03-07  Bruno Haible  <bruno@clisp.org>
37587         round: Don't override undeclared system function on IRIX 6.5.
37588         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37589         argument.
37590         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37591         also when it is not declared. Set HAVE_ROUND. For replacement code,
37592         test HAVE_ROUND, not HAVE_DECL_ROUND.
37593         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37594         not HAVE_DECL_ROUND.
37595         (Depends-on): Update conditions.
37596         * modules/round-ieee (Depends-on): Update conditions.
37597         * doc/posix-functions/round.texi: Mention the IRIX problem.
37599 2012-03-07  Bruno Haible  <bruno@clisp.org>
37601         copysignf: Don't override undeclared system function on IRIX 6.5.
37602         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37603         HAVE_COPYSIGNF.
37604         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37605         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37607         not HAVE_COPYSIGNF.
37608         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37609         HAVE_COPYSIGNF.
37610         * doc/posix-functions/copysignf.texi: Mention missing declaration
37611         problem.
37613 2012-03-07  Jim Meyering  <meyering@redhat.com>
37615         readtokens: add tests
37616         * modules/readtokens-tests: New file.
37617         * tests/test-readtokens.c: New file.
37619 2012-03-07  Jim Meyering  <meyering@redhat.com>
37621         quotearg: the module must now include quote.h
37622         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37623         So must the module.
37624         * modules/quotearg (Files): Add quote.h.
37626 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37628         readtokens: avoid core dumps with unusual calling patterns
37629         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37630         * lib/readtokens.c: Include limits.h.
37631         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37632         (readtoken): Don't cache the delimiters; the cache code was buggy
37633         if !delim && saved_delim, or if the new n_delim differs from the old.
37634         Also, it wasn't thread-safe.
37636 2012-03-07  Bruno Haible  <bruno@clisp.org>
37638         quote: Adhere to common module description layout.
37639         * modules/quote (Makefile.am): Add back empty section.
37641 2012-03-06  Akim Demaille  <demaille@gostai.com>
37643         quote: fuse into quotearg
37644         This patch is made for the benefit of Bison.
37645         quote does not leave the choice of the quoting style to the user.
37646         quoting_style provides poor customizability, yet quoting_options,
37647         which is very rich, is hidden inside quotearg.c.  So in order to
37648         allow quote customization, move its implementation to quotearg.c.
37649         * lib/quote.c: Remove.
37650         * modules/quote: Adjust.
37651         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37652         warning: provide all the members of literal structs.
37653         (quote_quoting_options): New.
37654         (quote, quote_n): Import implementation from quote.c.
37655         * lib/quote.h: Import the comments from quote.c.
37656         (quote_quoting_options): New.
37658 2012-03-06  Bruno Haible  <bruno@clisp.org>
37660         Tests for module 'expm1l-ieee'.
37661         * modules/expm1l-ieee-tests: New file.
37662         * tests/test-expm1l-ieee.c: New file.
37664         New module 'expm1l-ieee'.
37665         * modules/expm1l-ieee: New file.
37667         Tests for module 'expm1f-ieee'.
37668         * modules/expm1f-ieee-tests: New file.
37669         * tests/test-expm1f-ieee.c: New file.
37671         New module 'expm1f-ieee'.
37672         * modules/expm1f-ieee: New file.
37674         Tests for module 'expm1-ieee'.
37675         * modules/expm1-ieee-tests: New file.
37676         * tests/test-expm1-ieee.c: New file.
37677         * tests/test-expm1-ieee.h: New file.
37679         New module 'expm1-ieee'.
37680         * modules/expm1-ieee: New file.
37681         * m4/expm1-ieee.m4: New file.
37682         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37683         whether expm1 works with a minus zero argument. Replace it if not.
37684         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37686         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37687         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37688         (Depends-on): Update conditions.
37689         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37690         AIX problem.
37692 2012-03-06  Bruno Haible  <bruno@clisp.org>
37694         Work around expm1f bug on IRIX 6.5.
37695         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37696         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37697         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37698         not work.
37699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37700         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37701         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37702         (Depends-on): Update conditions.
37703         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37705 2012-03-06  Bruno Haible  <bruno@clisp.org>
37707         Tests for module 'expm1l'.
37708         * modules/expm1l-tests: New file.
37709         * tests/test-expm1l.c: New file.
37711         New module 'expm1l'.
37712         * lib/math.in.h (expm1l): New declaration.
37713         * lib/expm1l.c: New file.
37714         * m4/expm1l.m4: New file.
37715         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37717         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37718         * modules/expm1l: New file.
37719         * tests/test-math-c++.cc: Check the declaration of expm1l.
37720         * doc/posix-functions/expm1l.texi: Mention the new module.
37722 2012-03-06  Bruno Haible  <bruno@clisp.org>
37724         Tests for module 'expm1f'.
37725         * modules/expm1f-tests: New file.
37726         * tests/test-expm1f.c: New file.
37728         New module 'expm1f'.
37729         * lib/math.in.h (expm1f): New declaration.
37730         * lib/expm1f.c: New file.
37731         * m4/expm1f.m4: New file.
37732         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37734         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37735         * modules/expm1f: New file.
37736         * tests/test-math-c++.cc: Check the declaration of expm1f.
37737         * doc/posix-functions/expm1f.texi: Mention the new module.
37739 2012-03-06  Bruno Haible  <bruno@clisp.org>
37741         Tests for module 'expm1'.
37742         * modules/expm1-tests: New file.
37743         * tests/test-expm1.c: New file.
37744         * tests/test-expm1.h: New file.
37746         New module 'expm1'.
37747         * lib/math.in.h (expm1): New declaration.
37748         * lib/expm1.c: New file.
37749         * m4/expm1.m4: New file.
37750         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37752         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37753         * modules/expm1: New file.
37754         * tests/test-math-c++.cc: Check the declaration of expm1.
37755         * doc/posix-functions/expm1.texi: Mention the new module.
37757 2012-03-06  Bruno Haible  <bruno@clisp.org>
37759         math: Ensure declarations of math functions.
37760         * modules/acosf (Depends-on): Add 'extensions'.
37761         * modules/asinf (Depends-on): Likewise.
37762         * modules/atan2f (Depends-on): Likewise.
37763         * modules/atanf (Depends-on): Likewise.
37764         * modules/cbrt (Depends-on): Likewise.
37765         * modules/cbrtf (Depends-on): Likewise.
37766         * modules/cbrtl (Depends-on): Likewise.
37767         * modules/copysignf (Depends-on): Likewise.
37768         * modules/copysignl (Depends-on): Likewise.
37769         * modules/cosf (Depends-on): Likewise.
37770         * modules/coshf (Depends-on): Likewise.
37771         * modules/expf (Depends-on): Likewise.
37772         * modules/fabsf (Depends-on): Likewise.
37773         * modules/fabsl (Depends-on): Likewise.
37774         * modules/fmaf (Depends-on): Likewise.
37775         * modules/fmal (Depends-on): Likewise.
37776         * modules/fmodf (Depends-on): Likewise.
37777         * modules/fmodl (Depends-on): Likewise.
37778         * modules/frexpf (Depends-on): Likewise.
37779         * modules/frexpl (Depends-on): Likewise.
37780         * modules/hypot (Depends-on): Likewise.
37781         * modules/hypotf (Depends-on): Likewise.
37782         * modules/hypotl (Depends-on): Likewise.
37783         * modules/ldexpf (Depends-on): Likewise.
37784         * modules/ldexpl (Depends-on): Likewise.
37785         * modules/log10f (Depends-on): Likewise.
37786         * modules/log10l (Depends-on): Likewise.
37787         * modules/log1p (Depends-on): Likewise.
37788         * modules/logb (Depends-on): Likewise.
37789         * modules/logf (Depends-on): Likewise.
37790         * modules/modff (Depends-on): Likewise.
37791         * modules/modfl (Depends-on): Likewise.
37792         * modules/powf (Depends-on): Likewise.
37793         * modules/remainderf (Depends-on): Likewise.
37794         * modules/remainderl (Depends-on): Likewise.
37795         * modules/rintf (Depends-on): Likewise.
37796         * modules/rintl (Depends-on): Likewise.
37797         * modules/sinf (Depends-on): Likewise.
37798         * modules/sinhf (Depends-on): Likewise.
37799         * modules/sqrtf (Depends-on): Likewise.
37800         * modules/tanf (Depends-on): Likewise.
37801         * modules/tanhf (Depends-on): Likewise.
37802         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37803         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37804         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37805         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37806         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37807         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37808         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37809         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37810         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37811         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37812         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37813         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37814         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37815         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37816         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37817         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37818         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37819         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37820         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37821         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37822         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37823         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37824         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37825         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37827         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37828         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37829         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37830         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37831         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37832         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37833         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37834         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37835         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37836         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37837         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37838         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37839         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37840         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37841         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37842         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37844 2012-03-06  Bruno Haible  <bruno@clisp.org>
37846         math: Update module names in warnings.
37847         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37848         tanl): Use specific module name in warn-on-use warning.
37850 2012-03-06  Bruno Haible  <bruno@clisp.org>
37852         expl: Simplify computation.
37853         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37855 2012-03-05  Bruno Haible  <bruno@clisp.org>
37857         exp* tests: More tests.
37858         * tests/test-exp.h: New file.
37859         * tests/test-exp.c: Include <float.h> and test-exp.h.
37860         (main): Invoke test_function.
37861         * tests/test-expf.c: Include <float.h> and test-exp.h.
37862         (main): Invoke test_function.
37863         * tests/test-expl.c: Include <float.h> and test-exp.h.
37864         (main): Invoke test_function.
37865         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37866         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37867         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37868         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37869         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37870         (Depends-on): Add 'float'.
37871         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37873         expl: Fix precision of computed result.
37874         * lib/expl.c: Completely rewritten.
37875         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37876         (Maintainer): Add me.
37877         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37879 2012-03-05  Bruno Haible  <bruno@clisp.org>
37881         cbrt* tests: More tests.
37882         * tests/test-cbrt.h: New file.
37883         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37884         (main): Invoke test_function.
37885         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37886         (main): Invoke test_function.
37887         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37888         (main): Invoke test_function.
37889         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37890         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37891         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37892         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37893         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37894         (Depends-on): Add 'float'.
37895         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37897 2012-03-05  Bruno Haible  <bruno@clisp.org>
37899         hypot* tests: More tests.
37900         * tests/test-hypot.h: New file, partially extracted from
37901         tests/test-hypotl.c.
37902         * tests/test-hypot.c: Include test-hypot.h.
37903         (main): Invoke test_function.
37904         * tests/test-hypotf.c: Include test-hypot.h.
37905         (main): Invoke test_function.
37906         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37907         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37908         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37909         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37910         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37911         tests/randomf.c.
37912         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37913         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37914         tests/randoml.c.
37915         (Depends-on): Add 'fpucw', 'float'.
37916         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37918 2012-03-05  Bruno Haible  <bruno@clisp.org>
37920         fpucw: Doc about FreeBSD.
37921         * lib/fpucw.h: Mention FreeBSD in comments.
37923 2012-03-04  Bruno Haible  <bruno@clisp.org>
37925         sqrt* tests: More tests.
37926         * tests/test-sqrt.h: New file.
37927         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37928         (main): Invoke test_function.
37929         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37930         (main): Invoke test_function.
37931         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37932         (main): Invoke test_function.
37933         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37934         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37935         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37936         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37937         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37938         (Depends-on): Add 'float'.
37939         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37941 2012-03-04  Bruno Haible  <bruno@clisp.org>
37943         remainder* tests: More tests.
37944         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37945         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37946         (main): Invoke test_function.
37947         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37948         (main): Invoke test_function.
37949         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37950         (main): Invoke test_function.
37951         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37952         tests/randomd.c.
37953         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37954         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37955         tests/randomf.c.
37956         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37957         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37958         tests/randoml.c.
37959         (Depends-on): Add 'float'.
37960         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37962 2012-03-04  Bruno Haible  <bruno@clisp.org>
37964         remainder, remainderf, remainderl: Fix computation for large quotients.
37965         * lib/remainder.c: Completely rewritten.
37966         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37967         USE_FLOAT.
37968         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37969         USE_LONG_DOUBLE.
37970         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37971         isnand, isinf. Remove round, fma.
37972         * modules/remainderf (Files): Add lib/remainder.c.
37973         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37974         Remove roundf, fmaf.
37975         * modules/remainderl (Files): Add lib/remainder.c.
37976         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37977         isinf. Remove roundl, fmal.
37978         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37979         REMAINDER_LIBM.
37980         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37981         REMAINDERF_LIBM.
37982         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37983         REMAINDERL_LIBM.
37985 2012-03-04  Bruno Haible  <bruno@clisp.org>
37987         fmod* tests: More tests.
37988         * tests/test-fmod.h (my_ldexp): New function.
37989         (test_function): Reduce amount of random numbers to test. Add tests
37990         of very large quotients x / y.
37991         * tests/test-fmod.c (MAX_EXP): New macro.
37992         * tests/test-fmodf.c (MAX_EXP): Likewise.
37993         * tests/test-fmodl.c (MAX_EXP): Likewise.
37995 2012-03-04  Bruno Haible  <bruno@clisp.org>
37997         fmod, fmodl: Fix computation for large quotients x / y.
37998         * lib/fmod.c: Completely rewritten.
37999         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38000         USE_LONG_DOUBLE.
38001         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38002         isnand. Remove fma.
38003         * modules/fmodl (Files): Add lib/fmod.c.
38004         (Depends-on): Add float, isfinite, signbit, fabsl,
38005         frexpl, ldexpl, isnanl. Remove fma.
38006         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38007         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38009 2012-03-03  Bruno Haible  <bruno@clisp.org>
38011         fmod* tests: More tests.
38012         * tests/test-fmod.h: New file.
38013         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38014         (main): Invoke test_function.
38015         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38016         (main): Invoke test_function.
38017         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38018         (main): Invoke test_function.
38019         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38020         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38021         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38022         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38023         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38024         (Depends-on): Add 'float'.
38025         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38027 2012-03-03  Bruno Haible  <bruno@clisp.org>
38029         rint* tests: More tests.
38030         * tests/test-rint.h: New file, partially extracted from
38031         tests/test-rintl.c.
38032         * tests/test-rint.c: Include test-rint.h.
38033         (main): Invoke test_function.
38034         * tests/test-rintf.c: Include test-rint.h.
38035         (main): Invoke test_function.
38036         * tests/test-rintl.c: Include test-rint.h.
38037         (main): Invoke test_function.
38038         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38039         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38040         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38041         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38042         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38043         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38045 2012-03-03  Bruno Haible  <bruno@clisp.org>
38047         modf* tests: More tests.
38048         * tests/test-modf.h: New file.
38049         * tests/test-modf.c: Include <float.h> and test-modf.h.
38050         (main): Invoke test_function.
38051         * tests/test-modff.c: Include <float.h> and test-modf.h.
38052         (main): Invoke test_function.
38053         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38054         (main): Invoke test_function.
38055         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38056         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38057         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38058         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38059         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38060         (Depends-on): Add 'float'.
38061         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38063 2012-03-03  Bruno Haible  <bruno@clisp.org>
38065         fabs* tests: More tests.
38066         * tests/test-fabs.h: New file, partially extracted from
38067         tests/test-fabsl.c.
38068         * tests/test-fabs.c (RANDOM): New macro.
38069         * tests/test-fabsf.c (RANDOM): New macro.
38070         * tests/test-fabsl.c (RANDOM): New macro.
38071         * modules/fabs-tests (Files): Add tests/randomd.c.
38072         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38073         * modules/fabsf-tests (Files): Add tests/randomf.c.
38074         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38075         * modules/fabsl-tests (Files): Add tests/randoml.c.
38076         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38078 2012-03-03  Bruno Haible  <bruno@clisp.org>
38080         ldexp* tests: More tests.
38081         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38082         * tests/test-ldexp.c (RANDOM): New macro.
38083         * tests/test-ldexpf.c (RANDOM): New macro.
38084         * tests/test-ldexpl.c (RANDOM): New macro.
38085         * modules/ldexp-tests (Files): Add tests/randomd.c.
38086         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38087         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38088         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38089         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38090         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38092 2012-03-03  Bruno Haible  <bruno@clisp.org>
38094         frexp* tests: More tests.
38095         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38096         * tests/test-frexp.c (RANDOM): New macro.
38097         * tests/test-frexpf.c (RANDOM): New macro.
38098         * tests/test-frexpl.c (RANDOM): New macro.
38099         * modules/frexp-tests (Files): Add tests/randomd.c.
38100         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38101         * modules/frexpf-tests (Files): Add tests/randomf.c.
38102         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38103         * modules/frexpl-tests (Files): Add tests/randoml.c.
38104         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38106 2012-03-03  Bruno Haible  <bruno@clisp.org>
38108         Support for pseudo-random numbers in tests.
38109         * tests/randomf.c: New file.
38110         * tests/randomd.c: New file.
38111         * tests/randoml.c: New file.
38112         * tests/macros.h (randomf, randomd, randoml): New declarations.
38114 2012-03-03  Bruno Haible  <bruno@clisp.org>
38116         frexp* tests: Refactor.
38117         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38118         * tests/test-frexp.c: Include and use it.
38119         * tests/test-frexpf.c: Likewise.
38120         * tests/test-frexpl.c: Likewise.
38121         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38122         * modules/frexpf-tests (Files): Likewise.
38123         * modules/frexpl-tests (Files): Likewise.
38125 2012-03-02  Jim Meyering  <meyering@redhat.com>
38127         maint: don't specify XZ_OPT=-9ev in dist-related rule
38128         Using xz's -9 option is warranted only if you have a very large
38129         tarball (see xz's documentation for the sizes vs. presets), and
38130         requires 64MiB of memory at decompression time.
38131         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38132         Automake's default of just "-e" is fine.  Override on a
38133         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38135 2012-03-01  Eric Blake  <eblake@redhat.com>
38137         maint.mk: allow announcement for non-gnulib project
38138         * maint.mk (announcement): Skip gnulib version if not used.
38140 2012-03-01  Jim Meyering  <meyering@redhat.com>
38142         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38143         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38144         envvar settings cannot interfere.  Otherwise, setting envvars like
38145         prohibit=foo require=bar, etc. would cause spurious test failures.
38147 2012-03-01  Eric Blake  <eblake@redhat.com>
38149         maint.mk: add per-line exclusions to prohibitions
38150         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38151         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38152         (sc_const_long_option): Use it.
38154 2012-03-01  Bruno Haible  <bruno@clisp.org>
38156         Tests for module 'expl-ieee'.
38157         * modules/expl-ieee-tests: New file.
38158         * tests/test-expl-ieee.c: New file.
38160         New module 'expl-ieee'.
38161         * modules/expl-ieee: New file.
38163         Tests for module 'exp-ieee'.
38164         * modules/exp-ieee-tests: New file.
38165         * tests/test-exp-ieee.c: New file.
38167         New module 'exp-ieee'.
38168         * modules/exp-ieee: New file.
38170         Tests for module 'expf-ieee'.
38171         * modules/expf-ieee-tests: New file.
38172         * tests/test-expf-ieee.c: New file.
38173         * tests/test-exp-ieee.h: New file.
38175         New module 'expf-ieee'.
38176         * modules/expf-ieee: New file.
38178 2012-02-29  Bruno Haible  <bruno@clisp.org>
38180         cbrtl-ieee: Work around test failure on IRIX 6.5.
38181         * m4/cbrtl-ieee.m4: New file.
38182         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38183         test whether cbrtl works with a minus zero argument. Replace it if not.
38184         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38186         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38187         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38188         (Depends-on): Update conditions.
38189         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38190         m4/signbit.m4.
38191         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38192         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38193         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38195         Tests for module 'cbrtl-ieee'.
38196         * modules/cbrtl-ieee-tests: New file.
38197         * tests/test-cbrtl-ieee.c: New file.
38199         New module 'cbrtl-ieee'.
38200         * modules/cbrtl-ieee: New file.
38202         Tests for module 'cbrt-ieee'.
38203         * modules/cbrt-ieee-tests: New file.
38204         * tests/test-cbrt-ieee.c: New file.
38206         New module 'cbrt-ieee'.
38207         * modules/cbrt-ieee: New file.
38209         Tests for module 'cbrtf-ieee'.
38210         * modules/cbrtf-ieee-tests: New file.
38211         * tests/test-cbrtf-ieee.c: New file.
38212         * tests/test-cbrt-ieee.h: New file.
38214         New module 'cbrtf-ieee'.
38215         * modules/cbrtf-ieee: New file.
38217 2012-02-29  Bruno Haible  <bruno@clisp.org>
38219         cbrtf: Work around bug in IRIX 6.5 system function.
38220         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38221         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38222         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38223         work.
38224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38225         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38226         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38227         (Depends-on): Update conditions.
38228         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38230 2012-02-29  Bruno Haible  <bruno@clisp.org>
38232         Tests for module 'cbrtl'.
38233         * modules/cbrtl-tests: New file.
38234         * tests/test-cbrtl.c: New file.
38236         New module 'cbrtl'.
38237         * lib/math.in.h (cbrtl): New declaration.
38238         * lib/cbrtl.c: New file.
38239         * m4/cbrtl.m4: New file.
38240         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38242         HAVE_DECL_CBRTL.
38243         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38244         HAVE_DECL_CBRTL.
38245         * modules/cbrtl: New file.
38246         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38247         * doc/posix-functions/cbrtl.texi: Mention the new module.
38249 2012-02-29  Bruno Haible  <bruno@clisp.org>
38251         Tests for module 'cbrtf'.
38252         * modules/cbrtf-tests: New file.
38253         * tests/test-cbrtf.c: New file.
38255         New module 'cbrtf'.
38256         * lib/math.in.h (cbrtf): New declaration.
38257         * lib/cbrtf.c: New file.
38258         * m4/cbrtf.m4: New file.
38259         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38261         HAVE_DECL_CBRTF.
38262         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38263         HAVE_DECL_CBRTF.
38264         * modules/cbrtf: New file.
38265         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38266         * doc/posix-functions/cbrtf.texi: Mention the new module.
38268 2012-02-29  Bruno Haible  <bruno@clisp.org>
38270         cbrt: Provide replacement on MSVC and Minix.
38271         * lib/math.in.h (cbrt): New declaration.
38272         * lib/cbrt.c: New file.
38273         * m4/cbrt.m4: New file.
38274         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38276         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38277         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38278         (Depends-on): Add dependencies.
38279         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38280         * tests/test-math-c++.cc: Check the declaration of cbrt.
38281         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38282         replacement.
38284 2012-02-29  Bruno Haible  <bruno@clisp.org>
38286         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38287         * m4/hypotl-ieee.m4: New file.
38288         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38289         test whether hypotl works with mixed NaN and Infinity arguments.
38290         Replace it if not.
38291         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38293         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38294         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38295         (Depends-on): Update conditions.
38296         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38297         (Depends-on): Add hypot-ieee.
38298         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38299         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38301         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38302         * m4/hypotf-ieee.m4: New file.
38303         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38304         test whether hypotf works with mixed NaN and Infinity arguments.
38305         Replace it if not.
38306         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38307         (Depends-on): Add hypot-ieee.
38308         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38309         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38311         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38312         * lib/math.in.h (hypot): New declaration.
38313         * lib/hypot.c: New file.
38314         * m4/hypot-ieee.m4: New file.
38315         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38316         whether hypot works with mixed NaN and Infinity arguments. Replace it
38317         if not.
38318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38319         REPLACE_HYPOT.
38320         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38321         * modules/hypot (Files): Add lib/hypot.c.
38322         (Depends-on): Add dependencies.
38323         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38324         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38325         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38326         * tests/test-math-c++.cc: Check the declaration of hypot.
38327         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38329         Tests for module 'hypotl-ieee'.
38330         * modules/hypotl-ieee-tests: New file.
38331         * tests/test-hypotl-ieee.c: New file.
38333         New module 'hypotl-ieee'.
38334         * modules/hypotl-ieee: New file.
38336         Tests for module 'hypot-ieee'.
38337         * modules/hypot-ieee-tests: New file.
38338         * tests/test-hypot-ieee.c: New file.
38340         New module 'hypot-ieee'.
38341         * modules/hypot-ieee: New file.
38343         Tests for module 'hypotf-ieee'.
38344         * modules/hypotf-ieee-tests: New file.
38345         * tests/test-hypotf-ieee.c: New file.
38346         * tests/test-hypot-ieee.h: New file.
38348         New module 'hypotf-ieee'.
38349         * modules/hypotf-ieee: New file.
38351 2012-02-29  Bruno Haible  <bruno@clisp.org>
38353         Remove unused variables.
38354         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38355         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38356         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38357         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38359 2012-02-29  Eric Blake  <eblake@redhat.com>
38361         termios: fix pid_t always, not just for tcgetsid
38362         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38363         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38364         just when building tcgetsid.
38366 2012-02-29  Bruno Haible  <bruno@clisp.org>
38368         Tests for module 'hypotl'.
38369         * modules/hypotl-tests: New file.
38370         * tests/test-hypotl.c: New file.
38372         New module 'hypotl'.
38373         * lib/math.in.h (hypotl): New declaration.
38374         * lib/hypotl.c: New file.
38375         * m4/hypotl.m4: New file.
38376         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38378         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38379         * modules/hypotl: New file.
38380         * tests/test-math-c++.cc: Check the hypotl declaration.
38381         * doc/posix-functions/hypotl.texi: Mention the new module.
38383 2012-02-29  Eric Blake  <eblake@redhat.com>
38385         tcgetsid: fix cygwin header bug
38386         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38388         docs: update cygwin progress
38389         * doc/posix-functions/llround.texi (llround): Added in cygwin
38390         1.7.8.
38391         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38392         * doc/glibc-functions/program_invocation_name.texi
38393         (program_invocation_name): Likewise.
38394         * doc/glibc-functions/program_invocation_short_name.texi
38395         (program_invocation_short_name): Likewise.
38396         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38397         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38398         Likewise.
38399         * doc/posix-functions/pthread_spin_destroy.texi
38400         (pthread_spin_destroy): Added in cygwin 1.7.10.
38401         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38402         Likewise.
38403         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38404         Likewise.
38405         * doc/posix-functions/pthread_spin_trylock.texi
38406         (pthread_spin_trylock): Likewise.
38407         * doc/posix-functions/pthread_spin_unlock.texi
38408         (pthread_spin_unlock): Likewise.
38409         * doc/posix-functions/pthread_setschedprio.texi
38410         (pthread_setschedprio): Likewise.
38411         * doc/posix-functions/pthread_attr_getstack.texi
38412         (pthread_attr_getstack): Likewise.
38413         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
38414         (pthread_attr_getstackaddr): Likewise.
38415         * doc/glibc-functions/pthread_getattr_np.texi
38416         (pthread_getattr_np): Likewise.
38417         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
38418         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
38419         * doc/posix-functions/clock_settime.texi (clock_settime):
38420         Likewise.
38421         * doc/posix-functions/pthread_attr_getguardsize.texi
38422         (pthread_attr_getguardsize): Likewise.
38423         * doc/posix-functions/pthread_attr_setguardsize.texi
38424         (pthread_attr_setguardsize): Likewise.
38425         * doc/posix-functions/pthread_attr_setstack.texi
38426         (pthread_attr_setstack): Likewise.
38427         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
38428         (pthread_attr_setstackaddr): Likewise.
38429         * doc/posix-functions/clock_getcpuclockid.texi
38430         (clock_getcpuclockid): Likewise.
38431         * doc/posix-functions/pthread_getcpuclockid.texi
38432         (pthread_getcpuclockid): Likewise.
38433         * doc/glibc-functions/error.texi (error): Likewise.
38434         * doc/glibc-functions/error_at_line.texi (error_at_line):
38435         Likewise.
38436         * doc/glibc-functions/error_message_count.texi
38437         (error_message_count): Likewise.
38438         * doc/glibc-functions/error_one_per_line.texi
38439         (error_one_per_line): Likewise.
38440         * doc/glibc-functions/error_print_progname.texi
38441         (error_print_progname): Likewise.
38442         * doc/posix-functions/pthread_condattr_getclock.texi
38443         (pthread_condattr_getclock): Likewise.
38444         * doc/posix-functions/pthread_condattr_setclock.texi
38445         (pthread_condattr_setclock): Likewise.
38446         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38447         Likewise.
38448         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38449         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38450         * doc/glibc-functions/get_current_dir_name.texi
38451         (get_current_dir_name): Likewise.
38452         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38453         Likewise.
38454         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38455         wrong return type.
38456         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38457         1.7.11.
38459 2012-02-29  Bruno Haible  <bruno@clisp.org>
38461         Tests for module 'hypotf'.
38462         * modules/hypotf-tests: New file.
38463         * tests/test-hypotf.c: New file.
38465         New module 'hypotf'.
38466         * lib/math.in.h (hypotf): New declaration.
38467         * lib/hypotf.c: New file.
38468         * m4/hypotf.m4: New file.
38469         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38471         REPLACE_HYPOTF.
38472         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38473         REPLACE_HYPOTF.
38474         * modules/hypotf: New file.
38475         * tests/test-math-c++.cc: Check the hypotf declaration.
38476         * doc/posix-functions/hypotf.texi: Mention the new module.
38478         hypot: Prepare for hypotf module.
38479         * m4/hypot.m4: New file.
38480         * modules/hypot (Files): Add m4/hypot.m4.
38481         (configure.ac): Invoke gl_FUNC_HYPOT.
38483 2012-02-29  Bruno Haible  <bruno@clisp.org>
38485         hypot tests: More tests.
38486         * tests/test-hypot.c: Include <float.h>.
38487         (main): Add tests about overflow and underflow.
38489 2012-02-29  Bruno Haible  <bruno@clisp.org>
38491         math code: Add comments.
38492         * lib/acosl.c: Add comment about related glibc source files.
38493         * lib/asinl.c: Likewise.
38494         * lib/atanl.c: Likewise.
38495         * lib/expl.c: Likewise.
38496         * lib/logl.c: Likewise.
38497         * lib/sincosl.c: Likewise.
38498         * lib/sinl.c: Likewise.
38499         * lib/tanl.c: Likewise.
38500         * lib/trigl.c: Likewise.
38501         * lib/cosl.c: Likewise. Fix comments.
38503 2012-02-28  Bruno Haible  <bruno@clisp.org>
38505         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38506         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38507         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38508         HUGE_VALL are defined.
38509         (numeric_equald): Renamed from numeric_equal.
38510         (numeric_equalf, numeric_equall): New functions.
38511         (main): Check also HUGE_VALF, HUGE_VALL.
38512         * modules/math-tests (Files): Add tests/macros.h.
38513         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38514         HUGE_VALL.
38516 2012-02-28  Bruno Haible  <bruno@clisp.org>
38518         doc: Move ISO C11 feature notes into POSIX chapters.
38519         * doc/posix-functions/aligned_alloc.texi: Renamed from
38520         doc/glibc-functions/aligned_alloc.texi.
38521         * doc/posix-functions/quick_exit.texi: Renamed from
38522         doc/glibc-functions/quick_exit.texi.
38523         * doc/posix-headers/uchar.texi: Renamed from
38524         doc/glibc-headers/uchar.texi.
38525         * doc/posix-functions/c16rtomb.texi: Renamed from
38526         doc/glibc-functions/c16rtomb.texi.
38527         * doc/posix-functions/c32rtomb.texi: Renamed from
38528         doc/glibc-functions/c32rtomb.texi.
38529         * doc/posix-functions/mbrtoc16.texi: Renamed from
38530         doc/glibc-functions/mbrtoc16.texi.
38531         * doc/posix-functions/mbrtoc32.texi: Renamed from
38532         doc/glibc-functions/mbrtoc32.texi.
38533         * doc/gnulib.texi: Update.
38534         (Glibc uchar.h): Remove section.
38535         Suggested by Eric Blake.
38537 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38539         stdnoreturn: port to MSVC better
38540         MSVC standard headers use __declspec(noreturn), so #define noreturn
38541         to empty on that platform.  Reported by Bruno Haible in
38542         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38543         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38544         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38546 2012-02-28  Bruno Haible  <bruno@clisp.org>
38548         doc: Mention new glibc headers and functions.
38549         * doc/glibc-headers/uchar.texi: New file.
38550         * doc/glibc-functions/aligned_alloc.texi: New file.
38551         * doc/glibc-functions/c16rtomb.texi: New file.
38552         * doc/glibc-functions/c32rtomb.texi: New file.
38553         * doc/glibc-functions/clock_adjtime.texi: New file.
38554         * doc/glibc-functions/fanotify_init.texi: New file.
38555         * doc/glibc-functions/fanotify_mark.texi: New file.
38556         * doc/glibc-functions/inet6_opt_append.texi: New file.
38557         * doc/glibc-functions/inet6_opt_find.texi: New file.
38558         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38559         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38560         * doc/glibc-functions/inet6_opt_init.texi: New file.
38561         * doc/glibc-functions/inet6_opt_next.texi: New file.
38562         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38563         * doc/glibc-functions/inet6_rth_add.texi: New file.
38564         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38565         * doc/glibc-functions/inet6_rth_init.texi: New file.
38566         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38567         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38568         * doc/glibc-functions/inet6_rth_space.texi: New file.
38569         * doc/glibc-functions/login.texi: New file.
38570         * doc/glibc-functions/mbrtoc16.texi: New file.
38571         * doc/glibc-functions/mbrtoc32.texi: New file.
38572         * doc/glibc-functions/name_to_handle_at.texi: New file.
38573         * doc/glibc-functions/ntp_gettimex.texi: New file.
38574         * doc/glibc-functions/open_by_handle_at.texi: New file.
38575         * doc/glibc-functions/prlimit.texi: New file.
38576         * doc/glibc-functions/process_vm_readv.texi: New file.
38577         * doc/glibc-functions/process_vm_writev.texi: New file.
38578         * doc/glibc-functions/recvmmsg.texi: New file.
38579         * doc/glibc-functions/scandirat.texi: New file.
38580         * doc/glibc-functions/sendmmsg.texi: New file.
38581         * doc/glibc-functions/setns.texi: New file.
38582         * doc/glibc-functions/timespec_get.texi: New file.
38583         * doc/gnulib.texi: Include them.
38584         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38585         sections.
38586         Reported by Eric Blake.
38588 2012-02-28  Bruno Haible  <bruno@clisp.org>
38590         Avoid compilation errors with MSVC option -fp:strict.
38591         * lib/floor.c: Use MSVC specific pragma fenv_access.
38592         * lib/ceil.c: Likewise.
38593         * lib/trunc.c: Likewise.
38594         * lib/round.c: Likewise.
38595         * lib/rint.c: Likewise.
38596         * lib/fma.c: Likewise.
38597         * lib/integer_length.c: Likewise.
38598         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38600         * tests/test-floor2.c: Likewise.
38601         * tests/test-floorf2.c: Likewise.
38602         * tests/test-ceil2.c: Likewise.
38603         * tests/test-ceilf2.c: Likewise.
38604         * tests/test-trunc2.c: Likewise.
38605         * tests/test-truncf2.c: Likewise.
38606         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38608 2012-02-27  Bruno Haible  <bruno@clisp.org>
38610         Tests for module 'sqrtl-ieee'.
38611         * modules/sqrtl-ieee-tests: New file.
38612         * tests/test-sqrtl-ieee.c: New file.
38614         New module 'sqrtl-ieee'.
38615         * modules/sqrtl-ieee: New file.
38617         Tests for module 'sqrt-ieee'.
38618         * modules/sqrt-ieee-tests: New file.
38619         * tests/test-sqrt-ieee.c: New file.
38621         New module 'sqrt-ieee'.
38622         * modules/sqrt-ieee: New file.
38624         Tests for module 'sqrtf-ieee'.
38625         * modules/sqrtf-ieee-tests: New file.
38626         * tests/test-sqrtf-ieee.c: New file.
38627         * tests/test-sqrt-ieee.h: New file.
38629         New module 'sqrtf-ieee'.
38630         * modules/sqrtf-ieee: New file.
38632 2012-02-27  Bruno Haible  <bruno@clisp.org>
38634         remainderl-ieee: Work around test failure on OSF/1.
38635         * m4/remainderl-ieee.m4: New file.
38636         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38637         present, test whether remainderl works with a zero second argument.
38638         Replace it if not.
38639         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38641         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38642         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38643         (Depends-on): Update conditions.
38644         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38645         (Depends-on): Add remainder-ieee.
38646         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38647         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38648         module.
38650         remainderf-ieee: Work around test failure on OSF/1.
38651         * m4/remainderf-ieee.m4: New file.
38652         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38653         present, test whether remainderf works with a zero second argument.
38654         Replace it if not.
38655         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38657         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38658         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38659         (Depends-on): Update conditions.
38660         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38661         (Depends-on): Add remainder-ieee.
38662         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38663         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38664         module.
38666         remainder-ieee: Work around test failure on OSF/1.
38667         * m4/remainder-ieee.m4: New file.
38668         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38669         present, test whether remainder works with a zero second argument.
38670         Replace it if not.
38671         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38673         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38674         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38675         (Depends-on): Update dependencies.
38676         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38677         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38678         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38680         Tests for module 'remainderl-ieee'.
38681         * modules/remainderl-ieee-tests: New file.
38682         * tests/test-remainderl-ieee.c: New file.
38684         New module 'remainderl-ieee'.
38685         * modules/remainderl-ieee: New file.
38687         Tests for module 'remainder-ieee'.
38688         * modules/remainder-ieee-tests: New file.
38689         * tests/test-remainder-ieee.c: New file.
38691         New module 'remainder-ieee'.
38692         * modules/remainder-ieee: New file.
38694         Tests for module 'remainderf-ieee'.
38695         * modules/remainderf-ieee-tests: New file.
38696         * tests/test-remainderf-ieee.c: New file.
38697         * tests/test-remainder-ieee.h: New file.
38699         New module 'remainderf-ieee'.
38700         * modules/remainderf-ieee: New file.
38702 2012-02-27  Bruno Haible  <bruno@clisp.org>
38704         modff, modfl: Fix configure syntax error.
38705         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38706         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38708 2012-02-27  Bruno Haible  <bruno@clisp.org>
38710         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38711         * m4/fmodl-ieee.m4: New file.
38712         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38713         whether fmodl works with zero arguments. Replace it if not.
38714         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38715         (Depends-on): Add fmod-ieee.
38716         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38717         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38719         fmodf-ieee: Work around test failure on OSF/1.
38720         * m4/fmodf-ieee.m4: New file.
38721         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38722         whether fmodf works with zero arguments. Replace it if not.
38723         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38725         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38726         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38727         (Depends-on): Update dependencies.
38728         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38729         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38730         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38732         fmodf-ieee: Work around test failure on MSVC 9.
38733         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38734         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38736         fmod-ieee: Work around test failures on OSF/1, mingw.
38737         * m4/fmod-ieee.m4: New file.
38738         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38739         whether fmod works with zero arguments. Replace it if not.
38740         * lib/math.in.h (fmod): New declaration.
38741         * lib/fmod.c: New file.
38742         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38744         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38745         * modules/fmod (Files): Add lib/fmod.c.
38746         (Depends-on): Add math, isinf, trunc, fma.
38747         (configure.ac): Arrange to compile lib/fmod.c if needed.
38748         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38749         m4/signbit.m4.
38750         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38751         * tests/test-math-c++.cc: Check the declaration of fmod.
38752         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38754         fmodl-ieee: Fix test failures.
38755         * lib/fmodl.c (fmodl): Treat Inf specially.
38756         * modules/fmodl (Depends-on): Add isinf.
38758         Tests for module 'fmodl-ieee'.
38759         * modules/fmodl-ieee-tests: New file.
38760         * tests/test-fmodl-ieee.c: New file.
38762         New module 'fmodl-ieee'.
38763         * modules/fmodl-ieee: New file.
38765         Tests for module 'fmod-ieee'.
38766         * modules/fmod-ieee-tests: New file.
38767         * tests/test-fmod-ieee.c: New file.
38769         New module 'fmod-ieee'.
38770         * modules/fmod-ieee: New file.
38772         Tests for module 'fmodf-ieee'.
38773         * modules/fmodf-ieee-tests: New file.
38774         * tests/test-fmodf-ieee.c: New file.
38775         * tests/test-fmod-ieee.h: New file.
38777         New module 'fmodf-ieee'.
38778         * modules/fmodf-ieee: New file.
38780 2012-02-27  Bruno Haible  <bruno@clisp.org>
38782         Tests for module 'rintl-ieee'.
38783         * modules/rintl-ieee-tests: New file.
38784         * tests/test-rintl-ieee.c: New file.
38786         New module 'rintl-ieee'.
38787         * modules/rintl-ieee: New file.
38789         Tests for module 'rint-ieee'.
38790         * modules/rint-ieee-tests: New file.
38791         * tests/test-rint-ieee.c: New file.
38793         New module 'rint-ieee'.
38794         * modules/rint-ieee: New file.
38796         Tests for module 'rintf-ieee'.
38797         * modules/rintf-ieee-tests: New file.
38798         * tests/test-rintf-ieee.c: New file.
38799         * tests/test-rint-ieee.h: New file.
38801         New module 'rintf-ieee'.
38802         * modules/rintf-ieee: New file.
38804 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38806         regex: re_search etc. should return -2 when memory exhausted
38807         This bug was uncovered when testing 'grep'.  Without the fix,
38808         re_search and friends return -1 when memory is exhausted, but -1
38809         means no match, and this causes grep to falsely report no-match
38810         instead of memory-exhaustion.  See
38811         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38812         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38813         trouble; this can occur if re_search_internal ran out of memory.
38815 2012-02-26  Bruno Haible  <bruno@clisp.org>
38817         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38818         * m4/modfl-ieee.m4: New file.
38819         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38820         whether modfl works with Inf. Replace it if not.
38821         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38823         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38824         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38825         (Depends-on): Update dependencies.
38826         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38827         m4/signbit.m4.
38828         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38829         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38831         modfl-ieee: Fix dependencies.
38832         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38834         modfl-ieee: Fix test failures.
38835         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38836         * modules/modfl (Depends-on): Add isfinite, isinf.
38838         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38839         * m4/modff-ieee.m4: New file.
38840         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38841         whether modff works with NaN and Inf. Replace it if not.
38842         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38844         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38845         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38846         (Depends-on): Update dependencies.
38847         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38848         m4/signbit.m4.
38849         (Depends-on): Add modf-ieee.
38850         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38851         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38853         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38854         * m4/modf-ieee.m4: New file.
38855         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38856         whether modf works with NaN and Inf. Replace it if not.
38857         * lib/math.in.h (modf): New declaration.
38858         * lib/modf.c: New file.
38859         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38861         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38862         * modules/modf (Files): Add lib/modf.c.
38863         (Depends-on): Add math, isfinite, trunc, isinf.
38864         (configure.ac): Addrange to compile lib/modf.c if needed.
38865         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38866         m4/signbit.m4.
38867         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38868         * tests/test-math-c++.cc: Check the declaration of modf.
38869         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38871         Tests for module 'modfl-ieee'.
38872         * modules/modfl-ieee-tests: New file.
38873         * tests/test-modfl-ieee.c: New file.
38875         New module 'modfl-ieee'.
38876         * modules/modfl-ieee: New file.
38878         Tests for module 'modf-ieee'.
38879         * modules/modf-ieee-tests: New file.
38880         * tests/test-modf-ieee.c: New file.
38882         New module 'modf-ieee'.
38883         * modules/modf-ieee: New file.
38885         Tests for module 'modff-ieee'.
38886         * modules/modff-ieee-tests: New file.
38887         * tests/test-modff-ieee.c: New file.
38888         * tests/test-modf-ieee.h: New file.
38890         New module 'modff-ieee'.
38891         * modules/modff-ieee: New file.
38893 2012-02-26  Bruno Haible  <bruno@clisp.org>
38895         Tests for module 'fabsl-ieee'.
38896         * modules/fabsl-ieee-tests: New file.
38897         * tests/test-fabsl-ieee.c: New file.
38899         New module 'fabsl-ieee'.
38900         * modules/fabsl-ieee: New file.
38902         Tests for module 'fabs-ieee'.
38903         * modules/fabs-ieee-tests: New file.
38904         * tests/test-fabs-ieee.c: New file.
38906         New module 'fabs-ieee'.
38907         * modules/fabs-ieee: New file.
38909         Tests for module 'fabsf-ieee'.
38910         * modules/fabsf-ieee-tests: New file.
38911         * tests/test-fabsf-ieee.c: New file.
38912         * tests/test-fabs-ieee.h: New file.
38914         New module 'fabsf-ieee'.
38915         * modules/fabsf-ieee: New file.
38917 2012-02-26  Bruno Haible  <bruno@clisp.org>
38919         Tests for module 'fmal-ieee'.
38920         * modules/fmal-ieee-tests: New file.
38921         * tests/test-fmal-ieee.c: New file.
38923         New module 'fmal-ieee'.
38924         * modules/fmal-ieee: New file.
38926         Tests for module 'fma-ieee'.
38927         * modules/fma-ieee-tests: New file.
38928         * tests/test-fma-ieee.c: New file.
38930         New module 'fma-ieee'.
38931         * modules/fma-ieee: New file.
38933         Tests for module 'fmaf-ieee'.
38934         * modules/fmaf-ieee-tests: New file.
38935         * tests/test-fmaf-ieee.c: New file.
38936         * tests/test-fma-ieee.h: New file.
38938         New module 'fmaf-ieee'.
38939         * modules/fmaf-ieee: New file.
38941 2012-02-26  Bruno Haible  <bruno@clisp.org>
38943         Tests for module 'ldexpl-ieee'.
38944         * modules/ldexpl-ieee-tests: New file.
38945         * tests/test-ldexpl-ieee.c: New file.
38947         New module 'ldexpl-ieee'.
38948         * modules/ldexpl-ieee: New file.
38950         Tests for module 'ldexp-ieee'.
38951         * modules/ldexp-ieee-tests: New file.
38952         * tests/test-ldexp-ieee.c: New file.
38954         New module 'ldexp-ieee'.
38955         * modules/ldexp-ieee: New file.
38957         Tests for module 'ldexpf-ieee'.
38958         * modules/ldexpf-ieee-tests: New file.
38959         * tests/test-ldexpf-ieee.c: New file.
38960         * tests/test-ldexp-ieee.h: New file.
38962         New module 'ldexpf-ieee'.
38963         * modules/ldexpf-ieee: New file.
38965 2012-02-26  Bruno Haible  <bruno@clisp.org>
38967         Refactor frexp*-ieee tests.
38968         * tests/test-frexp-ieee.h: New file.
38969         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38970         (main): Just call test_function.
38971         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38972         (main): Just call test_function.
38973         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38974         (main): Just call test_function.
38975         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38976         * modules/frexp-ieee-tests (Files): Likewise.
38977         * modules/frexpl-ieee-tests (Files): Likewise.
38979         Tests for module 'frexpl-ieee'.
38980         * modules/frexpl-ieee-tests: New file.
38981         * tests/test-frexpl-ieee.c: New file.
38983         New module 'frexpl-ieee'.
38984         * modules/frexpl-ieee: New file.
38986         Tests for module 'frexp-ieee'.
38987         * modules/frexp-ieee-tests: New file.
38988         * tests/test-frexp-ieee.c: New file.
38990         New module 'frexp-ieee'.
38991         * modules/frexp-ieee: New file.
38993         Tests for module 'frexpf-ieee'.
38994         * modules/frexpf-ieee-tests: New file.
38995         * tests/test-frexpf-ieee.c: New file.
38997         New module 'frexpf-ieee'.
38998         * modules/frexpf-ieee: New file.
39000 2012-02-26  Bruno Haible  <bruno@clisp.org>
39002         roundl-ieee tests: More tests.
39003         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39004         (main): Add tests for [MX] shaded specification in POSIX.
39005         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39006         (Depends-on): Add isnanl-nolibm.
39008         round-ieee tests: More tests.
39009         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39010         (main): Add tests for [MX] shaded specification in POSIX.
39011         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39012         (Depends-on): Add isnand-nolibm.
39014         roundf-ieee tests: More tests.
39015         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39016         (main): Add tests for [MX] shaded specification in POSIX.
39017         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39018         (Depends-on): Add isnanf-nolibm.
39020         truncl-ieee tests: More tests.
39021         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39022         (main): Add tests for [MX] shaded specification in POSIX.
39023         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39024         (Depends-on): Add isnanl-nolibm.
39026         trunc-ieee tests: More tests.
39027         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39028         (main): Add tests for [MX] shaded specification in POSIX.
39029         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39030         (Depends-on): Add isnand-nolibm.
39032         truncf-ieee tests: More tests.
39033         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39034         (main): Add tests for [MX] shaded specification in POSIX.
39035         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39036         (Depends-on): Add isnanf-nolibm.
39038         ceill-ieee tests: More tests.
39039         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39040         (main): Add tests for [MX] shaded specification in POSIX.
39041         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39042         (Depends-on): Add isnanl-nolibm.
39044         ceil-ieee tests: More tests.
39045         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39046         (main): Add tests for [MX] shaded specification in POSIX.
39047         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39048         (Depends-on): Add isnand-nolibm.
39050         ceilf-ieee tests: More tests.
39051         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39052         (main): Add tests for [MX] shaded specification in POSIX.
39053         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39054         (Depends-on): Add isnanf-nolibm.
39056         floorl-ieee tests: More tests.
39057         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39058         (main): Add tests for [MX] shaded specification in POSIX.
39059         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39060         (Depends-on): Add isnanl-nolibm.
39062         floor-ieee tests: More tests.
39063         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39064         (main): Add tests for [MX] shaded specification in POSIX.
39065         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39066         (Depends-on): Add isnand-nolibm.
39068         floorf-ieee tests: More tests.
39069         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39070         (main): Add tests for [MX] shaded specification in POSIX.
39071         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39072         (Depends-on): Add isnanf-nolibm.
39074 2012-02-26  Bruno Haible  <bruno@clisp.org>
39076         fpieee: More comments.
39077         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39079 2012-02-25  Bruno Haible  <bruno@clisp.org>
39081         Tests for module 'log10l'.
39082         * modules/log10l-tests: New file.
39083         * tests/test-log10l.c: New file.
39084         * tests/test-math-c++.cc: Check the declaration of log10l.
39086         New module 'log10l'.
39087         * lib/math.in.h (log10l): New declaration.
39088         * lib/log10l.c: New file.
39089         * m4/log10l.m4: New file.
39090         * modules/log10l: New file.
39091         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39093         HAVE_DECL_LOG10L.
39094         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39095         HAVE_DECL_LOG10L.
39096         * doc/posix-functions/log10l.texi: Mention the new module.
39098 2012-02-25  Bruno Haible  <bruno@clisp.org>
39100         fmodl, remainder*: Avoid wrong results due to rounding errors.
39101         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39102         expected bounds.
39103         * lib/remainderf.c (remainderf): Likewise.
39104         * lib/remainder.c (remainder): Likewise.
39105         * lib/remainderl.c (remainderl): Likewise.
39107 2012-02-25  Bruno Haible  <bruno@clisp.org>
39109         Tests for module 'remainderl'.
39110         * modules/remainderl-tests: New file.
39111         * tests/test-remainderl.c: New file.
39112         * tests/test-math-c++.cc: Check the declaration of remainderl.
39114         New module 'remainderl'.
39115         * lib/math.in.h (remainderl): New declaration.
39116         * lib/remainderl.c: New file.
39117         * m4/remainderl.m4: New file.
39118         * modules/remainderl: New file.
39119         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39121         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39122         HAVE_REMAINDERL.
39123         * doc/posix-functions/remainderl.texi: Mention the new module.
39125 2012-02-25  Bruno Haible  <bruno@clisp.org>
39127         Tests for module 'remainderf'.
39128         * modules/remainderf-tests: New file.
39129         * tests/test-remainderf.c: New file.
39130         * tests/test-math-c++.cc: Check the declaration of remainderf.
39132         New module 'remainderf'.
39133         * lib/math.in.h (remainderf): New declaration.
39134         * lib/remainderf.c: New file.
39135         * m4/remainderf.m4: New file.
39136         * modules/remainderf: New file.
39137         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39139         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39140         HAVE_REMAINDERF.
39141         * doc/posix-functions/remainderf.texi: Mention the new module.
39143 2012-02-25  Bruno Haible  <bruno@clisp.org>
39145         remainder: Support for MSVC.
39146         * lib/math.in.h (remainder): New declaration.
39147         * lib/remainder.c: New file.
39148         * m4/remainder.m4: New file.
39149         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39150         (Depends-on): Add math, round, fma.
39151         (configure.ac): Use results of gl_FUNC_REMAINDER.
39152         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39154         HAVE_DECL_REMAINDER.
39155         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39156         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39157         * tests/test-math-c++.cc: Check the declaration of remainder.
39158         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39159         problems are fixed.
39161 2012-02-25  Bruno Haible  <bruno@clisp.org>
39163         Tests for module 'fmodl'.
39164         * modules/fmodl-tests: New file.
39165         * tests/test-fmodl.c: New file.
39166         * tests/test-math-c++.cc: Check the declaration of fmodl.
39168         New module 'fmodl'.
39169         * lib/math.in.h (fmodl): New declaration.
39170         * lib/fmodl.c: New file.
39171         * m4/fmodl.m4: New file.
39172         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39174         REPLACE_FMODL.
39175         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39176         REPLACE_FMODL.
39177         * modules/fmodl: New file.
39178         * doc/posix-functions/fmodl.texi: Mention the new module.
39180 2012-02-25  Bruno Haible  <bruno@clisp.org>
39182         Tests for module 'modfl'.
39183         * modules/modfl-tests: New file.
39184         * tests/test-modfl.c: New file.
39185         * tests/test-math-c++.cc: Check the declaration of modfl.
39187         New module 'modfl'.
39188         * lib/math.in.h (modfl): New declaration.
39189         * lib/modfl.c: New file.
39190         * m4/modfl.m4: New file.
39191         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39193         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39194         * modules/modfl: New file.
39195         * doc/posix-functions/modfl.texi: Mention the new module.
39197 2012-02-25  Bruno Haible  <bruno@clisp.org>
39199         Tests for module 'fabsl'.
39200         * modules/fabsl-tests: New file.
39201         * tests/test-fabsl.c: New file.
39202         * tests/test-math-c++.cc: Check the declaration of fabsl.
39204         New module 'fabsl'.
39205         * lib/math.in.h (fabsl): New declaration.
39206         * lib/fabsl.c: New file.
39207         * m4/fabsl.m4: New file.
39208         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39210         REPLACE_FABSL.
39211         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39212         REPLACE_FABSL.
39213         * modules/fabsl: New file.
39214         * doc/posix-functions/fabsl.texi: Mention the new module.
39216 2012-02-25  Bruno Haible  <bruno@clisp.org>
39218         fabs tests: More tests.
39219         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39220         (zero): New variable.
39221         (main): Add tests for signed zero.
39222         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39224         fabsf tests: More tests.
39225         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39226         (zero): New variable.
39227         (main): Add tests for signed zero.
39228         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39230 2012-02-24  Bruno Haible  <bruno@clisp.org>
39232         atanl: Provide function definition on MSVC.
39233         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39234         function pointer.
39235         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39237 2012-02-24  Bruno Haible  <bruno@clisp.org>
39239         acosl: Provide function definition on MSVC.
39240         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39241         function pointer.
39242         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39244 2012-02-24  Bruno Haible  <bruno@clisp.org>
39246         asinl: Provide function definition on MSVC.
39247         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39248         function pointer.
39249         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39251 2012-02-24  Bruno Haible  <bruno@clisp.org>
39253         tanl: Provide function definition on MSVC.
39254         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39255         function pointer.
39256         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39258 2012-02-24  Bruno Haible  <bruno@clisp.org>
39260         cosl: Provide function definition on MSVC.
39261         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39262         function pointer.
39263         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39265 2012-02-24  Bruno Haible  <bruno@clisp.org>
39267         sinl: Provide function definition on MSVC.
39268         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39269         function pointer.
39270         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39272 2012-02-24  Bruno Haible  <bruno@clisp.org>
39274         logl: Provide function definition on MSVC.
39275         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39276         function pointer.
39277         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39279 2012-02-24  Bruno Haible  <bruno@clisp.org>
39281         expl: Provide function definition on MSVC.
39282         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39283         function pointer.
39284         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39286 2012-02-24  Bruno Haible  <bruno@clisp.org>
39288         sqrtl: Provide function definition on MSVC.
39289         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39290         a function pointer.
39291         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39293 2012-02-24  Bruno Haible  <bruno@clisp.org>
39295         ceill: Provide function definition on MSVC.
39296         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39297         used as a function pointer.
39298         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39300 2012-02-24  Bruno Haible  <bruno@clisp.org>
39302         floorl: Provide function definition on MSVC.
39303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39304         used as a function pointer.
39305         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39307 2012-02-24  Bruno Haible  <bruno@clisp.org>
39309         ceilf: Provide function definition on MSVC.
39310         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39311         used as a function pointer.
39312         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39314 2012-02-24  Bruno Haible  <bruno@clisp.org>
39316         floorf: Provide function definition on MSVC.
39317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39318         used as a function pointer.
39319         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39321 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39323         stdnoreturn: new module
39324         This implements a replacement for C11's <stdnoreturn.h>.
39325         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39326         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39327         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39328         * tests/test-stdnoreturn.c: New files.
39330 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39332         regex: fix false multibyte matches in some regular expressions
39333         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39334         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39335         * lib/regex_internal.c (re_string_skip_chars):
39336         Fix miscomputation of remain_len that may cause incomplete
39337         multi-byte character and false match.
39339 2012-02-24  Jim Meyering  <meyering@redhat.com>
39341         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39342         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39343         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39344         Remove now-unnecessary str''cmp obfuscation.
39345         Suggested by Akim Demaille.
39347 2012-02-24  Bruno Haible  <bruno@clisp.org>
39349         streq: Rename macro.
39350         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39351         * NEWS: Mention the change.
39352         * lib/mbrtowc.c (mbrtowc): Update.
39353         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39354         * lib/wcwidth.c (wcwidth): Update.
39355         Suggested by Akim Demaille and Jim Meyering.
39357 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39359         regex: fix typo in definition of MIN
39360         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39361         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39363 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39364             Bruno Haible  <bruno@clisp.org>
39366         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39367         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39368         entries into a stack-allocated buffer directly.
39369         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39371 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39372             Bruno Haible  <bruno@clisp.org>
39374         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39376          - There were several instances of this pattern:
39378              for (;;) {
39379                n = acl (f, GETACLCNT, 0, NULL);
39380                [ allocate an array A of size N ]
39381                if (acl (f, GETACL, n, a) == n)
39382                  break;
39383              }
39385            This loop might never terminate if some other process is constantly
39386            manipulating the file's ACL.  The loop should be rewritten to
39387            terminate.
39389          - The acl (... GETACLNT ...) call is merely an optimization; its value
39390            is merely a hint as to how big to make the array.  A better
39391            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39392            and just guess a reasonably-big size, growing the size and trying
39393            again if it's not large enough.  This guarantees termination, and
39394            saves a system call.
39396         * lib/acl-internal.h: Include <limits.h>.
39397         (MIN, SIZE_MAX): New macros.
39398         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39399         a stack-allocated buffer, and use malloc if it does not fit. Don't
39400         use GETACLCNT.
39401         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39403 2012-02-19  Bruno Haible  <bruno@clisp.org>
39405         acl: Fix endless loop on Solaris with vxfs.
39406         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39407         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39408         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39409         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39410         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39411         Reported by Bill Jones in
39412         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
39414 2012-02-19  Bruno Haible  <bruno@clisp.org>
39416         acl: Fix copy-acl test failure on Solaris 11.0.
39417         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
39418         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
39419         that this function returns 0 in some more cases.
39421 2012-02-19  Bruno Haible  <bruno@clisp.org>
39423         acl: Update doc references.
39424         * doc/acl-resources.txt: Update links to Solaris documentation.
39426 2012-02-19  Bruno Haible  <bruno@clisp.org>
39428         Fix test failure in many locales on Solaris 11.
39429         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
39430         'tr' arguments.
39431         * tests/test-pipe-filter-ii1.c (main): Likewise.
39432         * build-aux/bootstrap (check_versions): Run 'tr' command with range
39433         expressions in the C locale.
39434         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39435         * m4/host-os.m4 (gl_HOST_OS): Likewise.
39437 2012-02-19  Bruno Haible  <bruno@clisp.org>
39439         gnulib-tool: Improve usage message.
39440         * gnulib-tool (func_usage): Move doc of --help and --version to the
39441         section "Operation modes".
39443 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39445         README-release: make it easier to execute commands
39446         * top/README-release: break commands out on to separate lines.
39448 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39450         GNUmakefile: simplify detection of unconfigured trees
39451         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39452         whether the tree make is being run from is already configured or
39453         not.  Related simplifications.
39455 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39457         * gnulib-tool (func_usage): Document --help and --version.
39459 2012-02-11  Jim Meyering  <meyering@redhat.com>
39461         bootstrap: don't exit 0 upon gnulib-tool failure
39462         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39463         its exit status, not 0.
39465 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39467         README-release: various improvements
39468         * top/README-release: Give a command to push changes for the
39469         release.  Add "distcheck" to list of other pre-release checks.
39470         Fix instance of "make stable" which should be "make TYPE".
39472 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39474         maint: replace FSF snail-mail addresses with URLs
39475         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39476         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39477         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39478         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39479         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39480         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39481         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39482         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39483         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39484         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39485         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39486         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39487         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39488         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39489         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39490         * lib/glthread/thread.c, lib/glthread/thread.h:
39491         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39492         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39493         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39494         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39495         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39496         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39497         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39498         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39499         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39500         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39501         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39502         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39503         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39504         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39505         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39506         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39507         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39508         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39509         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39510         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39511         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39512         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39513         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39514         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39515         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39516         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39517         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39518         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39519         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39520         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39521         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39522         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39523         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39524         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39525         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39526         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39527         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39528         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39529         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39530         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39531         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39532         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39533         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39534         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39535         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39536         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39537         * tests/test-poll.c, tests/test-quotearg-simple.c:
39538         * tests/test-quotearg.c, tests/test-quotearg.h:
39539         * tests/test-round-ieee.c, tests/test-round1.c:
39540         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39541         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39542         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39543         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39544         * tests/test-strerror.c, tests/test-strerror_r.c:
39545         * tests/test-strsignal.c, tests/test-strverscmp.c:
39546         * tests/test-xmemdup0.c:
39547         Replace FSF snail mail addresses with URLs, as per GNU coding
39548         standards.  See glibc bug
39549         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39551 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39553         README-release: capitalize a word and split a line
39554         * top/README-release: Fix punctuation and spacing.
39556 2012-02-08  Akim Demaille  <demaille@gostai.com>
39558         fatal-signal: use C prototypes (with explicit void).
39559         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39560         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39562 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39564         regex: spelling fix
39565         * lib/regexec.c: spelling fix
39567         regex: rely on stdint.h for SIZE_MAX
39568         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39570 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39572         regex: merge glibc changes
39574         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39575         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39576         (init_word_char): Work even if bitset words are not exactly 32 or
39577         64 bits wide.  Don't assume there are no padding bits.
39578         * lib/regex.c [_LIBC]: Do not include <config.h>.
39579         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39580         and -Wtype-limits.
39581         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39582         needless disagreement with glibc.  All uses changed.  Define it to
39583         1 only if _GNU_SOURCE, to match glibc.
39584         (_REG_RM_NAME): Remove; no longer needed, since the names in
39585         question are now all protected by __USE_GNU.
39586         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39587         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39588         * lib/regex_internal.h (MIN): New macro.
39590         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39591         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39593         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39594         * lib/regex_internal.c (re_string_fetch_byte_case):
39595         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39596         is miscompiled, and it turns out it is because of an incorrect
39597         attribute on re_string_fetch_byte_case.  Unlike
39598         re_string_peek_byte_case, this one is really not pure, it modifies
39599         memory (increments pstr->cur_idx), and with the pure attribute GCC
39600         assumed it doesn't and it cached the presumed value of
39601         regexp->cur_idx in a variable across the
39602          for (;; ++i)
39603            {
39604              if (i >= BRACKET_NAME_BUF_SIZE)
39605                return REG_EBRACK;
39606              if (token->type == OP_OPEN_CHAR_CLASS)
39607                ch = re_string_fetch_byte_case (regexp);
39608              else
39609                ch = re_string_fetch_byte (regexp);
39610              if (re_string_eoi(regexp))
39611                return REG_EBRACK;
39612              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39613                break;
39614              elem->opr.name[i] = ch;
39615            }
39617         2011-11-29 Andreas Schwab <schwab@redhat.com>
39618         * lib/regcomp.c (build_equiv_class):
39619         Fix access after end of search string in regex matcher.
39621         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39622         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39624         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39625         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39627         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39628         * lib/regcomp.c (parse_branch, parse_sub_exp):
39629         More regex memory leak fixes and tests.
39630         (parse_sub_exp, parse_bracket_exp):
39631         Fix memory leak for some invalid regular expressions.
39633         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39634         * lib/regex_internal.c, lib/regexec.c:
39635         Fix unnecessary overallocation due to incomplete character.  When
39636         incomplete characters are found at the end of a string the code
39637         ran amok and allocated lots of memory.  Stricter limits are now in
39638         place.
39640         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39641         * lib/regex.h: Update documentation.
39643         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39644         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39646         2010-05-05 Andreas Schwab <schwab@redhat.com>
39647         * lib/regexec.c (find_collation_sequence_value):
39648         Fix lookup of collation sequence value during regexp matching.
39650         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39651         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39653         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39654         * lib/regex.h: Cleanup namespace.
39656         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39657         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39659         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39660         * lib/regex_internal.h: Prevent some declarations and definitions
39661         to be seen when used in tests.
39663         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39664         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39665         __libc_lock_* macros if not _LIBC.
39666         (struct re_dfa_t): Add lock.
39668 2012-02-07  Eric Blake  <eblake@redhat.com>
39670         maint.mk: also prohibit lower-case @var@
39671         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39672         lower case, like @top_srcdir@.
39674 2012-02-04  Eric Blake  <eblake@redhat.com>
39676         canonicalize: avoid uninitialized memory use
39677         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39678         random '/' left in dest.
39679         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39681 2012-02-04  Bruno Haible  <bruno@clisp.org>
39683         isatty: Fix test failure of ptsname_r on native Windows.
39684         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39685         and don't set errno.
39686         (isatty): Test first whether fd is valid. Set errno when returning 0.
39688 2012-02-04  Bruno Haible  <bruno@clisp.org>
39690         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39691         * tests/test-spawn-pipe-main.c: Include progname.h.
39692         (main): Invoke set_program_name.
39693         * modules/spawn-pipe-tests (Depends-on): Add progname.
39695         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39696         * tests/test-nonblocking-socket-main.c: Include progname.h.
39697         (main): Invoke set_program_name.
39698         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39700         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39701         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39702         (main): Invoke set_program_name.
39703         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39705 2012-02-04  Eric Blake  <eblake@redhat.com>
39707         canonicalize-lgpl: fix // handling
39708         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39710         canonicalize: fix // handling
39711         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39712         /// to //, since only // is special.
39714 2012-02-04  Bruno Haible  <bruno@clisp.org>
39716         ioctl: Fix test failure on native Windows.
39717         * lib/ioctl.c: Include msvc-nothrow.h.
39718         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39720 2012-02-04  Bruno Haible  <bruno@clisp.org>
39722         fsync: Avoid test failure on native Windows.
39723         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39724         read-only.
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 [OpenBSD]: When /usr/include/pthread.h is
39730         currently being included, just include the system's <sys/select.h>.
39732 2012-02-04  Bruno Haible  <bruno@clisp.org>
39734         sys_select: Avoid syntax error on OpenBSD 5.0.
39735         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39736         <sys/select.h>, not before.
39737         Reported by Jiri B <jirib@devio.us>.
39739 2012-02-04  Bruno Haible  <bruno@clisp.org>
39741         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39742         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39743         global variables.
39744         * tests/test-get-rusage-data.c (main): Likewise.
39745         Reported by Jim Meyering.
39747 2012-02-04  Bruno Haible  <bruno@clisp.org>
39749         stdioext: Fix last commit.
39750         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39752 2012-02-03  Bruno Haible  <bruno@clisp.org>
39754         stdioext: Add tentative support for Plan9.
39755         * lib/stdio-impl.h: Include <errno.h>.
39756         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39757         * lib/freadable.c (freadable): Likewise.
39758         * lib/fwritable.c (fwritable): Likewise.
39759         * lib/fbufmode.c (fbufmode): Likewise.
39760         * lib/freading.c (freading): Likewise.
39761         * lib/fwriting.c (fwriting): Likewise.
39762         * lib/freadptr.c (freadptr): Likewise.
39763         * lib/freadseek.c (freadptrinc): Likewise.
39764         * lib/freadahead.c (freadahead): Likewise.
39765         * lib/fpurge.c (fpurge): Likewise.
39766         * lib/fseeko.c (rpl_fseeko): Likewise.
39767         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39768         Reported by Jens Staal <staal1978@gmail.com>.
39770 2012-02-02  Jim Meyering  <meyering@redhat.com>
39772         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39773         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39774         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39775         not even to try to add the attribute.  Instead, add a pragma to suppress
39776         the suggestion/warning.
39778 2012-01-31  Karl Berry  <karl@gnu.org>
39780         setstate doc: typo.
39781         * doc/posix-functions/setstate.texi (setstate): { not (.
39783 2012-01-31  Bruno Haible  <bruno@clisp.org>
39785         popen: Make more robust on Windows.
39786         * lib/popen.c: On native Windows, use the _popen based code even if
39787         HAVE_POPEN is set.
39788         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39789         environment variable on native Windows.
39791 2012-01-30  Bruno Haible  <bruno@clisp.org>
39793         pclose: Fix typo.
39794         * lib/stdio.in.h (pclose): Fix typo in warning message.
39796 2012-01-30  Bruno Haible  <bruno@clisp.org>
39798         doc about getlogin_r, setstate.
39799         * doc/posix-functions/getlogin_r.texi: List the incompatible
39800         declaration problem under "not fixed by gnulib".
39801         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39802         problem on Solaris 11 and other platforms.
39804 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39805             Bruno Haible  <bruno@clisp.org>
39807         poll tests: Make test more robust.
39808         * tests/test-poll.c: Include macros.h.
39809         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39810         return value of various I/O operations.
39811         * modules/poll-tests (Files): Add tests/macros.h.
39813 2012-01-30  Bruno Haible  <bruno@clisp.org>
39815         sys_stat: Fix support for mingw64 and MSVC.
39816         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39817         header files already do it.
39818         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39819         stat itself.
39820         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39822 2012-01-30  Bruno Haible  <bruno@clisp.org>
39824         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39826         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39828 2012-01-29  Bruno Haible  <bruno@clisp.org>
39830         quotearg: Fix test failure on MacOS X 10.5.
39831         * tests/test-quotearg-simple.c: Include localcharset.h.
39832         (main): If the locale encoding is not ASCII, bypass the tests of
39833         locale_quoting_style and clocale_quoting_style.
39834         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39836 2012-01-29  Jim Meyering  <meyering@redhat.com>
39838         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39839         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39840         detect uses of canonicalize_file_name.
39842 2012-01-28  Bruno Haible  <bruno@clisp.org>
39844         test-framework-sh: Fix test failure with AIX 7.1 diff.
39845         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39846         in column 1, like 'diff -c' does.
39847         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39848         whether 'diff -u' is used. Instead, test whether the output contains
39849         some '@' character.
39851 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39853         strtoimax: eliminate need for stdint.h, inttypes.h checks
39854         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39855         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39856         the prerequisites for a recently-introduced strtoimax test.
39857         I guess this might cause strtoimax to be replaced when not
39858         strictly necessary on older hosts, but this shouldn't introduce
39859         any bugs and it should make Emacs 'configure' faster on typical
39860         modern hosts.  Problem discovered when importing the latest gnulib
39861         to an Emacs test version.
39862         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39864 2012-01-28  Bruno Haible  <bruno@clisp.org>
39866         sys_time: Override 'struct timeval' on some native Windows platforms.
39867         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39868         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39869         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39870         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39871         needs to be overridden.
39872         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39873         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39874         * tests/test-sys_select.c: Check that the tv_sec member has the same
39875         size as a 'time_t'.
39876         * tests/test-sys_time.c: Likewise.
39877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39878         is set, set also REPLACE_GETTIMEOFDAY.
39879         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39880         convert the resulting 'struct timeval' before returning.
39881         * lib/select.c: Include <sys/time.h>.
39882         (select, timeval): Undefine at the right place.
39883         * modules/select (Depends-on): Add sys_time.
39884         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39885         some Windows platforms.
39886         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39888 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39890         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39891         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39892         an integer.
39893         * lib/fcntl.c (dupfd): Likewise.
39894         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39896 2012-01-28  Bruno Haible  <bruno@clisp.org>
39898         fcntl: Avoid compilation error on native Windows.
39899         * modules/fcntl (Depends-on): Add 'close'.
39901 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39903         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39904         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39905         pointer to an integer.
39906         * lib/poll.c (IsConsoleHandle): Likewise.
39907         * lib/isatty.c (IsConsoleHandle): Likewise.
39909 2012-01-28  Jim Meyering  <meyering@redhat.com>
39911         doc: clarify README-release
39912         * top/README-release: Clarify: you should make a point to have
39913         the latest stable versions of build tools in your PATH, and the
39914         reference to buildreq is solely for its list of tool names, not
39915         for its minimal-functional version numbers.
39916         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39918         maint.mk: use more readable (yet functionally equivalent) quoting
39919         It is common to quote a single quote in a single quoted string like
39920         this:  '...'\''...'.  Unless you know the idiom, that looks like
39921         gibberish, so prefer to double-quote the string when possible.
39922         Then you can use a more readable, lone single quote: "...'..."
39923         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39924         "don't" is more readable than the equivalent 'don'\''t'.
39925         (sc_cast_of_x_alloc_return_value): Likewise.
39926         (sc_cast_of_alloca_return_value): Likewise.
39927         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39928         rather than '\'':'\''.
39930 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39932         stdalign: relax _Alignof and tighten _Alignas test
39933         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39934         as it was too strict: alignof must divide offsetof, but it need
39935         not equal offsetof.  Inspired by Joseph S. Myers's comment
39936         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39937         Conversely, tighten the _Alignas test a bit, as the resulting
39938         alignment must be exactly 8.
39940 2012-01-27  Bruno Haible  <bruno@clisp.org>
39942         stdalign: Document the last change.
39943         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39945 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39947         stdalign: check that alignof and offsetof are consistent
39948         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39949         Problem reported for gnulib by Richard W.M. Jones in
39950         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39952 2012-01-27  Jim Meyering  <meyering@redhat.com>
39954         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39955         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39956         convert a sequence with gaps to the minimal containing range.
39957         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39958         * tests/test-update-copyright.sh: Test for this.
39959         The FSF confirmed it is ok to do this, assuming there is at
39960         least one significant change per year in the affected range:
39961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39963 2012-01-26  Bruno Haible  <bruno@clisp.org>
39965         pipe2: refine doc about thread-safety
39966         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39967         multithread-safety problem.
39968         * doc/glibc-functions/accept4.texi: Likewise.
39970 2012-01-26  Bruno Haible  <bruno@clisp.org>
39972         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39973         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39974         In the test program, include <fcntl.h>, for O_RDONLY.
39976 2012-01-26  Eric Blake  <eblake@redhat.com>
39978         pipe2: document lack of thread-safety in replacement
39979         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39980         issue in replacement.
39981         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39982         Based on a report by Eric Wong.
39984 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39985             Bruno Haible  <bruno@clisp.org>
39987         malloca: Avoid warnings on x86_64 mingw64.
39988         * lib/malloca.c: Include <stdint.h>.
39989         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39990         * modules/malloca (Depends-on): Add stdint.
39991         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39993 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39995         obstack: remove __STDC__ conditionals
39996         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39997         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39998         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39999         m4/include_next.m4 as the only gnulib-maintained places that still
40000         refer to __STDC__.
40002 2012-01-24  Bruno Haible  <bruno@clisp.org>
40004         havelib: Modern quoting.
40005         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40006         the recent change to the GNU coding standards.
40008 2012-01-24  Bruno Haible  <bruno@clisp.org>
40010         stdint: Improve support for Android.
40011         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40012         Reported by Simon Josefsson <simon@josefsson.org>.
40014 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40016         doc: omit trailing empty lines from INSTALL etc.
40017         * doc/Makefile (INSTALL): Omit trailing empty lines.
40018         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40019         omit trailing empty lines.  This simplifies the build procedure.
40021 2012-01-23  Jim Meyering  <meyering@redhat.com>
40023         tests: avoid spurious warnings about gl_sockets_startup
40024         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40025         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40026         reporting a "statement with no effect".
40027         * tests/test-accept.c (main): Mark as "(void)".
40028         * tests/test-accept4.c (main): Likewise.
40029         * tests/test-bind.c (main): Likewise.
40030         * tests/test-connect.c (main): Likewise.
40031         * tests/test-getpeername.c (main): Likewise.
40032         * tests/test-getsockname.c (main): Likewise.
40033         * tests/test-getsockopt.c (main): Likewise.
40034         * tests/test-listen.c (main): Likewise.
40035         * tests/test-recv.c (main): Likewise.
40036         * tests/test-recvfrom.c (main): Likewise.
40037         * tests/test-send.c (main): Likewise.
40038         * tests/test-sendto.c (main): Likewise.
40039         * tests/test-setsockopt.c (main): Likewise.
40040         * tests/test-shutdown.c (main): Likewise.
40042 2012-01-21  Bruno Haible  <bruno@clisp.org>
40044         locale-fr.m4: Fix for Android.
40045         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40046         failure of the test program on Bionic libc.
40048 2012-01-21  Jim Meyering  <meyering@redhat.com>
40050         bootstrap: fail when bootstrap_post_import_hook fails
40051         Otherwise, it's far too easy to miss diagnostics emitted
40052         between gnulib-tool's output and that of running configure.
40053         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40055 2012-01-17  Jim Meyering  <meyering@redhat.com>
40057         maint: enable sc_trailing_blank
40058         * build-aux/pmccabe.css: Remove trailing blanks.
40059         * doc/acl-cygwin.txt: Likewise.
40060         * doc/gnu-oids.texi: Likewise
40061         * cfg.mk: Enable sc_trailing_blank.
40062         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40064 2012-01-17  Jim Meyering  <meyering@redhat.com>
40066         maint: enable sc_prohibit_openat_without_use
40067         * cfg.mk: Enable sc_prohibit_openat_without_use.
40068         Exempt lib/selinux-at.c.
40070 2012-01-17  Jim Meyering  <meyering@redhat.com>
40072         maint: enable sc_prohibit_cloexec_without_use
40073         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40074         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40076 2012-01-17  Jim Meyering  <meyering@redhat.com>
40078         maint: enable sc_prohibit_intprops_without_use
40079         * cfg.mk: Enable sc_prohibit_intprops_without_use
40080         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40082 2012-01-17  Jim Meyering  <meyering@redhat.com>
40084         maint: enable sc_prohibit_hash_pjw_without_use
40085         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40086         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40087         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40088         following " (".
40090 2012-01-17  Jim Meyering  <meyering@redhat.com>
40092         maint: enable double-word-prohibiting rule
40093         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40094         Exempt three files.
40096 2012-01-17  Jim Meyering  <meyering@redhat.com>
40098         maint: remove empty lines at EOF, but excluding modules/*
40099         Apply syntax rules at home as well as abroad.  Most changes
40100         were induced by running this:
40101           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40102             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40103             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40104         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40105         Exempt modules/* and two binary files.
40106         Also exempt doc/INSTALL*, per request from Bruno Haible.
40107         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40108         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40109         * doc/Copyright/request-assign.future: Likewise.
40110         * doc/Copyright/request-disclaim.changes: Likewise.
40111         * doc/INSTALL: Likewise.
40112         * doc/INSTALL.ISO: Likewise.
40113         * doc/INSTALL.UTF-8: Likewise.
40114         * doc/acl-cygwin.txt: Likewise.
40115         * doc/acl-resources.txt: Likewise.
40116         * doc/fdl-1.2.texi: Likewise.
40117         * doc/fdl-1.3.texi: Likewise.
40118         * doc/fdl.texi: Likewise.
40119         * lib/argp-pin.c: Likewise.
40120         * lib/round.c: Likewise.
40121         * lib/unicase/u16-totitle.c: Likewise.
40122         * lib/unictype/block_test.c: Likewise.
40123         * lib/uninorm/canonical-decomposition.c: Likewise.
40124         * m4/README: Likewise.
40125         * m4/relocatable-lib.m4: Likewise.
40126         * tests/test-isnand-nolibm.c: Likewise.
40127         * tests/test-isnand.c: Likewise.
40128         * tests/uninorm/NormalizationTest.txt: Likewise.
40130 2012-01-17  Jim Meyering  <meyering@redhat.com>
40132         maint: add framework to run syntax-check rules against gnulib sources
40133         * cfg.mk: New file, to disable all currently-failing tests.
40134         We'll enable them one by one, as they are made to pass.
40135         * Makefile (sc_maint): New rule.
40137 2012-01-21  Bruno Haible  <bruno@clisp.org>
40139         stdint: Add support for Android.
40140         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40141         include the system's <stdint.h>.
40142         Reported by Simon Josefsson <simon@josefsson.org>.
40144 2012-01-19  Jim Meyering  <meyering@redhat.com>
40146         bootstrap: add bootstrap_post_import_hook
40147         Bison does still need something like the gnulib_mk_hook whose
40148         invocation I had to remove along with slurp in commit 767ccd40.
40149         Technically, we could get along without it, but doing so would
40150         have required living with a warning and a mandatory post-bootstrap
40151         automake rerun.
40152         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40153         (bootstrap_post_import_hook): New function.
40154         Invoke it after gnulib-tool --import and before autoreconf.
40156 2012-01-18  Jim Meyering  <meyering@redhat.com>
40158         gitlog-to-changelog: don't use "no_"-prefixed variable name
40159         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40160         to enable both --cluster and --no-cluster.  Change variable name,
40161         s/\$no_cluster/$cluster/, and reverse usage to match.
40163         gitlog-to-changelog: use "||", not "or" in expressions
40164         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40165         expressions.
40167 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40169         gitlog-to-changelog: new option --no-cluster
40170         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40171         clustering of adjacent commit messages.
40173 2012-01-17  Jim Meyering  <meyering@redhat.com>
40175         maint: spell file systems with two words, not one
40176         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40177         two words, not one.
40179 2012-01-16  Jim Meyering  <meyering@redhat.com>
40181         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40182         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40184 2012-01-16  Eric Blake  <eblake@redhat.com>
40186         bootstrap: cater to autoconf 2.59
40187         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40188         is not available.
40190         bootstrap: properly check for libtool
40191         * build-aux/bootstrap (libtoolize): Also run libtool when older
40192         usage is detected.
40194 2012-01-15  Bruno Haible  <bruno@clisp.org>
40196         Improve support for MSVC 9.
40197         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40198         clashes on MSVC.
40199         * lib/fcntl.in.h: Likewise.
40200         * lib/stdlib.in.h: Likewise.
40201         * lib/sys_stat.in.h: Likewise.
40203 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40205         gnupload: we hold the master copy of this script now
40206         For motivation and more information, see:
40207         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40208         * build-aux/gnupload: Make it clear in the heading comments that the
40209         master copy of this file is maintained by gnulib.  Since we are at
40210         it, bump its copyright year and ...
40211         ($scriptversion): ... the date in its version.
40212         ($usage): Patches and bug reports should be sent to the gnulib list,
40213         not the automake one.
40214         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40215         anymore.
40217 2012-01-15  Bruno Haible  <bruno@clisp.org>
40219         Fix module 'random'.
40220         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40221         initstate, setstate are declared.
40223 2012-01-14  Bruno Haible  <bruno@clisp.org>
40225         Tests for module 'random'.
40226         * modules/random-tests: New file.
40227         * tests/test-random.c: New file, based on tests/test-random_r.c.
40229         New module 'random'.
40230         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40231         declarations.
40232         * lib/random.c: New file, based on glibc/stdlib/random.c.
40233         * m4/random.m4: New file.
40234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40235         HAVE_RANDOM.
40236         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40237         * modules/random: New file.
40238         * config/srclist.txt: Add an entry for random.c.
40239         * doc/posix-functions/random.texi: Mention the 'random' module.
40240         * doc/posix-functions/initstate.texi: Likewise.
40241         * doc/posix-functions/setstate.texi: Likewise.
40242         * doc/posix-functions/srandom.texi: Likewise.
40244 2012-01-12  Bruno Haible  <bruno@clisp.org>
40246         random_r: Use common idioms.
40247         * lib/random_r.c: Include <stdlib.h> first.
40249         random_r: Override incompatible API on AIX, OSF/1.
40250         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40251         Override the system function if REPLACE_RANDOM_R is 1.
40252         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40253         and OSF/1, set REPLACE_RANDOM_R.
40254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40255         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40256         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40257         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40258         * doc/glibc-functions/random_r.texi: Likewise.
40259         * doc/glibc-functions/setstate_r.texi: Likewise.
40261         random_r: Support for MSVC 9.
40262         * lib/random_r.c: Include stdint.h, not inttypes.h.
40264 2012-01-12  Eric Blake  <eblake@redhat.com>
40266         inet_ntop: guard extra work by IF_LINT
40267         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40268         better code generation when not checking for warnings.
40269         Suggested by Paul Eggert and Jim Meyering.
40271         strptime: fix regression on mingw
40272         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40273         Fix regression.  Reported by Bruno Haible.
40275 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40276             Bruno Haible  <bruno@clisp.org>
40278         copy-file: add error-code-returning variant.
40279         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40280         (qcopy_file_preserving): New declaration.
40281         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40282         copy_file_preserving. Change return type to 'int'. Don't emit an error
40283         message here.
40284         (copy_file_preserving): New function.
40285         * tests/test-copy-file.c: Include <stdlib.h>.
40286         (main): Test qcopy_file_preserving if the environment variable
40287         NO_STDERR_OUTPUT is set.
40288         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40289         with NO_STDERR_OUTPUT
40290         * tests/test-copy-file-2.sh: Likewise.
40292 2012-01-10  Bruno Haible  <bruno@clisp.org>
40294         copy-file: Use 'quote' module consistently.
40295         * lib/copy-file.c (copy_file_preserving): Use quote().
40297         copy-file: Refactor.
40298         * lib/copy-file.c: Include quote.h.
40299         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40300         message here.
40301         * modules/copy-file (Depends-on): Add quote.
40303         acl: Export qcopy_acl.
40304         * lib/acl.h (qcopy_acl): New declaration.
40305         * lib/copy-acl.c (qcopy_acl): Make non-static.
40307         acl: Rename a local variable.
40308         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40310         acl: Align return values of copy_acl and qcopy_acl.
40311         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40312         maybe < -1.
40314 2012-01-11  Eric Blake  <eblake@redhat.com>
40316         strptime: silence gcc warnings
40317         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40318         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40319         Reported by Daniel P. Berrange.
40321         inet_ntop: silence gcc warning
40322         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40323         Reported by Daniel P. Berrange.
40325 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40327         getloadavg test: skip the test on GNU/Linux without /proc mounted
40328         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40329         file.  When /proc is not mounted, it always fails with ENOENT.
40330         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40331         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40333 2012-01-10  Bruno Haible  <bruno@clisp.org>
40335         regex: Avoid link error on MSVC 9.
40336         * modules/regex (Depends-on): Add wctype.
40338 2012-01-10  Bruno Haible  <bruno@clisp.org>
40340         doc: Mention --with-tests option.
40341         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40342         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40343         --with-tests.
40344         Reported by Reuben Thomas.
40346 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40348         users.txt: order package names lexicographically.
40349         * users.txt: Order package names lexicographically.
40351 2012-01-10  Jim Meyering  <meyering@redhat.com>
40353         maint.mk: fix description in comment
40354         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40356         ignore-value: remove deprecated ignore_ptr function
40357         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40358         * NEWS: Note this.
40360 2012-01-09  Jim Meyering  <meyering@redhat.com>
40362         test-init.sh: avoid a subshell
40363         * tests/test-init.sh: Remove protective subshell.
40364         Suggested by Bernhard Voelker.  While a subshell is normally
40365         required to protect against older shells (Solaris, FreeBSD) that
40366         warn about a missing program before performing redirection, the
40367         shell-selection tests performed by init.sh probably exclude any
40368         offending shell.
40370 2012-01-08  Bruno Haible  <bruno@clisp.org>
40372         setlocale tests: Avoid test failure on Solaris 11.0.
40373         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40374         variable.
40376 2012-01-08  Bruno Haible  <bruno@clisp.org>
40378         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40379         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40380         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40381         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40382         macro.
40383         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40384         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40385         * lib/spawn_faction_addopen.c: Add workaround implementation if
40386         HAVE_WORKING_POSIX_SPAWN.
40387         * modules/spawn (Makefile): Substitute
40388         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40389         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40390         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40391         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40392         (Depends-on): Update conditions.
40393         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40394         the Solaris 11 bug.
40396 2012-01-08  Bruno Haible  <bruno@clisp.org>
40398         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40399         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40400         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40401         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40402         macro.
40403         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40404         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40405         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40406         HAVE_WORKING_POSIX_SPAWN.
40407         * modules/spawn (Makefile): Substitute
40408         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40409         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40410         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40411         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40412         (Depends-on): Update conditions.
40413         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40414         the Solaris 11 bug.
40416 2012-01-08  Bruno Haible  <bruno@clisp.org>
40418         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
40419         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40420         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40421         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
40422         HAVE_WORKING_POSIX_SPAWN.
40423         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
40424         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
40425         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40426         * lib/spawn_faction_addclose.c: Add workaround implementation if
40427         HAVE_WORKING_POSIX_SPAWN.
40428         * modules/spawn (Makefile): Substitute
40429         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40430         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
40431         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
40432         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40433         (Depends-on): Update conditions.
40434         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40435         the Solaris 11 bug.
40437 2012-01-08  Bruno Haible  <bruno@clisp.org>
40439         doc: Update for Solaris 11.0.
40440         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40441         * m4/printf.m4: Update comments.
40443 2012-01-08  Bruno Haible  <bruno@clisp.org>
40445         mktime: Avoid compilation error on Solaris 11.
40446         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40448 2012-01-08  Bruno Haible  <bruno@clisp.org>
40450         doc: Small fix.
40451         * doc/posix-headers/nl_types.texi: Correct platforms list.
40453 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40455         Add lgpl-3.0 module.
40456         * MODULES.html.sh (Support for building documentation): Add
40457         lgpl-3.0.
40458         * modules/lgpl-3.0: New file.
40460 2012-01-08  Jim Meyering  <meyering@redhat.com>
40462         select.c: indent with spaces, not TABs
40463         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40465 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40467         quotearg: do not use grave accent for left quote
40468         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40469         locale_quoting_style.
40470         (quotearg_buffer_restyled): Fix example.
40471         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40473 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40475         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40476         Most programs do not have translation catalogs for English and much
40477         less separate catalogs for British and American English.  Drop the
40478         suggestion to translators about these two, and provide it
40479         automatically for Unicode locales.  Like most programs, even those
40480         using American English, we use single quotation marks.  This conflicts
40481         with the American typographic convention, but works better when you
40482         cite the entire error message within double quotes.  It also tries not
40483         to clash with established practice and with what non-gnulib programs
40484         will usually do.
40485         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40486         using an UTF-8 or GB-18030 locale.  The list of other locales with
40487         quotes was provided by Bruno Haible.
40488         (quotearg_buffer_restyled): Adjust instructions to translators.
40489         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40490         text, since this would be wrong when using Unicode.
40491         * modules/quotearg: Depend on c-strcaseeq.
40493 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40495         quotearg: fix Wikipedia link
40496         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40498 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40500         Fix for mingw with MSVC9.
40501         * m4/ld-version-script.m4: Check that compiler rejects version
40502         scripts with syntax errors.  Reported by Bruno Haible
40503         <bruno@clisp.org>.
40505 2012-01-06  Bruno Haible  <bruno@clisp.org>
40507         Talk about "native Windows API", not "Woe32".
40508         * lib/accept4.c: Update comments to mention native Windows.
40509         * lib/execute.c: Likewise.
40510         * lib/fatal-signal.c: Likewise.
40511         * lib/localcharset.c: Likewise.
40512         * lib/nanosleep.c: Likewise.
40513         * lib/nl_langinfo.c: Likewise.
40514         * lib/pclose.c: Likewise.
40515         * lib/pipe-filter-gi.c: Likewise.
40516         * lib/pipe-filter-ii.c: Likewise.
40517         * lib/pipe.c: Likewise.
40518         * lib/pipe2.c: Likewise.
40519         * lib/popen.c: Likewise.
40520         * lib/progreloc.c: Likewise.
40521         * lib/relocatable.c: Likewise.
40522         * lib/sigaction.c: Likewise.
40523         * lib/sigprocmask.c: Likewise.
40524         * lib/spawn-pipe.h: Likewise.
40525         * lib/spawn-pipe.c: Likewise.
40526         * lib/spawni.c: Likewise.
40527         * lib/stat-time.h: Likewise.
40528         * lib/w32spawn.h: Likewise.
40529         * tests/test-isatty.c: Likewise.
40530         * lib/config.charset: More comments.
40531         * doc/gnulib-intro.texi: Mention native Windows.
40532         * doc/posix-functions/_Exit_C99.texi: Likewise.
40533         * doc/posix-headers/fcntl.texi: Likewise.
40535 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40537         argp: Avoid crash if translator uses % characters in a translation.
40538         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40539         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40541 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40543         doc: C11 and C++11 are now official
40544         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40545         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40546         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40547         * modules/stdalign:
40548         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40550 2012-01-06  Bruno Haible  <bruno@clisp.org>
40552         uc-is-grapheme-break tests: Tweak.
40553         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40554         message.
40556 2012-01-06  Bruno Haible  <bruno@clisp.org>
40558         test-init.sh: correct the test for diff -u
40559         * tests/test-init.sh: Also redirect stdout to /dev/null.
40561 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40563         Use ', not `, for quoting output.
40564         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40565         (print_changelog_deltas, get_tool_versions, main program):
40566         * build-aux/git-version-gen:
40567         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40568         * build-aux/move-if-change (help):
40569         * build-aux/useless-if-before-free (usage, main program):
40570         * check-module (parse_module_file, usage)
40571         (find_included_lib_files, check_module):
40572         * lib/argmatch.c (main) [TEST]:
40573         * lib/argp-help.c (_help):
40574         * lib/getopt1.c (main) [TEST]:
40575         * lib/git-merge-changelog.c (usage):
40576         * lib/xstrtol-error.c (xstrtol_error):
40577         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40578         * m4/argz.m4 (gl_FUNC_ARGZ):
40579         * m4/bison.m4 (gl_BISON):
40580         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40582         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40583         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40584         * m4/gc-random.m4 (gl_GC_RANDOM):
40585         * m4/intl.m4 (gt_CHECK_DECL):
40586         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40588         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40589         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40590         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40591         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40592         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40593         * tests/test-dirname.c (main):
40594         * tests/test-getpass.c (main):
40595         * tests/test-iconvme.c (main):
40596         * tests/test-parse-datetime.c (LOG):
40597         * tests/test-xstrtoimax.sh:
40598         * tests/test-xstrtol.sh:
40599         * tests/test-xstrtoll.sh:
40600         * tests/test-xstrtoumax.sh:
40601         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40602         * top/GNUmakefile (abort-due-to-no-makefile):
40603         Quote 'like this', not `like this', as per the recent change to
40604         the GNU coding standards.
40606 2012-01-05  Bruno Haible  <bruno@clisp.org>
40608         strtoimax: Don't force a replacement on systems where intmax_t is int.
40609         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40610         'intmax_t' is not larger than 'int'.
40611         Reported by Pádraig Brady <P@draigBrady.com>.
40613 2012-01-05  Bruno Haible  <bruno@clisp.org>
40615         doc: Mention NetBSD bugs.
40616         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40617         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40619 2012-01-05  Bruno Haible  <bruno@clisp.org>
40621         strtoumax tests: Enhance tests.
40622         * tests/test-strtoumax.c (main): Add tests for large values.
40624 2012-01-05  Bruno Haible  <bruno@clisp.org>
40626         strtoimax: Work around AIX 5.1 bug.
40627         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40628         definition.
40629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40630         Set HAVE_STRTOIMAX.
40631         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40632         REPLACE_STRTOIMAX.
40633         * modules/inttypes-incomplete (Makefile.am): Substitute
40634         REPLACE_STRTOIMAX.
40635         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40636         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40637         (Depends-on): Update conditions.
40638         * tests/test-strtoimax.c (main): Add tests for large values.
40639         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40641 2012-01-05  Bruno Haible  <bruno@clisp.org>
40643         inttypes: Modernize.
40644         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40645         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40646         (Makefile.am): Update inttypes.h rule.
40648 2012-01-05  Jim Meyering  <meyering@redhat.com>
40650         init.sh: don't waste a subshell just to redirect stderr
40651         * tests/init.sh: In testing for diff -u and diff -c, use a
40652         stderr-redirecting exec inside `...` rather than a subshell.
40654         test-init.sh: avoid failure on HP-UX 11.00
40655         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40656         resolves to diff -c or cmp.  Reported by Bruno Haible.
40658 2012-01-05  Bruno Haible  <bruno@clisp.org>
40660         Tests for module 'strtoull'.
40661         * modules/strtoull-tests: New file.
40662         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40664 2012-01-05  Bruno Haible  <bruno@clisp.org>
40666         Tests for module 'strtoll'.
40667         * modules/strtoll-tests: New file.
40668         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40670 2012-01-05  Bruno Haible  <bruno@clisp.org>
40672         Tests for module 'strtoul'.
40673         * modules/strtoul-tests: New file.
40674         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40676 2012-01-05  Bruno Haible  <bruno@clisp.org>
40678         Tests for module 'strtol'.
40679         * modules/strtol-tests: New file.
40680         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40682 2012-01-04  Jim Meyering  <meyering@redhat.com>
40684         test-init.sh: accommodate Solaris 5.10's different diff -u output
40685         * tests/test-init.sh: Also exempt @@ lines from the comparison
40686         of diff output, since Solaris 5.10 and GNU diff formats differ.
40687         Reported by Stefano Lattarini.
40689 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40691         test-posixtm: don't assume signed integer wraparound
40692         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40693         after signed integer overflow.  Inspired by (though it may not
40694         fix) Bruno Haible's bug report in
40695         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40697         Spell out "Windows 9x" and "Windows XP".
40698         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40699         "Windows 9x" and "WinXP" with "Windows XP".
40701 2012-01-04  Jim Meyering  <meyering@redhat.com>
40703         test-vc-list-files-cvs.sh: remove obsolete comment
40704         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40705         double exit.  Now that's all encapsulated via skip_ and Exit.
40707 2012-01-04  Bruno Haible  <bruno@clisp.org>
40709         Talk about "native Windows API", not "Win32".
40710         * lib/classpath.c: Update comments to mention native Windows.
40711         * lib/csharpexec.c: Likewise.
40712         * lib/dup2.c: Likewise.
40713         * lib/error.c: Likewise.
40714         * lib/fcntl.c: Likewise.
40715         * lib/filename.h: Likewise.
40716         * lib/findprog.c: Likewise.
40717         * lib/get-rusage-as.c: Likewise.
40718         * lib/get-rusage-data.c: Likewise.
40719         * lib/getpagesize.c: Likewise.
40720         * lib/javaexec.c: Likewise.
40721         * lib/msvc-inval.c: Likewise.
40722         * lib/msvc-nothrow.c: Likewise.
40723         * lib/nanosleep.c: Likewise.
40724         * lib/nonblocking.c: Likewise.
40725         * lib/printf-parse.c: Likewise.
40726         * lib/setlocale.c: Likewise.
40727         * lib/sigaction.c: Likewise.
40728         * lib/strerror_r.c: Likewise.
40729         * lib/tmpdir.c: Likewise.
40730         * lib/vasnprintf.c: Likewise.
40731         * lib/w32spawn.h: Likewise.
40732         * lib/waitpid.c: Likewise.
40733         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40734         * m4/locale-ar.m4: Likewise.
40735         * m4/locale-fr.m4: Likewise.
40736         * m4/locale-ja.m4: Likewise.
40737         * m4/locale-tr.m4: Likewise.
40738         * m4/locale-zh.m4: Likewise.
40739         * m4/printf.m4: Likewise.
40740         * tests/test-cloexec.c: Likewise.
40741         * tests/test-copy-acl.sh: Likewise.
40742         * tests/test-copy-file.sh: Likewise.
40743         * tests/test-file-has-acl.sh: Likewise.
40744         * tests/test-set-mode-acl.sh: Likewise.
40745         * tests/test-dup-safer.c: Likewise.
40746         * tests/test-dup2.c: Likewise.
40747         * tests/test-dup3.c: Likewise.
40748         * tests/test-fcntl.c: Likewise.
40749         * tests/test-nonblocking-pipe.h: Likewise.
40750         * tests/test-nonblocking-socket.h: Likewise.
40751         * tests/test-pipe.c: Likewise.
40752         * tests/test-pipe2.c: Likewise.
40753         * tests/test-spawn-pipe-child.c: Likewise.
40754         * doc/acl-resources.txt: Likewise.
40755         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40756         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40757         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40758         * lib/localcharset.c: Update comments to mention native Windows.
40759         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40760         * lib/localename.c: Likewise.
40761         * lib/progreloc.c: Likewise.
40762         * lib/relocatable.c: Likewise.
40763         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40764         (windows_compute_revents): Renamed from win32_compute_revents.
40765         (windows_compute_revents_socket): Renamed from
40766         win32_compute_revents_socket.
40767         * lib/select.c: Update comments to mention native Windows.
40768         (windows_poll_handle): Renamed from win32_poll_handle.
40769         * m4/threadlib.m4: Update comments to mention native Windows.
40770         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40771         --enable-threads=windows instead of --enable-threads=win32. Set
40772         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40773         * lib/glthread/lock.h: Update comments to mention native Windows.
40774         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40775         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40776         USE_WIN32_THREADS.
40777         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40778         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40779         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40780         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40781         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40782         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40783         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40784         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40785         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40786         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40787         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40788         * tests/test-tls.c: Likewise.
40789         Rationale:
40790         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40791         on both 32-bit and 64-bit Windows systems.
40792         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40793         line of distinction is between "native Windows" on one side and Unix/
40794         POSIX systems on the other side. More details in
40795         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40796         Suggested by Paul Eggert.
40798 2012-01-03  Bruno Haible  <bruno@clisp.org>
40800         isatty: Support for MSVC 9.
40801         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40802         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40803         (_isatty_nothrow): New function.
40804         (isatty): Use it instead of _isatty.
40805         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40806         * lib/poll.c (IsConsoleHandle): Likewise.
40807         * lib/select.c (IsConsoleHandle): Likewise.
40808         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40809         (gl_PREREQ_ISATTY): New macro.
40810         * modules/isatty (Depends-on): Add msvc-inval.
40811         (configure.ac): Invoke gl_PREREQ_ISATTY.
40813 2012-01-03  Jim Meyering  <meyering@redhat.com>
40815         maint.mk: remove temporary transition aid from over 1.5 years ago
40816         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40817         purpose was to aid in the transition (avoiding silent malfunction)
40818         from that old name to the new _sc_search_regexp.  This shim was
40819         added by commit 219c504b.
40821         init.sh: do not try to accommodate compare arguments starting with "-"
40822         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40823         compare arguments that start with "-".  Besides, we do not worry
40824         about this when invoking diff or cmp; why start now with sed?
40825         Using "--" to separate options from argument would trigger sed
40826         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40827         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40829 2012-01-02  Bruno Haible  <bruno@clisp.org>
40831         Enhance tests for module 'isatty'.
40832         * modules/isatty-tests (Depends-on): Add pipe-posix.
40833         * tests/test-isatty.c: Include <fcntl.h>.
40834         (DEV_NULL): New macro.
40835         (main): Test the resut of isatty() also on regular files, pipes, and
40836         /dev/null.
40838         New module 'isatty'.
40839         * lib/unistd.in.h (isatty): New declaration.
40840         * lib/isatty.c: New file, based on an idea of
40841         Bastien Roucariès <roucaries.bastien@gmail.com>.
40842         * m4/isatty.m4: New file.
40843         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40844         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40845         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40846         REPLACE_ISATTY.
40847         * modules/isatty: New file.
40848         * doc/posix-functions/isatty.texi: Mention the new module.
40849         Suggested by Paolo Bonzini.
40851 2012-01-02  Bruno Haible  <bruno@clisp.org>
40853         canonicalize: Tweak 2011-12-29 commit.
40854         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40855         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40857 2012-01-02  Jim Meyering  <meyering@redhat.com>
40859         gitlog-to-changelog: describe input syntax in --help output
40860         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40862         gitlog-to-changelog: fix typo in --help: show backslash before email @
40863         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40864         in sources, but not in actual output.
40866 2011-12-30  Jim Meyering  <meyering@redhat.com>
40868         gitlog-to-changelog: don't malfunction when name contains %-directive
40869         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40870         in a name string cause trouble.  E.g., with a user name of "%s",
40871         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40873 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40875         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40876         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40877         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40878         the "  (tiny change)" notation that is appended to the standard
40879         ChangeLog "date  name  email" header line.
40881 2012-01-01  Jim Meyering  <meyering@redhat.com>
40883         test-framework-sh: init.sh: fix "make dist" failure
40884         When using gnulib-tool's --with-tests option and any module that
40885         depends on test-framework-sh, "make dist" would fail due to the
40886         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40887         in the gltests directory, and not in the gllib/ directory.
40888         One way to work around that is to move the EXTRA_DIST += init.sh
40889         from the primary module to the -tests one:
40890         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40891         * modules/test-framework-sh (Makefile.am): ...not here.
40892         Reported by Tom G. Christensen in
40893         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40895         version-etc: update copyright year reported by --version
40896         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40898 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40900         canonicalize: only stat() if required
40901         * lib/canonicalize.c (canonicalize_filename_mode):
40902         Avoid calling l?stat() when both CAN_MISSING,
40903         and CAN_NOLINKS are set, as we neither need
40904         to resolve symlinks or test component existence.
40906 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40908         doc: cover st_ino issues once; add OpenVMS etc.
40909         * doc/posix-functions/stat.texi (stat):
40910         * doc/posix-functions/lstat.texi (lstat):
40911         * doc/posix-functions/fstatat.texi (fstatat):
40912         * doc/posix-functions/fstat.texi (fstat):
40913         Move general 'struct stat' stuff to sys_stat.texi,
40914         leaving behind a pointer.
40915         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40916         Merge duplicate info about 'struct stat' problems into here.
40917         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40918         and suggest partial workarounds.
40920         same-inode: port to OpenVMS
40921         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40922         three st_ino values.
40924 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40926         canonicalize: fix references to stat() and lstat()
40927         * lib/canonicalize.c (canonicalize_filename_mode):
40928         Ensure references always resolve to a replacement
40929         function if required (even via a macro).
40931 2011-12-30  Jim Meyering  <meyering@redhat.com>
40933         gitlog-to-changelog: remove a little duplication
40934         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40935         rather than twice.
40937 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40939         canonicalize: add support for not resolving symlinks
40940         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40941         indicate we don't want to follow symlinks.  Also
40942         provide CAN_MODE_MASK to aid setting these existing
40943         mutually exclusive values.
40944         * lib/canonicalize.c (canonicalize_filename_mode):
40945         Extract the flags from can_mode parameter, which
40946         are currently just used to select between stat()
40947         and lstat().  Also ensure that mutually exclusive
40948         values are flagged immediately as invalid.
40949         * tests/test-canonicalize.c: Verify symlinks are
40950         not followed, and that invalid flag combinations
40951         are diagnosed.
40953 2011-12-25  Jim Meyering  <meyering@redhat.com>
40955         gitlog-to-changelog: do not clump multi-paragraph entries
40956         Identical header lines (date,name,email+coauthors) are suppressed,
40957         thus putting all entries with those same characteristics under
40958         a single header.  However, when a log entry consists of two or
40959         more paragraphs, it may not be clear where it starts and ends.
40960         This change makes it so that such an entry is always separated
40961         from others by a header line, even when that header would
40962         otherwise be suppressed.
40963         * build-aux/gitlog-to-changelog: Implement the above.
40964         Inspired by a related request from Stefano Lattarini in
40965         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40967 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40969         announce-gen: fix `cmd' typo in diagnostic
40970         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40971         diagnostic: a missing '$' meant that the command was not output.
40973 2011-12-23  Jim Meyering  <meyering@redhat.com>
40975         test-framework-sh: distribute init.sh
40976         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40977         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40978         fail due to the lack of init.sh.
40980         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40981         * modules/atexit-tests: Rather than listing tests/init.sh,
40982         now that there's a module for it, simply depend on that new module.
40983         * modules/closein-tests: Likewise.
40984         * modules/exclude-tests: Likewise.
40985         * modules/getcwd-tests: Likewise.
40986         * modules/perror-tests: Likewise.
40987         * modules/pread-tests: Likewise.
40988         * modules/pwrite-tests: Likewise.
40989         * modules/vc-list-files-tests: Likewise.
40990         * modules/verify-tests: Likewise.
40991         * modules/xalloc-die-tests: Likewise.
40992         * modules/xstrtoimax-tests: Likewise.
40993         * modules/xstrtol-tests: Likewise.
40994         * modules/xstrtoll-tests: Likewise.
40995         * modules/xstrtoumax-tests: Likewise.
40996         * modules/yesno-tests: Likewise.
40998 2011-12-22  Jim Meyering  <meyering@redhat.com>
41000         test-framework-sh: add minimal tests of init.sh's compare function
41001         * modules/test-framework-sh-tests: New file.
41002         * tests/test-init.sh: New file.
41004         test-framework-sh: new module
41005         * modules/test-framework-sh: New file.
41006         * MODULES.html.sh (Support for maintaining and releasing projects):
41007         List it.
41009         init.sh: do not emit simulated diff output to stderr
41010         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41012 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41014         .gitignore: ignore gnulib.dvi and regex.info
41015         * doc/.gitignore:add gnulib.dvi and regex.info
41017 2011-12-22  Jim Meyering  <meyering@redhat.com>
41019         init.sh: correct previous change
41020         * tests/init.sh (compare): My previous change was wrong.
41021         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41023         init.sh: avoid unwarranted test failure when using "set -e"
41024         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41025         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41026         a use like "compare exp out" would get evoke an unconditional failure.
41028 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41030         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41031         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41032         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41033         autoreconf that did not.
41034         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41035         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41037 2011-12-17  Jim Meyering  <meyering@redhat.com>
41039         bootstrap: remove some now-unneeded code
41040         This script arose back when gnulib-tool was young.
41041         Since then, it has seen improvements that render much of this
41042         script unnecessary.  In particular, it can now make symlinks
41043         to the files it uses.  Also, I no longer see as much value in
41044         marking files as read-only via comments.
41045         If you relied on the symlink-creation feature of the preceding
41046         version of this script, you can get most of that functionality
41047         by adding the --symlink option to the definition of
41048         gnulib_tool_option_extras in your bootstrap.conf file.
41049         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41050         Run autopoint and libtoolize *before* gnulib-tool.
41051         After it, run an abbreviated autoreconf, rather than a loop around
41052         all tools.
41053         (slirp, bt_mark_as_generated): Remove functions.
41055 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41057         ftoastr: fix typo
41058         * lib/ftoastr.h: Fix misspelling in comment.
41060 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41062         * top/README-release: fix punctuation.
41064 2011-12-17  Jim Meyering  <meyering@redhat.com>
41066         bootstrap: correct the recent buildreq change
41067         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41068         had no effect.
41069         * build-aux/bootstrap (buildreq): Bracket each search term with
41070         "*...*", so that the shell "case" statement works as intended.
41071         Add comments.
41073 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41075         build: let bootstrap resort to wget when downloading .po files
41076         * build-aux/bootstrap (download_po_files): Fallback to wget when
41077         downloading the .po files via rsync fails.  This is necessary to
41078         bootstrap from behind a strict firewall.
41080 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41082         stdint: don't assume C++11 when compiling with g++
41083         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41084         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41085         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41086         work also in C++ before C++11, as that improperly inhibits
41087         generating a substitute stdint.h for that case.
41089 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41091         alloca: protect comment from gnulib-tool
41092         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41093         that gnulib-tool doesn't think it's a license, and munge it to
41094         say "GCC version 3".
41096 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41098         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41099         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41100         $(abs_top_builddir) instead of $(top_builddir).
41102 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41104         strftime-tests: also test nanoseconds
41105         * tests/test-strftime.c (T): Add a test of %N.
41107 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41109         inttypes, stdint: add C++11 support
41110         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41111         when including inttypes.h and stdint.h.  Support this change to
41112         the standard.
41113         * doc/posix-headers/inttypes.texi (inttypes.h):
41114         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41115         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41116         Define if not defined already, for the benefit of pre-C++11 hosts.
41117         Define the standard format macros (e.g., PRId8) always.
41118         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41119         Likewise, if __cpluspus.  Define the standard constant and limit
41120         macros (e.g., INT8_C, INT8_MAX) always.
41121         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41122         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41123         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41124         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41125         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41126         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41127         Likewise.
41129 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41131         nonblocking tests: Fix test failure on Linux/PPC.
41132         Suggested by Prerna Saxena in
41133         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41134         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41135         Set to 1100000.
41137 2011-12-12  Jim Meyering  <meyering@redhat.com>
41139         argmatch: don't hard-code `' when listing valid option arguments
41140         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41141         use the quote function to add quotes.  Use fputs rather than
41142         fprintf for the format string with no format directive.
41144 2011-12-07  Eric Blake  <eblake@redhat.com>
41146         bootstrap: detect tools required by gnulib-tool
41147         * build-aux/bootstrap (buildreq): Provide minimum implicit
41148         dependencies.
41149         * DEPENDENCIES: Mention patch as a prereq.
41151 2011-12-04  Bruno Haible  <bruno@clisp.org>
41153         sethostname: Port to Windows platforms.
41154         * lib/sethostname.c: Provide an alternate implementation for Windows
41155         platforms.
41156         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41157         (main): Skip the test if sethostname() fails with EPERM. On Windows
41158         platforms, don't check the result of gethostname().
41160 2011-12-04  Bruno Haible  <bruno@clisp.org>
41161             Jim Meyering  <meyering@redhat.com>
41163         tests: Avoid spurious error message on platforms without mktemp program.
41164         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41166 2011-12-04  Bruno Haible  <bruno@clisp.org>
41168         sethostname: Fix documentation.
41169         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41170         "not fixed" section.
41172 2011-12-03  Bruno Haible  <bruno@clisp.org>
41174         gnulib-tool: Verify that the License field is present and non-empty.
41175         * gnulib-tool (func_get_license_raw): New function, extracted from
41176         func_get_license.
41177         (func_get_license): Use it. Warn if the module is not a test module and
41178         has no license.
41179         Suggested by Jim Meyering.
41181 2011-12-03  Bruno Haible  <bruno@clisp.org>
41183         sethostname tests: Fix link error on mingw.
41184         * tests/test-sethostname1.c: New file, extracted from
41185         tests/test-sethostname.c.
41186         * tests/test-sethostname2.c: New file, extracted from
41187         tests/test-sethostname.c.
41188         * tests/test-sethostname.c: Remove file.
41189         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41190         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41191         (Depends-on): Add gethostname.
41192         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41193         Link the latter with $(GETHOSTNAME_LIB).
41195         sethostname tests: Fix compilation error on mingw.
41196         * tests/test-sethostname.c: Don't include <sys/types.h>.
41197         (geteuid): Use a dummy value without uid_t.
41198         * modules/sethostname-tests (Depends-on): Remove sys_types.
41200         sethostname tests: Avoid a gcc warning.
41201         * tests/test-sethostname.c (main): Remove an unused variable.
41203         Tweak last commit.
41204         * modules/sethostname-tests (Files): Sort by decreasing importance.
41205         (configure.ac): Check for geteuid.
41206         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41207         the test when there's nothing to test. Drop an unnecessary cast.
41208         Improve an error message. Verify that the final sethostname() call
41209         succeeds.
41211 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41213         Add a test suite for the sethostname module.
41214         * modules/sethostname-tests: New file.  A test program
41215         for the sethostname module.
41216         * tests/test-sethostname.c: Likewise.
41218 2011-12-03  Bruno Haible  <bruno@clisp.org>
41220         Tweak last commit.
41221         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41222         Fix preprocessor directives indentation. Fix typos.
41223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41224         * modules/unistd (Makefile): Likewise.
41226 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41228         Integrate the sethostname module into unistd.
41229         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41230         into the unistd.h header.
41231         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41232         preprocessor directives.
41233         * modules/unistd: Setup the Makefile substitutions of the
41234         SETHOSTNAME preprocessor directives.
41236 2011-12-03  Bruno Haible  <bruno@clisp.org>
41238         Tweak last commit.
41239         * lib/sethostname.c: Don't include <string.h>.
41240         (sethostname): No need to copy the argument string to the stack. Don't
41241         call clearerr. Preserve errno when fprintf failed.
41242         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41243         Don't invoke AC_REPLACE_FUNCS.
41244         * modules/sethostname (Link): Remove empty section.
41245         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41246         failure problem.
41248 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41250         New module 'sethostname'.
41251         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41252         for systems that lack it.
41253         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41254         sethostname declaration and function.
41255         * modules/sethostname: New file.  Define the sethostname module.
41257 2011-12-03  Bruno Haible  <bruno@clisp.org>
41259         Tweak last commit.
41260         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41262 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41264         Split the HOST_NAME_MAX detection into a separate m4 macro.
41265         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41266         macro so it can be used by the pending sethostname module.
41268 2011-12-03  Bruno Haible  <bruno@clisp.org>
41270         Fix module descriptions syntax.
41271         * modules/argv-iter (License): Fix syntax.
41272         * modules/di-set (License): Likewise.
41273         * modules/ino-map (License): Likewise.
41274         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41276 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41278         stdalign: port to Clang 3.0
41279         Problem reported by Simon Josefsson in
41280         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41281         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41282         which has <stdalign.h> but which does not define alignof.
41283         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41285 2011-12-01  Eric Blake  <eblake@redhat.com>
41287         mktempd: silence dd usage
41288         * build-aux/mktempd (rand_bytes): Silence dd.
41290 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41292         manywarnings: Don't mention gcc version in docstring.
41293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41294         Jim Meyering <meyering@redhat.com>.
41296 2011-11-30  Jim Meyering  <meyering@redhat.com>
41298         hash: mark a few floating point constants with "f" suffix
41299         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41300         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41301         floating point constants with "f", since they're destined to be
41302         saved/used as "float"s.
41304 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41306         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41307         * tests/test-float.c (test_long_double): Correct and re-enable the
41308         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41310 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41312         Avoid subtracting two pointers that don't point into the same block.
41313         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41314         only pointers into the same memory block are subtracted. We cannot
41315         assume that sizeof (ptrdiff_t) == sizeof (void *).
41317 2011-11-29  Eric Blake  <eblake@redhat.com>
41319         maint.mk: add syntax check for use of compare from init.sh
41320         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41321         moved here from coreutils.
41323         manywarnings: drop -Wunsuffixed-float-constants
41324         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41325         '1.0D', which is the only way to silence this warning for 'double'.
41327 2011-11-29  Jim Meyering  <meyering@redhat.com>
41329         hash: mark compute_bucket_size with the pure attribute
41330         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41332         quotearg, propername: correct pragma guard expression
41333         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41334         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41336 2011-11-28  Jim Meyering  <meyering@redhat.com>
41338         propername: do not mark proper_name with the const attribute
41339         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41340         since it examines data pointed to by its parameter.
41341         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41342         the suggestion from -Wsuggest-attribute=const.
41344         propername: mark one more function as const
41345         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41347 2011-11-27  Jim Meyering  <meyering@redhat.com>
41349         mark functions with const and pure attributes
41351         Mark functions per suggestions from gcc-4.6 when using these options:
41352         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41353         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41354         Follow these guidelines: when possible, apply the attribute to
41355         an extern declaration, not to its definition.  Apply it to the
41356         definition only when the definition is static.
41357         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41358         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41359         * lib/base64.h (isbase64): Likewise.
41360         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41361         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41362         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41363         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41364         (c_tolower, c_toupper): Likewise.
41365         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41366         * lib/chdir-long.c (find_non_slash): Likewise.
41367         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41368         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41369         * lib/file-type.h (file_type): Likewise.
41370         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41371         * lib/filevercmp.c (verrevcmp): Likewise.
41372         * lib/freadahead.h (freadahead): Likewise.
41373         * lib/fts.c (fts_maxarglen): Likewise.
41374         * lib/hash-pjw.h (hash_pjw): Likewise.
41375         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41376         * lib/hash.c (is_prime, next_prime): Likewise.
41377         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41378         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41379         (hash_table_ok, hash_get_first, hash_string): Likewise.
41380         (compute_bucket_size): Likewise.
41381         * lib/i-ring.h (i_ring_empty): Likewise.
41382         * lib/isnan.c (isnanl): Likewise.
41383         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41384         * lib/memcasecmp.h (memcasecmp): Likewise.
41385         * lib/memchr2.h (memchr2): Likewise.
41386         * lib/memcmp2.h (memcmp2): Likewise.
41387         * lib/parse-datetime.y (lookup_zone): Likewise.
41388         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41389         [!WINDOWS_SOCKETS]: Likewise.
41390         * lib/strnlen1.h (strnlen1): Likewise.
41391         * lib/uniwidth.in.h (uc_width): Likewise.
41392         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41393         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41394         (quoting_options_from_style): Add a comment.
41395         * lib/propername.h (proper_name): Add a comment.
41397 2011-11-27  Bruno Haible  <bruno@clisp.org>
41399         Remove unused macros from !_LIBC code in glibc-borrowed files.
41400         * lib/fnmatch.c (STRCOLL): Remove macro.
41401         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41402         * lib/glob.c (__stat, __readdir64): Remove macros.
41403         * lib/tempname.c (__open64, __xstat64): Remove macros.
41404         Suggested by Paul Eggert.
41406 2011-11-27  Bruno Haible  <bruno@clisp.org>
41408         getcwd: Fix link error on MSVC 9.
41409         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41411 2011-11-27  Bruno Haible  <bruno@clisp.org>
41413         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
41414         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
41415         HAVE_OPENDIR is 0.
41416         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
41417         HAVE_CLOSEDIR is 0.
41418         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
41419         is 0.
41420         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
41422 2011-11-27  Bruno Haible  <bruno@clisp.org>
41424         getcwd: Fix bug from 2011-08-17.
41425         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
41426         platforms that need it.
41427         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
41428         code of 4 to be a failure, not a success. This ensures that
41429         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
41431 2011-11-27  Bruno Haible  <bruno@clisp.org>
41433         binary-io tests: Avoid test failure on mingw when libtool is used.
41434         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
41435         Don't verify the size of t-bin-out1.tmp here.
41436         * tests/test-binary-io.sh: Verify it here.
41437         Reported by Simon Josefsson.
41439 2011-11-26  Bruno Haible  <bruno@clisp.org>
41441         Fix conflict between two instantiations of module 'unistd'.
41442         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41443         ${include_guard_prefix} also in the autoconf snippet.
41444         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41446         GNULIB_UNISTD_H_GETOPT.
41447         * modules/getopt-posix (configure.ac): Set the
41448         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41449         * modules/getopt-gnu (configure.ac): Likewise.
41450         * modules/unistd (Makefile.am): Change the substitution value of
41451         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41452         Reported by Simon Josefsson.
41454 2011-11-25  Bruno Haible  <bruno@clisp.org>
41456         pagealign_alloc: Doc and comments.
41457         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41458         module.
41459         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41461 2011-11-25  Jim Meyering  <meyering@redhat.com>
41463         test-update-copyright.sh: avoid false-positive failure
41464         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41465         around false positive failure on Cygwin/Windows.  The latter was
41466         matching erroneously-created files with names like
41467         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41469 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41471         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41472         * m4/valgrind-tests.m4: Check that the parameters that will be
41473         used works, not just a subset of them.  Reported by Bruno Haible
41474         <bruno@clisp.org>.
41476 2011-11-24  Jim Meyering  <meyering@redhat.com>
41478         test-stdalign.c: comment out long double tests
41479         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41480         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41481         error: '_Alignas' specifiers cannot reduce alignment of \
41482         'static_longdouble_alignas'.
41484 2011-11-22  Jim Meyering  <meyering@redhat.com>
41486         init.sh: make "compare /dev/null FILE" output more readable
41487         * tests/init.sh (compare_): Document the preferred order of arguments.
41488         (emit_diff_u_header_): New function.
41489         (compare_dev_null_): Emit a simulated diff, rather than just the
41490         contents of the unexpected file.  Suggestion from Bruno Haible.
41492 2011-11-21  Jim Meyering  <meyering@redhat.com>
41493             Eric Blake  <eblake@redhat.com>
41495         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41496         * tests/init.sh: Make our compare function slightly more portable.
41497         Reported by Bruno Haible in
41498         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41500 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41502         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41503         before using it, in code that ends up in config.h.
41505 2011-11-20  Bruno Haible  <bruno@clisp.org>
41507         getcwd: Work around getcwd bug on AIX 5..7.
41508         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41509         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41510         Use a different value for gl_cv_func_getcwd_path_max. Move the
41511         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41512         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41513         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41514         Define HAVE_MINIMALLY_WORKING_GETCWD.
41515         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41516         where it is not even minimally working, that is, on AIX.
41517         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41518         m4/getcwd-path-max.m4.
41519         (main): Update exit code computation.
41520         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41521         getcwd does not handle long file names.
41523 2011-11-20  Bruno Haible  <bruno@clisp.org>
41525         getcwd: Fix bug from 2009-09-10.
41526         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41527         like "no".
41529 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41531         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41533 2011-11-20  Bruno Haible  <bruno@clisp.org>
41535         fma tests: Avoid shadowing local variables.
41536         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41537         expected.
41539 2011-11-20  Bruno Haible  <bruno@clisp.org>
41541         copysignf tests: Fix.
41542         * tests/test-copysignf.c: Fix signature check.
41544 2011-11-20  Bruno Haible  <bruno@clisp.org>
41546         fma: Remove unused code.
41547         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41548         unused macros.
41550 2011-11-20  Bruno Haible  <bruno@clisp.org>
41552         sethostname: Fix doc about AIX.
41553         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41554         sethostname; it has it.
41556         sethostname: Mention more portability problems.
41557         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41558         problem.
41559         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41561 2011-11-19  Bruno Haible  <bruno@clisp.org>
41563         Depend on module fcntl-h when AT_FDCWD is used.
41564         * modules/utimens (Depends-on): Add fcntl-h.
41565         * modules/areadlinkat (Depends-on): Likewise.
41566         * modules/areadlinkat-with-size (Depends-on): Likewise.
41567         * modules/faccessat (Depends-on): Likewise.
41568         * modules/fchmodat (Depends-on): Likewise.
41569         * modules/fchownat (Depends-on): Likewise.
41570         * modules/getcwd (Depends-on): Likewise.
41571         * modules/mkdirat (Depends-on): Likewise.
41572         * modules/mkfifoat (Depends-on): Likewise.
41573         * modules/readlinkat (Depends-on): Likewise.
41574         * modules/symlinkat (Depends-on): Likewise.
41575         * modules/dup2-tests (Depends-on): Likewise.
41576         * modules/fdutimensat-tests (Depends-on): Likewise.
41577         * modules/futimens-tests (Depends-on): Likewise.
41579 2011-11-19  Bruno Haible  <bruno@clisp.org>
41581         euidaccess: Update a comment.
41582         * lib/euidaccess.c: Update comment about platforms with faccessat.
41584 2011-11-19  Bruno Haible  <bruno@clisp.org>
41586         openat: Fix file list.
41587         * modules/openat (Files): Remove lib/at-func.c.
41589 2011-11-19  Bruno Haible  <bruno@clisp.org>
41591         fstatat: Simplify.
41592         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41593         gnulib should define rpl_fstatat, there is a
41594         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41596 2011-11-19  Bruno Haible  <bruno@clisp.org>
41598         Ensure 'inline' can be used in tests/test-utimens-common.h.
41599         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41600         * modules/futimens-tests (configure.ac): Likewise.
41601         * modules/utimens-tests (configure.ac): Likewise.
41602         * modules/utimensat-tests (configure.ac): Likewise.
41604 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41606         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41607         not hash_insert0.
41608         (hash_insert_if_absent): Doc fix.
41610 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41612         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41614 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41616         test-getcwd: disambiguate exit status
41617         * tests/test-getcwd.c (test_long_name): Return 0..7.
41618         (main): Exit with an unambiguous exit status.  The old
41619         code yielded a mysterious mixture of two failure codes.
41621         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41622         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41623         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41624         rpl_fstatat or fstatat.  This should fix the other problem
41625         reported by Kai Habel in
41626         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41627         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41628         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41629         and I reproduced it on a Solaris 8 host we still have in production.
41631 2011-11-18  Jim Meyering  <meyering@redhat.com>
41633         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41634         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41635         Add a sentence to the comment.
41636         (hash_insert0): New function that simply calls hash_insert_if_absent.
41637         * lib/hash.h (hash_insert_if_absent): Declare it.
41638         (hash_insert0): Add deprecation attribute.
41639         (_GL_ATTRIBUTE_DEPRECATED): Define.
41640         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41641         not hash_insert0.
41642         * NEWS: Mention it, even though it's not really an incompatible change.
41644 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41646         openat: avoid compilation failure due to lack of <errno.h> inclusion
41647         * lib/openat.c: Include <errno.h>.
41649 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41651         * modules/getcwd (Depends-on): Add fdopendir.
41652         This fixes one of the two problems reported by Kai Habel in
41653         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41655         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41656         stdalign problem reported by Ian Beckwith in
41657         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41658         * modules/crypto/gc-arcfour (Depends-on):
41659         Depend conditionally on crypto/arcfour.
41660         * modules/crypto/gc-arctwo (Depends-on):
41661         Depend conditionally on crypto/arctwo.
41662         * modules/crypto/gc-des (Depends-on):
41663         Depend conditionally on crypto/des.
41664         * modules/crypto/gc-hmac-md5 (Depends-on):
41665         Depend conditionally on crypto/hmac-md5.
41666         * modules/crypto/gc-hmac-sha1 (Depends-on):
41667         Depend conditionally on crypto/hmac-sha1.
41668         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41669         * modules/crypto/gc-md4 (Depends-on):
41670         Depend conditionally on crypto/md4.
41671         * modules/crypto/gc-md5 (Depends-on):
41672         Depend conditionally on crypto/md5.
41673         * modules/crypto/gc-rijndael (Depends-on):
41674         Depend conditionally on crypto/rijndael.
41675         * modules/crypto/gc-sha1 (Depends-on):
41676         Depend conditionally on crypto/sha1.
41677         * modules/crypto/gc-arcfour:
41678         * modules/crypto/gc-arctwo:
41679         * modules/crypto/gc-des:
41680         * modules/crypto/gc-hmac-md5:
41681         * modules/crypto/gc-hmac-sha1:
41682         * modules/crypto/gc-md2:
41683         * modules/crypto/gc-md4:
41684         * modules/crypto/gc-md5:
41685         * modules/crypto/gc-rijndael:
41686         * modules/crypto/gc-sha1:
41687         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41688         now that the conditional dependencies do the work for us.
41690 2011-11-17  Jim Meyering  <meyering@redhat.com>
41692         tests: factor st_ctime-comparison out of two headers
41693         * tests/test-utimens-common.h (ctime_compare): Define.
41694         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41695         * tests/test-lutimens.h (test_lutimens): Likewise.
41696         * tests/test-utimens.h (test_utimens): Likewise.
41698         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41699         Invoke the test program via an init.sh-using wrapper.
41700         * tests/test-getcwd.sh: New file.
41701         * modules/getcwd-tests (Files): Add it.
41702         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41704 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41706         gitlog-to-changelog: support multi-author commits.
41707         The FSF cares about keeping track of all authors of patches to its
41708         projects, but Git doesn't provide obvious support for multi-author
41709         changesets. Consensus seems to be forming around the use of extra
41710         Signed-off-by inspired lines in the log message formatted as
41711         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41712         multi-author commits between version control systems.
41713         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41714         log message and output in standard ChangeLog multi-author format.
41715         Reported by Peter Rosin <peda@lysator.liu.se>
41717 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41718             Bruno Haible  <bruno@clisp.org>
41720         Fix some modules' file list.
41721         * modules/fstatat (Files): Add m4/lstat.m4.
41722         * modules/openat (Files): Likewise.
41723         * modules/unlinkat (Files): Likewise.
41725 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41727         maint.mk: fix tight-scope.mk generation in VPATH builds.
41728         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41729         reference with $(srcdir) so that the file is found correctly even
41730         when running `make syntax-check' in a VPATH build.
41732 2011-11-13  Bruno Haible  <bruno@clisp.org>
41733             Jim Meyering  <meyering@redhat.com>
41735         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41736         * tests/init.sh (compare): Remove "No differences encountered" or
41737         synonymous output from the 'diff' program.
41739 2011-11-13  Bruno Haible  <bruno@clisp.org>
41741         Makefile: Tweak indentation.
41742         * Makefile: Use tab as first character in every line that contains rule
41743         commands.
41745 2011-11-13  Bruno Haible  <bruno@clisp.org>
41747         Syntax check for copyright statements.
41748         * check-copyright: New file.
41749         * Makefile (sc_check_copyright): New rule.
41751 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41753         * build-aux/git-version-gen: Add --prefix to configure the tag
41754         match string.
41756 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41758         * build-aux/git-version-gen: Add --help and --version.
41760 2011-11-12  Jim Meyering  <meyering@redhat.com>
41762         revamp the other test-exclude?.sh scripts to use init.sh, too
41763         * tests/test-exclude1.sh: Use init.sh.
41764         * tests/test-exclude2.sh: Likewise.
41765         * tests/test-exclude3.sh: Likewise.
41766         * tests/test-exclude4.sh: Likewise.
41767         * tests/test-exclude5.sh: Likewise.
41768         * tests/test-exclude6.sh: Likewise.
41769         * tests/test-exclude7.sh: Likewise.
41770         * tests/test-exclude8.sh: Likewise.
41771         * modules/exclude-tests (Files): List init.sh.
41773         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41774         These shell scripts ignored failure of the binary test-exclude,
41775         so making the latter return 77 didn't cause them to be skipped.
41776         * tests/test-exclude5.sh: Exit with test-exclude's error status
41777         when that program fails.  Revamp to use init.sh.
41778         * tests/test-exclude2.sh: Likewise.
41780         test-exclude: fix a typo
41781         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41783 2011-11-11  Bruno Haible  <bruno@clisp.org>
41785         obstack: Fix compilation error on MSVC 9.
41786         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41788 2011-11-11  Jim Meyering  <meyering@redhat.com>
41790         test-exclude: skip tests rather than failing on deficient systems
41791         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41792         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41793         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41794         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41796 2011-11-10  Bruno Haible  <bruno@clisp.org>
41798         ptsname_r test: Avoid gcc warning on glibc systems.
41799         * tests/test-ptsname_r.c (null_ptr): New function.
41800         (test_errors): Use it.
41802 2011-11-10  Bruno Haible  <bruno@clisp.org>
41804         ptsname_r: Avoid compilation error on OSF/1 5.1.
41805         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41807         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41808         function is not declared or incompatibly declared.
41809         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41810         * modules/ptsname_r (Depends-on, configure.ac): Update.
41811         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41813 2011-11-10  Bruno Haible  <bruno@clisp.org>
41815         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41816         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41817         When cross-compiling, guess yes on all platforms except AIX.
41818         Reported by Ludovic Courtès <ludo@gnu.org>.
41820 2011-11-09  Bruno Haible  <bruno@clisp.org>
41822         ptsname_r tests: Fix bugs.
41823         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41824         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41826 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41828         fstatat: work with cross-compilation
41829         Problem reported by Ludovic Courtès in
41830         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41831         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41832         "cross-compiling" and assume the bug is present.  Replace
41833         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41834         an inverted sense, to be more conservative about our assumptions.
41835         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41837 2011-11-09  Bruno Haible  <bruno@clisp.org>
41839         Improve MODULES.html output.
41840         * modules/mkfifoat (Description): Use the word "function".
41841         * modules/readlinkat (Description): Likewise.
41842         * modules/symlinkat (Description): Likewise.
41844 2011-11-09  Eric Blake  <eblake@redhat.com>
41846         ptsname_r-tests: new test module
41847         * modules/ptsname_r-tests: New module.
41848         * tests/test-ptsname_r.c: New file.
41850         ptsname_r: new module
41851         * modules/ptsname_r: New module.
41852         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41853         * lib/ptsname.c (__ptsname_r): Split...
41854         * lib/ptsname_r.c: ...into new file.
41855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41856         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41857         * modules/stdlib (Makefile.am): Substitute witnesses.
41858         * lib/stdlib.in.h (ptsname_r): Declare it.
41859         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41860         * MODULES.html.sh (Misc): Likewise.
41861         * modules/ptsname (Depends-on): Alter dependency.
41862         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41864 2011-11-09  Jim Meyering  <meyering@redhat.com>
41866         announce-gen: be more concise when there's only one URL+tarball
41867         * build-aux/announce-gen (get_tool_versions): When you distribute
41868         only one type of tarball, combine the first two "Here are..."
41869         sections and make the key-checking grammar independent of
41870         how many tarballs there are.
41872 2011-11-09  Eric Blake  <eblake@redhat.com>
41874         openpty: provide a stub on mingw
41875         * lib/pty.in.h (includes): Provide forward declarations.
41876         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41878         raise: fix mingw handling of SIGPIPE
41879         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41881 2011-11-08  Bruno Haible  <bruno@clisp.org>
41883         More conditional dependencies.
41884         * modules/faccessat (Depends-on): Add conditions.
41885         * modules/fchmodat (Depends-on): Likewise.
41886         * modules/fchownat (Depends-on): Likewise.
41887         * modules/fstatat (Depends-on): Likewise.
41888         * modules/mkfifoat (Depends-on): Likewise.
41889         * modules/readlinkat (Depends-on): Likewise.
41890         * modules/symlinkat (Depends-on): Likewise.
41891         * modules/unlinkat (Depends-on): Likewise.
41892         * modules/utimensat (Depends-on): Likewise.
41893         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41894         * modules/linkat (Depends-on): Refine the conditions.
41895         * modules/renameat (Depends-on): Likewise.
41897 2011-11-08  Bruno Haible  <bruno@clisp.org>
41899         faccessat: Move AC_LIBOBJ invocation to module description.
41900         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41901         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41902         invocation from here...
41903         * modules/faccessat (configure.ac): ... to here. Invoke
41904         gl_PREREQ_FACCESSAT.
41906 2011-11-08  Bruno Haible  <bruno@clisp.org>
41908         faccessat: Simplify autoconf macro.
41909         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41910         gl_FUNC_EUIDACCESS.
41912 2011-11-08  Bruno Haible  <bruno@clisp.org>
41914         renameat: Fix dependencies.
41915         * modules/renameat (Depends-on): Add stdbool.
41917 2011-11-08  Bruno Haible  <bruno@clisp.org>
41919         mkfifoat: Fix module description.
41920         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41921         not gl_UNISTD_MODULE_INDICATOR.
41923 2011-11-08  Bruno Haible  <bruno@clisp.org>
41925         fstatat: Remove unused dependency.
41926         * modules/fstatat (Depends-on): Remove fstat.
41928 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41930         GNUmakefile: behave when Makefile is missing.
41931         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41933 2011-11-08  Bruno Haible  <bruno@clisp.org>
41935         openat: Conditionalize dependencies.
41936         * lib/openat.c: Reduce the scope of some #includes.
41937         * modules/openat (Depends-on): Add conditions.
41939 2011-11-07  Jim Meyering  <meyering@redhat.com>
41941         maint.mk: extract GPG key ID without using a temporary file
41942         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41943         without using a temporary file.  Based on a suggestion from Werner Koch
41944         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41946 2011-11-07  Eric Blake  <eblake@redhat.com>
41948         grantpt: fix typo
41949         * lib/stdlib.in.h (grantpt): Check correct function.
41951         maint.mk: silence new syntax check
41952         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41954 2011-11-06  Bruno Haible  <bruno@clisp.org>
41956         Doc about floating-point and math API.
41957         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41958         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41960 2011-11-06  Bruno Haible  <bruno@clisp.org>
41962         stdalign tests: Skip the test when compiled by Sun C.
41963         * tests/test-stdalign.c (main): Skip the test on Sun C.
41965 2011-11-06  Bruno Haible  <bruno@clisp.org>
41967         ansi-c++-opt: Complete the 2011-06-05 change.
41968         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41969         does not support namespaces, set the variable to "no", not to ":".
41971 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41973         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41975 2011-11-06  Bruno Haible  <bruno@clisp.org>
41977         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41978         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41979         (minus_zerol) [HP-UX]: New macro.
41980         (unary_minus) [HP-UX]: New function.
41981         (copysignl) [HP-UX]: Use unary_minus function.
41983 2011-11-06  Bruno Haible  <bruno@clisp.org>
41985         ldexp, ldexpf, ldexpl: Enhance tests.
41986         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41987         and tests/test-ldexpl.c.
41988         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41989         LDEXP, MIN_EXP, MAX_EXP): New macros.
41990         Include test-ldexp.h.
41991         (main): Just call test_function.
41992         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41993         infinity.h, nan.h.
41994         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41995         MAX_EXP): New macros.
41996         Include test-ldexp.h.
41997         (x, y): Remove variables.
41998         (main): Just call test_function.
41999         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42000         infinity.h, nan.h.
42001         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42002         MAX_EXP): New macros.
42003         Include test-ldexp.h.
42004         (x, y): Remove variables.
42005         (main): Just call test_function.
42006         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42007         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42008         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42009         (Depends-on): Add isnand-nolibm, signbit, float.
42010         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42011         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42012         (Depends-on): Add isnanf-nolibm, signbit, float.
42014 2011-11-06  Bruno Haible  <bruno@clisp.org>
42016         math tests: Cosmetics.
42017         * tests/test-math-c++.cc: Reorder declarations.
42019 2011-11-05  Bruno Haible  <bruno@clisp.org>
42021         fma*: Simplify test.
42022         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42023         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42025         Tests for module 'fmal'.
42026         * modules/fmal-tests: New file.
42027         * tests/test-fmal1.c: New file.
42028         * tests/test-fmal2.c: New file.
42030         New module 'fmal'.
42031         * lib/math.in.h (fmal): New declaration.
42032         * lib/fmal.c: New file.
42033         * m4/fmal.m4: New file.
42034         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42036         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42037         REPLACE_FMAL.
42038         * modules/fmal: New file.
42039         * doc/posix-functions/fmal.texi: Mention the new module and the various
42040         bugs.
42042         Tests for module 'fmaf'.
42043         * modules/fmaf-tests: New file.
42044         * tests/test-fmaf1.c: New file.
42045         * tests/test-fmaf2.c: New file.
42047         New module 'fmaf'.
42048         * lib/math.in.h (fmaf): New declaration.
42049         * lib/fmaf.c: New file.
42050         * m4/fmaf.m4: New file.
42051         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42053         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42054         REPLACE_FMAF.
42055         * modules/fmaf: New file.
42056         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42057         bugs.
42059         Tests for module 'fma'.
42060         * modules/fma-tests: New file.
42061         * tests/test-fma1.c: New file.
42062         * tests/test-fma1.h: New file.
42063         * tests/test-fma2.c: New file.
42064         * tests/test-fma2.h: New file.
42066         New module 'fma'.
42067         * lib/math.in.h (fma): New declaration.
42068         * lib/fma.c: New file.
42069         * m4/fma.m4: New file.
42070         * m4/fegetround.m4: New file.
42071         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42073         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42074         REPLACE_FMA.
42075         * modules/fma: New file.
42076         * doc/posix-functions/fma.texi: Mention the new module and the various
42077         bugs.
42079         Extend gl_MATHFUNC.
42080         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42081         Support 'void' as argument type.
42082         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42084 2011-11-05  Jim Meyering  <meyering@redhat.com>
42086         maint.mk: also prohibit inclusion of dirent.h without use
42087         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42089 2011-11-05  Bruno Haible  <bruno@clisp.org>
42091         ldexpl tests: Avoid test failure on MSVC 9.
42092         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42093         value. Needed in order to enforce the conversion from a value greater
42094         than LDBL_MAX to Infinity.
42096 2011-11-05  Bruno Haible  <bruno@clisp.org>
42098         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42099         * modules/at-internal: New file, extracted from modules/openat.
42100         * modules/openat-h: New file.
42101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42102         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42103         * modules/openat (Description): Add reference to POSIX function.
42104         (Files): Remove lib/openat.h, lib/openat-proc.c.
42105         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42106         intprops, unistd.
42107         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42108         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42109         gl_FCNTL_MODULE_INDICATOR.
42110         (Include): Remove unistd.h, openat.h.
42111         * modules/areadlinkat (Files): Add lib/at-func.c.
42112         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42113         openat-die, openat-h, save-cwd.
42114         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42115         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42116         openat-die, openat-h, save-cwd, unistd.
42117         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42118         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42119         openat-h, save-cwd. Remove fcntl-h, openat.
42120         * modules/fchmodat (Files): Remove lib/openat.h.
42121         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42122         openat, stdbool, unistd.
42123         * modules/fchownat (Files): Remove lib/openat.h.
42124         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42125         openat, stdbool, sys_stat.
42126         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42127         lib/openat-proc.c.
42128         (Depends-on): Add at-internal.
42129         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42130         * modules/fstatat (Files): Remove lib/openat.h.
42131         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42132         stdbool, unistd.
42133         * modules/fts (Depends-on): Add openat-h.
42134         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42135         openat.
42136         * modules/mkdirat (Files): Remove lib/openat.h.
42137         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42138         openat, stdbool, sys_stat.
42139         * modules/mkfifoat (Files): Add lib/at-func.c.
42140         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42141         openat-h, save-cwd. Remove fcntl-h, openat.
42142         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42143         * modules/readlinkat (Files): Add lib/at-func.c.
42144         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42145         openat-h, save-cwd. Remove fcntl-h, openat.
42146         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42147         openat.
42148         * modules/selinux-at (Files): Add lib/at-func.c.
42149         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42150         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42151         * modules/symlinkat (Files): Add lib/at-func.c.
42152         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42153         openat-h, save-cwd. Remove fcntl-h, openat.
42154         * modules/unlinkat (Files): Remove lib/openat.h.
42155         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42156         stdbool.
42157         * modules/utimensat (Files): Add lib/at-func.c.
42158         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42159         openat-die, openat-h, save-cwd.
42160         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42161         * modules/fdutimensat-tests (Depends-on): Add openat.
42162         * modules/fstatat-tests (Depends-on): Add openat-h.
42163         * modules/readlinkat-tests (Depends-on): Add openat.
42164         * modules/symlinkat-tests (Depends-on): Add openat.
42166 2011-11-05  Bruno Haible  <bruno@clisp.org>
42168         openat: Include <stdbool.h>.
42169         * lib/openat.c: Include <stdbool.h>.
42171 2011-11-04  Bruno Haible  <bruno@clisp.org>
42173         fchownat, renameat, unlinkat: Fix dependencies.
42174         * modules/fchownat (Depends-on): Add fstatat.
42175         * modules/renameat (Depends-on): Likewise.
42176         * modules/unlinkat (Depends-on): Likewise.
42178 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42180         openat: remove direct dependency on dirent
42181         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42182         and hasn't been needed ever since fdopendir was split into its own
42183         module on 2009-08-31.
42184         * modules/openat (Depends-on): Remove dirent.
42186 2011-11-04  Bruno Haible  <bruno@clisp.org>
42188         renameat: Optimize code size.
42189         * modules/renameat (configure.ac): Don't compile at-func2.c if
42190         REPLACE_RENAMEAT is 1.
42192 2011-11-04  Bruno Haible  <bruno@clisp.org>
42194         openat tests: Fix file list.
42195         * modules/openat-tests (Files): Add tests/test-open.h.
42197 2011-11-04  Bruno Haible  <bruno@clisp.org>
42199         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42200         * modules/fchmodat (Depends-on): Add openat-die.
42201         * modules/fchownat (Depends-on): Likewise.
42202         * modules/linkat (Depends-on): Likewise.
42203         * modules/renameat (Depends-on): Likewise.
42204         * modules/openat (Depends-on): Add dirent.
42206 2011-11-04  Jim Meyering  <meyering@redhat.com>
42208         at-func*.c: fix comments
42209         * lib/at-func2.c: Correct/improve first-line comment.
42210         * lib/at-func.c: Correct grammar in first-line comment.
42212 2011-11-04  Bruno Haible  <bruno@clisp.org>
42214         New module 'mkdirat', split off from module 'openat'.
42215         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42216         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42217         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42218         * modules/mkdirat: New file, extracted from modules/openat.
42219         * modules/openat (Files): Remove lib/mkdirat.c.
42220         (Depends-on): Remove mkdir.
42221         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42222         (Include): Remove <sys/stat.h>.
42223         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42224         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42225         tests/test-mkdir.h.
42226         (Depends-on): Remove ignore-value.
42227         (Makefile.am): Remove rules for test-mkdirat.
42228         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42229         of module 'openat'.
42230         * NEWS: Mention the change.
42232 2011-11-04  Bruno Haible  <bruno@clisp.org>
42234         closedir: Avoid warning on mingw.
42235         * lib/closedir.c: Include <unistd.h>.
42237 2011-11-04  Bruno Haible  <bruno@clisp.org>
42239         New module 'fstatat', split off from module 'openat'.
42240         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42241         defined.
42242         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42243         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42244         gl_FUNC_FSTATAT.
42245         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42246         * modules/fstatat: New file, extracted from modules/openat.
42247         * modules/openat (Files): Remove lib/fstatat.c.
42248         (Depends-on): Remove lstat.
42249         (configure.ac): Remove AC_LIBOBJ of fstatat.
42250         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42251         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42252         tests/test-lstat.h, tests/test-stat.h.
42253         (Depends-on): Remove getcwd-lgpl.
42254         (Makefile.am): Remove rules for test-fstatat.
42255         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42256         of module 'openat'.
42257         * NEWS: Mention the change.
42258         * modules/getcwd (Depends-on): Add fstatat.
42259         * modules/linkat (Depends-on): Likewise.
42260         * modules/mkfifoat-tests (Depends-on): Likewise.
42261         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42263 2011-11-03  Bruno Haible  <bruno@clisp.org>
42265         New module 'unlinkat', split off from module 'openat'.
42266         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42267         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42268         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42269         * modules/unlinkat: New file, extracted from modules/openat. Correct
42270         the dependency conditions.
42271         * modules/openat (Files): Remove lib/unlinkat.c.
42272         (Depends-on): Remove rmdir, unlink.
42273         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42274         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42275         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42276         tests/test-rmdir.h, tests/test-unlink.h.
42277         (Depends-on): Remove unlinkdir.
42278         (Makefile.am): Remove rules for test-unlinkat.
42279         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42280         of module 'openat'.
42281         * NEWS: Mention the change.
42282         * modules/linkat-tests (Depends-on): Add unlinkat.
42283         * modules/mkfifoat-tests (Depends-on): Likewise.
42284         * modules/readlinkat-tests (Depends-on): Likewise.
42286 2011-11-02  Bruno Haible  <bruno@clisp.org>
42288         New module 'fchmodat', split off from module 'openat'.
42289         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42290         defined.
42291         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42292         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42293         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42294         * modules/fchmodat: New file, extracted from modules/openat.
42295         * modules/openat (Files): Remove lib/fchmodat.c.
42296         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42297         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42298         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42299         (Makefile.am): Remove rules for test-fchmodat.
42300         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42301         of module 'openat'.
42302         * NEWS: Mention the change.
42304 2011-11-02  Jim Meyering  <meyering@redhat.com>
42306         putenv: indent #definition of "environ" to placate cppi
42307         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42309         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42310         Git logs are often treated as immutable, because editing them
42311         changes the SHA1 checksums of all descendants.  Thus, errors in
42312         git logs tend to stay there forever.  However, when we generate
42313         a ChangeLog file -- typically for distribution -- from that git log,
42314         we can actually make corrections in the generated file.  The key
42315         lies in recording in machine-readable/applicable form the desired
42316         corrections.  See --help for description and an example.
42317         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42318         (usage): Describe it; alphabetize option descriptions.
42319         (main): Honor the new option, carefully.
42321 2011-11-01  Jim Meyering  <meyering@redhat.com>
42323         gitlog-to-changelog: avoid an infloop
42324         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42325         that ends up being empty.
42327 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42329         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42330         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42331         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42332         contains (possibly-quoted) backslashes.  This should avoid
42333         all-too-common shell bugs if COMPLICATED contains backslashes in
42334         the "wrong" places.  Reported by David Evans in
42335         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42336         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42337         because we want ASCII ranges.  Is there some reason we don't use
42338         the C locale everywhere in this script?
42339         (func_module, top level): Avoid unwanted pathname expansion when
42340         $repo_url_prefix or $repo_url_suffix_repl contain shell
42341         metacharacters like '?' and '*'.
42343 2011-11-01  Bruno Haible  <bruno@clisp.org>
42345         fchownat: Improve description.
42346         * modules/fchownat (Description): Add link to function.
42348 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42350         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42351         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42352         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42353         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42355 2011-11-01  Bruno Haible  <bruno@clisp.org>
42357         alignof: Avoid collision with stdalign module.
42358         * lib/alignof.h (alignof): Remove macro.
42359         * NEWS: Mention the change.
42360         Reported by Paul Eggert.
42362 2011-11-01  Bruno Haible  <bruno@clisp.org>
42364         New module 'fchownat', split off from module 'openat'.
42365         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42366         defined.
42367         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42368         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42369         invoke gl_FUNC_FCHOWNAT.
42370         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42371         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42372         * modules/fchownat: New file, extracted from modules/openat.
42373         * modules/openat (Files): Remove lib/fchownat.c.
42374         (Depends-on): Remove lchown.
42375         (configure.ac): Remove AC_LIBOBJ of fchownat.
42376         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42377         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42378         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42379         (Depends-on): Remove mgetgroups, usleep, stat-time.
42380         (configure.ac): Remove test for getegid.
42381         (Makefile.am): Remove rules for test-fchownat.
42382         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42383         of module 'openat'.
42384         * NEWS: Mention the change.
42386 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42388         stdalign: port better to MSVC and to Sun C 5.11
42389         This fixes some of the problems reported by Bruno Haible in
42390         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42391         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42392         shortcomings of MSVC and of Sun C 5.11.
42393         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42394         around __declspec arg.
42395         * modules/stdalign-tests (Files): Add tests/macros.h.
42396         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42397         Include macros.h, for ASSERT.
42398         (DECLARE_ALIGNED): Remove.
42399         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42400         to catch bug), and to 1 if not (simplifies the rest of the code).
42401         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42402         (CHECK_AUTO): Remove.
42403         (CHECK_ALIGNED): Check only the alignment of the static vars,
42404         since auto var alignment isn't supported by Sun C 5.11.
42405         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42406         ASSERT failures are easier to diagnose.
42408 2011-10-31  Bruno Haible  <bruno@clisp.org>
42410         doc about some IRIX 5.3 problems.
42411         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42412         on IRIX 5.3.
42413         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
42414         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
42415         5.3.
42416         * doc/posix-functions/grantpt.texi: Likewise.
42417         * doc/posix-functions/unlockpt.texi: Likewise.
42418         * doc/posix-functions/lgamma.texi: Likewise.
42419         * doc/posix-functions/nextafter.texi: Likewise.
42420         * doc/posix-functions/remainder.texi: Likewise.
42421         * doc/posix-functions/select.texi: Mention misplaced declaration on
42422         IRIX 5.3.
42423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42425 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
42427         gitlog-to-changelog: fix git-log invocation.
42428         git-log mishandles date strings before 1970-01-01 UTC, and there is
42429         no use to specify --since=1970-01-01 by default anyway.
42430         * build-aux/gitlog-to-changelog: By default, when no --since option
42431         was given, do not specify explicit --since option to git-log.
42433 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
42435         gitlog-to-changelog: new option --append-dot.
42436         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
42437         first non-blank line of each commit message terminated with a dot.
42439 2011-10-30  Bruno Haible  <bruno@clisp.org>
42441         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42442         * lib/ffsl.h: Include <config.h>.
42443         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42445 2011-10-30  Jim Meyering  <meyering@redhat.com>
42447         GNUmakefile: reenable "make syntax-check" for most projects
42448         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42449         build-aux variable", "syntax-check" would do nothing but succeed with
42450         the "No version control files detected..." diagnostic (unless you
42451         happened to override _build-aux via cfg.mk).
42452         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42453         to precede inclusion of maint.mk.  Otherwise, these variables would
42454         be used undefined in any project that does not override the default.
42456 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42458         gitlog-to-changelog: treat a message with only blank lines as empty.
42459         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42460         trailing blank lines before the code that issues a warning about an
42461         empty commit message.
42463 2011-10-30  Jim Meyering  <meyering@redhat.com>
42465         test-parse-datetime.c: avoid new DST-related false positive test failure
42466         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42467         based on the time/date we'll convert, not the current time.
42468         Otherwise, the moment we cross a DST boundary like today's in
42469         Europe, (CEST to CET), that offset ends up being one hour off.
42471 2011-10-27  Bruno Haible  <bruno@clisp.org>
42473         fstat: Tweak documentation.
42474         * modules/fstat (Description): More precise description.
42476 2011-10-27  Bruno Haible  <bruno@clisp.org>
42478         Update documentation regarding 'largefile' module.
42479         * doc/posix-functions/fstat.texi: Tweak wording.
42480         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42481         problems with huge directories and/or small ino_t types.
42482         * doc/posix-functions/readdir.texi: Likewise.
42483         * doc/posix-functions/rewinddir.texi: Likewise.
42485 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42487         maint.mk: don't maintain a second build-aux variable.
42488         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42489         depends on GNUmakefile, which already maintains a cfg.mk
42490         overridable $(_build-aux) for projects with a non-standard
42491         build-aux directory location, although without the $(srcdir)
42492         prefix.  Use that variable consistently instead of introducing a
42493         second one.  Adjust all call sites.
42495 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42497         Add stdalign module and use it in other modules.
42498         This is based on a previous proposal by Bruno Haible
42499         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42501         stdalign: new module
42502         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42503         * modules/stdalign: New files.
42504         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42505         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42507         stdalign-tests: new module
42508         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42510         argp: use stdalign
42511         * lib/argp-parse.c: Include <stdalign.h>.
42512         (alignof): Remove.
42513         * modules/argp (Depends-on): Add stdalign.
42515         crypto libraries: use stdalign
42516         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42517         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42518         Do not include <stdlib.h> twice, in md4.c.
42519         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42520         because we are accessing a pointer's bit-pattern, not a size.
42521         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42522         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42523         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42524         * modules/crypto/sha512: Likewise.
42526         sys_socket: use stdalign, not alignof
42527         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42528         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42530 2011-10-27  Bruno Haible  <bruno@clisp.org>
42532         raise test: Avoid a test failure on Linux/MIPS.
42533         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42534         because 99 is a valid signal on Linux/MIPS.
42536 2011-10-27  Bruno Haible  <bruno@clisp.org>
42538         nonblocking tests: Fix test failure on Linux/MIPS.
42539         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42540         Set to 270000.
42542 2011-10-27  Bruno Haible  <bruno@clisp.org>
42544         utimensat: Work around problem on Linux/hppa.
42545         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42546         values.
42547         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42549 2011-10-25  Jim Meyering  <meyering@redhat.com>
42551         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42552         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42553         after symbols like NULL, size_t, etc.
42554         Reported by Alfred M. Szmidt.
42556         maint.mk: exempt ENODATA from a syntax-check rule
42557         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42558         from the sc_prohibit_always-defined_macros syntax-check rule.
42559         Add a comment.  See this for more details:
42560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42562 2011-10-23  Jim Meyering  <meyering@redhat.com>
42564         fts: close parent dir FD before returning from post-traversal fts_read
42565         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42566         unlink A, even though an FD open on A remained.  This is suboptimal
42567         (holding a file descriptor open longer than needed), but otherwise not
42568         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42569         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42570         that represents a real problem: it causes the removal of A to fail
42571         with e.g., "rm: cannot remove `A': Device or resource busy"
42573         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42574         directory file descriptors.  After completing the final, FTS_DP,
42575         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42576         cache, but then proceeded to add a new FD to it via the subsequent
42577         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42578         final file descriptor would be closed only via fts_close's call to
42579         fd_ring_clear.  Now, it is usually closed earlier, via the final
42580         FTS_DP-returning fts_read call.
42581         * lib/fts.c (restore_initial_cwd): New function, converted from
42582         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42583         Update callers.
42584         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42585         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42587 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42588             Bruno Haible  <bruno@clisp.org>
42589             Jim Meyering  <jim@meyering.net>
42591         readme-release: improve safety of release prep instructions.
42592         * README-release: Don't git pull all branches when only master
42593         is needed for the release process.
42594         Run make maintainer-clean before changing trees and merging.
42595         Don't try to run ./configure right after git pull in case files
42596         that influence the bootstrap process have changed, move the
42597         ./configure step to after running ./bootstrap.
42598         Don't bootstrap "one last time"... it's the first time!
42600 2011-10-22  Bruno Haible  <bruno@clisp.org>
42602         errno, strerror-override: Support for MSVC 10.
42603         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42604         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42605         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42606         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42607         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42608         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42609         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42610         Assign values compatible with MSVC 10.
42611         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42612         New macros.
42613         (GNULIB_defined_EWINSOCK): New macro.
42614         * lib/strerror-override.c (strerror_override): Update accordingly.
42615         * lib/strerror-override.h: Likewise.
42616         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42617         longer equal to the corresponding errno value.
42618         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42620 2011-10-22  Bruno Haible  <bruno@clisp.org>
42622         perror: Recognize when test program crashes.
42623         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42624         strerror, set gl_cv_func_perror_works to no.
42625         Reported by Daniel Richard G. <skunk@iskunk.org>.
42627         perror: Fix indentation.
42628         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42630 2011-10-22  Bruno Haible  <bruno@clisp.org>
42632         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42633         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42634         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42635         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42636         functions, not as a macro.
42637         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42638         macros.
42639         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42640         absence of macro.
42641         Suggested by Eric Blake.
42642         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42644 2011-10-21  Bruno Haible  <bruno@clisp.org>
42646         relocatable-prog-wrapper: Don't leave object files behind.
42647         * build-aux/install-reloc: Re-synchronize list of .o files to be
42648         removed with list of compilation units.
42650 2011-10-20  Bruno Haible  <bruno@clisp.org>
42652         openpty, posix_openpt: Remove code duplication.
42653         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42654         * lib/openpty.c: Include <stdlib.h>.
42655         (openpty): Use posix_openpt on all platforms except IRIX.
42656         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42658 2011-10-20  Bruno Haible  <bruno@clisp.org>
42660         unlockpt: Detect invalid argument.
42661         * lib/unlockpt.c: Include <fcntl.h>.
42662         (unlockpt): Check whether fd is valid, using fcntl().
42663         * modules/unlockpt (Depends-on): Add fcntl-h.
42665 2011-10-20  Bruno Haible  <bruno@clisp.org>
42667         openpty: Avoid compilation error on AIX 6.1.
42668         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42670 2011-10-20  Bruno Haible  <bruno@clisp.org>
42672         posix_openpt: Support for OpenBSD.
42673         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42674         (posix_openpt) [OpenBSD]: New code.
42675         * lib/grantpt.c: Include <fcntl.h>.
42676         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42677         * modules/grantpt (Depends-on): Add fcntl-h.
42679 2011-10-20  Bruno Haible  <bruno@clisp.org>
42681         posix_openpt test: Coding style.
42682         * tests/test-posix_openpt.c: Use GNU coding style.
42684 2011-10-20  Bruno Haible  <bruno@clisp.org>
42686         grantpt: Support --avoid=pt_chown.
42687         * modules/grantpt (Files): Add lib/pty-private.h.
42689 2011-10-20  Bruno Haible  <bruno@clisp.org>
42691         posix_openpt: Fix autoconf macro.
42692         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42693         unneeded check for _getpty.
42695 2011-10-20  Bruno Haible  <bruno@clisp.org>
42697         openpty: Update comments.
42698         * lib/openpty.c: Add comments about Minix.
42700 2011-10-19  Eric Blake  <eblake@redhat.com>
42702         openpty: relax license
42703         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42705         pt_chown: use configmake to simplify build
42706         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42708         ptsname and others: relax license
42709         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42710         * modules/unlockpt (License): Likewise.
42711         * modules/pt_chown (License): Likewise.
42712         * modules/ptsname (License): Likewise.
42713         * modules/ttyname_r (License): Likewise.
42715 2011-10-19  Jim Meyering  <meyering@redhat.com>
42717         posix_openpt: remove spurious #endif
42718         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42720 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42722         maint.mk: Respect $(build_aux) in web-manual rule.
42723         * top/maint.mk (web-manual): Find gen-announce script in user's
42724         $(build_aux) directory instead of hard-coding 'build-aux'.
42726 2011-10-19  Bruno Haible  <bruno@clisp.org>
42728         posix_openpt: Fix compilation error.
42729         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42730         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42731         Mention the openpty module as an alternative.
42733 2011-10-19  Bruno Haible  <bruno@clisp.org>
42735         Support for old NeXTstep 3.3 frexp().
42736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42737         execution time of the test to 5 seconds.
42738         Reported by Daniel Richard G. <skunk@iskunk.org>.
42740 2011-10-19  Bruno Haible  <bruno@clisp.org>
42742         Support for old NeXTstep 3.3 sed.
42743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42744         part, use /.../, not \|...|. Escape periods in the header file name.
42745         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42746         Reported by Daniel Richard G. <skunk@iskunk.org>.
42748 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42750         Support for old NeXTstep 3.3 gcc.
42751         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42752         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42753         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42754         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42755         * lib/regex.h (_Restrict_arr_): Likewise.
42756         * lib/regex_internal.h (re_token_t): Likewise.
42757         * lib/regexec.c (check_node_accept_bytes): Likewise.
42758         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42760 2011-10-18  Eric Blake  <eblake@redhat.com>
42762         posix_openpt: new module
42763         * modules/posix_openpt: New module.
42764         * m4/posix_openpt.m4: New file.
42765         * lib/posix_openpt.c: Likewise.
42766         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42767         (gl_STDLIB_H_DEFAULTS): Set defaults.
42768         * modules/stdlib (Makefile.am): Substitute macros.
42769         * lib/stdlib.in.h (posix_openpt): Declare.
42770         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42771         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42772         * modules/posix_openpt-tests: New test module.
42773         * tests/test-posix_openpt.c: New test.
42775 2011-10-15  Bruno Haible  <bruno@clisp.org>
42777         xstrtoll: Fix compilation failure.
42778         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42779         from lib/strtol.c.
42780         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42781         some platforms.
42782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42784 2011-10-15  Bruno Haible  <bruno@clisp.org>
42786         vasnprintf: Optimize bit search operation.
42787         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42789         gl_DOUBLE_EXPONENT_LOCATION.
42790         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42791         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42792         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42793         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42794         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42795         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42796         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42797         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42798         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42800 2011-10-15  Bruno Haible  <bruno@clisp.org>
42802         vasnprintf: Fix comments.
42803         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42805 2011-10-14  Bruno Haible  <bruno@clisp.org>
42807         Tests for module 'integer_length_ll'.
42808         * modules/integer_length_ll-tests: New file.
42809         * tests/test-integer_length_ll.c: New file.
42811         New module 'integer_length_ll'.
42812         * lib/integer_length_ll.c: New file.
42813         * modules/integer_length_ll: New file.
42815 2011-10-14  Bruno Haible  <bruno@clisp.org>
42817         Tests for module 'integer_length_l'.
42818         * modules/integer_length_l-tests: New file.
42819         * tests/test-integer_length_l.c: New file.
42821         New module 'integer_length_l'.
42822         * lib/integer_length_l.c: New file.
42823         * modules/integer_length_l: New file.
42825 2011-10-14  Bruno Haible  <bruno@clisp.org>
42827         Tests for module 'integer_length'.
42828         * modules/integer_length-tests: New file.
42829         * tests/test-integer_length.c: New file.
42831         New module 'integer_length'.
42832         * lib/integer_length.h: New file.
42833         * lib/integer_length.c: New file.
42834         * modules/integer_length: New file.
42836 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42838         popen: Fix dependency conditions.
42839         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42841 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42843         perror: Fix autoconf test.
42844         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42845         <stdlib.h> and <string.h>.
42847 2011-10-14  Bruno Haible  <bruno@clisp.org>
42849         ffsl: Optimize on 64-bit platforms.
42850         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42851         unrolling.
42853 2011-10-13  Bruno Haible  <bruno@clisp.org>
42855         ffsl: Optimize on 32-bit platforms.
42856         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42857         use ffs() without a loop.
42859         ffsl, ffsll: Optimize for GCC.
42860         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42861         * lib/ffsl.c (GCC_BUILTIN): New macro.
42862         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42864 2011-10-13  Bruno Haible  <bruno@clisp.org>
42866         ffs, bcopy, memset: Support symbol renaming via config.h.
42867         * lib/ffs.c: Include <config.h>.
42868         * lib/bcopy.c: Likewise.
42869         * lib/memset.c: Likewise.
42871 2011-10-10  Bruno Haible  <bruno@clisp.org>
42873         atanl: Simplify for platforms where 'long double' == 'double'.
42874         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42875         alternative implementation.
42876         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42877         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42878         * modules/atanl (Depends-on): Add atan. Update conditions.
42880 2011-10-10  Bruno Haible  <bruno@clisp.org>
42882         acosl: Simplify for platforms where 'long double' == 'double'.
42883         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42884         alternative implementation.
42885         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42886         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42887         * modules/acosl (Depends-on): Add acos. Update conditions.
42889 2011-10-10  Bruno Haible  <bruno@clisp.org>
42891         asinl: Simplify for platforms where 'long double' == 'double'.
42892         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42893         alternative implementation.
42894         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42895         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42896         * modules/asinl (Depends-on): Add asin. Update conditions.
42898 2011-10-10  Bruno Haible  <bruno@clisp.org>
42900         tanl: Simplify for platforms where 'long double' == 'double'.
42901         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42902         implementation.
42903         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42904         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42905         * modules/tanl (Depends-on): Add tan. Update conditions.
42906         (configure.ac): Don't compile trigl.c if
42907         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42909 2011-10-10  Bruno Haible  <bruno@clisp.org>
42911         cosl: Simplify for platforms where 'long double' == 'double'.
42912         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42913         implementation.
42914         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42915         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42916         * modules/cosl (Depends-on): Add cos. Update conditions.
42917         (configure.ac): Don't compile sincosl.c and trigl.c if
42918         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42920 2011-10-10  Bruno Haible  <bruno@clisp.org>
42922         sinl: Simplify for platforms where 'long double' == 'double'.
42923         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42924         implementation.
42925         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42926         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42927         * modules/sinl (Depends-on): Add sin. Update conditions.
42928         (configure.ac): Don't compile sincosl.c and trigl.c if
42929         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42931 2011-10-10  Bruno Haible  <bruno@clisp.org>
42933         logl: Simplify for platforms where 'long double' == 'double'.
42934         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42935         implementation.
42936         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42937         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42938         * modules/logl (Depends-on): Add log. Update conditions.
42940 2011-10-10  Bruno Haible  <bruno@clisp.org>
42942         expl: Simplify for platforms where 'long double' == 'double'.
42943         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42944         implementation.
42945         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42946         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42947         * modules/expl (Depends-on): Add exp. Update conditions.
42949 2011-10-10  Bruno Haible  <bruno@clisp.org>
42951         sqrtl: Simplify for platforms where 'long double' == 'double'.
42952         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42953         alternative implementation.
42954         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42955         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42956         * modules/sqrtl (Depends-on): Update conditions.
42958 2011-10-10  Bruno Haible  <bruno@clisp.org>
42960         ldexpl: Simplify for platforms where 'long double' == 'double'.
42961         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42962         alternative implementation.
42963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42964         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42965         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42967 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42969         ffsll: set correct witness
42970         * modules/ffsll (configure.ac): Fix typo.
42972 2011-10-10  Bruno Haible  <bruno@clisp.org>
42974         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42975         * lib/printf-frexpl.c: Include <config.h>.
42976         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42977         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42978         second time.
42979         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42980         gl_LONG_DOUBLE_VS_DOUBLE.
42981         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42982         conditions.
42984 2011-10-10  Bruno Haible  <bruno@clisp.org>
42986         frexpl: Simplify for platforms where 'long double' == 'double'.
42987         * lib/frexpl.c: Include <config.h>.
42988         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42989         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42990         time.
42991         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42992         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42993         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42994         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42995         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42996         conditions.
42998 2011-10-10  Jim Meyering  <meyering@redhat.com>
43000         test-renameat: don't leave behind a temporary file
43001         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43002           ERROR: files left in build directory after distclean:
43003           ./gltests/test-renameat.too
43004           make[1]: *** [distcleancheck] Error 1
43005         Reported by Tom G. Christensen.
43007 2011-10-09  Bruno Haible  <bruno@clisp.org>
43009         rint: Determine RINT_LIBM correctly on AIX 7.
43010         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43011         directly, not only through a function pointer. Also accept an optional
43012         4th argument with extra code.
43013         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43014         rintf() call by gcc when optimizing.
43016         mathfunc.m4: Refactor.
43017         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43018         m4 variable.
43020 2011-10-09  Bruno Haible  <bruno@clisp.org>
43022         rintl: Simplify for platforms where 'long double' == 'double'.
43023         * lib/rintl.c: Include <config.h>.
43024         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43025         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43026         time.
43027         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43028         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43029         * modules/rintl (Depends-on): Add rint. Update conditions.
43031 2011-10-09  Bruno Haible  <bruno@clisp.org>
43033         roundl: Simplify for platforms where 'long double' == 'double'.
43034         * lib/roundl.c: Include <config.h>.
43035         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43036         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43037         time.
43038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43039         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43040         * modules/roundl (Depends-on): Add round. Update conditions.
43042 2011-10-09  Bruno Haible  <bruno@clisp.org>
43044         truncl: Simplify for platforms where 'long double' == 'double'.
43045         * lib/truncl.c: Include <config.h>.
43046         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43047         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43048         time.
43049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43050         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43051         * modules/truncl (Depends-on): Add trunc. Update conditions.
43053 2011-10-09  Bruno Haible  <bruno@clisp.org>
43055         ceill: Simplify for platforms where 'long double' == 'double'.
43056         * lib/ceill.c: Include <config.h>.
43057         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43058         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43059         time.
43060         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43061         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43062         * modules/ceill (Depends-on): Add ceil. Update conditions.
43064 2011-10-09  Bruno Haible  <bruno@clisp.org>
43066         floorl: Simplify for platforms where 'long double' == 'double'.
43067         * lib/floorl.c: Include <config.h>.
43068         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43069         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43070         time.
43071         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43072         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43073         * modules/floorl (Depends-on): Add floor. Update conditions.
43075 2011-10-09  Bruno Haible  <bruno@clisp.org>
43077         rint: Fix ordering constraints.
43078         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43079         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43080         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43082 2011-10-09  Bruno Haible  <bruno@clisp.org>
43084         copysignl: Simplify for platforms where 'long double' == 'double'.
43085         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43086         alternative.
43087         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43088         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43089         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43091 2011-10-09  Bruno Haible  <bruno@clisp.org>
43093         Tests for module 'rintl'.
43094         * modules/rintl-tests: New file.
43095         * tests/test-rintl.c: New file.
43097         New module 'rintl'.
43098         * lib/math.in.h (rintl): New declaration.
43099         * lib/rintl.c: New file.
43100         * m4/rintl.m4: New file.
43101         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43103         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43104         * modules/rintl: New file.
43105         * tests/test-math-c++.cc: Check the declaration of rintl.
43106         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43107         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43108         * doc/posix-functions/rintl.texi: Mention the new module.
43110 2011-10-09  Bruno Haible  <bruno@clisp.org>
43112         Tests for module 'rintf'.
43113         * modules/rintf-tests: New file.
43114         * tests/test-rintf.c: New file.
43116         New module 'rintf'.
43117         * lib/math.in.h (rintf): New declaration.
43118         * lib/rintf.c: New file.
43119         * m4/rintf.m4: New file.
43120         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43122         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43123         * modules/rintf: New file.
43124         * tests/test-math-c++.cc: Check the declaration of rintf.
43125         * doc/posix-functions/rintf.texi: Mention the new module.
43127 2011-10-09  Bruno Haible  <bruno@clisp.org>
43129         rint: Support for MSVC.
43130         * lib/math.in.h (rint): New declaration.
43131         * lib/rint.c: New file.
43132         * m4/rint.m4: New file.
43133         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43135         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43136         * modules/rint (Description): Fix.
43137         (Files): Add lib/rint.c, m4/rint.m4.
43138         (Depends-on): Add math.
43139         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43140         gl_MATH_MODULE_INDICATOR.
43141         * tests/test-math-c++.cc: Check the declaration of rint.
43142         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43143         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43144         * doc/posix-functions/rint.texi: Mention the replacement provided by
43145         the module.
43147         rint tests: More tests.
43148         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43149         minus-zero.h, infinity.h, nan.h.
43150         (main): Skip the test if the current rounding mode is not standard. Add
43151         tests for negative numbers, minus zero, infinity, NaN.
43152         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43153         tests/nan.h.
43154         (Depends-on): Add isnand-nolibm.
43156 2011-10-09  Bruno Haible  <bruno@clisp.org>
43158         Tests for module 'copysignl'.
43159         * modules/copysignl-tests: New file.
43160         * tests/test-copysignl.c: New file.
43162         New module 'copysignl'.
43163         * lib/math.in.h (copysignl): New declaration.
43164         * lib/copysignl.c: New file.
43165         * m4/copysignl.m4: New file.
43166         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43168         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43169         HAVE_COPYSIGNL.
43170         * modules/copysignl: New file.
43171         * tests/test-math-c++.cc: Check the declaration of copysignl.
43172         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43173         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43174         * doc/posix-functions/copysignl.texi: Mention the new module.
43176 2011-10-09  Bruno Haible  <bruno@clisp.org>
43178         Tests for module 'copysignf'.
43179         * modules/copysignf-tests: New file.
43180         * tests/test-copysignf.c: New file.
43182         New module 'copysignf'.
43183         * lib/math.in.h (copysignf): New declaration.
43184         * lib/copysignf.c: New file.
43185         * m4/copysignf.m4: New file.
43186         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43188         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43189         HAVE_COPYSIGNF.
43190         * modules/copysignf: New file.
43191         * tests/test-math-c++.cc: Check the declaration of copysignf.
43192         * doc/posix-functions/copysignf.texi: Mention the new module.
43194 2011-10-09  Bruno Haible  <bruno@clisp.org>
43196         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43198         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43199         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43200         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43201         gl_SIGNAL_H_DEFAULTS.
43203 2011-10-09  Bruno Haible  <bruno@clisp.org>
43205         poll: Make macro safer.
43206         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43207         ac_cv_header_poll_h is not set.
43209 2011-10-09  Bruno Haible  <bruno@clisp.org>
43211         copysign: Provide replacement.
43212         * lib/math.in.h (copysign): New declaration.
43213         * lib/copysign.c: New file.
43214         * m4/copysign.m4: New file.
43215         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43217         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43218         HAVE_COPYSIGN.
43219         * modules/copysign (Description): Clarify.
43220         (Files): Add lib/copysign.c, m4/copysign.m4.
43221         (Depends-on): Add math, signbit.
43222         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43223         gl_MATH_MODULE_INDICATOR.
43224         * tests/test-math-c++.cc: Check the declaration of copysign.
43225         * doc/posix-functions/copysign.texi: Mention the effects of the module
43226         on Minix and MSVC.
43228 2011-10-09  Bruno Haible  <bruno@clisp.org>
43230         isinf: Ensure macro on AIX 5.1.
43231         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43232         macro.
43233         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43235 2011-10-09  Bruno Haible  <bruno@clisp.org>
43237         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43238         * modules/snprintf-posix-tests (configure.ac): Require
43239         gl_LONG_DOUBLE_VS_DOUBLE.
43240         * modules/sprintf-posix-tests (configure.ac): Likewise.
43241         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43242         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43243         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43244         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43245         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43246         tests on platforms where 'long double' is the same as 'double'.
43247         * tests/test-sprintf-posix.h (test_function): Likewise.
43248         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43249         * tests/test-vasprintf-posix.c (test_function): Likewise.
43251         *printf: Fix for platforms where 'long double' == 'double'.
43252         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43253         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43254         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43255         * modules/fprintf-posix (Files): Likewise.
43256         * modules/obstack-printf-posix (Files): Likewise.
43257         * modules/snprintf-posix (Files): Likewise.
43258         * modules/sprintf-posix (Files): Likewise.
43259         * modules/vasnprintf (Files): Likewise.
43260         * modules/vasnprintf-posix (Files): Likewise.
43261         * modules/vasprintf-posix (Files): Likewise.
43262         * modules/vdprintf-posix (Files): Likewise.
43263         * modules/vfprintf-posix (Files): Likewise.
43264         * modules/vsnprintf-posix (Files): Likewise.
43265         * modules/vsprintf-posix (Files): Likewise.
43266         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43267         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43268         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43269         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43270         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43271         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43272         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43274         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43275         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43276         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43277         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43278         'long double'.
43279         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43281         isinf: Fix for platforms where 'long double' == 'double'.
43282         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43283         Don't blindly assume 80-bit 'long double'.
43285         isfinite: Fix for platforms where 'long double' == 'double'.
43286         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43287         Don't blindly assume 80-bit 'long double'.
43289         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43290         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43291         * modules/isfinite-tests (configure.ac): Require
43292         gl_LONG_DOUBLE_VS_DOUBLE.
43293         * modules/isinf-tests (configure.ac): Likewise.
43294         * modules/isnan-tests (configure.ac): Likewise.
43295         * modules/isnanl-tests (configure.ac): Likewise.
43296         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43297         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43298         tests on platforms where 'long double' is the same as 'double'.
43299         * tests/test-isinf.c (test_isinfl): Likewise.
43300         * tests/test-isnan.c (test_long_double): Likewise.
43301         * tests/test-isnanl.h (main): Likewise.
43303 2011-10-08  Bruno Haible  <bruno@clisp.org>
43305         Tests for module 'tanhf'.
43306         * modules/tanhf-tests: New file.
43307         * tests/test-tanhf.c: New file.
43309         New module 'tanhf'.
43310         * lib/math.in.h (tanhf): New declaration.
43311         * lib/tanhf.c: New file.
43312         * m4/tanhf.m4: New file.
43313         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43315         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43316         * modules/tanhf: New file.
43317         * tests/test-math-c++.cc: Check the declaration of tanhf.
43318         * doc/posix-functions/tanhf.texi: Mention the new module.
43320         tanh: Use a .m4 file.
43321         * m4/tanh.m4: New file.
43322         * modules/tanh (Files): Add it.
43323         (configure.ac): Just invoke gl_FUNC_TANH.
43325 2011-10-08  Bruno Haible  <bruno@clisp.org>
43327         Tests for module 'coshf'.
43328         * modules/coshf-tests: New file.
43329         * tests/test-coshf.c: New file.
43331         New module 'coshf'.
43332         * lib/math.in.h (coshf): New declaration.
43333         * lib/coshf.c: New file.
43334         * m4/coshf.m4: New file.
43335         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43337         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43338         * modules/coshf: New file.
43339         * tests/test-math-c++.cc: Check the declaration of coshf.
43340         * doc/posix-functions/coshf.texi: Mention the new module.
43342         cosh: Use a .m4 file.
43343         * m4/cosh.m4: New file.
43344         * modules/cosh (Files): Add it.
43345         (configure.ac): Just invoke gl_FUNC_COSH.
43347 2011-10-08  Bruno Haible  <bruno@clisp.org>
43349         Tests for module 'sinhf'.
43350         * modules/sinhf-tests: New file.
43351         * tests/test-sinhf.c: New file.
43353         New module 'sinhf'.
43354         * lib/math.in.h (sinhf): New declaration.
43355         * lib/sinhf.c: New file.
43356         * m4/sinhf.m4: New file.
43357         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43359         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43360         * modules/sinhf: New file.
43361         * tests/test-math-c++.cc: Check the declaration of sinhf.
43362         * doc/posix-functions/sinhf.texi: Mention the new module.
43364         sinh: Use a .m4 file.
43365         * m4/sinh.m4: New file.
43366         * modules/sinh (Files): Add it.
43367         (configure.ac): Just invoke gl_FUNC_SINH.
43369 2011-10-08  Bruno Haible  <bruno@clisp.org>
43371         Tests for module 'atan2f'.
43372         * modules/atan2f-tests: New file.
43373         * tests/test-atan2f.c: New file.
43375         New module 'atan2f'.
43376         * lib/math.in.h (atan2f): New declaration.
43377         * lib/atan2f.c: New file.
43378         * m4/atan2f.m4: New file.
43379         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43381         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43382         * modules/atan2f: New file.
43383         * tests/test-math-c++.cc: Check the declaration of atan2f.
43384         * doc/posix-functions/atan2f.texi: Mention the new module.
43386         atan2: Use a .m4 file.
43387         * m4/atan2.m4: New file.
43388         * modules/atan2 (Files): Add it.
43389         (configure.ac): Just invoke gl_FUNC_ATAN2.
43391 2011-10-08  Bruno Haible  <bruno@clisp.org>
43393         Tests for module 'atanf'.
43394         * modules/atanf-tests: New file.
43395         * tests/test-atanf.c: New file.
43397         New module 'atanf'.
43398         * lib/math.in.h (atanf): New declaration.
43399         * lib/atanf.c: New file.
43400         * m4/atanf.m4: New file.
43401         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43403         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43404         * modules/atanf: New file.
43405         * tests/test-math-c++.cc: Check the declaration of atanf.
43406         * doc/posix-functions/atanf.texi: Mention the new module.
43408         atan: Use a .m4 file.
43409         * m4/atan.m4: New file.
43410         * modules/atan (Files): Add it.
43411         (configure.ac): Just invoke gl_FUNC_ATAN.
43413 2011-10-08  Bruno Haible  <bruno@clisp.org>
43415         Tests for module 'acosf'.
43416         * modules/acosf-tests: New file.
43417         * tests/test-acosf.c: New file.
43419         New module 'acosf'.
43420         * lib/math.in.h (acosf): New declaration.
43421         * lib/acosf.c: New file.
43422         * m4/acosf.m4: New file.
43423         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
43424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
43425         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43426         * modules/acosf: New file.
43427         * tests/test-math-c++.cc: Check the declaration of acosf.
43428         * doc/posix-functions/acosf.texi: Mention the new module.
43430         acos: Use a .m4 file.
43431         * m4/acos.m4: New file.
43432         * modules/acos (Files): Add it.
43433         (configure.ac): Just invoke gl_FUNC_ACOS.
43435 2011-10-08  Bruno Haible  <bruno@clisp.org>
43437         Tests for module 'asinf'.
43438         * modules/asinf-tests: New file.
43439         * tests/test-asinf.c: New file.
43441         New module 'asinf'.
43442         * lib/math.in.h (asinf): New declaration.
43443         * lib/asinf.c: New file.
43444         * m4/asinf.m4: New file.
43445         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43447         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43448         * modules/asinf: New file.
43449         * tests/test-math-c++.cc: Check the declaration of asinf.
43450         * doc/posix-functions/asinf.texi: Mention the new module.
43452         asin: Use a .m4 file.
43453         * m4/asin.m4: New file.
43454         * modules/asin (Files): Add it.
43455         (configure.ac): Just invoke gl_FUNC_ASIN.
43457 2011-10-08  Bruno Haible  <bruno@clisp.org>
43459         Tests for module 'tanf'.
43460         * modules/tanf-tests: New file.
43461         * tests/test-tanf.c: New file.
43463         New module 'tanf'.
43464         * lib/math.in.h (tanf): New declaration.
43465         * lib/tanf.c: New file.
43466         * m4/tanf.m4: New file.
43467         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43469         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43470         * modules/tanf: New file.
43471         * tests/test-math-c++.cc: Check the declaration of tanf.
43472         * doc/posix-functions/tanf.texi: Mention the new module.
43474         tan: Use a .m4 file.
43475         * m4/tan.m4: New file.
43476         * modules/tan (Files): Add it.
43477         (configure.ac): Just invoke gl_FUNC_TAN.
43479 2011-10-08  Bruno Haible  <bruno@clisp.org>
43481         Tests for module 'cosf'.
43482         * modules/cosf-tests: New file.
43483         * tests/test-cosf.c: New file.
43485         New module 'cosf'.
43486         * lib/math.in.h (cosf): New declaration.
43487         * lib/cosf.c: New file.
43488         * m4/cosf.m4: New file.
43489         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43491         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43492         * modules/cosf: New file.
43493         * tests/test-math-c++.cc: Check the declaration of cosf.
43494         * doc/posix-functions/cosf.texi: Mention the new module.
43496         cos: Use a .m4 file.
43497         * m4/cos.m4: New file.
43498         * modules/cos (Files): Add it.
43499         (configure.ac): Just invoke gl_FUNC_COS.
43501 2011-10-08  Bruno Haible  <bruno@clisp.org>
43503         Tests for module 'sinf'.
43504         * modules/sinf-tests: New file.
43505         * tests/test-sinf.c: New file.
43507         New module 'sinf'.
43508         * lib/math.in.h (sinf): New declaration.
43509         * lib/sinf.c: New file.
43510         * m4/sinf.m4: New file.
43511         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43513         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43514         * modules/sinf: New file.
43515         * tests/test-math-c++.cc: Check the declaration of sinf.
43516         * doc/posix-functions/sinf.texi: Mention the new module.
43518         sin: Use a .m4 file.
43519         * m4/sin.m4: New file.
43520         * modules/sin (Files): Add it.
43521         (configure.ac): Just invoke gl_FUNC_SIN.
43523 2011-10-08  Bruno Haible  <bruno@clisp.org>
43525         Tests for module 'powf'.
43526         * modules/powf-tests: New file.
43527         * tests/test-powf.c: New file.
43529         New module 'powf'.
43530         * lib/math.in.h (powf): New declaration.
43531         * lib/powf.c: New file.
43532         * m4/powf.m4: New file.
43533         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43535         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43536         * modules/powf: New file.
43537         * tests/test-math-c++.cc: Check the declaration of powf.
43538         * doc/posix-functions/powf.texi: Mention the new module.
43540         pow: Use a .m4 file.
43541         * m4/pow.m4: New file.
43542         * modules/pow (Files): Add it.
43543         (configure.ac): Just invoke gl_FUNC_POW.
43545 2011-10-08  Bruno Haible  <bruno@clisp.org>
43547         Tests for module 'log10f'.
43548         * modules/log10f-tests: New file.
43549         * tests/test-log10f.c: New file.
43551         New module 'log10f'.
43552         * lib/math.in.h (log10f): New declaration.
43553         * lib/log10f.c: New file.
43554         * m4/log10f.m4: New file.
43555         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43557         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43558         * modules/log10f: New file.
43559         * tests/test-math-c++.cc: Check the declaration of log10f.
43560         * doc/posix-functions/log10f.texi: Mention the new module.
43562         log10: Use a .m4 file.
43563         * m4/log10.m4: New file.
43564         * modules/log10 (Files): Add it.
43565         (configure.ac): Just invoke gl_FUNC_LOG10.
43567 2011-10-08  Bruno Haible  <bruno@clisp.org>
43569         Tests for module 'logf'.
43570         * modules/logf-tests: New file.
43571         * tests/test-logf.c: New file.
43573         New module 'logf'.
43574         * lib/math.in.h (logf): New declaration.
43575         * lib/logf.c: New file.
43576         * m4/logf.m4: New file.
43577         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43579         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43580         * modules/logf: New file.
43581         * tests/test-math-c++.cc: Check the declaration of logf.
43582         * doc/posix-functions/logf.texi: Mention the new module.
43584         log: Use a .m4 file.
43585         * m4/log.m4: New file.
43586         * modules/log (Files): Add it.
43587         (configure.ac): Just invoke gl_FUNC_LOG.
43589 2011-10-08  Bruno Haible  <bruno@clisp.org>
43591         Tests for module 'expf'.
43592         * modules/expf-tests: New file.
43593         * tests/test-expf.c: New file.
43595         New module 'expf'.
43596         * lib/math.in.h (expf): New declaration.
43597         * lib/expf.c: New file.
43598         * m4/expf.m4: New file.
43599         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43601         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43602         * modules/expf: New file.
43603         * tests/test-math-c++.cc: Check the declaration of expf.
43604         * doc/posix-functions/expf.texi: Mention the new module.
43606         exp: Use a .m4 file.
43607         * m4/exp.m4: New file.
43608         * modules/exp (Files): Add it.
43609         (configure.ac): Just invoke gl_FUNC_EXP.
43611 2011-10-08  Bruno Haible  <bruno@clisp.org>
43613         Tests for module 'sqrtf'.
43614         * modules/sqrtf-tests: New file.
43615         * tests/test-sqrtf.c: New file.
43617         New module 'sqrtf'.
43618         * lib/math.in.h (sqrtf): New declaration.
43619         * lib/sqrtf.c: New file.
43620         * m4/sqrtf.m4: New file.
43621         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43623         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43624         * modules/sqrtf: New file.
43625         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43626         * doc/posix-functions/sqrtf.texi: Mention the new module.
43628 2011-10-08  Bruno Haible  <bruno@clisp.org>
43630         Tests: Avoid link failures w.r.t. libintl.
43631         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43632         $(LIBINTL).
43633         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43634         $(LIBINTL).
43635         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43636         against $(LIBINTL).
43637         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43638         $(LIBINTL).
43639         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43640         $(LIBINTL).
43641         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43643 2011-10-08  Bruno Haible  <bruno@clisp.org>
43645         pow tests: Defeat compiler optimizations.
43646         * tests/test-pow.c (main): Assign arguments to x and y before use.
43648 2011-10-08  Bruno Haible  <bruno@clisp.org>
43650         gnulib-tool: Improve last commit.
43651         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43652         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43653         ignore dependencies that are not among the modules list.
43655 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43657         gnulib-tool: don't follow dependencies to avoided modules
43658         This fixes a bug that is related to the previous one.
43659         * gnulib-tool (func_modules_transitive_closure)
43660         (func_emit_autoconf_snippets):
43661         Check whether a dependency is acceptable before using it.
43662         (--extract-dependencies): Report an error if --avoid is also used,
43663         since this combination of options is not yet supported.
43665         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43666         Problem reported by Peter Dyballa in
43667         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43668         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43669         when echoing "$condition".
43671 2011-10-07  Bruno Haible  <bruno@clisp.org>
43673         Fix documentation about math functions on MacOS X.
43674         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43675         MacOS X 10.5.
43676         * doc/posix-functions/fdim.texi: Likewise.
43677         * doc/posix-functions/feclearexcept.texi: Likewise.
43678         * doc/posix-functions/fegetenv.texi: Likewise.
43679         * doc/posix-functions/fegetround.texi: Likewise.
43680         * doc/posix-functions/feholdexcept.texi: Likewise.
43681         * doc/posix-functions/feraiseexcept.texi: Likewise.
43682         * doc/posix-functions/fesetenv.texi: Likewise.
43683         * doc/posix-functions/fesetround.texi: Likewise.
43684         * doc/posix-functions/fetestexcept.texi: Likewise.
43685         * doc/posix-functions/feupdateenv.texi: Likewise.
43686         * doc/posix-functions/fmax.texi: Likewise.
43687         * doc/posix-functions/fmin.texi: Likewise.
43688         * doc/posix-functions/log2.texi: Likewise.
43689         * doc/posix-functions/modff.texi: Likewise.
43690         * doc/posix-functions/nan.texi: Likewise.
43691         * doc/posix-functions/nanf.texi: Likewise.
43692         * doc/posix-functions/nextafterf.texi: Likewise.
43693         * doc/posix-functions/remquo.texi: Likewise.
43695 2011-10-07  Bruno Haible  <bruno@clisp.org>
43697         modff: Drop assumption about library that defines modff.
43698         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43699         AC_CHECK_FUNCS.
43700         * modules/modff (Files): Add m4/mathfunc.m4.
43702 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43704         raise tests: Avoid a GCC warning.
43705         * tests/test-raise.c (handler): Use _Noreturn.
43707 2011-10-07  Bruno Haible  <bruno@clisp.org>
43709         Tests for module 'ldexpf'.
43710         * modules/ldexpf-tests: New file.
43711         * tests/test-ldexpf.c: New file.
43713         New module 'ldexpf'.
43714         * lib/math.in.h (ldexpf): New declaration.
43715         * lib/ldexpf.c: New file.
43716         * m4/ldexpf.m4: New file.
43717         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43719         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43720         * modules/ldexpf: New file.
43721         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43722         * doc/posix-functions/ldexpf.texi: Mention the new module.
43724 2011-10-06  Bruno Haible  <bruno@clisp.org>
43726         frexpf: Work around problems on IRIX and mingw.
43727         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43729         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43730         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43731         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43732         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43733         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43735 2011-10-06  Bruno Haible  <bruno@clisp.org>
43737         fabsf: Drop assumption about library that defines fabsf.
43738         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43739         AC_CHECK_FUNCS.
43740         * modules/fabsf (Files): Add m4/mathfunc.m4.
43742 2011-10-06  Bruno Haible  <bruno@clisp.org>
43744         frexpf: Drop assumption about library that defines frexpf.
43745         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43746         'int *', 'float *', 'long double *', 'float', 'long double'.
43747         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43748         AC_CHECK_FUNCS.
43749         * modules/frexpf (Files): Add m4/mathfunc.m4.
43751         Tests for module 'frexpf'.
43752         * modules/frexpf-tests: New file.
43753         * tests/test-frexpf.c: New file.
43755         New module 'frexpf'.
43756         * lib/math.in.h (frexpf): New declaration.
43757         * lib/frexpf.c: New file.
43758         * m4/frexpf.m4: New file.
43759         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43761         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43762         * modules/frexpf: New file.
43763         * tests/test-math-c++.cc: Check the declaration of frexpf.
43764         * doc/posix-functions/frexpf.texi: Mention the new module.
43766 2011-10-06  Bruno Haible  <bruno@clisp.org>
43768         math: Sort function declarations of math.in.h.
43769         * lib/math.in.h (frexp, logb): Move declarations.
43771 2011-10-05  Bruno Haible  <bruno@clisp.org>
43773         Tests for module 'modff'.
43774         * modules/modff-tests: New file.
43775         * tests/test-modff.c: New file.
43777         New module 'modff'.
43778         * lib/math.in.h (modff): New declaration.
43779         * lib/modff.c: New file.
43780         * m4/modff.m4: New file.
43781         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43783         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43784         * modules/modff: New file.
43785         * tests/test-math-c++.cc: Check the declaration of modff.
43786         * doc/posix-functions/modff.texi: Mention the new module.
43788         modf tests: Make test sharper.
43789         * tests/test-modf.c (main): Strengthen upper bound.
43791         modf: Use a .m4 file.
43792         * m4/modf.m4: New file.
43793         * modules/modf (Files): Add it.
43794         (configure.ac): Just invoke gl_FUNC_MODF.
43796 2011-10-05  Bruno Haible  <bruno@clisp.org>
43798         Tests for module 'fmodf'.
43799         * modules/fmodf-tests: New file.
43800         * tests/test-fmodf.c: New file.
43802         New module 'fmodf'.
43803         * lib/math.in.h (fmodf): New declaration.
43804         * lib/fmodf.c: New file.
43805         * m4/fmodf.m4: New file.
43806         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43808         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43809         * modules/fmodf: New file.
43810         * tests/test-math-c++.cc: Check the declaration of fmodf.
43811         * doc/posix-functions/fmodf.texi: Mention the new module.
43813         fmod: Use a .m4 file.
43814         * m4/fmod.m4: New file.
43815         * modules/fmod (Files): Add it.
43816         (configure.ac): Just invoke gl_FUNC_FMOD.
43818 2011-10-05  Bruno Haible  <bruno@clisp.org>
43820         Tests for module 'fabsf'.
43821         * modules/fabsf-tests: New file.
43822         * tests/test-fabsf.c: New file.
43824         New module 'fabsf'.
43825         * lib/math.in.h (fabsf): New declaration.
43826         * lib/fabsf.c: New file.
43827         * m4/fabsf.m4: New file.
43828         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43830         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43831         * modules/fabsf: New file.
43832         * tests/test-math-c++.cc: Check the declaration of fabsf.
43833         * doc/posix-functions/fabsf.texi: Mention the new module.
43835         fabs: Use a .m4 file.
43836         * m4/fabs.m4: New file.
43837         * modules/fabs (Files): Add it.
43838         (configure.ac): Just invoke gl_FUNC_FABS.
43840 2011-10-05  Jim Meyering  <meyering@redhat.com>
43842         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43843         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43844         ls -lL regression introduced in coreutils-8.12, it does so at the
43845         cost of an additional stat call in the common case.  Besides, now
43846         that the kernel change that prompted commit 95f7c57f has been reverted
43847         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43848         we have no use for commit 95f7c57f, "file-has-acl: use
43849         acl_extended_file_nofollow if available".
43851 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43853         file-has-acl: revert unintended change in behavior of ls -L
43854         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43855         derived from...
43856         (file_has_acl): ...code here.  Call it.
43857         This problem was introduced with 2011-07-22 commit 95f7c57f,
43858         "file-has-acl: use acl_extended_file_nofollow if available".
43859         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43861 2011-10-03  Bruno Haible  <bruno@clisp.org>
43863         poll: Avoid link errors on MSVC.
43864         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43865         * modules/poll (Depends-on): Add sockets.
43866         (Link): New section.
43867         * NEWS: Mention the change.
43868         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43869         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43870         $(LIB_POLL) instead of $(LIBSOCKET).
43872 2011-10-03  Bruno Haible  <bruno@clisp.org>
43874         sys_select tests: Fix link error on MSVC 9.
43875         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43876         with $(LIB_SELECT) instead of $(LIBSOCKET).
43878 2011-10-03  Bruno Haible  <bruno@clisp.org>
43880         sys_select: Fix compilation error on mingw.
43881         * lib/sys_select.in.h: On native Windows, include <io.h>.
43883 2011-10-03  Bruno Haible  <bruno@clisp.org>
43885         wmemset: Support for MSVC.
43886         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43887         whether wmemset() exists.
43889 2011-10-03  Bruno Haible  <bruno@clisp.org>
43891         wmemmove: Support for MSVC.
43892         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43893         whether wmemmove() exists.
43895 2011-10-03  Bruno Haible  <bruno@clisp.org>
43897         wmemcpy: Support for MSVC.
43898         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43899         whether wmemcpy() exists.
43901 2011-10-03  Bruno Haible  <bruno@clisp.org>
43903         wmemcmp: Support for MSVC.
43904         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43905         whether wmemcmp() exists.
43907 2011-10-03  Bruno Haible  <bruno@clisp.org>
43909         wmemchr: Support for MSVC.
43910         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43911         whether wmemchr() exists.
43913 2011-10-03  Bruno Haible  <bruno@clisp.org>
43915         glthread/*, strsignal: Support for MSVC.
43916         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43917         including <winsock.h> on MSVC 9.
43918         * lib/glthread/lock.h: Likewise.
43919         * lib/glthread/thread.h: Likewise.
43920         * lib/glthread/tls.h: Likewise.
43921         * lib/glthread/yield.h: Likewise.
43922         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43923         if HAVE_UNISTD_H is false.
43924         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43926 2011-10-03  Bruno Haible  <bruno@clisp.org>
43928         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43929         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43930         Set to 100000.
43932 2011-10-03  Bruno Haible  <bruno@clisp.org>
43934         acl: Fix specification.
43935         * lib/file-has-acl.c (file_has_acl): Fix specification.
43937 2011-10-03  Bruno Haible  <bruno@clisp.org>
43939         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43940         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43941         (compute_curr_prefix, shared_library_fullname,
43942         find_shared_library_fullname, get_shared_library_fullname, relocate):
43943         Use it together with PIC && INSTALLDIR.
43944         Reported by <jojelino@gmail.com>
43945         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43947 2011-10-01  Jim Meyering  <meyering@redhat.com>
43949         maint.mk: adjust a release-related rule not to require use of gzip
43950         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43951         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43952         projects that build only .tar.xz files.  Also fix an erroneous test.
43954         test-linkat: don't leave behind a temporary file
43955         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43956         Otherwise, coreutils' "make distcheck" would fail with this:
43957           Only in /c/cu/tests/torture/coreutils/test/\
43958             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43959           make[2]: *** [my-distcheck] Error 1
43961         float, math: add omitted file
43962         * lib/itold.c: Add file, required for yesterday's float change.
43964 2011-10-01  Bruno Haible  <bruno@clisp.org>
43966         isinf: Fix for OpenBSD/x86.
43967         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43968         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43969         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43971 2011-10-01  Bruno Haible  <bruno@clisp.org>
43973         isfinite: Fix syntax error in configure test.
43974         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43976         isfinite: Fix typo.
43977         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43978         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43980 2011-10-01  Bruno Haible  <bruno@clisp.org>
43982         nonblocking tests: Fix test failure on Linux/IA-64.
43983         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43984         Set to 270000.
43986 2011-10-01  Bruno Haible  <bruno@clisp.org>
43988         mkfifoat tests: Fix a test failure on mingw.
43989         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43990         with error ENOSYS.
43992 2011-09-30  Bruno Haible  <bruno@clisp.org>
43994         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43995         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43996         'long double'. Set REPLACE_ITOLD.
43997         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43998         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43999         * lib/itold.c: New file.
44000         * modules/float (Files): Add lib/itold.c.
44001         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44002         (Makefile.am): Substitute REPLACE_ITOLD.
44003         * modules/math (Depends-on): Add float.
44004         (Makefile.am): Substitute REPLACE_ITOLD.
44005         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44006         * doc/posix-headers/math.texi: Likewise.
44007         * doc/posix-functions/logl.texi: Likewise.
44009 2011-09-30  Bruno Haible  <bruno@clisp.org>
44011         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44012         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44013         Set to 140000.
44015 2011-09-30  Bruno Haible  <bruno@clisp.org>
44017         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44018         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44019         invocation, say "right after AC_PROG_CC_STDC", not "right after
44020         AC_PROG_CC".
44021         Reported by Gary V. Vaughan <gary@gnu.org>.
44023 2011-09-30  Bruno Haible  <bruno@clisp.org>
44025         Centralize C99 requirement.
44026         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44027         * modules/stdarg (configure.ac-early): Invoke it instead of
44028         AC_PROG_CC_STDC.
44029         Reported by Gary V. Vaughan and Paul Eggert.
44031 2011-09-29  Bruno Haible  <bruno@clisp.org>
44033         float: Fix LDBL_MAX value on Linux/PowerPC.
44034         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44035         on Linux/PowerPC.
44036         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44037         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44038         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44039         platform.
44040         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44042 2011-09-29  Bruno Haible  <bruno@clisp.org>
44044         doc: Improve doc about gl_EARLY.
44045         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44046         AC_PROG_CC_STDC invocation.
44047         Reported by Gary V. Vaughan <gary@gnu.org>.
44049 2011-09-28  Bruno Haible  <bruno@clisp.org>
44051         fgetc, fputc, fread, fwrite tests: Fix link error.
44052         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44053         on non-MSVC platforms.
44054         * tests/test-fputc.c (main): Likewise.
44055         * tests/test-fread.c (main): Likewise.
44056         * tests/test-fwrite.c (main): Likewise.
44057         Reported by Jim Meyering.
44059 2011-09-27  Bruno Haible  <bruno@clisp.org>
44061         fputc, fwrite tests: Avoid test failure on MSVC.
44062         * tests/test-fgetc.c: Include msvc-inval.h.
44063         (main): Invoke gl_msvc_inval_ensure_handler.
44064         * tests/test-fputc.c: Include msvc-inval.h.
44065         (main): Invoke gl_msvc_inval_ensure_handler.
44066         * tests/test-fread.c: Include msvc-inval.h.
44067         (main): Invoke gl_msvc_inval_ensure_handler.
44068         * tests/test-fwrite.c: Include msvc-inval.h.
44069         (main): Invoke gl_msvc_inval_ensure_handler.
44070         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44071         * modules/fputc-tests (Depends-on): Likewise.
44072         * modules/fread-tests (Depends-on): Likewise.
44073         * modules/fwrite-tests (Depends-on): Likewise.
44075 2011-09-27  Bruno Haible  <bruno@clisp.org>
44077         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44078         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44079         (raise): Remove older, duplicated declaration.
44080         (_gl_raise_SIGPIPE): New declaration.
44081         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44082         (rpl_raise): Remove function.
44083         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44084         a gnulib-defined SIGPIPE here.
44085         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44086         'sigprocmask' has detected missing signal-blocking and the module
44087         'sigpipe' is enabled.
44088         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44090 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44092         base64-tests: avoid memory leak
44093         * tests/test-base64.c (main): Plug memory leak.
44095         base32: new module
44096         * modules/base32: New module.
44097         * lib/base32.c: New file.
44098         * lib/base32.h: Likewise.
44099         * m4/base32.m4: Likewise.
44100         * modules/base32-tests: New test.
44101         * tests/test-base32.c: Likewise.
44102         * MODULES.html.sh (Misc): Mention it.
44104 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44106         gnulib: use more-standard license notice wording
44107         * gnulib-tool (func_emit_copyright_notice): When emitting a
44108         license notice into a file, use the standard wording as suggested
44109         by the current information for GNU maintainers, except say "file"
44110         rather than "program".  The new wording gives a license version
44111         number, which addresses an issue raised by Glenn Morris in
44112         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44113         * m4/onceonly.m4: Use that same wording here, too.
44115         dup2: minor simplification
44116         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44117         as lib/dup2.c no longer uses 'inline'.
44119 2011-09-25  Bruno Haible  <bruno@clisp.org>
44121         strings: Fix compilation error on MSVC.
44122         * lib/strings.in.h: Include <stddef.h> for size_t.
44124 2011-09-25  Bruno Haible  <bruno@clisp.org>
44126         fflush et al.: Document limitation on MSVC.
44127         * doc/posix-functions/fflush.texi: Document possible crash in handling
44128         mode other than DEFAULT_HANDLING.
44129         * doc/posix-functions/fgetc.texi: Likewise.
44130         * doc/posix-functions/fputc.texi: Likewise.
44131         * doc/posix-functions/fread.texi: Likewise.
44132         * doc/posix-functions/fwrite.texi: Likewise.
44134 2011-09-25  Bruno Haible  <bruno@clisp.org>
44136         msvc-inval: Allow three invalid parameter handling modes.
44137         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44138         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44139         macros.
44140         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44141         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44142         SANE_LIBRARY_HANDLING as a no-op.
44143         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44144         <stdlib.h>.
44145         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44147 2011-09-25  Bruno Haible  <bruno@clisp.org>
44149         msvc-inval: Make handler multithread-safe.
44150         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44151         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44152         declarations.
44153         (gl_msvc_inval_current): New declaration.
44154         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44155         Operate on the structure returned by gl_msvc_inval_current().
44156         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44157         Remove varaiables.
44158         (tls_index, tls_initialized): New variables.
44159         (not_per_thread): New variable.
44160         (gl_msvc_inval_current): New function.
44161         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44162         returned by gl_msvc_inval_current().
44164 2011-09-25  Bruno Haible  <bruno@clisp.org>
44166         msvc-inval: Install handler globally.
44167         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44168         !_MSC_VER.
44169         (gl_msvc_invalid_parameter_handler): Remove declaration.
44170         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44171         declarations.
44172         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44173         Install the handler globally, don't uninstall it.
44174         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44175         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44176         currently valid, call RaiseException instead.
44177         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44178         for !_MSC_VER.
44180 2011-09-25  Bruno Haible  <bruno@clisp.org>
44182         strerror_r-posix: Fix for MSVC 9.
44183         * lib/strerror_r.c (local_snprintf): New function.
44184         (snprintf): Define to local_snprintf, not to _snprintf.
44186 2011-09-25  Bruno Haible  <bruno@clisp.org>
44188         ftruncate: Support for MSVC 9.
44189         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44190         (chsize_nothrow): New function.
44191         (chsize): Redefine as a macro.
44192         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44193         * modules/ftruncate (Depends-on): Add msvc-inval.
44195 2011-09-25  Bruno Haible  <bruno@clisp.org>
44197         New module 'fstat'.
44198         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44199         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44200         * lib/fchdir.c (rpl_fstat): Remove function.
44201         * m4/fstat.m4: New file.
44202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44204         declared.
44205         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44206         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44207         * modules/fstat: New file.
44208         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44209         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44210         is set.
44211         * doc/posix-functions/fstat.texi: Mention the new module and the
44212         problem on MSVC.
44213         * NEWS: Mention the change.
44214         * modules/acl (Depends-on): Add fstat.
44215         * modules/chdir-safer (Depends-on): Likewise.
44216         * modules/chown (Depends-on): Likewise.
44217         * modules/copy-file (Depends-on): Likewise.
44218         * modules/fchdir (Depends-on): Likewise.
44219         * modules/fdopendir (Depends-on): Likewise.
44220         * modules/fopen (Depends-on): Likewise.
44221         * modules/fts (Depends-on): Likewise.
44222         * modules/getcwd (Depends-on): Likewise.
44223         * modules/isapipe (Depends-on): Likewise.
44224         * modules/linkat (Depends-on): Likewise.
44225         * modules/lseek (Depends-on): Likewise.
44226         * modules/mkdir-p (Depends-on): Likewise.
44227         * modules/open (Depends-on): Likewise.
44228         * modules/openat (Depends-on): Likewise.
44229         * modules/read-file (Depends-on): Likewise.
44230         * modules/renameat (Depends-on): Likewise.
44231         * modules/utimens (Depends-on): Likewise.
44233 2011-09-25  Bruno Haible  <bruno@clisp.org>
44235         linkat: Fix compilation on MSVC 9.
44236         * lib/linkat.c: Don't include <stdint.h>.
44238 2011-09-25  Bruno Haible  <bruno@clisp.org>
44240         fclose: Support for MSVC 9.
44241         * lib/fclose.c: Include msvc-inval.h.
44242         (fclose_nothrow): New function.
44243         (rpl_fclose): Use it.
44244         * modules/fclose (Depends-on): Add msvc-inval.
44245         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44247 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44249         dup2: minor simplifications
44250         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44251         that it's a performance win.
44252         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44253         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44255 2011-09-24  Jim Meyering  <meyering@redhat.com>
44257         test-futimens: avoid a warning from gcc -Wshadow
44258         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44259         to avoid a shadowing warning.
44261 2011-09-24  Bruno Haible  <bruno@clisp.org>
44263         fdopen: Support for MSVC 9.
44264         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44265         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44266         * lib/fdopen.c: Include msvc-inval.h.
44267         (fdopen_nothrow): New function.
44268         (rpl_fdopen): Use it.
44269         * modules/fdopen (Depends-on): Add msvc-inval.
44270         * modules/fclose-tests (Depends-on): Add fdopen.
44271         * modules/fflush-tests (Depends-on): Likewise.
44272         * modules/fgetc-tests (Depends-on): Likewise.
44273         * modules/fputc-tests (Depends-on): Likewise.
44274         * modules/fread-tests (Depends-on): Likewise.
44275         * modules/freopen-tests (Depends-on): Likewise.
44276         * modules/fseeko-tests (Depends-on): Likewise.
44277         * modules/ftello-tests (Depends-on): Likewise.
44278         * modules/fwrite-tests  (Depends-on): Likewise.
44279         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44281 2011-09-24  Bruno Haible  <bruno@clisp.org>
44283         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44284         * modules/fgetc-tests (Depends-on): Add unistd.
44285         * modules/fputc-tests (Depends-on): Likewise.
44286         * modules/fread-tests (Depends-on): Likewise.
44287         * modules/fwrite-tests (Depends-on): Likewise.
44289 2011-09-24  Bruno Haible  <bruno@clisp.org>
44291         dup: Simplify autoconf test.
44292         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44293         on gl_MSVC_INVAL's result.
44295 2011-09-24  Bruno Haible  <bruno@clisp.org>
44297         Tests for function fwrite().
44298         * modules/fwrite-tests: New file.
44299         * tests/test-fwrite.c: New file.
44300         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44302         Tests for function fread().
44303         * modules/fread-tests: New file.
44304         * tests/test-fread.c: New file.
44305         * modules/stdio-tests (Depends-on): Add fread-tests.
44307         Activate fputc tests.
44308         * modules/stdio-tests (Depends-on): Add fputc-tests.
44310         Enhance fgetc, fputc tests.
44311         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44312         * tests/test-fputc.c (main): Likewise.
44314 2011-09-24  Bruno Haible  <bruno@clisp.org>
44316         write: Support for MSVC 9.
44317         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44318         is not 1.
44319         * lib/write.c (write_nothrow): New function.
44320         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44321         not 1. Use write_nothrow.
44322         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44323         invalid parameter handler.
44324         (gl_PREREQ_WRITE): New macro.
44325         * modules/write (Depends-on): Add msvc-inval.
44326         (configure.ac): Invoke gl_PREREQ_WRITE.
44327         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44329 2011-09-24  Bruno Haible  <bruno@clisp.org>
44331         read: Fix last commit.
44332         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44334 2011-09-24  Bruno Haible  <bruno@clisp.org>
44336         dup2: Fix last commit.
44337         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44338         (rpl_dup2): Disable fcntl workaround on native Windows.
44340         sigprocmask: Make code safer.
44341         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44342         section that changes macro definitions for this compilation unit.
44344 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44346         dup2: clarify by coalescing Windows-specific material
44347         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44348         "msvc-nothrow.h"' to the Windows-specific section, so that the
44349         Emacs source need not contain these include files.
44350         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44351         Windows-specific fixes into this function rather than just the
44352         nothrow fix, as this shortens and clarifies the code.  Always
44353         define as a function, as that's a bit cleaner than having it be
44354         sometimes a function and sometimes a macro.
44355         (rpl_dup2): Move the Windows-specific stuff out of here and into
44356         ms_windows_dup2.  Don't protect the Haiku-related fix with
44357         "#if !defined __linux__", as the same code also works around
44358         a Linux kernel bug, and it doesn't add any system calls on any
44359         platform.  Add comment about FreeBSD 6.1.
44361         sigprocmask: move #include directive
44362         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44363         Windows-specific section, so that the Emacs source need not
44364         contain msvc-inval.h.
44366 2011-09-23  Bruno Haible  <bruno@clisp.org>
44368         read: Support for MSVC 9.
44369         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44370         is not 1.
44371         * lib/read.c (read_nothrow): New function.
44372         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44373         read_nothrow.
44374         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44375         invalid parameter handler.
44376         (gl_PREREQ_READ): New macro.
44377         * modules/read (Depends-on): Add msvc-inval.
44378         (configure.ac): Invoke gl_PREREQ_READ.
44379         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44381 2011-09-23  Bruno Haible  <bruno@clisp.org>
44383         close: Support for MSVC 9.
44384         * lib/close.c: Include <errno.h>, msvc-inval.h.
44385         (close_nothrow): New function.
44386         (rpl_close): Use it.
44387         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44388         invalid parameter handler.
44389         * modules/close (Depends-on): Add msvc-inval.
44390         * modules/dup2-tests (Depends-on): Add close.
44391         * modules/dup3-tests (Depends-on): Likewise.
44392         * modules/fcntl-tests (Depends-on): Likewise.
44393         * modules/spawn-pipe-tests (Depends-on): Likewise.
44394         * modules/unistd-safer-tests (Depends-on): Likewise.
44395         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44397 2011-09-23  Bruno Haible  <bruno@clisp.org>
44399         New module 'dup'.
44400         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44401         Allow replacement.
44402         * lib/dup.c: New file.
44403         * lib/fchdir.c (rpl_dup): Remove function.
44404         * m4/dup.m4: New file.
44405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44406         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44407         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44408         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44409         * modules/dup: New file.
44410         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44411         'dup' module is in use.
44412         * modules/fdopendir (Depends-on): Add dup.
44413         * modules/fdutimensat-tests (Depends-on): Likewise.
44414         * modules/fts (Depends-on): Likewise.
44415         * modules/futimens-tests (Depends-on): Likewise.
44416         * modules/posix_spawnp-tests (Depends-on): Likewise.
44417         * modules/unistd-safer-tests (Depends-on): Likewise.
44418         * modules/utimens-tests (Depends-on): Likewise.
44419         * doc/posix-functions/dup.texi: Mention the new module and the problem
44420         on MSVC.
44422 2011-09-23  Bruno Haible  <bruno@clisp.org>
44424         getdtablesize: Support for MSVC 9.
44425         * lib/getdtablesize.c: Include msvc-inval.h.
44426         (_setmaxstdio_nothrow): New function.
44427         (_setmaxstdio): Redefine it.
44428         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
44429         * modules/getdtablesize (Depends-on): Add msvc-inval.
44430         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
44432 2011-09-23  Bruno Haible  <bruno@clisp.org>
44434         signal-h: Rename from signal.
44435         * modules/signal-h: Renamed from modules/signal.
44436         * modules/pthread_sigmask (Depends-on): Update.
44437         * modules/raise (Depends-on): Likewise.
44438         * modules/sigaction (Depends-on): Likewise.
44439         * modules/sigpipe (Depends-on): Likewise.
44440         * modules/sigprocmask (Depends-on): Likewise.
44441         * modules/sys_select (Depends-on): Likewise.
44442         * modules/signal-h-tests: Renamed from modules/signal-tests.
44443         (Files, Depends-on, Makefile.am): Update.
44444         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44445         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44446         (Files, Makefile.am): Update.
44447         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44448         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44449         * modules/signal: New placeholder file.
44450         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44451         * doc/posix-headers/signal.texi: Update.
44452         * NEWS: Mention the change.
44454 2011-09-23  Bruno Haible  <bruno@clisp.org>
44456         sigprocmask: Avoid crashes through signal() on MSVC 9.
44457         * lib/sigprocmask.c: Include msvc-inval.h.
44458         (signal_nothrow): New function.
44459         (signal): Redefine it.
44460         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44461         * modules/sigprocmask (Depends-on): Add msvc-inval.
44462         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44464 2011-09-23  Bruno Haible  <bruno@clisp.org>
44466         Tests for module 'raise'.
44467         * modules/raise-tests: New file.
44468         * tests/test-raise.c: New file.
44470         raise: Support for MSVC.
44471         * lib/signal.in.h (raise): New declaration.
44472         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44473         for native Windows platforms.
44474         * m4/raise.m4: New file.
44475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44476         HAVE_RAISE, REPLACE_RAISE.
44477         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44478         REPLACE_RAISE.
44479         * modules/raise (Status, Notice): Remove fields.
44480         (Files): Add m4/raise.m4.
44481         (Depends-on): Add signal, msvc-inval.
44482         (configure.ac): Use the common idioms.
44483         (Maintainer): Add me.
44484         * tests/test-signal-c++.cc: Check the signature of raise.
44485         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44487 2011-09-23  Bruno Haible  <bruno@clisp.org>
44489         pipe2: Fix compilation on pre-C99 compilers.
44490         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44492 2011-09-23  Bruno Haible  <bruno@clisp.org>
44494         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44495         * lib/msvc-nothrow.h: New file.
44496         * lib/msvc-nothrow.c: New file.
44497         * m4/msvc-nothrow.m4: New file.
44498         * modules/msvc-nothrow: New file.
44499         * lib/dup2.c: Include msvc-nothrow.h.
44500         (rpl_dup2): No need to protect _get_osfhandle call here.
44501         * lib/accept4.c: Include msvc-nothrow.h.
44502         * lib/error.c: Likewise.
44503         * lib/fcntl.c: Likewise.
44504         * lib/lseek.c: Likewise.
44505         * lib/nonblocking.c: Likewise.
44506         * lib/poll.c: Likewise.
44507         * lib/read.c: Likewise.
44508         * lib/select.c: Likewise.
44509         * lib/sockets.h: Likewise.
44510         * lib/sockets.c: Likewise.
44511         * lib/stdio-read.c: Likewise.
44512         * lib/stdio-write.c: Likewise.
44513         * lib/write.c: Likewise.
44514         * lib/w32sock.h: Likewise.
44515         * lib/w32spawn.h: Likewise.
44516         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44517         * lib/fsync.c: Likewise.
44518         * lib/isapipe.c: Likewise.
44519         * modules/dup2 (Depends-on): Add msvc-nothrow.
44520         * modules/accept4 (Depends-on): Likewise.
44521         * modules/error (Depends-on): Likewise.
44522         * modules/fcntl (Depends-on): Likewise.
44523         * modules/lseek (Depends-on): Likewise.
44524         * modules/nonblocking (Depends-on): Likewise.
44525         * modules/poll (Depends-on): Likewise.
44526         * modules/read (Depends-on): Likewise.
44527         * modules/select (Depends-on): Likewise.
44528         * modules/sockets (Depends-on): Likewise.
44529         * modules/sigpipe (Depends-on): Likewise.
44530         * modules/write (Depends-on): Likewise.
44531         * modules/accept (Depends-on): Likewise.
44532         * modules/bind (Depends-on): Likewise.
44533         * modules/connect (Depends-on): Likewise.
44534         * modules/gethostname (Depends-on): Likewise.
44535         * modules/getpeername (Depends-on): Likewise.
44536         * modules/getsockname (Depends-on): Likewise.
44537         * modules/getsockopt (Depends-on): Likewise.
44538         * modules/ioctl (Depends-on): Likewise.
44539         * modules/listen (Depends-on): Likewise.
44540         * modules/recv (Depends-on): Likewise.
44541         * modules/recvfrom (Depends-on): Likewise.
44542         * modules/send (Depends-on): Likewise.
44543         * modules/sendto (Depends-on): Likewise.
44544         * modules/setsockopt (Depends-on): Likewise.
44545         * modules/shutdown (Depends-on): Likewise.
44546         * modules/socket (Depends-on): Likewise.
44547         * modules/execute (Depends-on): Likewise.
44548         * modules/spawn-pipe (Depends-on): Likewise.
44549         * modules/flock (Depends-on): Likewise.
44550         * modules/fsync (Depends-on): Likewise.
44551         * modules/isapipe (Depends-on): Likewise.
44552         * tests/test-cloexec.c: Include msvc-nothrow.h.
44553         * tests/test-dup-safer.c: Likewise.
44554         * tests/test-dup2.c: Likewise.
44555         * tests/test-dup3.c: Likewise.
44556         * tests/test-fcntl.c: Likewise.
44557         * tests/test-pipe.c: Likewise.
44558         * tests/test-pipe2.c: Likewise.
44559         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44560         * modules/unistd-safer-tests (Depends-on): Likewise.
44561         * modules/dup2-tests (Depends-on): Likewise.
44562         * modules/dup3-tests (Depends-on): Likewise.
44563         * modules/fcntl-tests (Depends-on): Likewise.
44564         * modules/pipe-posix-tests (Depends-on): Likewise.
44565         * modules/pipe2-tests (Depends-on): Likewise.
44567 2011-09-23  Bruno Haible  <bruno@clisp.org>
44569         dup2: Make code more maintainable.
44570         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44571         (rpl_dup2): Use it.
44572         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44573         * modules/dup2 (configure.ac): Invoke it.
44574         Reported by Paul Eggert.
44576 2011-09-23  Bruno Haible  <bruno@clisp.org>
44578         msvc-inval: Fix compilation error.
44579         * lib/msvc-inval.h: Include <excpt.h>.
44581 2011-09-23  Bruno Haible  <bruno@clisp.org>
44583         mkdir: Tweak for MSVC 9.
44584         * lib/sys_stat.in.h: Update comments.
44585         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44587         Tests for module 'chdir'.
44588         * modules/chdir-tests: New file.
44589         * tests/test-chdir.c: New file.
44591         New module 'chdir'.
44592         * modules/chdir: New file.
44593         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44594         (chdir): New declaration.
44595         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44596         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44597         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44598         * tests/test-unistd-c++.cc: Check signature of chdir.
44599         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44600         * modules/chdir-long (Depends-on): Add chdir.
44601         * modules/fchdir (Depends-on): Likewise.
44602         * modules/rename (Depends-on): Likewise.
44603         * modules/savewd (Depends-on): Likewise.
44605         rmdir: Support for mingw, MSVC 9.
44606         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44607         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44609         getcwd: Tweak for MSVC 9.
44610         * lib/unistd.in.h: Update comments.
44611         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44613 2011-09-22  Bruno Haible  <bruno@clisp.org>
44615         strerror_r-posix: Avoid a link error on MSVC.
44616         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44617         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44619 2011-09-22  Bruno Haible  <bruno@clisp.org>
44621         select: Avoid link errors on MSVC.
44622         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44623         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44624         * modules/pselect (Link): Likewise.
44625         * NEWS: Mention the change.
44626         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44627         test-select-stdin against $(LIB_SELECT).
44628         * modules/pselect-tests (Makefile.am): Link test-pselect against
44629         $(LIB_SELECT).
44631 2011-09-22  Bruno Haible  <bruno@clisp.org>
44633         select: Avoid compilation error on MSVC.
44634         * lib/select.c: Don't include <stdbool.h>.
44636 2011-09-21  Bruno Haible  <bruno@clisp.org>
44638         Consolidate all uses of PATH_MAX in *.m4 files.
44639         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44640         macros.
44641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44642         and gl_PATHMAX_SNIPPET.
44643         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44645         * modules/chdir-long (Files): Add m4/pathmax.m4.
44646         * modules/getcwd (Files): Likewise.
44648 2011-09-21  Bruno Haible  <bruno@clisp.org>
44650         ftruncate: Un-deprecate, concentrate on Win32 support.
44651         * modules/ftruncate (Status, Notice): Remove sections.
44652         (Depends-on): Add largefile.
44653         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44654         non-mingw platforms.
44655         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44656         include <io.h>.
44657         * modules/perror-tests (Depends-on): Add ftruncate.
44658         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44659         'ftruncate' module.
44661 2011-09-21  Bruno Haible  <bruno@clisp.org>
44663         Add dependencies to new dirent related modules.
44664         * modules/opendir (Depends-on): Add closedir.
44665         * modules/getcwd (Depends-on): Add opendir, closedir.
44666         * modules/dirent-safer-tests (Depends-on): Likewise.
44667         * modules/fdopendir-tests (Depends-on): Likewise.
44668         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44669         * modules/renameat-tests (Depends-on): Likewise.
44671 2011-09-21  Bruno Haible  <bruno@clisp.org>
44673         opendir: Avoid compilation error on mingw.
44674         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44675         * modules/opendir (Depends-on): Add unistd.
44677 2011-09-21  Bruno Haible  <bruno@clisp.org>
44679         ftruncate tests: Avoid a test failure on mingw.
44680         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44682 2011-09-21  Bruno Haible  <bruno@clisp.org>
44684         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44685         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44686         native Windows.
44688 2011-09-21  Bruno Haible  <bruno@clisp.org>
44690         New module 'fdopen'.
44691         * lib/stdio.in.h (fdopen): New declaration.
44692         * lib/fdopen.c: New file.
44693         * m4/fdopen.m4: New file.
44694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44695         REPLACE_FDOPEN.
44696         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44697         REPLACE_FDOPEN.
44698         * modules/fdopen: New file.
44699         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44700         * tests/test-stdio-c++.cc: Check signature of fdopen.
44701         * doc/posix-functions/fdopen.texi: Mention the new module.
44703 2011-09-21  Bruno Haible  <bruno@clisp.org>
44705         unlockpt tests: Avoid test failure on NetBSD 5.1.
44706         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44707         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44709 2011-09-21  Bruno Haible  <bruno@clisp.org>
44711         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44712         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44713         * tests/test-getlogin_r.c (main): Likewise.
44715 2011-09-20  Bruno Haible  <bruno@clisp.org>
44717         time tests: Don't require pid_t.
44718         * doc/posix-headers/time.texi: Revert last change.
44719         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44720         * tests/test-time.c: Comment out the check for pid_t.
44722 2011-09-20  Bruno Haible  <bruno@clisp.org>
44724         fsync tests: Avoid a test failure on mingw.
44725         * tests/test-fsync.c (main): Allow a failure with EIO.
44727 2011-09-20  Bruno Haible  <bruno@clisp.org>
44729         euidaccess: Update comments.
44730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44732 2011-09-20  Bruno Haible  <bruno@clisp.org>
44734         Ensure EBADF returns for socket functions on mingw.
44735         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44736         descriptor is invalid.
44737         * lib/bind.c (rpl_bind): Likewise.
44738         * lib/connect.c (rpl_connect): Likewise.
44739         * lib/getpeername.c (rpl_getpeername): Likewise.
44740         * lib/getsockname.c (rpl_getsockname): Likewise.
44741         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44742         * lib/listen.c (rpl_listen): Likewise.
44743         * lib/recv.c (rpl_recv): Likewise.
44744         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44745         * lib/send.c (rpl_send): Likewise.
44746         * lib/sendto.c (rpl_sendto): Likewise.
44747         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44748         * lib/shutdown.c (rpl_shutdown): Likewise.
44750 2011-09-20  Bruno Haible  <bruno@clisp.org>
44752         select tests: EBADF tests.
44753         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44754         test_bad_fd): New functions.
44755         (test_function): Invoke also test_bad_fd.
44757 2011-09-20  Bruno Haible  <bruno@clisp.org>
44759         Tests for module 'posix_spawn_file_actions_addopen.
44760         * modules/posix_spawn_file_actions_addopen-tests: New file.
44761         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44763         Tests for module 'posix_spawn_file_actions_adddup2'.
44764         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44765         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44767         Tests for module 'posix_spawn_file_actions_addclose'.
44768         * modules/posix_spawn_file_actions_addclose-tests: New file.
44769         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44771 2011-09-20  Bruno Haible  <bruno@clisp.org>
44773         Tests for module 'unlockpt'.
44774         * modules/unlockpt-tests: New file.
44775         * tests/test-unlockpt.c: New file.
44776         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44778         Tests for module 'grantpt'.
44779         * modules/grantpt-tests: New file.
44780         * tests/test-grantpt.c: New file.
44781         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44783 2011-09-20  Bruno Haible  <bruno@clisp.org>
44785         freopen tests: EBADF tests.
44786         * tests/test-freopen.c: Include errno.h, unistd.h.
44787         (main): Add tests for EBADF, commented out for the moment.
44789         fclose tests: EBADF tests.
44790         * tests/test-fclose.c (main): Add tests for EBADF.
44792         fflush tests: EBADF tests.
44793         * tests/test-fflush.c: Include errno.h, macros.h.
44794         (main): Add tests for EBADF.
44796         ftello tests: EBADF tests.
44797         * tests/test-ftello4.sh: New file.
44798         * tests/test-ftello4.c: New file.
44799         * modules/ftello-tests (Files): Add them.
44800         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44802         fseeko tests: EBADF tests.
44803         * tests/test-fseeko4.sh: New file.
44804         * tests/test-fseeko4.c: New file.
44805         * modules/fseeko-tests (Files): Add them.
44806         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44808         Tests for function fputc().
44809         * modules/fputc-tests: New file.
44810         * tests/test-fputc.c: New file.
44811         * modules/stdio-tests (Depends-on): Add fputc-tests.
44813         Tests for function fgetc().
44814         * modules/fgetc-tests: New file.
44815         * tests/test-fgetc.c: New file.
44816         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44818         Tests for function fdopen().
44819         * modules/fdopen-tests: New file.
44820         * tests/test-fdopen.c: New file.
44821         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44823         Tests for module 'vdprintf'.
44824         * modules/vdprintf-tests: New file.
44825         * tests/test-vdprintf.c: New file.
44827         Tests for module 'dprintf'.
44828         * modules/dprintf-tests: New file.
44829         * tests/test-dprintf.c: New file.
44831 2011-09-20  Bruno Haible  <bruno@clisp.org>
44833         Tests for module 'ioctl'.
44834         * modules/ioctl-tests: New file.
44835         * tests/test-ioctl.c: New file.
44837 2011-09-20  Bruno Haible  <bruno@clisp.org>
44839         fcntl tests: EBADF tests.
44840         * tests/test-fcntl.c (main): Add more tests for EBADF.
44842 2011-09-20  Bruno Haible  <bruno@clisp.org>
44844         utimensat tests: EBADF tests.
44845         * tests/test-utimensat.c (main): Add tests for EBADF.
44847         renameat tests: EBADF tests.
44848         * tests/test-renameat.c (main): Add tests for EBADF.
44850         mkfifoat tests: EBADF tests.
44851         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44853         readlinkat tests: EBADF tests.
44854         * tests/test-readlinkat.c (main): Add tests for EBADF.
44856         symlinkat tests: EBADF tests.
44857         * tests/test-symlinkat.c (main): Add tests for EBADF.
44859         linkat tests: EBADF tests.
44860         * tests/test-linkat.c (main): Add tests for EBADF.
44862         Tests for module 'faccessat'.
44863         * modules/faccessat-tests: New file.
44864         * tests/test-faccessat.c: New file.
44866         fdopendir tests: EBADF tests.
44867         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44869         openat tests: EBADF tests.
44870         * tests/test-fchownat.c (main): Add tests for EBADF.
44871         * tests/test-fstatat.c (main): Likewise.
44872         * tests/test-mkdirat.c (main): Likewise.
44873         * tests/test-openat.c (main): Likewise.
44874         * tests/test-unlinkat.c (main): Likewise.
44875         * tests/test-fchmodat.c: New file.
44876         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44877         (Makefile.am): Also run 'test-fchmodat'.
44879 2011-09-20  Bruno Haible  <bruno@clisp.org>
44881         utimens, futimens, fdutimensat tests: EBADF tests.
44882         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44884         Tests for function fstat().
44885         * modules/fstat-tests: New file.
44886         * tests/test-fstat.c: New file.
44887         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44889 2011-09-20  Bruno Haible  <bruno@clisp.org>
44891         test-ttyname_r tests: EBADF tests.
44892         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44894         Tests for module 'isatty'.
44895         * modules/isatty-tests: New file.
44896         * tests/test-isatty.c: New file.
44898         Tests for module 'write'.
44899         * modules/write-tests: New file.
44900         * tests/test-write.c: New file.
44902         Tests for module 'read'.
44903         * modules/read-tests: New file.
44904         * tests/test-read.c: New file.
44906         pwrite tests: EBADF tests.
44907         * tests/test-pwrite.c (main): Add tests for EBADF.
44909         pread tests: EBADF tests.
44910         * tests/test-pread.c (main): Add tests for EBADF.
44912         lseek tests: EBADF tests.
44913         * tests/test-lseek.c (main): Add more tests for EBADF.
44915         Tests for module 'ftruncate'.
44916         * modules/ftruncate-tests: New file.
44917         * tests/test-ftruncate.sh: New file.
44918         * tests/test-ftruncate.c: New file.
44920         fsync tests: EBADF tests.
44921         * tests/test-fsync.c (main): Add more tests for EBADF.
44923         fdatasync tests: EBADF tests.
44924         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44926         Tests for module 'fchown'.
44927         * modules/fchown-tests: New file.
44928         * tests/test-fchown.c: New file.
44930         Tests for module 'fchmod'.
44931         * modules/fchmod-tests: New file.
44932         * tests/test-fchmod.c: New file.
44934         fchdir tests: EBADF tests.
44935         * tests/test-fchdir.c (main): Add more tests for EBADF.
44937         dup2 tests: EBADF tests.
44938         * tests/test-dup2.c (main): Add more tests for EBADF.
44940         Tests for module 'dup'.
44941         * modules/dup-tests: New file.
44942         * tests/test-dup.c: New file.
44944         Tests for module 'close'.
44945         * modules/close-tests: New file.
44946         * tests/test-close.c: New file.
44948 2011-09-20  Bruno Haible  <bruno@clisp.org>
44950         Tests for module 'shutdown'.
44951         * modules/shutdown-tests: New file.
44952         * tests/test-shutdown.c: New file.
44954         Tests for module 'setsockopt'.
44955         * modules/setsockopt-tests: New file.
44956         * tests/test-setsockopt.c: New file.
44958         Tests for module 'sendto'.
44959         * modules/sendto-tests: New file.
44960         * tests/test-sendto.c: New file.
44962         Tests for module 'send'.
44963         * modules/send-tests: New file.
44964         * tests/test-send.c: New file.
44966         Tests for module 'recvfrom'.
44967         * modules/recvfrom-tests: New file.
44968         * tests/test-recvfrom.c: New file.
44970         Tests for module 'recv'.
44971         * modules/recv-tests: New file.
44972         * tests/test-recv.c: New file.
44974         Tests for module 'listen'.
44975         * modules/listen-tests: New file.
44976         * tests/test-listen.c: New file.
44978         Tests for module 'getsockopt'.
44979         * modules/getsockopt-tests: New file.
44980         * tests/test-getsockopt.c: New file.
44982         Tests for module 'getsockname'.
44983         * modules/getsockname-tests: New file.
44984         * tests/test-getsockname.c: New file.
44986         Tests for module 'getpeername'.
44987         * modules/getpeername-tests: New file.
44988         * tests/test-getpeername.c: New file.
44990         Tests for module 'connect'.
44991         * modules/connect-tests: New file.
44992         * tests/test-connect.c: New file.
44994         Tests for module 'bind'.
44995         * modules/bind-tests: New file.
44996         * tests/test-bind.c: New file.
44998         accept4 tests: Fix for native Windows.
44999         * tests/test-accept4.c: Include sockets.h.
45000         (main): Invoke gl_sockets_startup.
45001         * modules/accept4-tests (Depends-on): Add sockets.
45003         accept tests: Fix for native Windows.
45004         * tests/test-accept.c: Include sockets.h.
45005         (main): Invoke gl_sockets_startup.
45006         * modules/accept-tests (Depends-on): Add sockets.
45008 2011-09-19  Bruno Haible  <bruno@clisp.org>
45010         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45011         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45012         do...while(0).
45013         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45014         Suggested by Paul Eggert.
45016 2011-09-19  Bruno Haible  <bruno@clisp.org>
45018         sched: Ensure pid_t is defined.
45019         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45020         not define pid_t.
45021         * lib/sched.in.h: Include <sys/types.h>.
45022         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45025 2011-09-19  Bruno Haible  <bruno@clisp.org>
45027         msvc-inval: Ensure the entire expansion is a single statement.
45028         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45029         of braces.
45031 2011-09-19  Jim Meyering  <meyering@redhat.com>
45033         tests: use printf, not echo in init.sh's warn_ function
45034         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45035         misbehave when given strings containing a backslash or starting
45036         with e.g., -n.  James Youngman suggested setting IFS.
45038 2011-09-19  Eric Blake  <eblake@redhat.com>
45040         futimens: enhance test
45041         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45042         closed non-negative fd.
45044         date: accept 'hence' as opposite of 'ago'
45045         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45046         * tests/test-parse-datetime.c (main): Enhance test.
45047         Suggested by Jesse Wilson.
45049 2011-09-19  Jim Meyering  <meyering@redhat.com>
45051         getcwd: don't fail in a deep directory on a system without openat
45052         Before this change, getcwd would fail when called from a directory
45053         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45054         the non-openat implementation used "..", "../..", "../../..", etc.
45055         to access ancestor directories.  With too many, that string would
45056         be longer than PATH_MAX.
45057         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45058         using gnulib's openat replacement.
45059         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45060         we're using the replacement function.
45062 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45064         maint.mk: avoid warnings from perl about missing files
45065         * top/maint.mk (def_sym_regex): Ignore files listed in
45066         $(gl_other_headers_) that do not exist, say because a project
45067         does not use a corresponding module.
45069 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45071         stat: use pathmax.h only if needed
45072         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45073         This is better for Emacs, which does not have a mingw port and
45074         therefore can avoid the pathmax module.
45076         utimens: remove dependency on dup2
45077         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45078         to work around the Linux kernel bug.
45079         * modules/utimens (Depends-on): Remove dup2.
45081 2011-09-18  Bruno Haible  <bruno@clisp.org>
45083         inet_ntop, inet_pton: Look for it also in libresolv.
45084         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45085         libnsl, search for it in libresolv.
45086         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45087         Needed on Solaris 7.
45089 2011-09-18  Bruno Haible  <bruno@clisp.org>
45091         accept, accept4 tests: Avoid link error on Solaris.
45092         * modules/accept-tests (Makefile.am): Link test-accept against
45093         $(LIBSOCKET).
45094         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45095         $(LIBSOCKET).
45097         accept4: Avoid link error on Solaris.
45098         * modules/accept4 (Link): New section.
45100         socket functions: Avoid link errors on Solaris.
45101         * modules/accept (Depends-on): Add socketlib.
45102         (Link): New section.
45103         * modules/bind (Depends-on): Add socketlib.
45104         (Link): New section.
45105         * modules/connect (Depends-on): Add socketlib.
45106         (Link): New section.
45107         * modules/getpeername (Depends-on): Add socketlib.
45108         (Link): New section.
45109         * modules/getsockname (Depends-on): Add socketlib.
45110         (Link): New section.
45111         * modules/getsockopt (Depends-on): Add socketlib.
45112         (Link): New section.
45113         * modules/listen (Depends-on): Add socketlib.
45114         (Link): New section.
45115         * modules/recv (Depends-on): Add socketlib.
45116         (Link): New section.
45117         * modules/recvfrom (Depends-on): Add socketlib.
45118         (Link): New section.
45119         * modules/send (Depends-on): Add socketlib.
45120         (Link): New section.
45121         * modules/sendto (Depends-on): Add socketlib.
45122         (Link): New section.
45123         * modules/setsockopt (Depends-on): Add socketlib.
45124         (Link): New section.
45125         * modules/shutdown (Depends-on): Add socketlib.
45126         (Link): New section.
45127         * modules/socket (Depends-on): Add socketlib.
45128         (Link): New section.
45130 2011-09-18  Bruno Haible  <bruno@clisp.org>
45132         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45133         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45134         than 5 seconds.
45135         * modules/ptsname-tests (configure.ac): Test for alarm.
45137 2011-09-18  Bruno Haible  <bruno@clisp.org>
45139         posix_spawn_file_actions_add*: Fix module dependencies.
45140         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45141         posix_spawn_file_actions_init.
45142         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45143         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45145 2011-09-18  Bruno Haible  <bruno@clisp.org>
45147         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45148         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45149         * tests/test-renameat.c (main): Likewise.
45151 2011-09-18  Bruno Haible  <bruno@clisp.org>
45153         Tests for module 'accept4'.
45154         * modules/accept4-tests: New file.
45155         * tests/test-accept4.c: New file.
45157 2011-09-18  Bruno Haible  <bruno@clisp.org>
45159         Tests for module 'accept'.
45160         * modules/accept-tests: New file.
45161         * tests/test-accept.c: New file.
45163 2011-09-18  Bruno Haible  <bruno@clisp.org>
45165         dup2: Support for MSVC.
45166         * lib/dup2.c: Include msvc-inval.h.
45167         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45168         _get_osfhandle calls.
45169         * modules/dup2 (Depends-on): Add msvc-inval.
45170         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45172         New module 'msvc-inval'.
45173         * lib/msvc-inval.h: New file.
45174         * lib/msvc-inval.c: New file.
45175         * m4/msvc-inval.m4: New file.
45176         * modules/msvc-inval: New file.
45178 2011-09-17  Bruno Haible  <bruno@clisp.org>
45180         Tests for module 'pclose'.
45181         * modules/pclose-tests: New file.
45183         New module 'pclose'.
45184         * lib/stdio.in.h (pclose): New declaration.
45185         * lib/pclose.c: New file.
45186         * m4/pclose.m4: New file.
45187         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45188         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45189         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45190         * modules/pclose: New file.
45191         * modules/popen-tests (Depends-on): Add pclose.
45192         * modules/popen-safer-tests (Depends-on): Likewise.
45193         * doc/posix-functions/pclose.texi: Mention the new module.
45195 2011-09-17  Bruno Haible  <bruno@clisp.org>
45197         popen: Support for MSVC.
45198         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45199         * lib/popen.c (popen): Provide alternate definition for native Windows.
45200         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45202         * modules/popen (Depends-on, configure.ac): Update condition.
45203         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45204         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45205         fixed.
45207 2011-09-17  Bruno Haible  <bruno@clisp.org>
45209         isnanl, isnand, isnanf: Work around MSVC bug.
45210         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45212 2011-09-17  Bruno Haible  <bruno@clisp.org>
45214         sys_socket tests: Fix recent mistake.
45215         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45217 2011-09-17  Bruno Haible  <bruno@clisp.org>
45219         putenv: Support for MSVC.
45220         * modules/putenv (Depends-on): Add environ.
45221         * lib/putenv.c (environ): Disable declaration.
45222         * lib/unistd.in.h: Update comment.
45224 2011-09-17  Bruno Haible  <bruno@clisp.org>
45226         math: Avoid macro redefinition warnings on MSVC.
45227         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45228         Undefine before redefining.
45230 2011-09-17  Bruno Haible  <bruno@clisp.org>
45232         doc: Mention functions which are declared as macros.
45233         * doc/posix-functions/*[fl].texi: Mention that some functions are
45234         defined as macros with arguments only.
45236 2011-09-17  Bruno Haible  <bruno@clisp.org>
45238         Add dependencies to new dirent related modules.
45239         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45240         * modules/fts (Depends-on): Likewise.
45241         * modules/glob (Depends-on): Likewise.
45242         * modules/savedir (Depends-on): Likewise.
45243         * modules/scandir (Depends-on): Likewise.
45244         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45245         * modules/fdopendir (Depends-on): Add opendir.
45247 2011-09-17  Bruno Haible  <bruno@clisp.org>
45249         inet_pton: Support for MSVC on Windows Vista or newer.
45250         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45251         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45252         HAVE_DECL_INET_PTON is defined.
45253         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45254         On platforms with <winsock2.h>, test whether inet_pton is declared in
45255         <ws2tcpip.h>. If so, arrange to replace it.
45256         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45257         REPLACE_INET_PTON.
45258         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45259         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45260         (Depends-on, configure.ac): Update condition.
45261         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45263 2011-09-17  Bruno Haible  <bruno@clisp.org>
45265         inet_ntop: Support for MSVC on Windows Vista or newer.
45266         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45267         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45268         HAVE_DECL_INET_NTOP is defined.
45269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45270         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45271         <ws2tcpip.h>. If so, arrange to replace it.
45272         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45273         REPLACE_INET_NTOP.
45274         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45275         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45276         (Depends-on, configure.ac): Update condition.
45277         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45279 2011-09-16  Eric Blake  <eblake@redhat.com>
45281         test-fsync: yet another enhancement
45282         * tests/test-fsync.c (main): Also test behavior on read-only text
45283         file.
45285 2011-09-16  Bruno Haible  <bruno@clisp.org>
45287         Enhance fsync, fdatasync tests.
45288         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45289         * tests/test-fdatasync.c (main): Likewise.
45291 2011-09-16  Bruno Haible  <bruno@clisp.org>
45293         Support for MSVC compiler: Ensure mode_t gets defined.
45294         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45295         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45297         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45298         * tests/test-fcntl-h.c: Check that mode_t is defined.
45299         * tests/test-sys_stat.c: Likewise.
45300         * tests/test-sys_types.c: Likewise.
45301         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45302         * doc/posix-headers/sys_stat.texi: Likewise.
45303         * doc/posix-headers/sys_types.texi: Likewise.
45305 2011-09-16  Bruno Haible  <bruno@clisp.org>
45307         sys_stat: Support for MSVC.
45308         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45309         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45310         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45311         MSVC.
45313 2011-09-16  Bruno Haible  <bruno@clisp.org>
45315         Support for MSVC compiler: Ensure off_t gets defined.
45316         * lib/unistd.in.h: Include <sys/types.h>.
45317         * tests/test-fcntl-h.c: Check that off_t is defined.
45318         * tests/test-sys_stat.c: Likewise.
45319         * tests/test-sys_types.c: Likewise.
45321 2011-09-16  Eric Blake  <eblake@redhat.com>
45323         fdatasync: port to Solaris
45324         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45325         * modules/fdatasync (Link): Document it.
45326         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45328         fdatasync: port to MacOS X 10.7
45329         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45330         declared.
45331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45332         * modules/unistd (Makefile.am): Substitute it.
45333         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45334         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45336         fdatasync: minor improvements
45337         * modules/fdatasync (Depends-on): Add condition for fsync.
45338         * lib/fdatasync.c (fdatasync): Add comment.
45339         * tests/test-unistd-c++.cc: Test fdatasync.
45341         unistd: update refs to newer POSIX
45342         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45343         Suggested by Bruno Haible.
45345         fdatasync: new module
45346         * modules/fsync (Description): Document difference to fdatasync.
45347         * modules/fdatasync: New module.
45348         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45349         * lib/fdatasync.c (fdatasync): Likewise.
45350         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45351         defaults.
45352         * modules/unistd (Makefile.am): Set witnesses.
45353         * lib/unistd.in.h (fdatasync): Declare.
45354         * MODULES.html.sh: Document it.
45355         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45356         * modules/fdatasync-tests: New test.
45357         * tests/test-fdatasync.c: Likewise.
45359 2011-09-16  Eric Blake  <eblake@redhat.com>
45361         test-fsync: enhance tests
45362         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45363         * tests/test-fsync.c (main): Enhance test.
45365 2011-09-15  Bruno Haible  <bruno@clisp.org>
45367         Support for MSVC compiler: Ensure ssize_t gets defined.
45368         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45369         * doc/posix-headers/stdio.texi: Likewise.
45370         * modules/stdio (Depends-on): Add ssize_t.
45371         * modules/sys_socket (Depends-on): Likewise.
45372         * modules/sys_types (Depends-on): Likewise.
45373         * modules/sys_uio (Depends-on): Likewise.
45374         * modules/unistd (Depends-on): Likewise.
45375         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45376         * tests/test-sys_types.c: Check that ssize_t is defined.
45378 2011-09-14  Bruno Haible  <bruno@clisp.org>
45380         Avoid using #, the m4 comment starter character, near brackets.
45381         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45382         delimiter character in sed expressions.
45383         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45384         Suggested by Eric Blake.
45386         Properly quote AC_CHECK_DECLS' 4th argument.
45387         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45388         argument.
45389         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45390         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45391         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45392         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45393         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45394         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45396         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45397         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45398         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45399         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45400         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45401         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45402         * m4/isinf.m4 (gl_ISINF): Likewise.
45403         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45404         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45405         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45406         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45408         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45409         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45410         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45411         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45412         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45413         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
45416         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45418         Reported by Eric Blake.
45420         Properly quote AC_CHECK_DECL's 4th argument.
45421         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
45422         argument.
45423         * m4/argp.m4 (gl_ARGP): Likewise.
45424         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45425         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45426         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45427         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45428         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
45429         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
45430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
45431         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45432         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45433         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45434         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45435         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45436         Reported by Eric Blake.
45438 2011-09-14  Eric Blake  <eblake@redhat.com>
45440         opendir: avoid compile warning
45441         * lib/opendir.c (includes): Always include errno.h.
45442         Reported by Tatsuro MATSUOKA.
45444 2011-09-14  Jim Meyering  <meyering@redhat.com>
45446         maint.mk: sc_tight_scope: propagate failure from sub-make
45447         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45448         Reported by Martin von Gagern.
45450 2011-09-13  Bruno Haible  <bruno@clisp.org>
45452         tempname: Support for MSVC.
45453         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45454         MSVC.
45455         * modules/tempname (Depends-on): Add fcntl-h.
45457 2011-09-13  Bruno Haible  <bruno@clisp.org>
45459         sys_time: Support for MSVC.
45460         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45461         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45462         include <winsock2.h>.
45463         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45464         function declarations that collide with POSIX.
45465         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45466         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45468 2011-09-13  Bruno Haible  <bruno@clisp.org>
45470         stat: Support for MSVC.
45471         * lib/stat.c: Include pathmax.h.
45472         * modules/stat (Depends-on): Add pathmax.
45474         pathmax: Support for native Windows.
45475         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45477 2011-09-12  Bruno Haible  <bruno@clisp.org>
45479         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45480         * lib/dirent.in.h (struct dirent): New type.
45481         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45482         DT_WHT): New macros.
45483         (DIR): New type.
45484         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45485         (readdir, rewinddir): New declarations.
45486         * lib/dirent-private.h: New file.
45487         * lib/opendir.c: New file.
45488         * lib/readdir.c: New file.
45489         * lib/rewinddir.c: New file.
45490         * lib/closedir.c: New file.
45491         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45492         * m4/opendir.m4: New file.
45493         * m4/readdir.m4: New file.
45494         * m4/rewinddir.m4: New file.
45495         * m4/closedir.m4: New file.
45496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45497         REPLACE_CLOSEDIR here.
45498         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45499         readdir, rewinddir are declared.
45500         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45501         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45502         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45503         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45504         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45505         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45506         * modules/opendir: New file.
45507         * modules/readdir: New file.
45508         * modules/rewinddir: New file.
45509         * modules/closedir: New file.
45510         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45511         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45512         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45513         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45514         * NEWS: Mention the 'fchdir' change.
45516 2011-09-11  Bruno Haible  <bruno@clisp.org>
45518         asm-underscore.m4: Support for MSVC.
45519         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45520         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45522 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45524         Doc about crypt functions.
45525         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45526         needing for _GNU_SOURCE to get crypt.
45527         * doc/posix-functions/encrypt.texi: Likewise.
45528         * doc/posix-functions/setkey.texi: Likewise.
45530 2011-09-11  Bruno Haible  <bruno@clisp.org>
45532         doc: Update regarding MSVC 9.
45533         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45534         tested".
45535         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45536         * doc/posix-headers/*.texi: Likewise.
45537         * doc/pastposix-functions/*.texi: Likewise.
45538         * doc/glibc-functions/*.texi: Likewise.
45539         * doc/glibc-headers/*.texi: Likewise.
45541 2011-09-11  Bruno Haible  <bruno@clisp.org>
45543         unistd et al.: Don't assume <unistd.h> exists.
45544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45545         does not exist.
45546         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45547         exist. But include <stdlib.h>.
45548         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45549         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45550         symlink() does not exist.
45551         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45552         include <io.h> instead.
45553         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45554         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45555         include <direct.h> instead.
45556         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45557         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45558         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45559         <io.h> instead.
45560         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45561         correctly if the system does not have hard links.
45562         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45563         <direct.h> instead.
45564         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45565         it when looking for function declarations.
45566         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45567         <direct.h> and <io.h> instead.
45568         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45570 2011-09-11  Bruno Haible  <bruno@clisp.org>
45572         strcase: Support for MSVC.
45573         * modules/strcase (Status, Notice): Remove obsoletion mark.
45574         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45575         * doc/posix-functions/strncasecmp.texi: Likewise.
45577         strings: Don't assume <strings.h> exists.
45578         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45579         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45580         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45581         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45583 2011-09-11  Bruno Haible  <bruno@clisp.org>
45585         dirent: Don't assume <dirent.h> exists.
45586         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45587         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45588         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45589         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45591 2011-09-11  Bruno Haible  <bruno@clisp.org>
45593         Fix wint_t on MSVC.
45594         * lib/wchar.in.h (wint_t): On MSVC, override it.
45595         * lib/wctype.in.h (wint_t): Likewise.
45596         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45597         MSVC.
45598         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45599         * doc/posix-headers/wctype.texi: Likewise.
45601 2011-09-11  Bruno Haible  <bruno@clisp.org>
45603         sys_types: Fix typo.
45604         * lib/sys_types.in.h: Fix typo in comment.
45605         Reported by Paul Eggert.
45607         Support for MSVC compiler: Ensure size_t gets defined.
45608         * modules/strings (Depends-on): Add 'sys_types'.
45609         * modules/sys_uio (Depends-on): Likewise.
45610         * lib/sys_uio.in.h: Update comment.
45612         C++ tests for module 'sys_types'.
45613         * modules/sys_types-c++-tests: New file.
45614         * tests/test-sys_types-c++.cc: New file.
45616         Tests for module 'sys_types'.
45617         * modules/sys_types-tests: New file.
45618         * tests/test-sys_types.c: New file.
45620         New module 'sys_types'.
45621         * lib/sys_types.in.h: New file.
45622         * m4/sys_types_h.m4: New file.
45623         * modules/sys_types: New file.
45624         * doc/posix-headers/sys_types.texi: Mention the new module and the
45625         size_t problem on MSVC 9.
45627 2011-09-11  Bruno Haible  <bruno@clisp.org>
45629         Support for MSVC compiler: Avoid division by a literal 0.
45630         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45631         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45632         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45633         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45634         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45635         * tests/infinity.h: New file.
45636         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45637         on MSVC.
45638         * tests/test-ceilf1.c: Include infinity.h.
45639         (main): Use Infinityf.
45640         * tests/test-ceil1.c: Include infinity.h.
45641         (main): Use Infinityd.
45642         * tests/test-ceill.c: Include infinity.h.
45643         (main): Use Infinityl.
45644         * tests/test-dprintf-posix.c: Include infinity.h.
45645         (test_function): Use Infinityd.
45646         * tests/test-floorf1.c: Include infinity.h.
45647         (main): Use Infinityf.
45648         * tests/test-floor1.c: Include infinity.h.
45649         (main): Use Infinityd.
45650         * tests/test-floorl.c: Include infinity.h.
45651         (main): Use Infinityl.
45652         * tests/test-fprintf-posix.c: Include infinity.h.
45653         (test_function): Use Infinityd.
45654         * tests/test-frexp.c: Include infinity.h.
45655         (main): Use Infinityd.
45656         * tests/test-frexpl.c: Include infinity.h.
45657         (main): Use Infinityl.
45658         * tests/test-isfinite.c: Include infinity.h.
45659         (test_isfinitef): Use Infinityf.
45660         (test_isfinited): Use Infinityd.
45661         (test_isfinitel): Use Infinityl.
45662         * tests/test-isinf.c: Include infinity.h.
45663         (test_isinff): Use Infinityf.
45664         (test_isinfd): Use Infinityd.
45665         (test_isinfl): Use Infinityl.
45666         * tests/test-isnan.c: Include infinity.h.
45667         (test_float): Use Infinityf.
45668         (test_double): Use Infinityd.
45669         (test_long_double): Use Infinityl.
45670         * tests/test-isnanf.h: Include infinity.h.
45671         (main): Use Infinityf.
45672         * tests/test-isnand.h: Include infinity.h.
45673         (main): Use Infinityd.
45674         * tests/test-isnanl.h: Include infinity.h.
45675         (main): Use Infinityl.
45676         * tests/test-ldexpl.c: Include infinity.h.
45677         (main): Use Infinityl.
45678         * tests/test-printf-posix.h: Include infinity.h.
45679         (test_function): Use Infinityd.
45680         * tests/test-roundf1.c: Include infinity.h.
45681         (main): Use Infinityf.
45682         * tests/test-round1.c: Include infinity.h.
45683         (main): Use Infinityd.
45684         * tests/test-roundl.c: Include infinity.h.
45685         (main): Use Infinityl.
45686         * tests/test-signbit.c: Include infinity.h.
45687         (test_signbitf): Use Infinityf.
45688         (test_signbitd): Use Infinityd.
45689         (test_signbitl): Use Infinityl.
45690         * tests/test-snprintf-posix.h: Include infinity.h.
45691         (test_function): Use Infinityd, Infinityl.
45692         * tests/test-sprintf-posix.h: Include infinity.h.
45693         (test_function): Use Infinityd, Infinityl.
45694         * tests/test-truncf1.c: Include infinity.h.
45695         (main): Use Infinityf.
45696         * tests/test-trunc1.c: Include infinity.h.
45697         (main): Use Infinityd.
45698         * tests/test-truncl.c: Include infinity.h.
45699         (main): Use Infinityl.
45700         * tests/test-vasnprintf-posix.c: Include infinity.h.
45701         (test_function): Use Infinityd, Infinityl.
45702         * tests/test-vasprintf-posix.c: Include infinity.h.
45703         (test_function): Use Infinityd, Infinityl.
45704         * modules/ceilf-tests (Files): Add tests/infinity.h.
45705         * modules/ceil-tests (Files): Likewise.
45706         * modules/ceill-tests (Files): Likewise.
45707         * modules/dprintf-posix-tests (Files): Likewise.
45708         * modules/floorf-tests (Files): Likewise.
45709         * modules/floor-tests (Files): Likewise.
45710         * modules/floorl-tests (Files): Likewise.
45711         * modules/fprintf-posix-tests (Files): Likewise.
45712         * modules/frexp-tests (Files): Likewise.
45713         * modules/frexp-nolibm-tests (Files): Likewise.
45714         * modules/frexpl-tests (Files): Likewise.
45715         * modules/frexpl-nolibm-tests (Files): Likewise.
45716         * modules/isfinite-tests (Files): Likewise.
45717         * modules/isinf-tests (Files): Likewise.
45718         * modules/isnan-tests (Files): Likewise.
45719         * modules/isnanf-tests (Files): Likewise.
45720         * modules/isnanf-nolibm-tests (Files): Likewise.
45721         * modules/isnand-tests (Files): Likewise.
45722         * modules/isnand-nolibm-tests (Files): Likewise.
45723         * modules/isnanl-tests (Files): Likewise.
45724         * modules/isnanl-nolibm-tests (Files): Likewise.
45725         * modules/ldexpl-tests (Files): Likewise.
45726         * modules/printf-posix-tests (Files): Likewise.
45727         * modules/roundf-tests (Files): Likewise.
45728         * modules/round-tests (Files): Likewise.
45729         * modules/roundl-tests (Files): Likewise.
45730         * modules/signbit-tests (Files): Likewise.
45731         * modules/snprintf-posix-tests (Files): Likewise.
45732         * modules/sprintf-posix-tests (Files): Likewise.
45733         * modules/truncf-tests (Files): Likewise.
45734         * modules/trunc-tests (Files): Likewise.
45735         * modules/truncl-tests (Files): Likewise.
45736         * modules/vasnprintf-posix-tests (Files): Likewise.
45737         * modules/vasprintf-posix-tests (Files): Likewise.
45738         * modules/vdprintf-posix-tests (Files): Likewise.
45739         * modules/vfprintf-posix-tests (Files): Likewise.
45740         * modules/vprintf-posix-tests (Files): Likewise.
45741         * modules/vsnprintf-posix-tests (Files): Likewise.
45742         * modules/vsprintf-posix-tests (Files): Likewise.
45743         * modules/xprintf-posix-tests (Files): Likewise.
45745 2011-09-11  Bruno Haible  <bruno@clisp.org>
45747         Ensure pid_t gets defined.
45748         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45749         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45750         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45751         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45752         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45753         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45754         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45755         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45756         * tests/test-fcntl-h.c: Check that pid_t is defined.
45757         * tests/test-sched.c: Likewise.
45758         * tests/test-termios.c: Likewise.
45759         * tests/test-time.c: Likewise.
45760         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45761         * doc/posix-headers/signal.texi: Likewise.
45762         * doc/posix-headers/sys_types.texi: Likewise.
45763         * doc/posix-headers/time.texi: Likewise.
45765 2011-09-11  Bruno Haible  <bruno@clisp.org>
45767         acl: Fix compilation on Solaris 10 (older version).
45768         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45769         of ACE_EVERYONE.
45770         * lib/set-mode-acl.c (qset_acl): Likewise.
45771         Reported by Christian Jullien <eligis@orange.fr>.
45773 2011-09-10  Bruno Haible  <bruno@clisp.org>
45775         iconv, unsetenv: Add support for MSVC compiler.
45776         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45779 2011-09-10  Bruno Haible  <bruno@clisp.org>
45781         *printf: Add support for MSVC compiler.
45782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45783         handles the exception caused by the %n directive. When cross-compiling,
45784         guess no on native Windows.
45785         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45786         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45787         emulate it through vsnprintf.
45788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45789         * doc/posix-functions/dprintf.texi: Update documentation regarding
45790         MSVC 9.
45791         * doc/posix-functions/fprintf.texi: Likewise.
45792         * doc/posix-functions/printf.texi: Likewise.
45793         * doc/posix-functions/snprintf.texi: Likewise.
45794         * doc/posix-functions/sprintf.texi: Likewise.
45795         * doc/posix-functions/swprintf.texi: Likewise.
45796         * doc/posix-functions/vdprintf.texi: Likewise.
45797         * doc/posix-functions/vfprintf.texi: Likewise.
45798         * doc/posix-functions/vprintf.texi: Likewise.
45799         * doc/posix-functions/vsnprintf.texi: Likewise.
45800         * doc/posix-functions/vsprintf.texi: Likewise.
45801         * doc/glibc-functions/asprintf.texi: Likewise.
45802         * doc/glibc-functions/obstack_printf.texi: Likewise.
45803         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45804         * doc/glibc-functions/vasprintf.texi: Likewise.
45806 2011-09-10  Bruno Haible  <bruno@clisp.org>
45808         nocrash: Add support for native Windows.
45809         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45811 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45812             Bruno Haible  <bruno@clisp.org>
45814         absolute-header, include-next: Add support for MSVC compiler.
45815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45816         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45817         directory separator in #line directives.
45818         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45819         recognize also backslash as directory separator in #line directives.
45821 2011-09-08  Jim Meyering  <meyering@redhat.com>
45823         maint.mk: mark the post-release commit log with "maint: " prefix
45824         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45825         one-line commit-log summary.
45827 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45828             Bruno Haible  <bruno@clisp.org>
45830         Doc about crypt functions.
45831         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45832         systems.
45833         * doc/posix-functions/encrypt.texi: Likewise.
45834         * doc/posix-functions/setkey.texi: Likewise.
45836 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45838         * lib/gc.h: Fix copyright header.
45840 2011-09-07  Bruno Haible  <bruno@clisp.org>
45842         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45843         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45844         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45846 2011-09-07  Bruno Haible  <bruno@clisp.org>
45848         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45849         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45850         * lib/freopen.c: Likewise.
45851         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45852         * lib/lstat.c: Likewise.
45853         * lib/stat.c: Likewise.
45854         * lib/open.c: Use different syntax for include of <fcntl.h>.
45855         * lib/openat.c: Include fcntl.h again, explicitly.
45857 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45859         parse-datetime: document the newly accepted format
45860         * doc/parse-datetime.texi (Combined date and time of day items):
45861         New section.
45863 2011-09-06  Bruno Haible  <bruno@clisp.org>
45865         acl: Fix a test failure on newer Solaris 10 with ZFS.
45866         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45867         ENOSYS as no ACL.
45868         Reported by Jim Meyering.
45870 2011-09-06  Bruno Haible  <bruno@clisp.org>
45872         acl: Update for AIX >= 5.3 with NFS.
45873         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45874         ENOSYS as no ACL.
45876         acl: Fix a test failure on AIX >= 5.3 with NFS.
45877         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45878         as no ACL.
45880 2011-09-06  Bruno Haible  <bruno@clisp.org>
45882         acl: Fix a test failure on IRIX 6.5 with NFS.
45883         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45884         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45885         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45886         * lib/copy-acl.c (qcopy_acl): Likewise.
45888 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45890         openat: port to AIX 7.1 with large files
45891         AIX 7.1 does a "#define openat open64at" if large files are in use,
45892         so we can't simply #undef openat.  Use the orig_openat trick (similar
45893         to orig_open in lib/open.c) to work around the problem.  Problem
45894         reported by Kevin Brott for GNU tar, in the thread containing
45895         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45896         * lib/openat.c (__need_system_fcntl_h): Define first.
45897         Include <fcntl.h> and <sys/types.h> before undefining.
45898         (orig_openat) [HAVE_OPENAT]: New inline function.
45899         (openat) [HAVE_OPENAT]: Do not undef.
45900         (rpl_openat): Use orig_openat, not openat.
45902 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45903             Bruno Haible  <bruno@clisp.org>
45905         acl: Avoid errors on NonStop Kernel.
45906         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45907         ENOTSUP errors.
45909 2011-09-05  Bruno Haible  <bruno@clisp.org>
45911         acl: Clean up Solaris code.
45912         * lib/acl-internal.h: Remove no-op #if.
45913         * lib/file-has-acl.c: Likewise.
45914         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45915         * lib/copy-acl.c (qcopy_acl): Likewise.
45917 2011-09-05  Bruno Haible  <bruno@clisp.org>
45919         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45920         binaries built on the original Solaris 10.
45921         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45922         trivial.
45924 2011-09-05  Bruno Haible  <bruno@clisp.org>
45926         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45927         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45928         10.
45929         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45930         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45931         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45932         instead of acl_get, facl_get, acl_set, facl_set.
45934 2011-09-05  Bruno Haible  <bruno@clisp.org>
45936         copy-file: Try unit tests on more file systems.
45937         * tests/test-copy-file-1.sh: New file.
45938         * tests/test-copy-file-2.sh: New file.
45939         * modules/copy-file-tests (Files): Add them.
45940         (Makefile.am): Add them to TESTS.
45942         acl: Try unit tests on more file systems.
45943         * tests/test-file-has-acl-1.sh: New file.
45944         * tests/test-file-has-acl-2.sh: New file.
45945         * tests/test-set-mode-acl-1.sh: New file.
45946         * tests/test-set-mode-acl-2.sh: New file.
45947         * tests/test-copy-acl-1.sh: New file.
45948         * tests/test-copy-acl-2.sh: New file.
45949         * modules/acl-tests (Files): Add them.
45950         (Makefile.am): Add them to TESTS.
45952 2011-09-04  Bruno Haible  <bruno@clisp.org>
45954         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45955         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45956         10.
45957         (OLD_ALLOW, OLD_DENY): New macros.
45958         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45959         ACE_ACCESS_ALLOWED_ACE_TYPE.
45960         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45961         ACE_ACCESS_DENIED_ACE_TYPE.
45962         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45963         (NEW_ACE_EXECUTE): Fix value.
45964         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45965         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45966         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45967         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45968         NEW_ACE_SYNCHRONIZE): New macros.
45969         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45970         instead of acl_fromtext, acl_set, facl_set.
45971         Fixes a coreutils/tests/cp/perm failure.
45973 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45975         openat: test for fstatat (..., 0) bug
45976         Further testing with tar suggests that fstatat (..., 0)
45977         does not work in general, on AIX 7.1; see
45978         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45979         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45980         replacement fstatat (which is what older AIX releases were using
45981         anyway).
45982         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45983         use is now changed to orig_fstatat.  This was probably the right
45984         thing to do anyway.
45985         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45986         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45987         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45988         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45989         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45990         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45991         if the bug is found.
45993         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45994         This tests for another fstatat bug on AIX 7.1:
45995         fstatat (AT_FDCWD, ..., 0) does not work.  See
45996         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45997         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45998         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45999         (rpl_fstatat): Adjust so that it works around either (or both)
46000         bugs if present.
46001         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46003 2011-09-03  Karl Berry  <karl@gnu.org>
46005         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46006         in index entries.
46008 2011-09-02  Bruno Haible  <bruno@clisp.org>
46010         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46011         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46012         values of AR, ARFLAGS, RANLIB.
46013         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46015 2011-09-02  Bruno Haible  <bruno@clisp.org>
46017         Find 'ar' program that fits with --host argument.
46018         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46020 2011-09-02  Bruno Haible  <bruno@clisp.org>
46022         tests: init.sh: Support any non-GNU diff.
46023         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46024         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46025         Solaris 8.
46027 2011-09-02  Bruno Haible  <bruno@clisp.org>
46029         tests: init.sh: work also with any non-GNU diff that supports -u
46030         * tests/init.sh: Relax check for diff -u support.
46031         Rather than checking for GNU diff via --version, simply check
46032         for support for -u itself.  Useful at least on OpenBSD 4.9,
46033         AIX 7.1, IRIX 6.5, and Solaris 10.
46035 2011-09-01  Bruno Haible  <bruno@clisp.org>
46037         strtoimax, strtoumax: Document problem on HP-UX 11.
46038         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46039         * doc/posix-functions/strtoumax.texi: Likewise.
46041 2011-09-01  Bruno Haible  <bruno@clisp.org>
46043         strtoumax: Avoid link error on OSF/1 with DTK cc.
46044         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46045         defined as a function.
46046         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46047         strtoumax is defined, not whether it is declared.
46049 2011-09-01  Bruno Haible  <bruno@clisp.org>
46051         strtoimax: Avoid link error on OSF/1 with DTK cc.
46052         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46053         defined as a function.
46054         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46055         strtoimax is defined, not whether it is declared.
46057 2011-09-01  Bruno Haible  <bruno@clisp.org>
46059         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46060         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46061         as a function.
46062         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46063         whether it is declared.
46065 2011-09-01  Bruno Haible  <bruno@clisp.org>
46067         imaxabs: Avoid link error on OSF/1 with DTK cc.
46068         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46069         as a function.
46070         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46071         whether it is declared.
46073 2011-09-01  Bruno Haible  <bruno@clisp.org>
46075         Tests for module 'strtoumax'.
46076         * modules/strtoumax-tests: New file.
46077         * tests/test-strtoumax.c: New file.
46079         Tests for module 'strtoimax'.
46080         * modules/strtoimax-tests: New file.
46081         * tests/test-strtoimax.c: New file.
46083         Tests for module 'imaxdiv'.
46084         * modules/imaxdiv-tests: New file.
46085         * tests/test-imaxdiv.c: New file.
46087         Tests for module 'imaxabs'.
46088         * modules/imaxabs-tests: New file.
46089         * tests/test-imaxabs.c: New file.
46091 2011-09-01  Bruno Haible  <bruno@clisp.org>
46093         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46094         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46095         pthread_create.
46097 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46099         openat: work around AIX 7.1 fstatat issue
46100         This should fix the problem that was not properly fixed
46101         in the previous change, dated 2011-08-30.
46102         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46103         __need_system_stat_h defined.
46104         (orig_fstatat) [HAVE_FSTATAT]: New function.
46105         (rpl_fstatat): Go back to the old way of doing things,
46106         except call orig_fstatat instead of fstatat.
46107         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46108         Remove unnecessary check whether fstatat fills in st_size etc.
46110 2011-09-01  Bruno Haible  <bruno@clisp.org>
46112         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46113         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46114         just include the system's header.
46116 2011-08-31  Jim Meyering  <meyering@redhat.com>
46118         tests: avoid spurious assertion failure in test-float.c on ppc64
46119         * tests/test-float.c (test_long_double): Comment out an assertion,
46120         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46121         with gcc-4.4.4.
46123         maint: indent with spaces, not TABs
46124         I need to get in the habit of running gnulib's "make check".
46125         Both of these would have been caught.
46126         * m4/largefile.m4: Indent with spaces, not TABs.
46127         * lib/parse-datetime.y (iso_8601_time): Likewise.
46128         Spotted by Pádraig Brady.
46130         test-parse-datetime.c: accommodate a relatively strict gcc warning
46131         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46132         to avoid a warning from gcc's -Werror=missing-declarations.
46133         Insert a few spaces-before-funcall-parenthesis.
46135 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46137         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46138         The parser now accepts ISO 8601 date-time strings with "T" as the
46139         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46140         with a space between the date and time strings.  Now it also parses
46141         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46142         variants like "2004-02-29T16:21:42.333-07:00"
46143         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46144         of day representation using the 'T' separator character.
46145         * doc/parse-datetime.texi (General date syntax): replace use of
46146         deprecated --iso-8601 option with --rfc-3339 in example of date
46147         command output formats that can be parsed.
46148         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46149         lib/parse-datetime.y.
46150         (gmt_offset): New function.
46151         (main): Add additional test cases to validate ISO8601 extended
46152         date and time of day parsing.
46154 2011-08-31  Bruno Haible  <bruno@clisp.org>
46156         freopen: Documentation.
46157         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46158         name.
46159         Reported by Claudio Bley <claudio.bley@gmail.com>.
46161 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46163         freopen: Don't crash if the filename argument is NULL.
46164         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46165         NULL.
46167 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46169         openat: work around AIX 7.1 fstatat bug
46170         Problem reported by Kevin Brott for GNU tar, in the thread containing
46171         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46172         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46173         FSTATAT_ST_SIZE_ETC_BROKEN.
46174         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46175         rpl_fstatat.
46176         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46177         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46178         AC_CHECK_FUNCS_ONCE for fstatat.
46179         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46180         fchmodat, mkdirat, openat and unlinkat.
46182 2011-08-30  Bruno Haible  <bruno@clisp.org>
46184         Avoid endless recursions if config.h includes some header files.
46185         * lib/fopen.c (__need_FILE): Define already before including config.h.
46186         * lib/freopen.c (__need_FILE): Likewise.
46187         * lib/open.c (__need_system_fcntl_h): Likewise.
46188         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46189         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46190         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46192 2011-08-25  Karl Berry  <karl@gnu.org>
46194         * config/srclist.txt (ylwrap): new try.
46195         * build-aux/ylwrap: new file.
46197 2011-08-23  Bruno Haible  <bruno@clisp.org>
46199         tmpdir: Use a good default directory on native Windows.
46200         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46201         (P_tmpdir): Default to _P_tmpdir on native Windows.
46202         (path_search): On native Windows, try the value returned by GetTempPath
46203         before trying P_tmpdir.
46204         * modules/tmpdir (Depends-on): Add pathmax.
46205         Suggested by John Darrington <john@darrington.wattle.id.au>.
46207 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46209         doc: fix typo in README-release
46210         * top/README-release: Capitalize first word of a sentence.
46212 2011-08-19  Jim Meyering  <meyering@redhat.com>
46214         fts: do not exhaust memory when processing million-entry directories
46215         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46216         directory would require about 256*N bytes of memory.  Thus, it was
46217         easy to construct a directory too large to be processed by any of
46218         those tools.  With this change, fts' maximum memory utilization is
46219         now limited to around 30MB.
46220         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46221         (fts_read): When we've processed the final entry (i.e., when
46222         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46223         using the parent entry to read any remaining entries.  Dispatch
46224         depending on what fts_build returns:
46225         - NULL+stop, aka failure: stop
46226         - NULL otherwise: move up in the dir hierarchy
46227         - non-NULL: handle this new entry
46228         (fts_build): Declare and use new local, continue_readdir.
46229         Prepare to be called from fts_read, when the entries
46230         from a partially-read directory have just been exhausted.
46231         In that case, we'll skip the opendir and instead use the parent's
46232         fts_dirp and derive dir_fd from that.
46233         Finally, in the readdir loop, if we read max_entries entries,
46234         exit the loop ensuring *not* to call closedir.  This is required
46235         so that fts_dirp can be reused on a subsequent call.
46236         Prompted by Ben England's report of memory exhaustion in find
46237         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46239         maint: fts: move decl of `dp' down into while loop; split a long line
46240         * lib/fts.c (fts_build): No semantic change.
46242         fts: add/use new struct member, fts_dirp
46243         We are about to use this to manage any directory with
46244         too many entries to read all of them into memory at once.
46245         To do that, we'll need to save the DIR* pointer in each
46246         affected FTSENT struct.
46247         * lib/fts_.h: Include <dirent.h>.
46248         (struct FTSENT) [fts_dirp]: New member.
46249         * lib/fts.c (closedir_and_clear): Define.
46250         Use it in place of closedir so that we are sure to
46251         clear the new fts_dirp member when done with it.
46252         (fts_alloc): Initialize the new member.
46253         (fts_lfree): Free, if needed.
46255         maint: fts: give __opendir2 a new parameter and rename
46256         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46257         than surreptitiously using sole caller's "dir_fd".
46258         (fts_opendir): Rename from __opendir2.
46260         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46261         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46263         maint: fts.c: correct off-by-one indentation
46264         * lib/fts.c (fts_build): Correct indentation, change style
46265         of a couple of block comments, and bracing style.
46267         maint: fts.c: move __opendir2 #define "up" out of function body
46268         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46270         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46271         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46272         out for a long time and besides was useful only on BSD systems.
46274 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46276         regex: port to Stratus OpenVOS
46277         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46278         define to empty, rather than attempting nonportable optimizations.
46279         Problem reported by Paul Green in:
46280         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46281         and fix suggested by Eric Blake in:
46282         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46284 2011-08-17  Eric Blake  <eblake@redhat.com>
46286         getcwd: fix test failures on mingw
46287         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46288         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46289         test if long directory cannot be created, and allow mingw errno.
46291         getcwd-lgpl: fix m4 to match relaxed test for BSD
46292         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46293         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46294         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46295         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46296         signature problem.
46298         getcwd: fix compilation on mingw64
46299         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46300         getcwd.
46301         Reported by Marc-André Lureau.
46303         pipe2: silence compiler warning
46304         * lib/pipe2.c (pipe2): Hide label if it is not used.
46306 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46308         relocatable-prog: fix link error
46309         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46310         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46311         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46312         into modules/relocatable-lib without noticing that
46313         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46314         also needs to build relocatable.c.
46316 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46318         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46320         shell code: it contained a 'break' that was not in a loop.
46321         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46322         via a shell-language loop; this may have been true in old Autoconf
46323         versions, but it's not true in Autoconf 2.68.  I found this bug
46324         when testing coreutils git on Solaris 8, whose shell complains
46325         about the syntax error.
46327 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46329         * lib/base64.c: Fix comment to reference RFC 4648.
46330         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46331         <gvtulder@gmail.com>.
46333 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46335         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46337         po/Makefile.in.in: fix make -q problem
46338         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46339         rule, since there's no file named 'check-macro-version' and its
46340         use as a file breaks make -q.
46341         (all): Don't depend on check-macro-version.
46342         (CHECK_MACRO_VERSION): New macro.
46343         (stamp-po): Use it.
46345         configmake: fix make -q problem
46346         * modules/configmake (configmake.h): Update configmake.h's time stamp
46347         even if the file does not change.  Otherwise, 'make -q' fails.
46348         Problem reported by Simon Josefsson in
46349         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46351 2011-08-11  Jim Meyering  <meyering@redhat.com>
46353         git-version-gen: correct the advice in a comment
46354         * build-aux/git-version-gen: Correct comment.
46355         Don't recommend to list .tarball-version in .gitignore.
46357 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46359         base64: fix off-by-one buffer size bug
46360         Problem and (trivial) fix reported by Gijs van Tulder in
46361         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46362         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46363         * tests/test-base64.c (main): Catch the bug.
46365 2011-08-10  Eric Blake  <eblake@redhat.com>
46367         closein: correct comments
46368         * lib/closein.c (close_stdin): Improve comments.
46370 2011-08-09  Bruno Haible  <bruno@clisp.org>
46372         More tests for 'fseeko'.
46373         * tests/test-fseeko3.c: New file, from Eric Blake.
46374         * tests/test-fseeko3.sh: New file.
46375         * modules/fseeko-tests (Files): Add them.
46376         (TESTS): Add test-fseeko3.sh.
46377         (check_PROGRAMS): Add test-fseeko3.
46379 2011-08-09  Eric Blake  <eblake@redhat.com>
46381         fseeko: remove unneeded hack
46382         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46384         fseeko: fix bug on glibc
46385         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46386         Reported by John W. Eaton.
46388 2011-08-08  Bruno Haible  <bruno@clisp.org>
46390         unictype/base: Fix interoperability with preinstalled libunistring.
46391         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46392         Reported by Simon Josefsson.
46394 2011-08-08  Bruno Haible  <bruno@clisp.org>
46396         iswblank: Detect declaration correctly.
46397         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46398         AC_CHECK_DECLS invocation.
46400 2011-08-08  Bruno Haible  <bruno@clisp.org>
46402         tcgetsid: Detect declaration correctly.
46403         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46404         AC_CHECK_DECLS invocation.
46405         Reported by Simon Josefsson.
46407 2011-08-08  Eric Blake  <eblake@redhat.com>
46409         largefile: fix typo that regressed large file support
46410         * modules/largefile (configure.ac-early): Fix section name.
46412 2011-08-06  Karl Berry  <karl@gnu.org>
46414         * MODULES.html.sh (func_all_files): _Noreturn is no longer
46415         a separate module.
46417 2011-08-05  Simon Josefsson  <simon@josefsson.org>
46419         openat: Fix warnings and commens when building unlinkat.c on Hurd.
46420         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
46421         get prototype for free.
46423 2011-08-04  Bruno Haible  <bruno@clisp.org>
46425         Tests for module 'pathmax'.
46426         * modules/pathmax-tests: New file.
46427         * tests/test-pathmax.c: New file.
46429         canonicalize-lgpl: Support larger filenames on the Hurd.
46430         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
46431         Reported by Paul Eggert.
46433         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
46434         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
46435         * lib/chdir-long.h: Include pathmax.h.
46436         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
46437         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46438         (PATH_MAX): Remove code that is done by pathmax.h.
46439         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46440         * lib/tmpfile.c: Add a comment.
46441         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46442         * modules/chdir-long (Depends-on): Add pathmax.
46443         * modules/getcwd (Depends-on): Add pathmax.
46444         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46445         is not defined.
46446         * doc/posix-headers/limits.texi: Mention the pathmax module.
46447         * NEWS: Mention the change.
46449 2011-08-02  Bruno Haible  <bruno@clisp.org>
46451         pthread_sigmask: Actually use results of gl_THREADLIB.
46452         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46453         gl_THREADLIB, not gl_[]THREADLIB.
46454         Reported by Eric Blake.
46456 2011-08-02  Jim Meyering  <meyering@redhat.com>
46458         maint.mk: relax the default _gl_TS_function_match regexp
46459         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46460         space between function name and "(" in an "extern" declaration.
46461         That would fail to match a decl with no space there: extern void foo();
46463 2011-07-31  Iain Nicol  <iain@thenicols.net>
46465         git-version-gen: document that EXTRA_DIST must include .version
46466         * build-aux/git-version-gen: In the how-to-use comment, document
46467         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46468         will fail when run from an unpacked distribution tarball.
46470 2011-08-01  Bruno Haible  <bruno@clisp.org>
46472         wctype-h: Fix last change.
46473         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46474         REPLACE_TOWLOWER to 0.
46475         Reported by Sam Steingold <sds@gnu.org>.
46477 2011-07-31  Bruno Haible  <bruno@clisp.org>
46479         frexpl: Update autoconf test.
46480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46481         according to changes of 2011-06-20.
46483 2011-07-31  Bruno Haible  <bruno@clisp.org>
46485         sys_utsname: Add support for Minix.
46486         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46487         <sys/utsname.h>.
46488         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46489         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46491 2011-07-31  Bruno Haible  <bruno@clisp.org>
46493         strings: Add support for Minix.
46494         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46495         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46496         * doc/posix-headers/strings.texi: Document the Minix problem.
46498 2011-07-31  Bruno Haible  <bruno@clisp.org>
46500         wctype-h: Add support for Minix.
46501         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46502         REPLACE_TOWLOWER.
46503         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46504         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46505         REPLACE_ISWCNTRL.
46507 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46509         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46510         This is a performance improvement for 64-bit hosts: it causes the
46511         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46513 2011-07-31  Bruno Haible  <bruno@clisp.org>
46515         stdioext: Add support for Minix.
46516         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46517         * lib/fpurge.c (fpurge): Likewise.
46518         * lib/freadahead.c (freadahead): Likewise.
46519         * lib/freadable.c (freadable): Likewise.
46520         * lib/freading.c (freading): Likewise.
46521         * lib/freadptr.c (freadptr): Likewise.
46522         * lib/freadseek.c (freadptrinc): Likewise.
46523         * lib/fseeko.c (rpl_fseeko): Likewise.
46524         * lib/fseterr.c (fseterr): Likewise.
46525         * lib/fwritable.c (fwritable): Likewise.
46526         * lib/fwriting.c (fwriting): Likewise.
46527         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46528         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46530 2011-07-31  Bruno Haible  <bruno@clisp.org>
46532         errno: Port to Minix.
46533         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46534         ECONNABORTED are defined.
46535         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46536         GNULIB_defined_ECONNABORTED): New macros.
46537         * lib/strerror-override.h (strerror_override): Test also
46538         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46539         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46540         ECONNABORTED.
46541         * doc/posix-headers/errno.texi: Mention the Minix problem.
46543 2011-07-31  Bruno Haible  <bruno@clisp.org>
46545         Work around declaration collisions on Minix.
46546         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46547         defined, set REPLACE_MBSINIT.
46548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46549         defined, set REPLACE_MBRTOWC.
46550         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46551         set REPLACE_MBRLEN.
46552         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46553         defined, set REPLACE_MBSRTOWCS.
46554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46555         defined, set REPLACE_WCRTOMB.
46556         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46557         defined, set REPLACE_WCSRTOMBS.
46559 2011-07-31  Bruno Haible  <bruno@clisp.org>
46561         Add support for Minix with ACK compiler.
46562         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46563         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46564         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46566 2011-07-31  Bruno Haible  <bruno@clisp.org>
46568         Documentation about Minix.
46569         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46570         * doc/glibc-headers/*.texi: Likewise.
46571         * doc/posix-functions/*.texi: Likewise.
46572         * doc/glibc-functions/*.texi: Likewise.
46574 2011-07-31  Bruno Haible  <bruno@clisp.org>
46576         snippet/warn-on-use: Fix indentation.
46577         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46579 2011-07-25  Jim Meyering  <meyering@redhat.com>
46581         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46582         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46583         commands.
46585 2011-07-27  Jim Meyering  <meyering@redhat.com>
46587         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46588         * top/maint.mk (gl_extract_significant_defines_): Now that
46589         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46590         gnulib/lib/signal.in.h, and now that we recommend to
46591         define-if-undefined those two symbols in application code,
46592         we must filter them out of the "significant" list.
46593         This avoids a "make syntax-check" failure in coreutils.
46595 2011-07-26  Eric Blake  <eblake@redhat.com>
46597         warnings: add comments about previous patch
46598         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46599         * m4/include_next.m4: Likewise.
46600         * m4/warn-on-use.m4: Likewise.
46601         * m4/warnings.m4: Likewise, and simplify use.
46602         Suggested by Stefano Lattarini.
46604         include-next, warnings: support older autoconf
46605         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46606         AS_VAR_PUSHDEF in a way that works with older autoconf.
46607         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46608         Reported by Daniel P. Berrange.
46610 2011-07-25  Bruno Haible  <bruno@clisp.org>
46612         fseek, ftell: Fix doc.
46613         * doc/posix-functions/fseek.texi: Reword statement about
46614         AC_SYS_LARGEFILE.
46615         * doc/posix-functions/ftell.texi: Likewise.
46617 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46618             Bruno Haible  <bruno@clisp.org>
46620         Add dependencies to the 'largefile' module.
46621         * modules/fopen (Depends-on): Add 'largefile'.
46622         * modules/freopen (Depends-on): Likewise.
46623         * modules/fseeko (Depends-on): Likewise.
46624         * modules/ftello (Depends-on): Likewise.
46625         * modules/glob (Depends-on): Likewise.
46626         * modules/lseek (Depends-on): Likewise.
46627         * modules/lstat (Depends-on): Likewise.
46628         * modules/mkostemp (Depends-on): Likewise.
46629         * modules/mkostemps (Depends-on): Likewise.
46630         * modules/mkstemp (Depends-on): Likewise.
46631         * modules/mkstemps (Depends-on): Likewise.
46632         * modules/open (Depends-on): Likewise.
46633         * modules/openat (Depends-on): Likewise.
46634         * modules/pread (Depends-on): Likewise.
46635         * modules/pwrite (Depends-on): Likewise.
46636         * modules/scandir (Depends-on): Likewise.
46637         * modules/stat (Depends-on): Likewise.
46638         * modules/tmpfile (Depends-on): Likewise.
46639         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46640         since the containing module now depends on the largefile module.
46641         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46642         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46643         off_t is fixed by gnulib.
46644         * doc/posix-functions/freopen.texi: Likewise.
46645         * doc/posix-functions/fseeko.texi: Likewise.
46646         * doc/posix-functions/fstatat.texi: Likewise.
46647         * doc/posix-functions/ftello.texi: Likewise.
46648         * doc/posix-functions/glob.texi: Likewise.
46649         * doc/posix-functions/lseek.texi: Likewise.
46650         * doc/posix-functions/lstat.texi: Likewise.
46651         * doc/posix-functions/mkstemp.texi: Likewise.
46652         * doc/posix-functions/open.texi: Likewise.
46653         * doc/posix-functions/openat.texi: Likewise.
46654         * doc/posix-functions/pread.texi: Likewise.
46655         * doc/posix-functions/pwrite.texi: Likewise.
46656         * doc/posix-functions/scandir.texi: Likewise.
46657         * doc/posix-functions/stat.texi: Likewise.
46658         * doc/posix-functions/tmpfile.texi: Likewise.
46659         * doc/glibc-functions/mkostemp.texi: Likewise.
46660         * doc/glibc-functions/mkostemps.texi: Likewise.
46661         * doc/glibc-functions/mkstemps.texi: Likewise.
46663 2011-07-25  Bruno Haible  <bruno@clisp.org>
46665         fcntl: Move AC_LIBOBJ invocation to module description.
46666         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46667         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46669         fcntl: Remove call-in from fchdir.m4.
46670         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46673         dup3: Remove potential call-in from fchdir.m4.
46674         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46677         dup2: Move AC_LIBOBJ invocation to module description.
46678         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46679         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46680         Don't invoke AC_LIBOBJ.
46681         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46683         dup2: Remove call-in from fchdir.m4.
46684         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46687         fclose: Move AC_LIBOBJ invocation to module description.
46688         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46689         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46690         to 1.
46691         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46693         fclose: Remove call-in from close.m4.
46694         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46695         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46697         close: Move AC_LIBOBJ invocation to module description.
46698         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46699         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46700         1.
46701         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46703         close: Remove call-in from fchdir.m4.
46704         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46707         open: Move AC_LIBOBJ invocation to module description.
46708         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46709         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46710         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46712         open: Remove call-in from fchdir.m4.
46713         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46716         fchdir: Start to remove gl_REPLACE_* idiom.
46717         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46718         (gl_FUNC_FCHDIR): Invoke it.
46720 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46722         * lib/ftell.c (ftell): Comment out cast.
46724         close: use gl_REPLACE_FCLOSE only if defined
46725         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46726         is defined.  The close module doesn't depend on the fclose module
46727         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46728         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46729         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46731 2011-07-24  Jim Meyering  <meyering@redhat.com>
46733         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46734         * tests/test-select.h (test_function): Declare as "static".
46736 2011-07-24  Bruno Haible  <bruno@clisp.org>
46738         doc: Mention the effects of AC_SYS_LARGEFILE.
46739         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46740         on this function.
46741         * doc/posix-functions/aio_error.texi: Likewise.
46742         * doc/posix-functions/aio_fsync.texi: Likewise.
46743         * doc/posix-functions/aio_read.texi: Likewise.
46744         * doc/posix-functions/aio_return.texi: Likewise.
46745         * doc/posix-functions/aio_suspend.texi: Likewise.
46746         * doc/posix-functions/aio_write.texi: Likewise.
46747         * doc/posix-functions/fgetpos.texi: Likewise.
46748         * doc/posix-functions/fopen.texi: Likewise.
46749         * doc/posix-functions/freopen.texi: Likewise.
46750         * doc/posix-functions/fsetpos.texi: Likewise.
46751         * doc/posix-functions/fstatvfs.texi: Likewise.
46752         * doc/posix-functions/ftruncate.texi: Likewise.
46753         * doc/posix-functions/ftw.texi: Likewise.
46754         * doc/posix-functions/getrlimit.texi: Likewise.
46755         * doc/posix-functions/glob.texi: Likewise.
46756         * doc/posix-functions/lio_listio.texi: Likewise.
46757         * doc/posix-functions/lockf.texi: Likewise.
46758         * doc/posix-functions/mkstemp.texi: Likewise.
46759         * doc/posix-functions/mmap.texi: Likewise.
46760         * doc/posix-functions/nftw.texi: Likewise.
46761         * doc/posix-functions/openat.texi: Likewise.
46762         * doc/posix-functions/opendir.texi: Likewise.
46763         * doc/posix-functions/posix_fadvise.texi: Likewise.
46764         * doc/posix-functions/posix_fallocate.texi: Likewise.
46765         * doc/posix-functions/pread.texi: Likewise.
46766         * doc/posix-functions/pwrite.texi: Likewise.
46767         * doc/posix-functions/readdir.texi: Likewise.
46768         * doc/posix-functions/readdir_r.texi: Likewise.
46769         * doc/posix-functions/rewinddir.texi: Likewise.
46770         * doc/posix-functions/scandir.texi: Likewise.
46771         * doc/posix-functions/seekdir.texi: Likewise.
46772         * doc/posix-functions/setrlimit.texi: Likewise.
46773         * doc/posix-functions/statvfs.texi: Likewise.
46774         * doc/posix-functions/telldir.texi: Likewise.
46775         * doc/posix-functions/tmpfile.texi: Likewise.
46776         * doc/posix-functions/truncate.texi: Likewise.
46777         * doc/glibc-functions/fallocate.texi: Likewise.
46778         * doc/glibc-functions/fstatfs.texi: Likewise.
46779         * doc/glibc-functions/fts_children.texi: Likewise.
46780         * doc/glibc-functions/fts_read.texi: Likewise.
46781         * doc/glibc-functions/getdirentries.texi: Likewise.
46782         * doc/glibc-functions/mkostemp.texi: Likewise.
46783         * doc/glibc-functions/mkostemps.texi: Likewise.
46784         * doc/glibc-functions/mkstemps.texi: Likewise.
46785         * doc/glibc-functions/preadv.texi: Likewise.
46786         * doc/glibc-functions/pwritev.texi: Likewise.
46787         * doc/glibc-functions/sendfile.texi: Likewise.
46788         * doc/glibc-functions/statfs.texi: Likewise.
46790 2011-07-24  Bruno Haible  <bruno@clisp.org>
46792         doc: Fix typo.
46793         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46795 2011-07-24  Bruno Haible  <bruno@clisp.org>
46797         doc: Mention fsusage.
46798         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46800 2011-07-24  Bruno Haible  <bruno@clisp.org>
46802         doc: Mention new glibc headers and functions.
46803         * doc/glibc-headers/gshadow.texi: New file.
46804         * doc/glibc-functions/endsgent.texi: New file.
46805         * doc/glibc-functions/fgetsgent.texi: New file.
46806         * doc/glibc-functions/fgetsgent_r.texi: New file.
46807         * doc/glibc-functions/getsgent.texi: New file.
46808         * doc/glibc-functions/getsgent_r.texi: New file.
46809         * doc/glibc-functions/getsgnam.texi: New file.
46810         * doc/glibc-functions/getsgnam_r.texi: New file.
46811         * doc/glibc-functions/putsgent.texi: New file.
46812         * doc/glibc-functions/setsgent.texi: New file.
46813         * doc/glibc-functions/sgetsgent.texi: New file.
46814         * doc/glibc-functions/sgetsgent_r.texi: New file.
46815         * doc/glibc-functions/malloc_info.texi: New file.
46816         * doc/glibc-functions/preadv.texi: New file.
46817         * doc/glibc-functions/pwritev.texi: New file.
46818         * doc/glibc-functions/register_printf_modifier.texi: New file.
46819         * doc/glibc-functions/register_printf_specifier.texi: New file.
46820         * doc/glibc-functions/register_printf_type.texi: New file.
46821         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46822         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46823         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46824         * doc/glibc-functions/pthread_getname_np.texi: New file.
46825         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46826         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46827         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46828         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46829         * doc/glibc-functions/pthread_setname_np.texi: New file.
46830         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46831         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46832         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46833         * doc/glibc-functions/qsort_r.texi: New file.
46834         * doc/glibc-functions/quick_exit.texi: New file.
46835         * doc/glibc-functions/syncfs.texi: New file.
46836         * doc/gnulib.texi: Include them.
46837         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46838         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46839         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46840         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46841         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46842         * doc/glibc-functions/execvpe.texi: Likewise.
46844 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46846         ftell: don't include <unistd.h>
46847         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46848         guaranteed to define off_t, and the ftell module depends on the
46849         stdio module.
46851         ftell: do not assume wraparound signed arithmetic
46852         * lib/ftell.c: Include <limits.h>.
46853         (ftell): Don't assume wraparound signed arithmetic.
46855 2011-07-24  Bruno Haible  <bruno@clisp.org>
46857         close: No longer depend on module 'fclose'.
46858         * modules/close (Depends-on): Remove fclose.
46859         * NEWS: Mention the change.
46860         Suggested by Sam Steingold <sds@gnu.org>.
46862 2011-07-24  Bruno Haible  <bruno@clisp.org>
46864         fsusage: Enable large volume support on AIX >= 5.2.
46865         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46866         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46867         instead of STAT_STATVFS.
46868         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46870         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46871         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46872         f_blocks field only on MacOS X.
46874         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46876         * modules/fsusage (Depends-on): Add largefile.
46878 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46880         * README: Modernize discussion of signed integers.
46881         Assuming overflow wraparound is no longer safe.
46882         Mention ones' complement and signed magnitude.
46884 2011-07-22  Bruno Haible  <bruno@clisp.org>
46886         select tests, pselect tests: Refactor.
46887         * tests/test-select.h: New file, extracted from tests/test-select.c.
46888         (select_fn): New type.
46889         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46890         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46891         test_pipe): Add my_select argument.
46892         (test_function): Renamed from main. Add my_select argument.
46893         * tests/test-select.c: Move most code to tests/test-select.h. Include
46894         test-select.h.
46895         * modules/select-tests (Files): Add tests/test-select.h.
46896         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46897         (my_select, main): New functions.
46898         * modules/pselect-tests (Files): Add tests/test-select.h,
46899         tests/macros.h, tests/signature.h.
46900         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46901         (configure.ac): Check for <sys/wait.h>.
46903 2011-07-22  Bruno Haible  <bruno@clisp.org>
46905         sys_select tests: Check the signature of FD_*.
46906         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46907         signature tests from here...
46908         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46909         here.
46910         * modules/sys_select-tests (Files): Add tests/signature.h.
46912 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46914         largefile: new module, replacing large-inode
46915         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46916         * MODULES.html.sh: Add largefile, remove large-inode.
46917         * modules/largefile, m4/largefile.m4: New files.
46918         * modules/large-inode, m4/large-inode.m4: Remove.
46920         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46922         implementations that use only 32 bits to count blocks.
46923         On typical hosts with 1024-byte blocks, this fails with file
46924         systems as small as 4 TiB.  Problem reported by Herb Wartens
46925         <http://debbugs.gnu.org/9140> and this should also fix a similar
46926         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46928         large-inode: New module
46929         * MODULES.html.sh: Add it.
46930         * modules/large-inode, m4/large-inode.m4: New files.
46932         extensions: Enable extensions on MacOS X 10.5 and later.
46933         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46935 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46937         file-has-acl: use acl_extended_file_nofollow if available
46938         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46939         (acl_extended_file): New macro.
46940         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46941         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46943 2011-07-21  Bruno Haible  <bruno@clisp.org>
46945         Declare system functions in a way that works with C++.
46946         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46947         declare fdopendir as extern "C".
46948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46949         declare frexpl as extern "C".
46950         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46951         declare gai_strerror as extern "C".
46952         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46953         programs, declare gai_strerror as extern "C".
46954         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46955         declare getlogin_r as extern "C".
46956         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46957         as extern "C".
46958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46959         declare ldexpl as extern "C".
46960         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46961         as extern "C".
46962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46963         program, declare getmntinfo as extern "C".
46964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46965         stpncpy as extern "C".
46966         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46967         program, declare __xpg_strerror_r as extern "C".
46968         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46969         strndup as extern "C".
46970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46971         declare memset and bzero as extern "C".
46972         Reported by Sam Steingold <sds@gnu.org>.
46974 2011-07-12  Jim Meyering  <meyering@redhat.com>
46976         maint.mk: prohibit inclusion of "verify.h" without use
46977         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46979 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46981         timer-time: A new module to check for timer_settime()
46982         * m4/timer_time.m4: Check for the posix function.
46983         * modules/timer-time: Add the new module.
46984         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46985         Mention it.
46987 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46988             Bruno Haible  <bruno@clisp.org>
46990         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46991         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46992         not defined, assume POSIX threads and look for pthread_sigmask in
46993         $LIBS, without changing $CPPFLAGS.
46995 2011-07-19  Bruno Haible  <bruno@clisp.org>
46997         strstr: Update cross-compilation guess.
46998         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46999         CPUs, guess no, in view of glibc
47000         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47001         Suggested by Eric Blake. Reported by Reuben Thomas.
47003 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47005         getopt-gnu: suppress core dumps from detection code
47006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47007         to suppress core dumps that may well occur on glibc systems.
47008         * modules/getopt-gnu: Depend on nocrash.
47010 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47012         pthread_sigmask: ensure usleep is declared
47013         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47014         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47016 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47018         doc: Document NonStop portability issues.
47019         * doc/posix-functions/sigaction.texi (sigaction):
47020         * doc/posix-headers/signal.texi (signal.h):
47021         Document NonStop.  See Joachim Schmitz in
47022         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47024 2011-07-15  Bruno Haible  <bruno@clisp.org>
47026         ffsl, ffsll: Avoid unportable behaviour.
47027         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47029 2011-07-15  Bruno Haible  <bruno@clisp.org>
47031         ffs: More tests.
47032         * tests/test-ffs.c (NBITS): New macro.
47033         (main): Add more tests.
47034         * tests/test-ffsl.c (NBITS): New macro.
47035         (main): Add more tests.
47036         * tests/test-ffsll.c (NBITS): New macro.
47037         (main): Add more tests.
47039 2011-07-15  Eric Blake  <eblake@redhat.com>
47041         ffsl, ffsll: new modules
47042         * modules/ffsl: New file.
47043         * modules/ffsll: Likewise.
47044         * m4/ffsl.m4: Likewise.
47045         * m4/ffsll.m4: Likewise.
47046         * lib/ffsl.c: Likewise.
47047         * lib/ffsl.h: Likewise.
47048         * lib/ffsll.c: Likewise.
47049         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47050         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47051         * modules/string (Makefile.am): Substitute witnesses.
47052         * lib/strings.in.h (ffsl, ffsll): Declare.
47053         * modules/ffsl-tests: New test file.
47054         * modules/ffsll-tests: Likewise.
47055         * tests/test-ffsl.c: Likewise.
47056         * tests/test-ffsll.c: Likewise.
47057         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47058         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47059         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47061         ffs: fix m4 prerequisite
47062         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47064         ffs: avoid undefined behavior
47065         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47066         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47067         Reported by Bruno Haible.
47069 2011-07-12  Bruno Haible  <bruno@clisp.org>
47071         pthread_sigmask: Rely on module 'threadlib'.
47072         * modules/pthread_sigmask (Depends-on): Add threadlib.
47073         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47074         is defined.
47076 2011-07-12  Bruno Haible  <bruno@clisp.org>
47078         regex: Depend on module 'strcase'.
47079         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47081 2011-07-12  Jim Meyering  <meyering@redhat.com>
47083         warn-on-use: fix typo in file name
47084         * modules/snippet/warn-on-use (Files): Correct file name:
47085         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47087 2011-07-12  Bruno Haible  <bruno@clisp.org>
47089         strings: Document module.
47090         * doc/posix-headers/strings.texi: Mention module 'strings'.
47092 2011-07-12  Bruno Haible  <bruno@clisp.org>
47094         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47095         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47096         (Files, Makefile.am): Update.
47097         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47098         * modules/stdlib (Depends-on): Update.
47100 2011-07-12  Bruno Haible  <bruno@clisp.org>
47102         * NEWS: Mention the changes.
47104         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47105         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47106         (Files, Makefile.am): Update.
47107         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47108         * modules/arpa_inet (Depends-on): Update.
47109         * modules/ctype (Depends-on): Update.
47110         * modules/dirent (Depends-on): Update.
47111         * modules/fcntl-h (Depends-on): Update.
47112         * modules/glob (Depends-on): Update.
47113         * modules/iconv-h (Depends-on): Update.
47114         * modules/inttypes-incomplete (Depends-on): Update.
47115         * modules/langinfo (Depends-on): Update.
47116         * modules/locale (Depends-on): Update.
47117         * modules/math (Depends-on): Update.
47118         * modules/netdb (Depends-on): Update.
47119         * modules/poll-h (Depends-on): Update.
47120         * modules/pty (Depends-on): Update.
47121         * modules/search (Depends-on): Update.
47122         * modules/signal (Depends-on): Update.
47123         * modules/spawn (Depends-on): Update.
47124         * modules/stdio (Depends-on): Update.
47125         * modules/stdlib (Depends-on): Update.
47126         * modules/string (Depends-on): Update.
47127         * modules/strings (Depends-on): Update.
47128         * modules/sys_file (Depends-on): Update.
47129         * modules/sys_ioctl (Depends-on): Update.
47130         * modules/sys_select (Depends-on): Update.
47131         * modules/sys_socket (Depends-on): Update.
47132         * modules/sys_stat (Depends-on): Update.
47133         * modules/sys_time (Depends-on): Update.
47134         * modules/sys_times (Depends-on): Update.
47135         * modules/sys_utsname (Depends-on): Update.
47136         * modules/sys_wait (Depends-on): Update.
47137         * modules/termios (Depends-on): Update.
47138         * modules/time (Depends-on): Update.
47139         * modules/unistd (Depends-on): Update.
47140         * modules/wchar (Depends-on): Update.
47141         * modules/wctype-h (Depends-on): Update.
47142         * MODULES.html.sh (Support for building libraries and executables):
47143         Update.
47145         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47146         * modules/snippet/unused-parameter: Renamed from
47147         modules/unused-parameter.
47148         (Files, Makefile.am): Update.
47149         * build-aux/snippet/unused-parameter.h: Renamed from
47150         build-aux/unused-parameter.h.
47151         * modules/selinux-h (Depends-on): Update.
47152         * modules/unistr/base (Depends-on): Update.
47153         * MODULES.html.sh (Core language properties): Update.
47155         Rename module 'link-warning' to 'snippet/link-warning'.
47156         * modules/snippet/link-warning: Renamed from modules/link-warning.
47157         (Files, Makefile.am): Update.
47158         * build-aux/snippet/link-warning.h: Renamed from
47159         build-aux/link-warning.h.
47160         * MODULES.html.sh (Support for building libraries and executables):
47161         Update.
47163         Rename module 'c++defs' to 'snippet/c++defs'.
47164         * modules/snippet/c++defs: Renamed from modules/c++defs.
47165         (Files, Makefile.am): Update.
47166         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47167         * modules/arpa_inet (Depends-on): Update.
47168         * modules/ctype (Depends-on): Update.
47169         * modules/dirent (Depends-on): Update.
47170         * modules/fcntl-h (Depends-on): Update.
47171         * modules/glob (Depends-on): Update.
47172         * modules/iconv-h (Depends-on): Update.
47173         * modules/langinfo (Depends-on): Update.
47174         * modules/locale (Depends-on): Update.
47175         * modules/math (Depends-on): Update.
47176         * modules/netdb (Depends-on): Update.
47177         * modules/poll-h (Depends-on): Update.
47178         * modules/pty (Depends-on): Update.
47179         * modules/search (Depends-on): Update.
47180         * modules/signal (Depends-on): Update.
47181         * modules/spawn (Depends-on): Update.
47182         * modules/stdio (Depends-on): Update.
47183         * modules/stdlib (Depends-on): Update.
47184         * modules/string (Depends-on): Update.
47185         * modules/strings (Depends-on): Update.
47186         * modules/sys_ioctl (Depends-on): Update.
47187         * modules/sys_select (Depends-on): Update.
47188         * modules/sys_socket (Depends-on): Update.
47189         * modules/sys_stat (Depends-on): Update.
47190         * modules/sys_time (Depends-on): Update.
47191         * modules/sys_wait (Depends-on): Update.
47192         * modules/termios (Depends-on): Update.
47193         * modules/time (Depends-on): Update.
47194         * modules/unistd (Depends-on): Update.
47195         * modules/wchar (Depends-on): Update.
47196         * modules/wctype-h (Depends-on): Update.
47198         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47199         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47200         (Files, Makefile.am): Update.
47201         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47202         * modules/argv-iter (Depends-on): Update.
47203         * modules/arpa_inet (Depends-on): Update.
47204         * modules/dirent (Depends-on): Update.
47205         * modules/fcntl-h (Depends-on): Update.
47206         * modules/fnmatch (Depends-on): Update.
47207         * modules/getopt-posix (Depends-on): Update.
47208         * modules/glob (Depends-on): Update.
47209         * modules/iconv-h (Depends-on): Update.
47210         * modules/inttypes-incomplete (Depends-on): Update.
47211         * modules/locale (Depends-on): Update.
47212         * modules/math (Depends-on): Update.
47213         * modules/netdb (Depends-on): Update.
47214         * modules/search (Depends-on): Update.
47215         * modules/signal (Depends-on): Update.
47216         * modules/spawn (Depends-on): Update.
47217         * modules/stdio (Depends-on): Update.
47218         * modules/stdlib (Depends-on): Update.
47219         * modules/string (Depends-on): Update.
47220         * modules/strings (Depends-on): Update.
47221         * modules/sys_socket (Depends-on): Update.
47222         * modules/sys_stat (Depends-on): Update.
47223         * modules/sys_time (Depends-on): Update.
47224         * modules/sys_times (Depends-on): Update.
47225         * modules/sys_utsname (Depends-on): Update.
47226         * modules/time (Depends-on): Update.
47227         * modules/unistd (Depends-on): Update.
47228         * modules/wchar (Depends-on): Update.
47229         * MODULES.html.sh (Support for building libraries and executables):
47230         Update.
47232 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47234         Improvements on _Noreturn and related modules.
47236         modules/_Exit-tests: test _Noreturn too
47237         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47238         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47239         (main): Use them.
47241         stdnoreturn, stdnoreturn-tests: remove modules
47242         They're not needed here and a bit premature for use elsewhere.  See
47243         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47244         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47245         * tests/test-stdnoreturn.c: Remove files.
47246         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47247         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47248         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47249         and using noreturn.
47250         * modules/openat, modules/sigpipe-die, modules/xalloc:
47251         * modules/xmemdup0, modules/xstrtol:
47252         Remove dependency on stdnoreturn.
47254         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47255         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47256         Reparenthesize to avoid GCC warning.
47257         Support Microsoft's syntax.
47258         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47260         _Noreturn-tests: remove module
47261         * modules/_Noreturn-tests: Remove.
47262         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47263         * tests/test-_Noreturn.c: Remove.
47264         * tests/test-stdnoreturn.c: Merge from the old
47265         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47267 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47269         _Noreturn, stdnoreturn, and related modules.
47271         * top/maint.mk: Adjust to new noreturn support.
47272         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47273         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47275         xalloc: use stdnoreturn.h
47276         * lib/xalloc.h: Include <stdnoreturn.h>.
47277         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47278         * modules/xalloc (Depends-on): Add stdnoreturn.
47280         xstrtol: use stdnoreturn.h
47281         * lib/xstrtol.h: Include <stdnoreturn.h>.
47282         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47283         * modules/xstrtol (Depends-on): Add stdnoreturn.
47285         xmemdup0: use stdnoreturn.h
47286         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47287         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47288         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47290         sigpipe-die: use stdnoreturn.h
47291         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47292         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47293         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47295         openat: use stdnoreturn.h
47296         * lib/openat.h: Include <stdnoreturn.h>.
47297         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47298         * modules/openat (Depends-on): Add stdnoreturn.
47300         * lib/openat-die.c (openat_save_fail): Modernize comment.
47302         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47304         * lib/glthread/thread.h: Modernize comment.
47306         obstack: use _Noreturn
47307         * lib/obstack.c (__attribute__): Remove macro.
47308         (print_and_abort): Use _Noreturn.
47310         c-stack: use _Noreturn
47311         * lib/c-stack.c (die, overflow_handler, segv_handler):
47312         Use _Noreturn rather than __attribute__((noreturn)).
47314         argmatch-tests, exclude_tests: use _Noreturn
47315         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47316         Remove.
47317         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47319         stdlib: use _Noreturn
47320         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47321         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47322         * modules/stdlib (Depends-on): Add _Noreturn.
47323         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47325         stdnoreturn-tests: new module
47326         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47328         stdnoreturn: new module
47329         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47330         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47332         _Noreturn-tests: new module
47333         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47335         _Noreturn: new module
47336         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47337         New section, mentioning it.
47338         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47340         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47342 2011-07-11  Eric Blake  <eblake@redhat.com>
47344         ffs: new module
47345         * modules/ffs: New file.
47346         * m4/ffs.m4: Likewise.
47347         * lib/ffs.c: Likewise.
47348         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47349         * modules/strings (Makefile.am): Substitute witness.
47350         (Depends-on): Add c++defs.
47351         * lib/strings.in.h (ffs): Declare.
47352         * modules/ffs-tests: New test file.
47353         * tests/test-ffs.c: Test new module.
47354         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47355         * doc/posix-functions/ffs.texi (ffs): Likewise.
47357         regex: avoid compiler warning
47358         * lib/regex.c (includes): Include <strings.h>, for use of
47359         strcasecmp in regcomp.c.
47360         Reported by Joachim Schmitz.
47362 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47364         stdint: respect system's intmax_t if INTMAX_MAX
47365         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47366         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47367         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47368         long but int64_t is long long, and where we will clash with the
47369         system intmax_t if we override it.  See
47370         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47371         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47372         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47373         similarly for UINTMAX_C.
47375 2011-07-08  Bruno Haible  <bruno@clisp.org>
47377         pthread_sigmask tests: Avoid a compiler warning.
47378         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47379         non-zero.
47381         sigprocmask tests: A better way to avoid a compiler warning.
47382         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47383         (main): Complain if system() returns non-zero.
47384         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47386 2011-07-08  Bruno Haible  <bruno@clisp.org>
47388         pthread_sigmask: Work around IRIX bug.
47389         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47390         bug.
47391         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47392         there may be unblocked pending signals.
47393         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47395 2011-07-08  Bruno Haible  <bruno@clisp.org>
47397         pthread_sigmask: Work around Cygwin bug.
47398         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47399         bug.
47400         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47401         the system's pthread_sigmask function.
47402         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47404 2011-07-08  Bruno Haible  <bruno@clisp.org>
47406         pthread_sigmask: Work around bug in single-threaded implementation.
47407         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47408         FreeBSD, HP-UX, Solaris bug.
47409         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47410         * lib/pthread_sigmask.c: Include <stddef.h>.
47411         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47412         the system's pthread_sigmask function.
47413         * modules/pthread_sigmask (configure.ac): Invoke
47414         gl_PREREQ_PTHREAD_SIGMASK.
47415         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
47416         HP-UX, Solaris.
47418 2011-07-08  Eric Blake  <eblake@redhat.com>
47420         test-sigprocmask: avoid compiler warning
47421         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
47422         * tests/test-sigprocmask.c (main): Use it to silence warning.
47423         Reported by Jim Meyering.
47425         test-snprintf: avoid compiler warning
47426         * tests/test-snprintf.c (main): Avoid shadowed declaration.
47427         * tests/test-vsnprintf.c (main): Likewise.
47428         Reported by Jim Meyering.
47430 2011-07-08  Bruno Haible  <bruno@clisp.org>
47432         Tests for module 'pthread_sigmask'.
47433         * modules/pthread_sigmask-tests: New file.
47434         * tests/test-pthread_sigmask1.c: New file, based on
47435         tests/test-sigprocmask.c.
47436         * tests/test-pthread_sigmask2.c: New file.
47438 2011-07-08  Jim Meyering  <meyering@redhat.com>
47440         test-getopt.h: avoid warning about an unused variable
47441         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47443 2011-07-07  Jim Meyering  <meyering@redhat.com>
47445         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47446         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47447         now that it no longer contains leading TABs.
47448         Remove unused "url=FIXME" statement.
47450 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47452         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47454         When gl_THREADLIB is not in use, assume that the POSIX sematics
47455         are desired.  This is better for Emacs, which uses POSIX semantics
47456         on GNUish and/or POSIXish platforms, and does not use threads at
47457         all otherwise.
47459         pthread_sigmask: fix typo when testing for libraries
47460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47461         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47463 2011-07-08  Eric Blake  <eblake@redhat.com>
47465         fts: introduce FTS_NOATIME
47466         * lib/fts_.h (FTS_NOATIME): New bit flag.
47467         (FTS_OPTIONMASK): Adjust.
47468         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47469         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47471 2011-07-08  Bruno Haible  <bruno@clisp.org>
47473         Tests for module 'thread'.
47474         * modules/thread-tests: New file.
47475         * tests/test-thread_self.c: New file.
47476         * tests/test-thread_create.cc: New file.
47478 2011-07-08  Bruno Haible  <bruno@clisp.org>
47480         thread: Avoid gcc warnings when using gl_thread_self().
47481         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47482         'void *'.
47483         (gl_thread_self_pointer): Update.
47485 2011-07-07  Bruno Haible  <bruno@clisp.org>
47487         signal-c++-tests: Check declaration of pthread_sigmask.
47488         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47489         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47490         $(LIB_PTHREAD_SIGMASK).
47492 2011-07-07  Bruno Haible  <bruno@clisp.org>
47494         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47495         * lib/signal.in.h (pthread_sigmask): Override if
47496         REPLACE_PTHREAD_SIGMASK is 1.
47497         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47498         REPLACE_PTHREAD_SIGMASK.
47499         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47500         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47501         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47502         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47503         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47505 2011-07-07  Bruno Haible  <bruno@clisp.org>
47507         pthread_sigmask: Ensure declaration in <signal.h>.
47508         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47509         include <pthread.h>.
47510         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47511         problem.
47513 2011-07-07  Bruno Haible  <bruno@clisp.org>
47515         pthread_sigmask: Document the module.
47516         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47518 2011-07-07  Bruno Haible  <bruno@clisp.org>
47520         pthread_sigmask: Follow gnulib conventions.
47521         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47522         gl_PTHREAD_SIGMASK.
47523         * modules/pthread_sigmask (configure.ac): Update.
47525 2011-07-07  Bruno Haible  <bruno@clisp.org>
47527         pthread_sigmask: Make declaration C++ safe.
47528         * lib/signal.in.h: In two special conditions, just do an #include_next.
47529         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47530         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47531         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47532         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47533         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47534         not REPLACE_PTHREAD_MASK.
47535         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47536         not REPLACE_PTHREAD_MASK.
47537         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47539 2011-07-07  Bruno Haible  <bruno@clisp.org>
47541         pthread_sigmask: Fix return value.
47542         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47543         * lib/pthread_sigmask.c: New file.
47544         * modules/pthread_sigmask (Files): Add it.
47545         (configure.ac): Invoke AC_LIBOBJ.
47547 2011-07-07  Eric Blake  <eblake@redhat.com>
47549         getopt: more portable argv creation
47550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47551         const, use char arrays rather than strings.
47552         Suggested by Paul Eggert.
47554 2011-07-07  Bruno Haible  <bruno@clisp.org>
47556         Tests for module 'sigprocmask'.
47557         * modules/sigprocmask-tests: New file.
47558         * tests/test-sigprocmask.c: New file.
47560 2011-07-07  Bruno Haible  <bruno@clisp.org>
47562         float tests: Tweak.
47563         * tests/test-float.c (main): Tweak skip message.
47565 2011-07-07  Eric Blake  <eblake@redhat.com>
47567         getopt: avoid compiler warning during configure
47568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47569         assigning string literals to non-const pointer.
47571         getopt-gnu: avoid crash in glibc getopt
47572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47573         * tests/test-getopt.h (test_getopt): Enhance test.
47574         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47575         * doc/posix-functions/getopt.texi (getopt): Document it.
47576         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47577         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47578         Likewise.
47580 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47582         getopt: handle W; without long options in getopt [BZ #12922]
47583         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47584         but no long options are defined, just return 'W'.
47586 2011-07-07  Bruno Haible  <bruno@clisp.org>
47588         Avoid literal tabs.
47589         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47590         variable containing a tab instead of a literal tab.
47591         Reported by Jim Meyering.
47593 2011-07-07  Bruno Haible  <bruno@clisp.org>
47595         Comments.
47596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47598 2011-07-06  Bruno Haible  <bruno@clisp.org>
47600         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47601         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47602         <winsock2.h>.
47603         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47604         lib/sys_socket.in.h.
47605         (close, gethostname): Hide declarations from <winsock2.h>.
47606         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47607         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47608         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47609         (select): Don't override if gnulib's <sys/select.h> was already
47610         included.
47611         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47612         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47613         setsockopt, shutdown, select): Tweak indentation.
47615 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47617         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47618         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47619         in an application that does not use the sys_select module.
47621 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47623         poll: do not return 0 on timeout=-1
47624         * lib/poll.c: Loop with yield if no events occurred.
47626 2011-07-06  Eric Blake  <eblake@redhat.com>
47628         pthread_sigmask: always replace when not using pthread
47629         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47630         replacement when using some threading other than pthread.  Fix
47631         logic bug.
47633 2011-07-06  Bruno Haible  <bruno@clisp.org>
47635         Comments.
47636         * m4/printf.m4: Update comments about mingw.
47638 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47640         sys_select: define sigset_t more portably
47641         * lib/sys_select.in.h: Always include <sys/types.h>, since
47642         we now need sigset_t and mingw defines it there.
47643         Include <signal.h> before split inclusion guard, to avoid
47644         mishaps on Solaris, whose <signal.h> eventually includes us.
47645         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47646         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47647         which come from ...
47648         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47649         gl_CHECK_TYPE_SIGSET_T.
47650         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47651         does the real work.
47652         * modules/sys_select (Depends-on): Add 'signal'.
47654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47655         Suggested by Bruno Haible.
47657         pselect: Use pthread_sigmask, not sigprocmask.
47658         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47659         multithreaded apps better than sigprocmask does.
47660         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47661         sigprocmask directly.
47663 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47665         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47666         Don't #undef,  since we don't need any underlying pselect.
47667         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47668         (Depends-on): Add select.
47669         (Link): Add $(LIBSOCKET).
47670         These changes suggested by Bruno Haible.
47672         pselect: document better
47673         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47674         * doc/posix-functions/pselect.texi (pselect): Document new module.
47676         pthread_sigmask: new module
47677         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47678         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47679         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47680         This is done only as a macro; I don't know how well that'll
47681         work for C++.  Move <sys/types.h> include before the include_next,
47682         to avoid mishap on Solaris.
47683         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47684         * modules/signal (Makefile.am): Substitute the check's results.
47685         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47687         test-pselect: new module
47688         * modules/pselect-tests, tests/test-pselect.c: New files.
47689         * tests/test-select.c, tests/test-sys_select-c++.cc:
47690         If TEST_PSELECT is defined, test pselect instead of testing select.
47692         * tests/test-sys_select.c (sigset_t): Test for it, too.
47693         Suggested by Bruno Haible.
47695 2011-07-05  Eric Blake  <eblake@redhat.com>
47697         snprintf: guarantee %1$d, for libintl
47698         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47699         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47700         * doc/posix-functions/snprintf.texi (snprintf): Update.
47701         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47702         * tests/test-snprintf.c (main): Enhance test.
47703         * tests/test-vsnprintf.c (main): Likewise.
47705 2011-07-05  Jim Meyering  <meyering@redhat.com>
47707         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47708         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47709         per Bruno's request, to accommodate this idiom (no space after "#")
47710         even when the function is inside an #if block:
47711         char *
47712         gets (char *s)
47713         #undef gets
47714         {
47715           ...
47716         }
47718 2011-07-04  Jim Meyering  <meyering@redhat.com>
47720         maint: indent with spaces, not TABs, and add a rule to check this
47721         * tests/test-userspec.c: Indent with spaces, not TABs.
47722         * tests/test-argp.c: Likewise.
47723         * tests/test-c-stack2.sh: Likewise.
47724         * tests/test-parse-duration.sh: Likewise
47725         * m4/strtod.m4: Likewise.
47726         * m4/alloca.m4: Likewise.
47727         * m4/pselect.m4: Likewise.
47728         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47730 2011-07-03  Jim Meyering  <meyering@redhat.com>
47732         maint.mk: correct omissions in prohibit_argmatch_without_use check
47733         This rule would mistakenly report that argmatch.h is included without
47734         use even when both the argmatch and invalid_arg macro were used.
47735         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47736         of argmatch and invalid_arg.
47738 2011-07-03  Bruno Haible  <bruno@clisp.org>
47740         Comments about EINTR.
47741         * lib/safe-read.h: Explain the purpose of this module.
47742         * lib/safe-write.h: Likewise.
47743         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47744         module.
47745         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47746         module.
47747         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47749 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47751         xnanosleep: Rewrite to use new dtotimespec module.
47752         It has the conversion code that used to be in xnanosleep.
47753         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47754         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47755         (TIME_T_MAX): Remove.
47756         (xnanosleep): Rewrite in terms of dtotimespec.
47757         * modules/xnanosleep (Depends-on): Add dtotimespec.
47758         Remove intprops, stdbool.
47760         timespec-add, timespec-sub: new modules
47761         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47762         * lib/timespec-add.c, lib/timespec-sub.c:
47763         * modules/timespec-add, modules/timespec-sub: New files.
47765         dtotimespec: new module
47766         * lib/timespec.h (dtotimespec): New decl.
47767         * lib/dtotimespec.c, modules/dtotimespec: New files.
47769         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47771         pselect: new module
47772         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47773         (pselect): New decls.
47774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47775         since the standard pselect decl uses 'restrict'.
47776         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47777         HAVE_PSELECT, REPLACE_PSELECT.
47778         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47779         HAVE_PSELECT, REPLACE_PSELECT.
47780         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47782         sys_select: don't depend on sys_socket
47783         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47784         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47785         This fix works on GNU and GNU-like platforms, but has not been tested
47786         on native Windows.
47787         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47789         gl_HEADER_SYS_SOCKET.
47790         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47791         gl_PREREQ_SYS_H_WINSOCK2.
47793 2011-06-29  Eric Blake  <eblake@redhat.com>
47795         pipe2: fix C89 compile problem
47796         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47797         Reported by Bruno Haible.
47799         pipe, pipe2: don't corrupt fd on error
47800         * lib/pipe.c (pipe): Leave fd unchanged on error.
47801         * lib/pipe2.c (pipe2): Likewise.
47802         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47803         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47805 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47807         mmap-anon: do not use regular expressions inadvertently
47808         * m4/mmap-anon.m4: Remove trailing period from strings sought
47809         in the output.
47811 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47813         nanosleep: fix integer overflow problem
47814         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47815         arithmetic wraps around on overflow.
47817         nanosleep: simplify carrying
47818         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47819         first call to the underyling nanosleep, not for the last one.
47820         This doesn't fix any bugs, but it simplifies the computation of
47821         the remaining delay.  Found while auditing integer overflow issues.
47823         dup2: remove test for existence of fcntl
47824         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47825         "#if HAVE_FCNTL", in the configure-time test program.
47826         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47827         and therefore speeds up "configure" a bit.  Found while
47828         adding the dup2 module to Emacs.
47830 2011-06-24  Eric Blake  <eblake@redhat.com>
47832         maint.mk: enhance useless header checks
47833         * top/maint.mk (_sc_header_without_use): Check both include
47834         styles.
47835         (sc_prohibit_assert_without_use)
47836         (sc_prohibit_close_stream_without_use)
47837         (sc_prohibit_getopt_without_use)
47838         (sc_prohibit_quotearg_without_use)
47839         (sc_prohibit_quote_without_use)
47840         (sc_prohibit_long_options_without_use)
47841         (sc_prohibit_inttostr_without_use)
47842         (sc_prohibit_ignore_value_without_use)
47843         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47844         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47845         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47846         (sc_prohibit_hash_pjw_without_use)
47847         (sc_prohibit_safe_read_without_use)
47848         (sc_prohibit_argmatch_without_use)
47849         (sc_prohibit_canonicalize_without_use)
47850         (sc_prohibit_root_dev_ino_without_use)
47851         (sc_prohibit_openat_without_use)
47852         (sc_prohibit_c_ctype_without_use)
47853         (sc_prohibit_signal_without_use)
47854         (sc_prohibit_stdio--_without_use)
47855         (sc_prohibit_stdio-safer_without_use)
47856         (sc_prohibit_strings_without_use)
47857         (sc_prohibit_intprops_without_use)
47858         (sc_prohibit_stddef_without_use)
47859         (sc_prohibit_xfreopen_without_use): Update clients.
47861 2011-06-24  Jim Meyering  <meyering@redhat.com>
47863         syntax-check: keep one maint.mk rule in sync with its header
47864         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47865         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47866         I prefer to avoid temporary files here, so use <(...), but that
47867         is not supported by /bin/sh, so...
47868         (SHELL): Define to /bin/bash.
47870 2011-06-24  Eric Blake  <eblake@redhat.com>
47872         maint.mk: update sc_prohibit_intprops_without_use
47873         * top/maint.mk (_intprops_names): Match recent changes.
47875 2011-06-24  Bruno Haible  <bruno@clisp.org>
47877         strerror-override: No-op tweak.
47878         * lib/strerror-override.h (strerror_override): Reorder conditions,
47879         for consistency with lib/strerror-override.c.
47881 2011-06-23  Eric Blake  <eblake@redhat.com>
47883         maint.mk: test further PATH_MAX issues
47884         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47885         (sc_prohibit_path_max_allocation): ...and also test alloca.
47886         Suggested by Jim Meyering.
47888 2011-06-22  Eric Blake  <eblake@redhat.com>
47890         maint.mk: add syntax-check to avoid char[PATH_MAX]
47891         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47893         stat: be robust to PATH_MAX definition
47894         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47895         * modules/stat (Depends-on): Add verify.
47897         link: work around IRIX bug
47898         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47899         * lib/link.c (rpl_link): Work around it.
47900         * tests/test-link.h (test_link): Enhance test.
47901         * doc/posix-functions/link.texi (link): Document the bug.
47903         getopt: silence clang warning
47904         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47905         dereference.
47906         Reported by Gustavo Martin Domato.
47908 2011-06-22  Jim Meyering  <meyering@redhat.com>
47910         bootstrap: do not insert a blank line into each .gitignore file
47911         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47913 2011-06-21  Eric Blake  <eblake@redhat.com>
47915         perror: test for output mismatch
47916         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47917         perror on IRIX.
47919         strerror_r: fix OpenBSD behavior on out-of-range
47920         * lib/strerror_r.c (strerror_r): Always use maximal string.
47921         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47923         strerror_r: fix OpenBSD behavior on 0
47924         * lib/strerror-override.c (strerror_override): Also override 0
47925         when needed.
47926         * lib/strerror-override.h (strerror_override): Likewise.
47927         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47928         earlier.
47929         * lib/strerror_r.c (strerror_r): Likewise.
47930         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47931         behavior...
47932         (gl_FUNC_STRERROR_0): ...into new macro.
47933         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47934         is overridden.
47935         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47936         * modules/strerror-override (Files): Add strerror.m4.
47937         (configure.ac): Also provide override for 0 when needed.
47938         * doc/posix-functions/strerror.texi (strerror): Document this.
47939         * doc/posix-functions/perror.texi (perror): Likewise.
47941         perror: adjust array size
47942         * modules/perror (Depends-on): Add strerror-override.
47943         * lib/perror.c (perror): Use it to avoid magic number.
47945         strerror-override: reduce size
47946         * lib/strerror-override.c (strerror_override): Use fewer lines.
47948 2011-06-20  Bruno Haible  <bruno@clisp.org>
47950         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47951         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47953 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47955         alloca: port to compilers that can optimize like GCC 4.6.0
47956         * lib/alloca.c (find_stack_direction): New signature, taken from
47957         Autoconf git.  This works with GCC 4.6.0.  This code should never
47958         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47959         be used with other compilers that optimize as well as GCC 4.6.0 does.
47960         (alloca): Adjust to new signature.
47961         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47962         New macro, which patches Autoconf in a similar way.
47964         c-stack: stop worrying about stack direction
47965         * lib/c-stack.c (find_stack_direction): Remove.
47966         (segv_handler): Don't worry about stack direction growth, as it's
47967         too much of a pain to configure this correctly, given how compilers
47968         are optimizing-away our stack-growth detection code.  Instead, assume
47969         that any access to just before or just after the stack is OK.
47970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47971         Don't require AC_FUNC_ALLOCA; no longer needed.
47973 2011-06-20  Eric Blake  <eblake@redhat.com>
47975         test-stat: don't allocate PATH_MAX bytes
47976         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47977         PATH_MAX-sized buffer.
47978         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47979         * modules/stat-tests (Depends-on): Likewise.
47980         * tests/test-fstatat.c (includes): Drop pathmax.h.
47981         * tests/test-stat.c (includes): Likewise.
47982         Reported by Bruno Haible.
47984 2011-06-20  Bruno Haible  <bruno@clisp.org>
47986         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47987         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47988         * lib/float.c: New file.
47989         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47990         REPLACE_FLOAT_LDBL.
47991         * modules/float (Files): Add lib/float.c.
47992         (configure.ac): Invoke AC_LIBOBJ.
47993         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47995 2011-06-20  Bruno Haible  <bruno@clisp.org>
47997         Tests for module 'float'.
47998         * modules/float-tests: New file.
47999         * tests/test-float.c: New file.
48001 2011-06-19  Bruno Haible  <bruno@clisp.org>
48003         isinf: Coding style.
48004         * lib/isinf.c: Use GNU coding style.
48006 2011-06-19  Bruno Haible  <bruno@clisp.org>
48008         linkat test: Avoid test failure on AIX 7.1.
48009         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48010         * tests/test-link.h (test_link): Likewise.
48012 2011-06-19  Bruno Haible  <bruno@clisp.org>
48014         pread test: Avoid test failure on OpenBSD 4.9.
48015         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48017 2011-06-19  Bruno Haible  <bruno@clisp.org>
48019         sprintf-posix: Fix test failure on AIX 7.1.
48020         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48021         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48022         on AIX.
48023         * doc/posix-functions/fprintf.texi: Likewise.
48024         * doc/posix-functions/printf.texi: Likewise.
48025         * doc/posix-functions/snprintf.texi: Likewise.
48026         * doc/posix-functions/sprintf.texi: Likewise.
48027         * doc/posix-functions/vdprintf.texi: Likewise.
48028         * doc/posix-functions/vfprintf.texi: Likewise.
48029         * doc/posix-functions/vprintf.texi: Likewise.
48030         * doc/posix-functions/vsnprintf.texi: Likewise.
48031         * doc/posix-functions/vsprintf.texi: Likewise.
48033 2011-06-19  Bruno Haible  <bruno@clisp.org>
48035         roundl-ieee: Fix test failure on AIX 7.1.
48036         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48037         * doc/posix-functions/roundl.texi: Mention problem with negative
48038         arguments.
48040 2011-06-19  Bruno Haible  <bruno@clisp.org>
48042         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48043         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48044         * doc/posix-functions/round.texi: Mention problem with negative
48045         arguments.
48046         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48048 2011-06-19  Bruno Haible  <bruno@clisp.org>
48050         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48052         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48053         * doc/posix-functions/roundf.texi: Mention problem with negative
48054         arguments.
48055         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48057 2011-06-19  Bruno Haible  <bruno@clisp.org>
48059         ceilf-ieee: Work around bug on MacOS X 10.5.
48060         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48062         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48063         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48064         IEEE compliant, avoid compiler optimizations.
48065         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48066         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48067         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48068         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48069         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48070         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48073         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48076 2011-06-19  Bruno Haible  <bruno@clisp.org>
48078         ceilf-ieee: Work around bug on AIX 7.1.
48079         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48080         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48082 2011-06-19  Bruno Haible  <bruno@clisp.org>
48084         ceil-ieee: Work around bug on AIX 7.1.
48085         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48086         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48088 2011-06-18  Bruno Haible  <bruno@clisp.org>
48090         fsync test: Avoid test failure on MacOS X and AIX.
48091         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48092         EINVAL.
48094 2011-06-18  Bruno Haible  <bruno@clisp.org>
48096         openat, fdopendir tests: Fix link errors.
48097         * modules/openat-tests (Depends-on): Add progname.
48098         * modules/fdopendir-tests (Depends-on): Likewise.
48099         * tests/test-fchownat.c: Include progname.h.
48100         (main): Call set_program_name.
48101         * tests/test-fstatat.c: Include progname.h.
48102         (main): Call set_program_name.
48103         * tests/test-mkdirat.c: Include progname.h.
48104         (main): Call set_program_name.
48105         * tests/test-openat.c: Include progname.h.
48106         (main): Call set_program_name.
48107         * tests/test-unlinkat.c: Include progname.h.
48108         (main): Call set_program_name.
48109         * tests/test-fdopendir.c: Include progname.h.
48110         (main): Call set_program_name.
48112 2011-06-18  Bruno Haible  <bruno@clisp.org>
48114         Doc update.
48115         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48116         HP-UX.
48117         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48119 2011-06-18  Bruno Haible  <bruno@clisp.org>
48121         getcwd tests: Avoid compilation error on HP-UX 11.31.
48122         * modules/getcwd-tests (Depends-on): Add pathmax.
48123         * tests/test-getcwd.c: Include pathmax.h.
48125 2011-06-18  Bruno Haible  <bruno@clisp.org>
48127         isfinite, isinf: Fix link error on AIX 6 and 7.
48128         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48129         needed, also test the macro with a 'float' argument.
48130         * m4/isinf.m4 (gl_ISINF): Likewise.
48132 2011-06-18  Bruno Haible  <bruno@clisp.org>
48134         getloadavg: Don't clobber LIBS. Regression from previous commit.
48135         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48136         AC_CHECK_LIB from here...
48137         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48138         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48139         gl_func_getloadavg_done.
48140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48142 2011-06-18  Bruno Haible  <bruno@clisp.org>
48144         clean-temp: Improve documentation.
48145         * lib/clean-temp.h: Explain better how to use this module.
48146         Reported by John Darrington <john@darrington.wattle.id.au>.
48148 2011-06-17  Bruno Haible  <bruno@clisp.org>
48150         pread, pwrite: Avoid cc warning on AIX.
48151         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48152         (pwrite): Likewise.
48154 2011-06-17  Bruno Haible  <bruno@clisp.org>
48156         spawn-pipe tests: Fix link error.
48157         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48158         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48160 2011-06-17  Bruno Haible  <bruno@clisp.org>
48162         Tests: Remove unnecessary dependency.
48163         * modules/canonicalize-tests (Depends-on): Remove progname.
48164         * modules/chown-tests (Depends-on): Likewise.
48165         * modules/dirname-tests (Depends-on): Likewise.
48166         * modules/fdopendir-tests (Depends-on): Likewise.
48167         * modules/fdutimensat-tests (Depends-on): Likewise.
48168         * modules/hash-tests (Depends-on): Likewise.
48169         * modules/lchown-tests (Depends-on): Likewise.
48170         * modules/linkat-tests (Depends-on): Likewise.
48171         * modules/renameat-tests (Depends-on): Likewise.
48172         * modules/spawn-pipe-tests (Depends-on): Likewise.
48173         * modules/utimensat-tests (Depends-on): Likewise.
48175 2011-06-17  Bruno Haible  <bruno@clisp.org>
48177         spawn-pipe tests: Fix link error.
48178         * tests/test-spawn-pipe-child.c: Undefine fflush.
48180 2011-06-17  Bruno Haible  <bruno@clisp.org>
48182         Fix tests link errors.
48183         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48184         * modules/chown-tests (Makefile.am): Don't link test-chown with
48185         LIBINTL.
48186         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48187         LIBINTL.
48188         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48189         LIBINTL.
48190         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48191         LIBINTL.
48193 2011-06-16  Bruno Haible  <bruno@clisp.org>
48195         crypto/gc-sha1: Fix recent regression.
48196         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48197         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48199         crypto/gc-md5: Fix recent regression.
48200         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48202         crypto/gc-md4: Fix recent regression.
48203         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48204         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48206         crypto/gc-arctwo: Fix recent regression.
48207         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48208         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48210         crypto/gc-rijndael: Fix recent regression.
48211         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48212         (configure.ac): Invoke AC_LIBOBJ here.
48213         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48216         crypto/gc-hmac-sha1: Fix recent regression.
48217         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48218         (configure.ac): Invoke AC_LIBOBJ here.
48219         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48222         crypto/gc-hmac-md5: Fix recent regression.
48223         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48224         (configure.ac): Invoke AC_LIBOBJ here.
48225         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48228         crypto/gc-des: Fix recent regression.
48229         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48230         (configure.ac): Invoke AC_LIBOBJ here.
48231         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48234         crypto/gc-arcfour: Fix recent regression.
48235         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48236         (configure.ac): Invoke AC_LIBOBJ here.
48237         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48240 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48242         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48243         After the 2011-05-21 change, this macro requires
48244         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48247 2011-06-16  Bruno Haible  <bruno@clisp.org>
48249         fprintftime: Move AC_LIBOBJ invocations to module description.
48250         * m4/fprintftime.m4: Remove file.
48251         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48252         (configure.ac): Remove gl_FPRINTFTIME call.
48253         (Makefile.am): Augment lib_SOURCES.
48254         Reported by Jim Meyering.
48256 2011-06-16  Bruno Haible  <bruno@clisp.org>
48258         tmpfile-safer: Finish 2011-05-23 commit.
48259         * m4/stdio-safer.m4: Really remove file.
48260         Reported by Jim Meyering.
48262 2011-06-16  Bruno Haible  <bruno@clisp.org>
48264         syntax-check: Fix typo.
48265         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48266         printf-posix.m4.
48267         Reported by Jim Meyering.
48269 2011-06-13  Jim Meyering  <meyering@redhat.com>
48271         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48272         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48274 2011-05-23  Bruno Haible  <bruno@clisp.org>
48276         yesno: Move AC_LIBOBJ invocations to module description.
48277         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48278         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48280 2011-05-23  Bruno Haible  <bruno@clisp.org>
48282         xstrtol: Move AC_LIBOBJ invocations to module description.
48283         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48284         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48286 2011-05-23  Bruno Haible  <bruno@clisp.org>
48288         xstrtold: Move AC_LIBOBJ invocations to module description.
48289         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48290         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48292 2011-05-23  Bruno Haible  <bruno@clisp.org>
48294         xstrtod: Move AC_LIBOBJ invocations to module description.
48295         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48296         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48298 2011-05-23  Bruno Haible  <bruno@clisp.org>
48300         xnanosleep: Move AC_LIBOBJ invocations to module description.
48301         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48302         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48304 2011-05-23  Bruno Haible  <bruno@clisp.org>
48306         xgetcwd: Move AC_LIBOBJ invocations to module description.
48307         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48308         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48310 2011-05-23  Bruno Haible  <bruno@clisp.org>
48312         xalloc: Move AC_LIBOBJ invocations to module description.
48313         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48314         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48316 2011-05-23  Bruno Haible  <bruno@clisp.org>
48318         write-any-file: Move AC_LIBOBJ invocations to module description.
48319         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48320         invocation.
48321         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48323 2011-05-23  Bruno Haible  <bruno@clisp.org>
48325         utimens: Move AC_LIBOBJ invocations to module description.
48326         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48327         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48329 2011-05-23  Bruno Haible  <bruno@clisp.org>
48331         utimecmp: Move AC_LIBOBJ invocations to module description.
48332         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48333         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48335 2011-05-23  Bruno Haible  <bruno@clisp.org>
48337         userspec: Move AC_LIBOBJ invocations to module description.
48338         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48339         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48341 2011-05-23  Bruno Haible  <bruno@clisp.org>
48343         unlinkdir: Move AC_LIBOBJ invocations to module description.
48344         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48345         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48347 2011-05-23  Bruno Haible  <bruno@clisp.org>
48349         unistd-safer: Move AC_LIBOBJ invocations to module description.
48350         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48351         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48353 2011-05-23  Bruno Haible  <bruno@clisp.org>
48355         tempname: Move AC_LIBOBJ invocations to module description.
48356         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48357         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48359 2011-05-23  Bruno Haible  <bruno@clisp.org>
48361         strftime: Move AC_LIBOBJ invocations to module description.
48362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48363         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48365 2011-05-23  Bruno Haible  <bruno@clisp.org>
48367         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48368         * m4/stdlib-safer.m4: Remove file.
48369         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48370         (configure.ac): Remove gl_STDLIB_SAFER call.
48371         (Makefile.am): Augment lib_SOURCES.
48373 2011-05-23  Bruno Haible  <bruno@clisp.org>
48375         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48376         * m4/stdio-safer.m4: Remove file.
48377         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48378         (configure.ac): Remove gl_TMPFILE_SAFER call.
48379         (Makefile.am): Augment lib_SOURCES.
48381 2011-05-23  Bruno Haible  <bruno@clisp.org>
48383         popen-safer: Move AC_LIBOBJ invocations to module description.
48384         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48385         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48386         (configure.ac): Remove gl_POPEN_SAFER call.
48387         (Makefile.am): Augment lib_SOURCES.
48389 2011-05-23  Bruno Haible  <bruno@clisp.org>
48391         freopen-safer: Move AC_LIBOBJ invocations to module description.
48392         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48393         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48394         (configure.ac): Remove gl_FREOPEN_SAFER call.
48395         (Makefile.am): Augment lib_SOURCES.
48397 2011-05-23  Bruno Haible  <bruno@clisp.org>
48399         fopen-safer: Move AC_LIBOBJ invocations to module description.
48400         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48401         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48402         (configure.ac): Remove gl_FOPEN_SAFER call.
48403         (Makefile.am): Augment lib_SOURCES.
48405 2011-05-23  Bruno Haible  <bruno@clisp.org>
48407         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48408         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48409         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48411 2011-05-23  Bruno Haible  <bruno@clisp.org>
48413         crypto/sha256: Move AC_LIBOBJ invocations to module description.
48414         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
48415         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
48417 2011-05-23  Bruno Haible  <bruno@clisp.org>
48419         crypto/sha1: Move AC_LIBOBJ invocations to module description.
48420         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
48421         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
48423 2011-05-23  Bruno Haible  <bruno@clisp.org>
48425         settime: Move AC_LIBOBJ invocations to module description.
48426         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
48427         * modules/settime (Makefile.am): Augment lib_SOURCES.
48429 2011-05-23  Bruno Haible  <bruno@clisp.org>
48431         savedir: Move AC_LIBOBJ invocations to module description.
48432         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
48433         * modules/savedir (Makefile.am): Augment lib_SOURCES.
48435 2011-05-23  Bruno Haible  <bruno@clisp.org>
48437         save-cwd: Move AC_LIBOBJ invocations to module description.
48438         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48439         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48441 2011-05-23  Bruno Haible  <bruno@clisp.org>
48443         same: Move AC_LIBOBJ invocations to module description.
48444         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48445         * modules/same (Makefile.am): Augment lib_SOURCES.
48447 2011-05-23  Bruno Haible  <bruno@clisp.org>
48449         safe-write: Move AC_LIBOBJ invocations to module description.
48450         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48451         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48452         instead of gl_SAFE_WRITE.
48453         (Makefile.am): Augment lib_SOURCES.
48455 2011-05-23  Bruno Haible  <bruno@clisp.org>
48457         safe-read: Move AC_LIBOBJ invocations to module description.
48458         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48459         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48460         of gl_SAFE_READ.
48461         (Makefile.am): Augment lib_SOURCES.
48463 2011-05-23  Bruno Haible  <bruno@clisp.org>
48465         safe-alloc: Move AC_LIBOBJ invocations to module description.
48466         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48467         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48469 2011-05-23  Bruno Haible  <bruno@clisp.org>
48471         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48472         * m4/rijndael.m4: Remove file.
48473         * modules/crypto/rijndael (Files): Remove it.
48474         (configure.ac): Remove gl_RIJNDAEL call.
48475         (Makefile.am): Augment lib_SOURCES.
48477 2011-05-23  Bruno Haible  <bruno@clisp.org>
48479         readtokens: Move AC_LIBOBJ invocations to module description.
48480         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48481         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48483 2011-05-23  Bruno Haible  <bruno@clisp.org>
48485         read-file: Move AC_LIBOBJ invocations to module description.
48486         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48487         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48488         of gl_FUNC_READ_FILE.
48489         (Makefile.am): Augment lib_SOURCES.
48491 2011-05-23  Bruno Haible  <bruno@clisp.org>
48493         quotearg: Move AC_LIBOBJ invocations to module description.
48494         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48495         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48497 2011-05-23  Bruno Haible  <bruno@clisp.org>
48499         quote: Move AC_LIBOBJ invocations to module description.
48500         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48501         * modules/quote (Makefile.am): Augment lib_SOURCES.
48503 2011-05-23  Bruno Haible  <bruno@clisp.org>
48505         posixver: Move AC_LIBOBJ invocations to module description.
48506         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48507         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48509 2011-05-23  Bruno Haible  <bruno@clisp.org>
48511         posixtm: Move AC_LIBOBJ invocations to module description.
48512         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48513         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48515 2011-05-23  Bruno Haible  <bruno@clisp.org>
48517         physmem: Move AC_LIBOBJ invocations to module description.
48518         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48519         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48521 2011-05-23  Bruno Haible  <bruno@clisp.org>
48523         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48524         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48525         invocation.
48526         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48528 2011-05-23  Bruno Haible  <bruno@clisp.org>
48530         mpsort: Move AC_LIBOBJ invocations to module description.
48531         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48532         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48534 2011-05-23  Bruno Haible  <bruno@clisp.org>
48536         modechange: Move AC_LIBOBJ invocations to module description.
48537         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48538         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48540 2011-05-23  Bruno Haible  <bruno@clisp.org>
48542         mkdir-p: Move AC_LIBOBJ invocations to module description.
48543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48544         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48546 2011-05-23  Bruno Haible  <bruno@clisp.org>
48548         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48549         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48550         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48552 2011-05-23  Bruno Haible  <bruno@clisp.org>
48554         mgetgroups: Move AC_LIBOBJ invocations to module description.
48555         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48556         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48558 2011-05-23  Bruno Haible  <bruno@clisp.org>
48560         memxor: Move AC_LIBOBJ invocations to module description.
48561         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48562         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48564 2011-05-23  Bruno Haible  <bruno@clisp.org>
48566         memcoll: Move AC_LIBOBJ invocations to module description.
48567         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48568         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48570 2011-05-23  Bruno Haible  <bruno@clisp.org>
48572         memcasecmp: Move AC_LIBOBJ invocations to module description.
48573         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48574         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48576 2011-05-23  Bruno Haible  <bruno@clisp.org>
48578         crypto/md5: Move AC_LIBOBJ invocations to module description.
48579         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48580         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48582 2011-05-23  Bruno Haible  <bruno@clisp.org>
48584         crypto/md4: Move AC_LIBOBJ invocations to module description.
48585         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48586         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48588 2011-05-23  Bruno Haible  <bruno@clisp.org>
48590         crypto/md2: Move AC_LIBOBJ invocations to module description.
48591         * m4/md2.m4: Remove file.
48592         * modules/crypto/md2 (Files): Remove it.
48593         (configure.ac): Remove gl_MD2 call.
48594         (Makefile.am): Augment lib_SOURCES.
48596 2011-05-23  Bruno Haible  <bruno@clisp.org>
48598         long-options: Move AC_LIBOBJ invocations to module description.
48599         * m4/long-options.m4: Remove file.
48600         * modules/long-options (Files): Remove it.
48601         (configure.ac): Remove gl_LONG_OPTIONS call.
48602         (Makefile.am): Augment lib_SOURCES.
48604 2011-05-23  Bruno Haible  <bruno@clisp.org>
48606         i-ring: Move AC_LIBOBJ invocations to module description.
48607         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48608         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48610 2011-05-23  Bruno Haible  <bruno@clisp.org>
48612         idcache: Move AC_LIBOBJ invocations to module description.
48613         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48614         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48616 2011-05-23  Bruno Haible  <bruno@clisp.org>
48618         human: Move AC_LIBOBJ invocations to module description.
48619         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48620         * modules/human (Makefile.am): Augment lib_SOURCES.
48622 2011-05-23  Bruno Haible  <bruno@clisp.org>
48624         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48625         * m4/hmac-sha1.m4: Remove file.
48626         * modules/crypto/hmac-sha1 (Files): Remove it.
48627         (configure.ac): Remove gl_HMAC_SHA1 call.
48628         (Makefile.am): Augment lib_SOURCES.
48630 2011-05-23  Bruno Haible  <bruno@clisp.org>
48632         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48633         * m4/hmac-md5.m4: Remove file.
48634         * modules/crypto/hmac-md5 (Files): Remove it.
48635         (configure.ac): Remove gl_HMAC_MD5 call.
48636         (Makefile.am): Augment lib_SOURCES.
48638 2011-05-23  Bruno Haible  <bruno@clisp.org>
48640         hash: Move AC_LIBOBJ invocations to module description.
48641         * m4/hash.m4: Remove file.
48642         * modules/hash (Files): Remove it.
48643         (configure.ac): Remove gl_HASH call.
48644         (Makefile.am): Augment lib_SOURCES.
48646 2011-05-23  Bruno Haible  <bruno@clisp.org>
48648         hard-locale: Move AC_LIBOBJ invocations to module description.
48649         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48650         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48652 2011-05-23  Bruno Haible  <bruno@clisp.org>
48654         getugroups: Move AC_LIBOBJ invocations to module description.
48655         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48656         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48658 2011-05-23  Bruno Haible  <bruno@clisp.org>
48660         gettime: Move AC_LIBOBJ invocations to module description.
48661         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48662         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48664 2011-05-23  Bruno Haible  <bruno@clisp.org>
48666         getndelim2: Move AC_LIBOBJ invocations to module description.
48667         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48668         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48670 2011-05-23  Bruno Haible  <bruno@clisp.org>
48672         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48673         * m4/gc-pbkdf2-sha1.m4: Remove file.
48674         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48675         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48676         (Makefile.am): Augment lib_SOURCES.
48678 2011-05-23  Bruno Haible  <bruno@clisp.org>
48680         fts: Move AC_LIBOBJ invocations to module description.
48681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48682         * modules/fts (configure.ac): ... to here.
48684 2011-05-23  Bruno Haible  <bruno@clisp.org>
48686         file-type: Move AC_LIBOBJ invocations to module description.
48687         * m4/file-type.m4: Remove file.
48688         * modules/file-type (Files): Remove it.
48689         (configure.ac): Remove gl_FILE_TYPE call.
48690         (Makefile.am): Augment lib_SOURCES.
48692 2011-05-23  Bruno Haible  <bruno@clisp.org>
48694         filenamecat*: Respect rules for use of AC_LIBOBJ.
48695         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48696         Remove AC_LIBOBJ invocation.
48697         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48698         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48700 2011-05-23  Bruno Haible  <bruno@clisp.org>
48702         filemode: Move AC_LIBOBJ invocations to module description.
48703         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48704         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48706 2011-05-23  Bruno Haible  <bruno@clisp.org>
48708         openat-safer: Move AC_LIBOBJ invocations to module description.
48709         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48710         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48712 2011-05-23  Bruno Haible  <bruno@clisp.org>
48714         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48715         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48716         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48718 2011-05-23  Bruno Haible  <bruno@clisp.org>
48720         exclude: Move AC_LIBOBJ invocations to module description.
48721         * m4/exclude.m4: Remove file.
48722         * modules/exclude (Files): Remove it.
48723         (configure.ac): Remove gl_EXCLUDE call.
48724         (Makefile.am): Augment lib_SOURCES.
48726 2011-05-23  Bruno Haible  <bruno@clisp.org>
48728         dirname*: Respect rules for use of AC_LIBOBJ.
48729         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48730         invocations.
48731         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48732         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48734 2011-05-23  Bruno Haible  <bruno@clisp.org>
48736         dirent-safer: Move AC_LIBOBJ invocations to module description.
48737         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48738         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48740 2011-05-23  Bruno Haible  <bruno@clisp.org>
48742         crypto/des: Move AC_LIBOBJ invocations to module description.
48743         * m4/des.m4: Remove file.
48744         * modules/crypto/des (Files): Remove it.
48745         (configure.ac): Remove gl_DES call.
48746         (Makefile.am): Augment lib_SOURCES.
48748 2011-05-23  Bruno Haible  <bruno@clisp.org>
48750         cycle-check: Move AC_LIBOBJ invocations to module description.
48751         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48752         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48754 2011-05-23  Bruno Haible  <bruno@clisp.org>
48756         c-strtold: Move AC_LIBOBJ invocations to module description.
48757         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48758         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48760 2011-05-23  Bruno Haible  <bruno@clisp.org>
48762         c-strtod: Move AC_LIBOBJ invocations to module description.
48763         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48764         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48766 2011-05-23  Bruno Haible  <bruno@clisp.org>
48768         crc: Move AC_LIBOBJ invocations to module description.
48769         * m4/crc.m4: Remove file.
48770         * modules/crc (Files): Remove it.
48771         (configure.ac): Remove gl_CRC call.
48772         (Makefile.am): Augment lib_SOURCES.
48774 2011-05-23  Bruno Haible  <bruno@clisp.org>
48776         close-stream: Move AC_LIBOBJ invocations to module description.
48777         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48778         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48780 2011-05-23  Bruno Haible  <bruno@clisp.org>
48782         closeout: Move AC_LIBOBJ invocations to module description.
48783         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48784         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48786 2011-05-23  Bruno Haible  <bruno@clisp.org>
48788         closein: Move AC_LIBOBJ invocations to module description.
48789         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48790         * modules/closein (Makefile.am): Augment lib_SOURCES.
48792 2011-05-23  Bruno Haible  <bruno@clisp.org>
48794         cloexec: Move AC_LIBOBJ invocations to module description.
48795         * m4/cloexec.m4: Remove file.
48796         * modules/cloexec (Files): Remove it.
48797         (configure.ac): Remove gl_CLOEXEC call.
48798         (Makefile.am): Augment lib_SOURCES.
48800 2011-05-23  Bruno Haible  <bruno@clisp.org>
48802         check-version: Move AC_LIBOBJ invocations to module description.
48803         * m4/check-version.m4: Remove file.
48804         * modules/check-version (Files): Remove it.
48805         (configure.ac): Remove gl_CHECK_VERSION call.
48806         (Makefile.am): Augment lib_SOURCES.
48808 2011-05-23  Bruno Haible  <bruno@clisp.org>
48810         chdir-safer: Move AC_LIBOBJ invocations to module description.
48811         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48812         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48814 2011-05-23  Bruno Haible  <bruno@clisp.org>
48816         canonicalize: Move AC_LIBOBJ invocations to module description.
48817         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48818         AC_LIBOBJ invocation.
48819         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48821 2011-05-23  Bruno Haible  <bruno@clisp.org>
48823         canon-host: Move AC_LIBOBJ invocations to module description.
48824         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48825         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48826         instead of gl_CANON_HOST.
48827         (Makefile.am): Augment lib_SOURCES.
48829 2011-05-23  Bruno Haible  <bruno@clisp.org>
48831         backupfile: Move AC_LIBOBJ invocations to module description.
48832         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48833         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48835 2011-05-23  Bruno Haible  <bruno@clisp.org>
48837         argmatch: Move AC_LIBOBJ invocations to module description.
48838         * m4/argmatch.m4: Remove file.
48839         * modules/argmatch (Files): Remove it.
48840         (configure.ac): Remove gl_ARGMATCH call.
48841         (Makefile.am): Augment lib_SOURCES.
48843 2011-05-23  Bruno Haible  <bruno@clisp.org>
48845         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48846         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48847         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48849 2011-05-23  Bruno Haible  <bruno@clisp.org>
48851         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48852         * m4/arcfour.m4: Remove file.
48853         * modules/crypto/arcfour (Files): Remove it.
48854         (configure.ac): Remove gl_ARCFOUR call.
48855         (Makefile.am): Augment lib_SOURCES.
48857 2011-05-22  Bruno Haible  <bruno@clisp.org>
48859         write: Move AC_LIBOBJ invocations to module description.
48860         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48861         * modules/write (configure.ac): ... to here.
48863 2011-05-22  Bruno Haible  <bruno@clisp.org>
48865         wmemset: Move AC_LIBOBJ invocations to module description.
48866         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48867         here...
48868         * modules/wmemset (configure.ac): ... to here.
48870 2011-05-22  Bruno Haible  <bruno@clisp.org>
48872         wmemmove: Move AC_LIBOBJ invocations to module description.
48873         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48874         here...
48875         * modules/wmemmove (configure.ac): ... to here.
48877 2011-05-22  Bruno Haible  <bruno@clisp.org>
48879         wmemcpy: Move AC_LIBOBJ invocations to module description.
48880         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48881         here...
48882         * modules/wmemcpy (configure.ac): ... to here.
48884 2011-05-22  Bruno Haible  <bruno@clisp.org>
48886         wmemcmp: Move AC_LIBOBJ invocations to module description.
48887         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48888         here...
48889         * modules/wmemcmp (configure.ac): ... to here.
48891 2011-05-22  Bruno Haible  <bruno@clisp.org>
48893         wmemchr: Move AC_LIBOBJ invocations to module description.
48894         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48895         here...
48896         * modules/wmemchr (configure.ac): ... to here.
48898 2011-05-22  Bruno Haible  <bruno@clisp.org>
48900         wcswidth: Move AC_LIBOBJ invocations to module description.
48901         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48902         here...
48903         * modules/wcswidth (configure.ac): ... to here.
48905 2011-05-22  Bruno Haible  <bruno@clisp.org>
48907         wcwidth: Respect rules for use of AC_LIBOBJ.
48908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48909         invocation from here...
48910         * modules/wcwidth (configure.ac): ... to here.
48911         (Depends-on): Update conditions.
48913 2011-05-22  Bruno Haible  <bruno@clisp.org>
48915         wctype: Move AC_LIBOBJ invocations to module description.
48916         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48917         invocation from here...
48918         * modules/wctype (configure.ac): ... to here.
48919         (Depends-on): Update conditions.
48921 2011-05-22  Bruno Haible  <bruno@clisp.org>
48923         wctrans: Move AC_LIBOBJ invocations to module description.
48924         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48925         invocation from here...
48926         * modules/wctrans (configure.ac): ... to here.
48928 2011-05-22  Bruno Haible  <bruno@clisp.org>
48930         wctomb: Move AC_LIBOBJ invocations to module description.
48931         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48932         invocations from here...
48933         * modules/wctomb (configure.ac): ... to here.
48935 2011-05-22  Bruno Haible  <bruno@clisp.org>
48937         wctob: Move AC_LIBOBJ invocations to module description.
48938         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48939         gl_PREREQ_WCTOB invocations from here...
48940         * modules/wctob (configure.ac): ... to here.
48941         (Depends-on): Update conditions.
48943 2011-05-22  Bruno Haible  <bruno@clisp.org>
48945         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48946         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48947         here...
48948         * modules/wcsxfrm (configure.ac): ... to here.
48950 2011-05-22  Bruno Haible  <bruno@clisp.org>
48952         wcstok: Move AC_LIBOBJ invocations to module description.
48953         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48954         * modules/wcstok (configure.ac): ... to here.
48956 2011-05-22  Bruno Haible  <bruno@clisp.org>
48958         wcsstr: Move AC_LIBOBJ invocations to module description.
48959         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48960         * modules/wcsstr (configure.ac): ... to here.
48962 2011-05-22  Bruno Haible  <bruno@clisp.org>
48964         wcsspn: Move AC_LIBOBJ invocations to module description.
48965         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48966         * modules/wcsspn (configure.ac): ... to here.
48968 2011-05-22  Bruno Haible  <bruno@clisp.org>
48970         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48971         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48972         gl_PREREQ_WCSRTOMBS invocations from here...
48973         * modules/wcsrtombs (configure.ac): ... to here.
48975 2011-05-22  Bruno Haible  <bruno@clisp.org>
48977         wcsrchr: Move AC_LIBOBJ invocations to module description.
48978         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48979         here...
48980         * modules/wcsrchr (configure.ac): ... to here.
48982 2011-05-22  Bruno Haible  <bruno@clisp.org>
48984         wcspbrk: Move AC_LIBOBJ invocations to module description.
48985         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48986         here...
48987         * modules/wcspbrk (configure.ac): ... to here.
48989 2011-05-22  Bruno Haible  <bruno@clisp.org>
48991         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48992         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48993         gl_PREREQ_WCSNRTOMBS invocations from here...
48994         * modules/wcsnrtombs (configure.ac): ... to here.
48996 2011-05-22  Bruno Haible  <bruno@clisp.org>
48998         wcsnlen: Move AC_LIBOBJ invocations to module description.
48999         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49000         here...
49001         * modules/wcsnlen (configure.ac): ... to here.
49003 2011-05-22  Bruno Haible  <bruno@clisp.org>
49005         wcsncpy: Move AC_LIBOBJ invocations to module description.
49006         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49007         here...
49008         * modules/wcsncpy (configure.ac): ... to here.
49010 2011-05-22  Bruno Haible  <bruno@clisp.org>
49012         wcsncmp: Move AC_LIBOBJ invocations to module description.
49013         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49014         here...
49015         * modules/wcsncmp (configure.ac): ... to here.
49017 2011-05-22  Bruno Haible  <bruno@clisp.org>
49019         wcsncat: Move AC_LIBOBJ invocations to module description.
49020         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49021         here...
49022         * modules/wcsncat (configure.ac): ... to here.
49024 2011-05-22  Bruno Haible  <bruno@clisp.org>
49026         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49027         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49028         from here...
49029         * modules/wcsncasecmp (configure.ac): ... to here.
49031 2011-05-22  Bruno Haible  <bruno@clisp.org>
49033         wcslen: Move AC_LIBOBJ invocations to module description.
49034         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49035         * modules/wcslen (configure.ac): ... to here.
49037 2011-05-22  Bruno Haible  <bruno@clisp.org>
49039         wcsdup: Move AC_LIBOBJ invocations to module description.
49040         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49041         * modules/wcsdup (configure.ac): ... to here.
49043 2011-05-22  Bruno Haible  <bruno@clisp.org>
49045         wcscspn: Move AC_LIBOBJ invocations to module description.
49046         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49047         here...
49048         * modules/wcscspn (configure.ac): ... to here.
49050 2011-05-22  Bruno Haible  <bruno@clisp.org>
49052         wcscpy: Move AC_LIBOBJ invocations to module description.
49053         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49054         * modules/wcscpy (configure.ac): ... to here.
49056 2011-05-22  Bruno Haible  <bruno@clisp.org>
49058         wcscoll: Move AC_LIBOBJ invocations to module description.
49059         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49060         here...
49061         * modules/wcscoll (configure.ac): ... to here.
49063 2011-05-22  Bruno Haible  <bruno@clisp.org>
49065         wcscmp: Move AC_LIBOBJ invocations to module description.
49066         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49067         * modules/wcscmp (configure.ac): ... to here.
49069 2011-05-22  Bruno Haible  <bruno@clisp.org>
49071         wcschr: Move AC_LIBOBJ invocations to module description.
49072         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49073         * modules/wcschr (configure.ac): ... to here.
49075 2011-05-22  Bruno Haible  <bruno@clisp.org>
49077         wcscat: Move AC_LIBOBJ invocations to module description.
49078         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49079         * modules/wcscat (configure.ac): ... to here.
49081 2011-05-22  Bruno Haible  <bruno@clisp.org>
49083         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49084         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49085         here...
49086         * modules/wcscasecmp (configure.ac): ... to here.
49088 2011-05-22  Bruno Haible  <bruno@clisp.org>
49090         wcrtomb: Move AC_LIBOBJ invocations to module description.
49091         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49092         invocations from here...
49093         * modules/wcrtomb (configure.ac): ... to here.
49095 2011-05-22  Bruno Haible  <bruno@clisp.org>
49097         wcpncpy: Move AC_LIBOBJ invocations to module description.
49098         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49099         here...
49100         * modules/wcpncpy (configure.ac): ... to here.
49102 2011-05-22  Bruno Haible  <bruno@clisp.org>
49104         wcpcpy: Move AC_LIBOBJ invocations to module description.
49105         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49106         * modules/wcpcpy (configure.ac): ... to here.
49108 2011-05-22  Bruno Haible  <bruno@clisp.org>
49110         waitpid: Move AC_LIBOBJ invocations to module description.
49111         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49112         invocation from here...
49113         * modules/waitpid (configure.ac): ... to here.
49115 2011-05-22  Bruno Haible  <bruno@clisp.org>
49117         utimensat: Move AC_LIBOBJ invocations to module description.
49118         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49119         here...
49120         * modules/utimensat (configure.ac): ... to here.
49122 2011-05-22  Bruno Haible  <bruno@clisp.org>
49124         usleep: Move AC_LIBOBJ invocations to module description.
49125         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49126         here...
49127         * modules/usleep (configure.ac): ... to here.
49129 2011-05-22  Bruno Haible  <bruno@clisp.org>
49131         unlockpt: Move AC_LIBOBJ invocations to module description.
49132         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49133         gl_PREREQ_UNLOCKPT invocations from here...
49134         * modules/unlockpt (configure.ac): ... to here.
49136 2011-05-22  Bruno Haible  <bruno@clisp.org>
49138         unlink: Respect rules for use of AC_LIBOBJ.
49139         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49140         * modules/unlink (configure.ac): ... to here.
49142 2011-05-22  Bruno Haible  <bruno@clisp.org>
49144         uname: Move AC_LIBOBJ invocations to module description.
49145         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49147         here...
49148         * modules/uname (configure.ac): ... to here.
49150 2011-05-22  Bruno Haible  <bruno@clisp.org>
49152         ttyname_r: Move AC_LIBOBJ invocations to module description.
49153         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49154         gl_PREREQ_TTYNAME_R invocations from here...
49155         * modules/ttyname_r (configure.ac): ... to here.
49157 2011-05-22  Bruno Haible  <bruno@clisp.org>
49159         tsearch: Move AC_LIBOBJ invocations to module description.
49160         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49161         invocations from here...
49162         * modules/tsearch (configure.ac): ... to here.
49164 2011-05-22  Bruno Haible  <bruno@clisp.org>
49166         towctrans: Move AC_LIBOBJ invocations to module description.
49167         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49168         AC_LIBOBJ invocation from here...
49169         * modules/towctrans (configure.ac): ... to here.
49171 2011-05-22  Bruno Haible  <bruno@clisp.org>
49173         tmpfile: Move AC_LIBOBJ invocations to module description.
49174         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49175         invocations from here...
49176         * modules/tmpfile (configure.ac): ... to here.
49178 2011-05-22  Bruno Haible  <bruno@clisp.org>
49180         times: Move AC_LIBOBJ invocations to module description.
49181         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49182         * modules/times (configure.ac): ... to here.
49184 2011-05-22  Bruno Haible  <bruno@clisp.org>
49186         time_r: Move AC_LIBOBJ invocations to module description.
49187         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49188         invocations from here...
49189         * modules/time_r (configure.ac): ... to here.
49191 2011-05-22  Bruno Haible  <bruno@clisp.org>
49193         timegm: Move AC_LIBOBJ invocations to module description.
49194         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49195         invocations from here...
49196         * modules/timegm (configure.ac): ... to here.
49198 2011-05-22  Bruno Haible  <bruno@clisp.org>
49200         tcgetsid: Move AC_LIBOBJ invocations to module description.
49201         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49202         and gl_PREREQ_TCGETSID invocations from here...
49203         * modules/tcgetsid (configure.ac): ... to here.
49204         (Depends-on): Update conditions.
49206 2011-05-22  Bruno Haible  <bruno@clisp.org>
49208         symlinkat: Move AC_LIBOBJ invocations to module description.
49209         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49210         here...
49211         * modules/symlinkat (configure.ac): ... to here.
49213 2011-05-22  Bruno Haible  <bruno@clisp.org>
49215         symlink: Move AC_LIBOBJ invocations to module description.
49216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49217         here...
49218         * modules/symlink (configure.ac): ... to here.
49220 2011-05-22  Bruno Haible  <bruno@clisp.org>
49222         strverscmp: Move AC_LIBOBJ invocations to module description.
49223         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49225         from here...
49226         * modules/strverscmp (configure.ac): ... to here.
49228 2011-05-22  Bruno Haible  <bruno@clisp.org>
49230         strtok_r: Move AC_LIBOBJ invocations to module description.
49231         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49232         and gl_PREREQ_STRTOK_R invocations from here...
49233         * modules/strtok_r (configure.ac): ... to here.
49234         (Depends-on): Update conditions.
49236 2011-05-22  Bruno Haible  <bruno@clisp.org>
49238         strtoumax: Move AC_LIBOBJ invocations to module description.
49239         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49240         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49241         from here...
49242         * modules/strtoumax (configure.ac): ... to here.
49244 2011-05-22  Bruno Haible  <bruno@clisp.org>
49246         strtoimax: Move AC_LIBOBJ invocations to module description.
49247         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49249         from here...
49250         * modules/strtoimax (configure.ac): ... to here.
49252 2011-05-22  Bruno Haible  <bruno@clisp.org>
49254         strtoull: Move AC_LIBOBJ invocations to module description.
49255         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49257         from here...
49258         * modules/strtoull (configure.ac): ... to here.
49260 2011-05-22  Bruno Haible  <bruno@clisp.org>
49262         strtoll: Move AC_LIBOBJ invocations to module description.
49263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49264         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49265         here...
49266         * modules/strtoll (configure.ac): ... to here.
49268 2011-05-22  Bruno Haible  <bruno@clisp.org>
49270         strtoul: Move AC_LIBOBJ invocations to module description.
49271         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49272         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49273         * modules/strtoul (configure.ac): ... to here.
49275 2011-05-22  Bruno Haible  <bruno@clisp.org>
49277         strtol: Move AC_LIBOBJ invocations to module description.
49278         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49279         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49280         * modules/strtol (configure.ac): ... to here.
49282 2011-05-22  Bruno Haible  <bruno@clisp.org>
49284         strtod: Move AC_LIBOBJ invocations to module description.
49285         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49286         invocations from here...
49287         * modules/strtod (configure.ac): ... to here.
49289 2011-05-22  Bruno Haible  <bruno@clisp.org>
49291         strstr*: Move AC_LIBOBJ invocations to module description.
49292         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49293         invocations from here...
49294         * modules/strstr-simple (configure.ac): ... to here.
49295         * modules/strstr (configure.ac): ... and here.
49297 2011-05-22  Bruno Haible  <bruno@clisp.org>
49299         strsignal: Move AC_LIBOBJ invocations to module description.
49300         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49301         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49302         * modules/strsignal (configure.ac): ... to here.
49303         (Depends-on): Update conditions.
49305 2011-05-22  Bruno Haible  <bruno@clisp.org>
49307         strsep: Move AC_LIBOBJ invocations to module description.
49308         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49310         here...
49311         * modules/strsep (configure.ac): ... to here.
49313 2011-05-22  Bruno Haible  <bruno@clisp.org>
49315         strptime: Move AC_LIBOBJ invocations to module description.
49316         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49317         gl_PREREQ_STRPTIME invocations from here...
49318         * modules/strptime (configure.ac): ... to here.
49320 2011-05-22  Bruno Haible  <bruno@clisp.org>
49322         strpbrk: Move AC_LIBOBJ invocations to module description.
49323         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49324         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49325         here...
49326         * modules/strpbrk (configure.ac): ... to here.
49328 2011-05-22  Bruno Haible  <bruno@clisp.org>
49330         strnlen: Move AC_LIBOBJ invocations to module description.
49331         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49332         invocations from here...
49333         * modules/strnlen (configure.ac): ... to here.
49335 2011-05-22  Bruno Haible  <bruno@clisp.org>
49337         strndup: Move AC_LIBOBJ invocations to module description.
49338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49339         invocations from here...
49340         * modules/strndup (configure.ac): ... to here.
49341         (Depends-on): Update conditions.
49343 2011-05-22  Bruno Haible  <bruno@clisp.org>
49345         strncat: Move AC_LIBOBJ invocations to module description.
49346         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49347         invocations from here...
49348         * modules/strncat (configure.ac): ... to here.
49350 2011-05-22  Bruno Haible  <bruno@clisp.org>
49352         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49353         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49354         invocations from here...
49355         * modules/strdup (configure.ac): ... to here.
49356         * modules/strdup-posix (configure.ac): ... and here.
49358 2011-05-22  Bruno Haible  <bruno@clisp.org>
49360         strcspn: Move AC_LIBOBJ invocations to module description.
49361         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49363         here...
49364         * modules/strcspn (configure.ac): ... to here.
49366 2011-05-22  Bruno Haible  <bruno@clisp.org>
49368         strchrnul: Move AC_LIBOBJ invocations to module description.
49369         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49370         gl_PREREQ_STRCHRNUL invocations from here...
49371         * modules/strchrnul (configure.ac): ... to here.
49373 2011-05-22  Bruno Haible  <bruno@clisp.org>
49375         strcasestr*: Move AC_LIBOBJ invocations to module description.
49376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49377         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49378         * modules/strcasestr-simple (configure.ac): ... to here.
49379         * modules/strcasestr (configure.ac): ... and here.
49381 2011-05-22  Bruno Haible  <bruno@clisp.org>
49383         strcase: Move AC_LIBOBJ invocations to module description.
49384         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49385         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49386         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49387         gl_PREREQ_STRNCASECMP invocations from here...
49388         * modules/strcase (configure.ac): ... to here.
49390 2011-05-22  Bruno Haible  <bruno@clisp.org>
49392         stpncpy: Move AC_LIBOBJ invocations to module description.
49393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49394         here...
49395         * modules/stpncpy (configure.ac): ... to here.
49397 2011-05-22  Bruno Haible  <bruno@clisp.org>
49399         stpcpy: Move AC_LIBOBJ invocations to module description.
49400         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49402         here...
49403         * modules/stpcpy (configure.ac): ... to here.
49405 2011-05-21  Bruno Haible  <bruno@clisp.org>
49407         stat: Move AC_LIBOBJ invocations to module description.
49408         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49409         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49410         here...
49411         * modules/stat (configure.ac): ... to here.
49413 2011-05-21  Bruno Haible  <bruno@clisp.org>
49415         sleep: Move AC_LIBOBJ invocations to module description.
49416         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
49417         * modules/sleep (configure.ac): ... to here.
49419 2011-05-21  Bruno Haible  <bruno@clisp.org>
49421         signbit: Move AC_LIBOBJ invocations to module description.
49422         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
49423         * modules/signbit (configure.ac): ... to here.
49425 2011-05-21  Bruno Haible  <bruno@clisp.org>
49427         sigprocmask: Move AC_LIBOBJ invocations to module description.
49428         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
49429         gl_PREREQ_SIGPROMASK invocations from here...
49430         * modules/sigprocmask (configure.ac): ... to here.
49432 2011-05-21  Bruno Haible  <bruno@clisp.org>
49434         sigaction: Move AC_LIBOBJ invocations to module description.
49435         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
49436         gl_PREREQ_SIGACTION invocations from here...
49437         * modules/sigaction (configure.ac): ... to here.
49439 2011-05-21  Bruno Haible  <bruno@clisp.org>
49441         sig2str: Move AC_LIBOBJ invocations to module description.
49442         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49443         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49444         here...
49445         * modules/sig2str (configure.ac): ... to here.
49447 2011-05-21  Bruno Haible  <bruno@clisp.org>
49449         setlocale: Move AC_LIBOBJ invocations to module description.
49450         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49451         gl_PREREQ_SETLOCALE invocations from here...
49452         * modules/setlocale (configure.ac): ... to here.
49454 2011-05-21  Bruno Haible  <bruno@clisp.org>
49456         unsetenv: Move AC_LIBOBJ invocations to module description.
49457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49458         and gl_PREREQ_UNSETENV invocations from here...
49459         * modules/unsetenv (configure.ac): ... to here.
49460         (Depends-on): Update.
49462 2011-05-21  Bruno Haible  <bruno@clisp.org>
49464         setenv: Move AC_LIBOBJ invocations to module description.
49465         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49466         here...
49467         * modules/setenv (configure.ac): ... to here.
49469 2011-05-21  Bruno Haible  <bruno@clisp.org>
49471         selinux-h: Move AC_LIBOBJ invocations to module description.
49472         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49473         AC_LIBOBJ invocation from here...
49474         * modules/selinux-h (configure.ac): ... to here.
49476 2011-05-21  Bruno Haible  <bruno@clisp.org>
49478         select: Respect rules for use of AC_LIBOBJ.
49479         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49480         here...
49481         * modules/select (configure.ac): ... to here.
49483 2011-05-21  Bruno Haible  <bruno@clisp.org>
49485         scandir: Move AC_LIBOBJ invocations to module description.
49486         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49487         invocations from here...
49488         * modules/scandir (configure.ac): ... to here.
49490 2011-05-21  Bruno Haible  <bruno@clisp.org>
49492         rpmatch: Move AC_LIBOBJ invocations to module description.
49493         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49495         here...
49496         * modules/rpmatch (configure.ac): ... to here.
49498 2011-05-21  Bruno Haible  <bruno@clisp.org>
49500         rmdir: Respect rules for use of AC_LIBOBJ.
49501         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49502         * modules/rmdir (configure.ac): ... to here.
49504 2011-05-21  Bruno Haible  <bruno@clisp.org>
49506         renameat: Move AC_LIBOBJ invocations to module description.
49507         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49508         here...
49509         * modules/renameat (configure.ac): ... to here.
49511 2011-05-21  Bruno Haible  <bruno@clisp.org>
49513         rename: Respect rules for use of AC_LIBOBJ.
49514         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49515         here...
49516         * modules/rename (configure.ac): ... to here.
49518 2011-05-21  Bruno Haible  <bruno@clisp.org>
49520         remove: Move AC_LIBOBJ invocations to module description.
49521         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49522         here...
49523         * modules/remove (configure.ac): ... to here.
49525 2011-05-21  Bruno Haible  <bruno@clisp.org>
49527         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49528         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49529         macro.
49530         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49531         * modules/relocatable-lib (configure.ac): ... to here.
49532         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49533         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49535 2011-05-21  Bruno Haible  <bruno@clisp.org>
49537         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49538         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49539         here...
49540         * modules/relocatable-prog (configure.ac): ... to here.
49542 2011-05-21  Bruno Haible  <bruno@clisp.org>
49544         regex: Move AC_LIBOBJ invocations to module description.
49545         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49546         invocations from here...
49547         * modules/regex (configure.ac): ... to here.
49549 2011-05-21  Bruno Haible  <bruno@clisp.org>
49551         realloc-*: Move AC_LIBOBJ invocations to module description.
49552         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49553         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49554         AC_LIBOBJ invocations from here...
49555         * modules/realloc-gnu (configure.ac): ... to here.
49556         * modules/realloc-posix (configure.ac): ... and here.
49558 2011-05-21  Bruno Haible  <bruno@clisp.org>
49560         readutmp: Move AC_LIBOBJ invocations to module description.
49561         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49562         * modules/readutmp (configure.ac): ... to here.
49564 2011-05-21  Bruno Haible  <bruno@clisp.org>
49566         readlinkat: Move AC_LIBOBJ invocations to module description.
49567         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49568         here...
49569         * modules/readlinkat (configure.ac): ... to here.
49571 2011-05-21  Bruno Haible  <bruno@clisp.org>
49573         readlink: Move AC_LIBOBJ invocations to module description.
49574         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49575         gl_PREREQ_READLINK invocations from here...
49576         * modules/readlink (configure.ac): ... to here.
49578 2011-05-21  Bruno Haible  <bruno@clisp.org>
49580         readline: Move AC_LIBOBJ invocations to module description.
49581         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49582         gl_PREREQ_READLINE invocations from here...
49583         * modules/readline (configure.ac): ... to here.
49585 2011-05-21  Bruno Haible  <bruno@clisp.org>
49587         read: Move AC_LIBOBJ invocations to module description.
49588         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49589         * modules/read (configure.ac): ... to here.
49591 2011-05-21  Bruno Haible  <bruno@clisp.org>
49593         rawmemchr: Move AC_LIBOBJ invocations to module description.
49594         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49596         from here...
49597         * modules/rawmemchr (configure.ac): ... to here.
49599 2011-05-21  Bruno Haible  <bruno@clisp.org>
49601         random_r: Move AC_LIBOBJ invocations to module description.
49602         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49603         gl_PREREQ_RANDOM_R invocations from here...
49604         * modules/random_r (configure.ac): ... to here.
49606 2011-05-21  Bruno Haible  <bruno@clisp.org>
49608         pwrite: Move AC_LIBOBJ invocations to module description.
49609         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49610         * modules/pwrite (configure.ac): ... to here.
49612 2011-05-21  Bruno Haible  <bruno@clisp.org>
49614         putenv: Move AC_LIBOBJ invocations to module description.
49615         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49616         * modules/putenv (configure.ac): ... to here.
49618 2011-05-21  Bruno Haible  <bruno@clisp.org>
49620         login_tty: Move AC_LIBOBJ invocations to module description.
49621         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49622         * modules/login_tty (configure.ac): ... to here.
49624 2011-05-21  Bruno Haible  <bruno@clisp.org>
49626         openpty: Move AC_LIBOBJ invocations to module description.
49627         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49628         * modules/openpty (configure.ac): ... to here.
49630 2011-05-21  Bruno Haible  <bruno@clisp.org>
49632         forkpty: Move AC_LIBOBJ invocations to module description.
49633         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49634         * modules/forkpty (configure.ac): ... to here.
49636 2011-05-21  Bruno Haible  <bruno@clisp.org>
49638         ptsname: Move AC_LIBOBJ invocations to module description.
49639         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49640         invocations from here...
49641         * modules/ptsname (configure.ac): ... to here.
49643 2011-05-21  Bruno Haible  <bruno@clisp.org>
49645         pread: Move AC_LIBOBJ invocations to module description.
49646         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49647         * modules/pread (configure.ac): ... to here.
49649 2011-05-21  Bruno Haible  <bruno@clisp.org>
49651         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49652         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49653         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49654         * modules/posix_spawn (configure.ac): ... to here.
49655         * modules/posix_spawnp (configure.ac): ... and here.
49657 2011-05-21  Bruno Haible  <bruno@clisp.org>
49659         popen: Move AC_LIBOBJ invocations to module description.
49660         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49661         invocations from here...
49662         * modules/popen (configure.ac): ... to here.
49664 2011-05-21  Bruno Haible  <bruno@clisp.org>
49666         poll: Move AC_LIBOBJ invocations to module description.
49667         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49668         invocations from here...
49669         * modules/poll (configure.ac): ... to here.
49671 2011-05-21  Bruno Haible  <bruno@clisp.org>
49673         pipe-posix: Move AC_LIBOBJ invocations to module description.
49674         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49675         * modules/pipe-posix (configure.ac): ... to here.
49677 2011-05-21  Bruno Haible  <bruno@clisp.org>
49679         openat: Respect rules for use of AC_LIBOBJ.
49680         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49681         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49682         * modules/openat (configure.ac): ... to here.
49684 2011-05-21  Bruno Haible  <bruno@clisp.org>
49686         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49687         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49688         invocation from here...
49689         * modules/obstack-printf (configure.ac): ... to here.
49690         * modules/obstack-printf-posix (configure.ac): ... and here.
49692 2011-05-21  Bruno Haible  <bruno@clisp.org>
49694         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49695         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49696         from here...
49697         * modules/nl_langinfo (configure.ac): ... to here.
49699 2011-05-21  Bruno Haible  <bruno@clisp.org>
49701         nanosleep: Move AC_LIBOBJ invocations to module description.
49702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49703         gl_PREREQ_NANOSLEEP invocations from here...
49704         * modules/nanosleep (configure.ac): ... to here.
49706 2011-05-21  Bruno Haible  <bruno@clisp.org>
49708         mountlist: Move AC_LIBOBJ invocations to module description.
49709         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49710         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49711         * modules/mountlist (configure.ac): ... to here.
49713 2011-05-21  Bruno Haible  <bruno@clisp.org>
49715         mktime: Respect rules for use of AC_LIBOBJ.
49716         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49717         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49718         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49719         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49720         * modules/mktime (configure.ac): ... to here.
49721         * modules/mktime-internal (configure.ac): ... and here.
49722         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49724 2011-05-21  Bruno Haible  <bruno@clisp.org>
49726         mkstemps: Move AC_LIBOBJ invocations to module description.
49727         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49728         here...
49729         * modules/mkstemps (configure.ac): ... to here.
49731 2011-05-21  Bruno Haible  <bruno@clisp.org>
49733         mkstemp: Move AC_LIBOBJ invocations to module description.
49734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49735         gl_PREREQ_MKSTEMP invocations from here...
49736         * modules/mkstemp (configure.ac): ... to here.
49738 2011-05-21  Bruno Haible  <bruno@clisp.org>
49740         mkostemps: Move AC_LIBOBJ invocations to module description.
49741         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49742         here...
49743         * modules/mkostemps (configure.ac): ... to here.
49745 2011-05-21  Bruno Haible  <bruno@clisp.org>
49747         mkostemp: Move AC_LIBOBJ invocations to module description.
49748         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49749         gl_PREREQ_MKOSTEMP invocations from here...
49750         * modules/mkostemp (configure.ac): ... to here.
49752 2011-05-21  Bruno Haible  <bruno@clisp.org>
49754         mknod: Move AC_LIBOBJ invocations to module description.
49755         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49756         * modules/mknod (configure.ac): ... to here.
49758 2011-05-21  Bruno Haible  <bruno@clisp.org>
49760         mkfifoat: Move AC_LIBOBJ invocations to module description.
49761         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49762         here...
49763         * modules/mkfifoat (configure.ac): ... to here.
49765 2011-05-21  Bruno Haible  <bruno@clisp.org>
49767         mkfifo: Respect rules for use of AC_LIBOBJ.
49768         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49769         here...
49770         * modules/mkfifo (configure.ac): ... to here.
49772 2011-05-21  Bruno Haible  <bruno@clisp.org>
49774         mkdtemp: Move AC_LIBOBJ invocations to module description.
49775         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49776         invocations from here...
49777         * modules/mkdtemp (configure.ac): ... to here.
49779 2011-05-21  Bruno Haible  <bruno@clisp.org>
49781         mkdir: Move AC_LIBOBJ invocations to module description.
49782         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49783         * modules/mkdir (configure.ac): ... to here.
49785 2011-05-21  Bruno Haible  <bruno@clisp.org>
49787         memset: Move AC_LIBOBJ invocations to module description.
49788         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49789         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49790         here...
49791         * modules/memset (configure.ac): ... to here.
49793 2011-05-21  Bruno Haible  <bruno@clisp.org>
49795         memrchr: Move AC_LIBOBJ invocations to module description.
49796         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49798         here...
49799         * modules/memrchr (configure.ac): ... to here.
49801 2011-05-21  Bruno Haible  <bruno@clisp.org>
49803         mempcpy: Move AC_LIBOBJ invocations to module description.
49804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49806         here...
49807         * modules/mempcpy (configure.ac): ... to here.
49809 2011-05-21  Bruno Haible  <bruno@clisp.org>
49811         memmove: Move AC_LIBOBJ invocations to module description.
49812         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49813         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49814         here...
49815         * modules/memmove (configure.ac): ... to here.
49817 2011-05-21  Bruno Haible  <bruno@clisp.org>
49819         memmem*: Move AC_LIBOBJ invocations to module description.
49820         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49821         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49822         here...
49823         (gl_FUNC_MEMMEM): ... and here...
49824         * modules/memmem-simple (configure.ac): ... to here.
49825         * modules/memmem (configure.ac): ... and here.
49827 2011-05-21  Bruno Haible  <bruno@clisp.org>
49829         memcpy: Move AC_LIBOBJ invocations to module description.
49830         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49831         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49832         here...
49833         * modules/memcpy (configure.ac): ... to here.
49835 2011-05-21  Bruno Haible  <bruno@clisp.org>
49837         memcmp: Simplify autoconf macro.
49838         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49839         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49840         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49842 2011-05-21  Bruno Haible  <bruno@clisp.org>
49844         memcmp: Move AC_LIBOBJ invocations to module description.
49845         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49846         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49847         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49848         * modules/memcmp (configure.ac): ... to here.
49849         (Depends-on): Update conditions.
49851 2011-05-21  Bruno Haible  <bruno@clisp.org>
49853         memchr: Respect rules for use of AC_LIBOBJ.
49854         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49855         invocations from here...
49856         * modules/memchr (configure.ac): ... to here.
49858 2011-05-21  Bruno Haible  <bruno@clisp.org>
49860         mbtowc: Move AC_LIBOBJ invocations to module description.
49861         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49862         invocations from here...
49863         * modules/mbtowc (configure.ac): ... to here.
49865 2011-05-21  Bruno Haible  <bruno@clisp.org>
49867         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49868         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49869         gl_PREREQ_MBSRTOWCS invocations from here...
49870         * modules/mbsrtowcs (configure.ac): ... to here.
49872 2011-05-21  Bruno Haible  <bruno@clisp.org>
49874         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49875         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49876         gl_PREREQ_MBSNRTOWCS invocations from here...
49877         * modules/mbsnrtowcs (configure.ac): ... to here.
49879 2011-05-21  Bruno Haible  <bruno@clisp.org>
49881         mbsinit: Move AC_LIBOBJ invocations to module description.
49882         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49883         invocations from here...
49884         * modules/mbsinit (configure.ac): ... to here.
49886 2011-05-21  Bruno Haible  <bruno@clisp.org>
49888         mbrlen: Move AC_LIBOBJ invocations to module description.
49889         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49890         invocations from here...
49891         * modules/mbrlen (configure.ac): ... to here.
49893 2011-05-21  Bruno Haible  <bruno@clisp.org>
49895         mbrtowc: Respect rules for use of AC_LIBOBJ.
49896         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49897         invocations from here...
49898         * modules/mbrtowc (configure.ac): ... to here.
49900 2011-05-21  Bruno Haible  <bruno@clisp.org>
49902         malloc-*: Move AC_LIBOBJ invocations to module description.
49903         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49904         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49905         AC_LIBOBJ invocations from here...
49906         * modules/malloc-gnu (configure.ac): ... to here.
49907         * modules/malloc-posix (configure.ac): ... and here.
49909 2011-05-21  Bruno Haible  <bruno@clisp.org>
49911         lstat, openat: Respect rules for use of AC_LIBOBJ.
49912         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49913         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49914         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49915         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49916         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49917         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49918         here.
49919         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49921 2011-05-21  Bruno Haible  <bruno@clisp.org>
49923         lseek: Move AC_LIBOBJ invocations to module description.
49924         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49925         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49926         * modules/lseek (configure.ac): ... to here.
49928 2011-05-21  Bruno Haible  <bruno@clisp.org>
49930         linkat: Move AC_LIBOBJ invocations to module description.
49931         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49932         here...
49933         * modules/linkat (configure.ac): ... to here.
49935 2011-05-21  Bruno Haible  <bruno@clisp.org>
49937         link: Respect rules for use of AC_LIBOBJ.
49938         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49939         * modules/link (configure.ac): ... to here.
49941 2011-05-21  Bruno Haible  <bruno@clisp.org>
49943         lchown: Move AC_LIBOBJ invocations to module description.
49944         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49945         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49946         * modules/lchown (configure.ac): ... to here.
49948 2011-05-21  Bruno Haible  <bruno@clisp.org>
49950         iswctype: Move AC_LIBOBJ invocations to module description.
49951         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49952         here...
49953         * modules/iswctype (configure.ac): ... to here.
49955 2011-05-21  Bruno Haible  <bruno@clisp.org>
49957         iswblank: Move AC_LIBOBJ invocations to module description.
49958         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49959         here...
49960         * modules/iswblank (configure.ac): ... to here.
49962 2011-05-21  Bruno Haible  <bruno@clisp.org>
49964         atanl: Move AC_LIBOBJ invocations to module description.
49965         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49966         * modules/atanl (configure.ac): ... to here.
49968 2011-05-21  Bruno Haible  <bruno@clisp.org>
49970         acosl: Move AC_LIBOBJ invocations to module description.
49971         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49972         * modules/acosl (configure.ac): ... to here.
49974 2011-05-21  Bruno Haible  <bruno@clisp.org>
49976         asinl: Respect rules for use of AC_LIBOBJ.
49977         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49978         * modules/asinl (configure.ac): ... to here.
49980 2011-05-21  Bruno Haible  <bruno@clisp.org>
49982         tanl: Move AC_LIBOBJ invocations to module description.
49983         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49984         * modules/tanl (configure.ac): ... to here.
49986 2011-05-21  Bruno Haible  <bruno@clisp.org>
49988         cosl: Move AC_LIBOBJ invocations to module description.
49989         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49990         * modules/cosl (configure.ac): ... to here.
49992 2011-05-21  Bruno Haible  <bruno@clisp.org>
49994         sinl: Move AC_LIBOBJ invocations to module description.
49995         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49996         * modules/sinl (configure.ac): ... to here.
49998 2011-05-21  Bruno Haible  <bruno@clisp.org>
50000         logl: Move AC_LIBOBJ invocations to module description.
50001         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50002         * modules/logl (configure.ac): ... to here.
50004 2011-05-21  Bruno Haible  <bruno@clisp.org>
50006         expl: Move AC_LIBOBJ invocations to module description.
50007         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50008         * modules/expl (configure.ac): ... to here.
50010 2011-05-21  Bruno Haible  <bruno@clisp.org>
50012         roundl: Move AC_LIBOBJ invocations to module description.
50013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50014         * modules/roundl (configure.ac): ... to here.
50016 2011-05-21  Bruno Haible  <bruno@clisp.org>
50018         round: Move AC_LIBOBJ invocations to module description.
50019         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50020         * modules/round (configure.ac): ... to here.
50022 2011-05-21  Bruno Haible  <bruno@clisp.org>
50024         roundf: Move AC_LIBOBJ invocations to module description.
50025         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50026         * modules/roundf (configure.ac): ... to here.
50028 2011-05-21  Bruno Haible  <bruno@clisp.org>
50030         truncl: Move AC_LIBOBJ invocations to module description.
50031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50032         * modules/truncl (configure.ac): ... to here.
50034 2011-05-21  Bruno Haible  <bruno@clisp.org>
50036         trunc: Move AC_LIBOBJ invocations to module description.
50037         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50038         * modules/trunc (configure.ac): ... to here.
50040 2011-05-21  Bruno Haible  <bruno@clisp.org>
50042         truncf: Move AC_LIBOBJ invocations to module description.
50043         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50044         * modules/truncf (configure.ac): ... to here.
50046 2011-05-21  Bruno Haible  <bruno@clisp.org>
50048         ceill: Move AC_LIBOBJ invocations to module description.
50049         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50050         * modules/ceill (configure.ac): ... to here.
50052 2011-05-21  Bruno Haible  <bruno@clisp.org>
50054         ceil: Move AC_LIBOBJ invocations to module description.
50055         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50056         * modules/ceil (configure.ac): ... to here.
50058 2011-05-21  Bruno Haible  <bruno@clisp.org>
50060         ceilf: Move AC_LIBOBJ invocations to module description.
50061         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50062         * modules/ceilf (configure.ac): ... to here.
50064 2011-05-21  Bruno Haible  <bruno@clisp.org>
50066         floorl: Respect rules for use of AC_LIBOBJ.
50067         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50068         * modules/floorl (configure.ac): ... to here.
50070 2011-05-21  Bruno Haible  <bruno@clisp.org>
50072         floor: Respect rules for use of AC_LIBOBJ.
50073         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50074         * modules/floor (configure.ac): ... to here.
50076 2011-05-21  Bruno Haible  <bruno@clisp.org>
50078         floorf: Move AC_LIBOBJ invocations to module description.
50079         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50080         * modules/floorf (configure.ac): ... to here.
50082 2011-05-20  Bruno Haible  <bruno@clisp.org>
50084         sqrtl: Respect rules for use of AC_LIBOBJ.
50085         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50086         * modules/sqrtl (configure.ac): ... to here.
50088 2011-05-20  Bruno Haible  <bruno@clisp.org>
50090         ldexpl: Respect rules for use of AC_LIBOBJ.
50091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50092         * modules/ldexpl (configure.ac): ... to here.
50094 2011-05-20  Bruno Haible  <bruno@clisp.org>
50096         frexpl*: Respect rules for use of AC_LIBOBJ.
50097         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50098         invocation from here...
50099         * modules/frexpl (configure.ac): ... to here.
50100         * modules/frexpl-nolibm (configure.ac): ... and here.
50102 2011-05-20  Bruno Haible  <bruno@clisp.org>
50104         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50105         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50106         invocation from here...
50107         * modules/frexp (configure.ac): ... to here.
50108         * modules/frexp-nolibm (configure.ac): ... and here.
50110 2011-05-20  Bruno Haible  <bruno@clisp.org>
50112         isnan: Respect rules for use of AC_LIBOBJ.
50113         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50114         invocations here.
50115         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50116         REPLACE_ISNAN.
50117         * modules/isnand (configure.ac): Likewise.
50118         * modules/isnanl (configure.ac): Likewise.
50120 2011-05-20  Bruno Haible  <bruno@clisp.org>
50122         isnanl*: Respect rules for use of AC_LIBOBJ.
50123         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50124         invocation from here...
50125         * modules/isnanl (configure.ac): ... to here.
50126         * modules/isnanl-nolibm (configure.ac): ... and here.
50128 2011-05-20  Bruno Haible  <bruno@clisp.org>
50130         isnand*: Move AC_LIBOBJ invocations to module description.
50131         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50132         invocation from here...
50133         * modules/isnand (configure.ac): ... to here.
50134         * modules/isnand-nolibm (configure.ac): ... and here.
50136 2011-05-20  Bruno Haible  <bruno@clisp.org>
50138         isnanf*: Move AC_LIBOBJ invocations to module description.
50139         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50140         invocation from here...
50141         * modules/isnanf (configure.ac): ... to here.
50142         * modules/isnanf-nolibm (configure.ac): ... and here.
50144 2011-05-20  Bruno Haible  <bruno@clisp.org>
50146         isnan*: Separate the AC_LIBOBJ invocations.
50147         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50148         AC_LIBOBJ invocation.
50149         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50150         here.
50151         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50152         AC_LIBOBJ invocation.
50153         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50154         here.
50155         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50156         AC_LIBOBJ invocation.
50157         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50158         here.
50159         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50161 2011-05-08  Bruno Haible  <bruno@clisp.org>
50163         isinf: Move AC_LIBOBJ invocations to module description.
50164         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50165         * modules/isinf (configure.ac): ... to here.
50167 2011-05-08  Bruno Haible  <bruno@clisp.org>
50169         isfinite: Move AC_LIBOBJ invocations to module description.
50170         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50171         * modules/isfinite (configure.ac): ... to here.
50173 2011-05-08  Bruno Haible  <bruno@clisp.org>
50175         isblank: Move AC_LIBOBJ invocations to module description.
50176         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50177         here...
50178         * modules/isblank (configure.ac): ... to here.
50180 2011-05-08  Bruno Haible  <bruno@clisp.org>
50182         isapipe: Move AC_LIBOBJ invocations to module description.
50183         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50184         gl_PREREQ_ISAPIPE invocations from here...
50185         * modules/isapipe (configure.ac): ... to here.
50186         (Depends-on): Update condition.
50188 2011-05-08  Bruno Haible  <bruno@clisp.org>
50190         ioctl: Move AC_LIBOBJ invocations to module description.
50191         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50192         invocations from here...
50193         * modules/ioctl (configure.ac): ... to here.
50194         (Depends-on): Update condition.
50196 2011-05-08  Bruno Haible  <bruno@clisp.org>
50198         imaxdiv: Move AC_LIBOBJ invocations to module description.
50199         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50200         invocations from here...
50201         * modules/imaxdiv (configure.ac): ... to here.
50203 2011-05-08  Bruno Haible  <bruno@clisp.org>
50205         imaxabs: Move AC_LIBOBJ invocations to module description.
50206         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50207         invocations from here...
50208         * modules/imaxabs (configure.ac): ... to here.
50210 2011-05-08  Bruno Haible  <bruno@clisp.org>
50212         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50214         AC_LIBOBJ invocations from here...
50215         * modules/getaddrinfo (configure.ac): ... to here.
50216         (Depends-on): Add conditions.
50218 2011-05-08  Bruno Haible  <bruno@clisp.org>
50220         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50221         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50222         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50223         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50224         (gl_PREREQ_INET_PTON): ... from here.
50225         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50226         gl_PREREQ_INET_PTON here.
50227         (Depends-on): Update condition.
50229 2011-05-08  Bruno Haible  <bruno@clisp.org>
50231         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50232         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50233         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50234         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50235         (gl_PREREQ_INET_NTOP): ... from here.
50236         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50237         gl_PREREQ_INET_NTOP here.
50238         (Depends-on): Update condition.
50240 2011-05-08  Bruno Haible  <bruno@clisp.org>
50242         iconv_open: Move AC_LIBOBJ invocations to module description.
50243         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50244         AC_LIBOBJ invocations from here...
50245         * modules/iconv_open (configure.ac): ... to here.
50247 2011-05-08  Bruno Haible  <bruno@clisp.org>
50249         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50250         If module 'iconv_open' is among the main modules and module
50251         'iconv_open-utf' is among the tests dependencies, then
50252         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50253         return the special iconv_t values. Therefore iconv() and iconv_close()
50254         must support these special iconv_t values, already in lib, not only in
50255         tests.
50256         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50257         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50258         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50259         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50260         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50261         (Depends-on): Add the dependencies of iconv_open-utf.
50262         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50263         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50264         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50266 2011-05-08  Bruno Haible  <bruno@clisp.org>
50268         group-member: Move AC_LIBOBJ invocations to module description.
50269         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50270         gl_PREREQ_GROUP_MEMBER invocations from here...
50271         * modules/group-member (configure.ac): ... to here.
50273 2011-05-08  Bruno Haible  <bruno@clisp.org>
50275         grantpt: Move AC_LIBOBJ invocations to module description.
50276         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50277         invocations from here...
50278         * modules/grantpt (configure.ac): ... to here.
50280 2011-05-08  Bruno Haible  <bruno@clisp.org>
50282         glob: Move AC_LIBOBJ invocations to module description.
50283         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50284         from here...
50285         * modules/glob (configure.ac): ... to here.
50287 2011-05-08  Bruno Haible  <bruno@clisp.org>
50289         getusershell: Move AC_LIBOBJ invocations to module description.
50290         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50291         Move AC_LIBOBJ invocation from here...
50292         * modules/getusershell (configure.ac): ... to here.
50293         (Depends-on): Update condition.
50295 2011-05-08  Bruno Haible  <bruno@clisp.org>
50297         gettimeofday: Move AC_LIBOBJ invocations to module description.
50298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50299         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50300         gl_PREREQ_GETTIMEOFDAY invocations from here...
50301         * modules/gettimeofday (configure.ac): ... to here.
50303 2011-05-08  Bruno Haible  <bruno@clisp.org>
50305         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50306         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50307         just gl_FUNC_TZSET.
50308         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50309         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50311         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50313 2011-05-08  Bruno Haible  <bruno@clisp.org>
50315         getsubopt: Move AC_LIBOBJ invocations to module description.
50316         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50317         gl_PREREQ_GETSUBOPT invocations from here...
50318         * modules/getsubopt (configure.ac): ... to here.
50320 2011-05-08  Bruno Haible  <bruno@clisp.org>
50322         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50323         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50324         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50325         * modules/getpass-gnu (configure.ac): ... to here.
50327 2011-05-08  Bruno Haible  <bruno@clisp.org>
50329         getpass: Move AC_LIBOBJ invocations to module description.
50330         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50331         gl_PREREQ_GETPASS invocations from here...
50332         * modules/getpass (configure.ac): ... to here.
50334 2011-05-08  Bruno Haible  <bruno@clisp.org>
50336         getpagesize: Move AC_LIBOBJ invocations to module description.
50337         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50338         from here...
50339         * modules/getpagesize (configure.ac): ... to here.
50341 2011-05-08  Bruno Haible  <bruno@clisp.org>
50343         getopt: Move AC_LIBOBJ invocations to module description.
50344         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50345         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50346         invocations from here...
50347         * modules/getopt-gnu (configure.ac): ... to here.
50348         * modules/getopt-posix (configure.ac): ... and here.
50349         (Depends-on): Update condition.
50351 2011-05-08  Bruno Haible  <bruno@clisp.org>
50353         getopt, argp: Respect rules for use of AC_LIBOBJ.
50354         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50355         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50356         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50357         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50359 2011-05-08  Bruno Haible  <bruno@clisp.org>
50361         getlogin_r: Move AC_LIBOBJ invocations to module description.
50362         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50363         gl_PREREQ_GETLOGIN_R invocations from here...
50364         * modules/getlogin_r (configure.ac): ... to here.
50366 2011-05-08  Bruno Haible  <bruno@clisp.org>
50368         getlogin: Move AC_LIBOBJ invocations to module description.
50369         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50370         here...
50371         * modules/getlogin (configure.ac): ... to here.
50373 2011-05-08  Bruno Haible  <bruno@clisp.org>
50375         getloadavg: Move AC_LIBOBJ invocations to module description.
50376         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50377         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50378         * modules/getloadavg (configure.ac): ... to here.
50380 2011-05-08  Bruno Haible  <bruno@clisp.org>
50382         gethrxtime: Move AC_LIBOBJ invocations to module description.
50383         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50384         LIB_GETHRXTIME from here...
50385         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50386         invocations from here...
50387         * modules/gethrxtime (configure.ac): ... to here.
50389 2011-05-08  Bruno Haible  <bruno@clisp.org>
50391         gethostname: Move AC_LIBOBJ invocations to module description.
50392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50393         gl_PREREQ_GETHOSTNAME invocations from here...
50394         * modules/gethostname (configure.ac): ... to here.
50396 2011-05-08  Bruno Haible  <bruno@clisp.org>
50398         getgroups: Move AC_LIBOBJ invocations to module description.
50399         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50400         here...
50401         * modules/getgroups (configure.ac): ... to here.
50403 2011-05-08  Bruno Haible  <bruno@clisp.org>
50405         getdtablesize: Move AC_LIBOBJ invocations to module description.
50406         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50407         invocation from here...
50408         * modules/getdtablesize (configure.ac): ... to here.
50410 2011-05-08  Bruno Haible  <bruno@clisp.org>
50412         getdomainname: Move AC_LIBOBJ invocations to module description.
50413         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
50414         gl_PREREQ_GETDOMAINNAME invocations from here...
50415         * modules/getdomainname (configure.ac): ... to here.
50417 2011-05-08  Bruno Haible  <bruno@clisp.org>
50419         getline: Move AC_LIBOBJ invocations to module description.
50420         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
50421         invocations from here...
50422         * modules/getline (configure.ac): ... to here.
50424 2011-05-08  Bruno Haible  <bruno@clisp.org>
50426         getline: Simplify.
50427         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
50428         It's already handled through the module dependency.
50430 2011-05-08  Bruno Haible  <bruno@clisp.org>
50432         getdelim: Move AC_LIBOBJ invocations to module description.
50433         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
50434         and gl_PREREQ_GETDELIM invocations from here...
50435         * modules/getdelim (configure.ac): ... to here.
50436         (Depends-on): Fix condition.
50438 2011-05-08  Bruno Haible  <bruno@clisp.org>
50440         getcwd: Move AC_LIBOBJ invocations to module description.
50441         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50442         invocations from here...
50443         * modules/getcwd (configure.ac): ... to here.
50445 2011-05-08  Bruno Haible  <bruno@clisp.org>
50447         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50448         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50449         here...
50450         * modules/getcwd-lgpl (configure.ac): ... to here.
50452 2011-05-07  Bruno Haible  <bruno@clisp.org>
50454         crypto/gc: Move AC_LIBOBJ invocations to module description.
50455         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50456         * modules/crypto/gc (configure.ac): ... to here.
50458 2011-05-07  Bruno Haible  <bruno@clisp.org>
50460         fwriting: Move AC_LIBOBJ invocations to module description.
50461         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50462         here...
50463         * modules/fwriting (configure.ac): ... to here.
50465 2011-05-07  Bruno Haible  <bruno@clisp.org>
50467         fwritable: Move AC_LIBOBJ invocations to module description.
50468         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50469         here...
50470         * modules/fwritable (configure.ac): ... to here.
50472 2011-05-07  Bruno Haible  <bruno@clisp.org>
50474         futimens: Move AC_LIBOBJ invocations to module description.
50475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50476         here...
50477         * modules/futimens (configure.ac): ... to here.
50479 2011-05-07  Bruno Haible  <bruno@clisp.org>
50481         ftruncate: Move AC_LIBOBJ invocations to module description.
50482         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50483         gl_PREREQ_FTRUNCATE invocations from here...
50484         * modules/ftruncate (configure.ac): ... to here.
50486 2011-05-07  Bruno Haible  <bruno@clisp.org>
50488         fsync: Move AC_LIBOBJ invocations to module description.
50489         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50490         invocations from here...
50491         * modules/fsync (configure.ac): ... to here.
50493 2011-05-07  Bruno Haible  <bruno@clisp.org>
50495         fsusage: Move AC_LIBOBJ invocations to module description.
50496         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50497         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50498         * modules/fsusage (configure.ac): ... to here.
50500 2011-05-07  Bruno Haible  <bruno@clisp.org>
50502         freopen: Move AC_LIBOBJ invocations to module description.
50503         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50504         invocations from here...
50505         * modules/freopen (configure.ac): ... to here.
50507 2011-05-07  Bruno Haible  <bruno@clisp.org>
50509         free: Move AC_LIBOBJ invocations to module description.
50510         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50511         invocations from here...
50512         * modules/free (configure.ac): ... to here.
50514 2011-05-07  Bruno Haible  <bruno@clisp.org>
50516         freadable: Move AC_LIBOBJ invocations to module description.
50517         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50518         here...
50519         * modules/freadable (configure.ac): ... to here.
50521 2011-05-07  Bruno Haible  <bruno@clisp.org>
50523         fpurge: Move AC_LIBOBJ invocations to module description.
50524         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50525         invocations from here...
50526         * modules/fpurge (configure.ac): ... to here.
50528 2011-05-07  Bruno Haible  <bruno@clisp.org>
50530         fpending: Move AC_LIBOBJ invocations to module description.
50531         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50532         gl_FUNC_FPENDING.
50533         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50534         invocations from here...
50535         * modules/fpending (configure.ac): ... to here.
50537 2011-05-07  Bruno Haible  <bruno@clisp.org>
50539         fopen: Move AC_LIBOBJ invocations to module description.
50540         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50541         invocations from here...
50542         * modules/fopen (configure.ac): ... to here.
50544 2011-05-07  Bruno Haible  <bruno@clisp.org>
50546         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50547         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50548         gl_FUNC_FNMATCH_POSIX.
50549         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50550         invocations from here...
50551         * modules/fnmatch (configure.ac): ... to here.
50552         * modules/fnmatch-gnu (configure.ac): ... and here.
50554 2011-05-07  Bruno Haible  <bruno@clisp.org>
50556         flock: Move AC_LIBOBJ invocations to module description.
50557         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50558         invocations from here...
50559         * modules/flock (configure.ac): ... to here.
50561 2011-05-07  Bruno Haible  <bruno@clisp.org>
50563         fileblocks: Move AC_LIBOBJ invocations to module description.
50564         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50565         gl_PREREQ_FILEBLOCKS invocations from here...
50566         * modules/fileblocks (configure.ac): ... to here.
50568 2011-05-06  Bruno Haible  <bruno@clisp.org>
50570         fflush: Move AC_LIBOBJ invocations to module description.
50571         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50572         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50573         invocations from here...
50574         * modules/fflush (configure.ac): ... to here.
50576 2011-05-06  Bruno Haible  <bruno@clisp.org>
50578         fdopendir: Move AC_LIBOBJ invocations to module description.
50579         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50580         here...
50581         * modules/fdopendir (configure.ac): ... to here.
50582         (Depends-on): Improve conditions.
50584 2011-05-06  Bruno Haible  <bruno@clisp.org>
50586         _Exit: Move AC_LIBOBJ invocations to module description.
50587         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50588         invocations from here...
50589         * modules/_Exit (configure.ac): ... to here.
50591 2011-05-21  Bruno Haible  <bruno@clisp.org>
50593         euidaccess: Respect rules for use of AC_LIBOBJ.
50594         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50596         from here...
50597         * modules/euidaccess (configure.ac): ... to here.
50599 2011-05-06  Bruno Haible  <bruno@clisp.org>
50601         error: Move AC_LIBOBJ invocations to module description.
50602         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50603         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50604         invocations from here...
50605         * modules/error (configure.ac): ... to here.
50607 2011-05-06  Bruno Haible  <bruno@clisp.org>
50609         duplocale: Move AC_LIBOBJ invocations to module description.
50610         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50611         gl_PREREQ_DUPLOCALE invocations from here...
50612         * modules/duplocale (configure.ac): ... to here.
50614 2011-05-05  Bruno Haible  <bruno@clisp.org>
50616         dirfd: Move AC_LIBOBJ invocations to module description.
50617         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50618         gl_FUNC_DIRFD.
50619         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50620         here...
50621         * modules/dirfd (configure.ac): ... to here.
50622         (Depends-on): Fix condition.
50624 2011-05-05  Bruno Haible  <bruno@clisp.org>
50626         chown: Respect rules for use of AC_LIBOBJ.
50627         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50628         * modules/chown (configure.ac): ... to here.
50630 2011-05-05  Bruno Haible  <bruno@clisp.org>
50632         chdir-long: Move AC_LIBOBJ invocations to module description.
50633         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50634         gl_PREREQ_CHDIR_LONG invocations from here...
50635         * modules/chdir-long (configure.ac): ... to here.
50637 2011-05-05  Bruno Haible  <bruno@clisp.org>
50639         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50640         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50641         from here...
50642         * modules/canonicalize-lgpl (configure.ac): ... to here.
50644 2011-05-05  Bruno Haible  <bruno@clisp.org>
50646         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50647         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50648         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50649         REPLACE_CALLOC.
50650         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50651         * modules/calloc-gnu (configure.ac): Likewise.
50653 2011-05-05  Bruno Haible  <bruno@clisp.org>
50655         btowc: Move AC_LIBOBJ invocations to module description.
50656         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50657         invocations from here...
50658         * modules/btowc (configure.ac): ... to here.
50660 2011-05-21  Bruno Haible  <bruno@clisp.org>
50662         atexit: Move AC_LIBOBJ invocations to module description.
50663         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50665         here...
50666         * modules/atexit (configure.ac): ... to here.
50668 2011-05-05  Bruno Haible  <bruno@clisp.org>
50670         atoll: Move AC_LIBOBJ invocations to module description.
50671         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50672         invocations from here...
50673         * modules/atoll (configure.ac): ... to here.
50675 2011-05-05  Bruno Haible  <bruno@clisp.org>
50677         argz: Move AC_LIBOBJ invocations to module description.
50678         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50679         * modules/argz (configure.ac): ... to here.
50681 2011-05-05  Bruno Haible  <bruno@clisp.org>
50683         alphasort: Move AC_LIBOBJ invocations to module description.
50684         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50685         gl_PREREQ_ALPHASORT invocations from here...
50686         * modules/alphasort (configure.ac): ... to here.
50688 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50690         verify: new macro verify_expr; verify_true deprecated
50691         * NEWS: Mention this.
50692         * doc/verify.texi (Compile-time Assertions): Document this.
50693         * lib/verify.h (verify_true): Deprecate.
50694         (verify_expr): New macro.
50695         * tests/test-verify.c (function): Test verify_expr.
50697 2011-06-14  Jim Meyering  <meyering@redhat.com>
50699         init.sh: give more portable redirection-related advice in a comment
50700         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50701         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50702         for lots of discussion.  Stefano Lattarini suggested the solution
50703         of putting "9>&2" after the command.  Reported by Bruno Haible.
50705 2011-06-13  Bruno Haible  <bruno@clisp.org>
50707         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50708         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50709         'none'.
50711 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50713         ftoastr: use strtof only if HAVE_STRTOF
50714         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50715         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50716         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50717         * modules/ftoastr (configure.ac): Check for strtof.
50719 2011-06-13  Bruno Haible  <bruno@clisp.org>
50721         gnulib-tool: Addendum to 2011-06-08 commit.
50722         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50723         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50725 2011-06-13  Bruno Haible  <bruno@clisp.org>
50727         fseeko: Provide a non-inline replacement of fseek().
50728         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50729         * modules/fseeko (Depends-on): Add fseek.
50730         * modules/fseek (License): Change to LGPLv2+.
50732 2011-06-13  Bruno Haible  <bruno@clisp.org>
50734         ftello: Provide a non-inline replacement of ftell().
50735         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50736         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50737         not have ftello() (such as on mingw).
50738         * modules/ftello (Depends-on): Add ftell.
50739         * modules/ftell (License): Change to LGPLv2+.
50741 2011-05-07  Bruno Haible  <bruno@clisp.org>
50743         ftell: Move AC_LIBOBJ invocations to module description.
50744         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50745         * modules/ftell (configure.ac): ... to here.
50747 2011-05-07  Bruno Haible  <bruno@clisp.org>
50749         ftello: Respect rules for use of AC_LIBOBJ.
50750         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50751         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50752         here...
50753         * modules/ftello (configure.ac): ... to here.
50755 2011-05-07  Bruno Haible  <bruno@clisp.org>
50757         fseeko: Simplify.
50758         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50759         (gl_FUNC_FSEEKO): Inline it here.
50761 2011-05-07  Bruno Haible  <bruno@clisp.org>
50763         fseek: Move AC_LIBOBJ invocations to module description.
50764         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50765         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50766         * modules/fseek (configure.ac): ... to here.
50768 2011-05-07  Bruno Haible  <bruno@clisp.org>
50770         fseek: Respect rules for use of AC_LIBOBJ.
50771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50772         here...
50773         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50775 2011-05-07  Bruno Haible  <bruno@clisp.org>
50777         fseeko: Respect rules for use of AC_LIBOBJ.
50778         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50779         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50780         here...
50781         * modules/fseeko (configure.ac): ... to here.
50783 2011-06-13  Bruno Haible  <bruno@clisp.org>
50785         gnulib-tool: Allow comments in the 'Depends-on' section.
50786         * doc/gnulib.texi (Module description): Mention comment syntax in the
50787         Depends-on section.
50788         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50790 2011-06-13  Bruno Haible  <bruno@clisp.org>
50792         file-set.h: guard __attibute__ use, now that it's not always defined
50793         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50794         versions that support it.  This fixes a coreutils build failure with
50795         the vendor cc on HP-UX 11.31.
50797 2011-06-12  Bruno Haible  <bruno@clisp.org>
50799         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50800         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50801         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50802         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50803         (acl, aclsort): New declarations.
50804         (aclv_nontrivial): New declaration.
50805         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50806         (file_has_acl): Read also the second kind of HP-UX ACLs.
50807         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50808         kind of HP-UX ACLs if the first kind fails.
50809         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50810         second kind of HP-UX ACLs.
50811         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50812         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50813         agree.
50814         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50815         hpuxjfs.
50816         Handle hpuxjfs.
50817         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50818         hpuxjfs.
50819         Handle hpuxjfs.
50820         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50821         (func_test_same_acls): Use both lsacl and getacl.
50822         Handle hpuxjfs.
50823         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50824         (func_test_same_acls): Use both lsacl and getacl.
50825         Handle hpuxjfs.
50827 2011-06-12  Bruno Haible  <bruno@clisp.org>
50829         acl: Complete the 2010-08-10 fix.
50830         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50831         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50832         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50833         explicitly.
50834         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50835         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50837 2011-06-12  Bruno Haible  <bruno@clisp.org>
50839         spawn-pipe tests: Comments.
50840         * tests/test-spawn-pipe-child.c (main): Update comment.
50841         Reported by James Youngman <jay@gnu.org>.
50843 2011-06-11  James Youngman  <jay@gnu.org>
50845         New module 'stat-size'.
50846         * modules/stat-size: New module.  Provides macros for accessing
50847         file size information in instances of struct stat.  Depends on the
50848         fileblocks module because it calls st_blocks.
50849         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50850         * doc/gnulib.texi: Include stat-size.texi.
50851         * doc/stat-size.texi: Documentation for this module.
50852         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50853         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50854         AC_STRUCT_ST_BLOCKS.
50856 2011-06-09  Bruno Haible  <bruno@clisp.org>
50858         thread: Support pthreads-win32.
50859         * lib/glthread/thread.h (gl_thread_self): Define differently on
50860         pthreads-win32.
50861         (gl_null_thread): New declaration.
50862         (gl_thread_self_pointer): New macro.
50863         * lib/glthread/thread.c (gl_null_thread): New constant.
50864         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50865         gl_thread_self.
50866         * tests/test-tls.c: Likewise.
50867         Suggested by Paul Eggert. Reported by Eric Blake.
50869 2011-06-09  Bruno Haible  <bruno@clisp.org>
50871         thread: Fix confusion between NULL and 0.
50872         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50873         Reported by Paul Eggert.
50875 2011-06-09  Bruno Haible  <bruno@clisp.org>
50877         spawn-pipe tests: Avoid test failure on HP-UX 11.
50878         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50879         is closed.
50881 2011-06-09  Bruno Haible  <bruno@clisp.org>
50883         acl tests: Fix compilation error on HP-UX 11.
50884         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50886 2011-06-09  Bruno Haible  <bruno@clisp.org>
50888         rmdir: Avoid test failure on HP-UX 10.20.
50889         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50890         EEXIST.
50892 2011-06-08  Eric Blake  <eblake@redhat.com>
50894         perror: fix test on mingw
50895         * modules/perror-tests (Depends-on): Add dup2.
50897         strerror_r-posix: fix on MacOS
50898         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50900         logic bug.
50901         * lib/strerror_r.c (strerror_r): Fix the bug.
50902         * lib/strerror.c (strerror): Likewise.
50903         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50904         problem.
50905         * doc/posix-functions/strerror.texi (strerror): Likewise.
50906         * doc/posix-functions/perror.texi (perror): Likewise.
50907         * tests/test-strerror.c (main): Enhance test.
50908         * tests/test-strerror_r.c (main): Likewise.
50910 2011-06-08  Bruno Haible  <bruno@clisp.org>
50912         gnulib-tool: Better isolation between different gnulib-tool invocations.
50913         * gnulib-tool: New option --witness-c-macro.
50914         (witness_c_macro): New variable.
50915         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50916         AM_CPPFLAGS define it as a C macro.
50917         (func_emit_tests_Makefile_am): Likewise.
50918         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50919         read it from there.
50920         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50921         m4_define, not AC_DEFUN.
50922         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50923         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50924         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50925         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50926         s|...|...|, to substitute the values of the GNULIB_* module indicator
50927         variables.
50928         * modules/dirent (Makefile.am): Likewise.
50929         * modules/fcntl-h (Makefile.am): Likewise.
50930         * modules/iconv-h (Makefile.am): Likewise.
50931         * modules/langinfo (Makefile.am): Likewise.
50932         * modules/locale (Makefile.am): Likewise.
50933         * modules/math (Makefile.am): Likewise.
50934         * modules/netdb (Makefile.am): Likewise.
50935         * modules/poll-h (Makefile.am): Likewise.
50936         * modules/pty (Makefile.am): Likewise.
50937         * modules/search (Makefile.am): Likewise.
50938         * modules/signal (Makefile.am): Likewise.
50939         * modules/spawn (Makefile.am): Likewise.
50940         * modules/stdio (Makefile.am): Likewise.
50941         * modules/stdlib (Makefile.am): Likewise.
50942         * modules/string (Makefile.am): Likewise.
50943         * modules/sys_ioctl (Makefile.am): Likewise.
50944         * modules/sys_select (Makefile.am): Likewise.
50945         * modules/sys_socket (Makefile.am): Likewise.
50946         * modules/sys_stat (Makefile.am): Likewise.
50947         * modules/sys_times (Makefile.am): Likewise.
50948         * modules/sys_utsname (Makefile.am): Likewise.
50949         * modules/sys_wait (Makefile.am): Likewise.
50950         * modules/termios (Makefile.am): Likewise.
50951         * modules/time (Makefile.am): Likewise.
50952         * modules/unistd (Makefile.am): Likewise.
50953         * modules/wchar (Makefile.am): Likewise.
50955 2011-06-08  Eric Blake  <eblake@redhat.com>
50957         strerror: simplify replacement
50958         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50959         * modules/strerror (configure.ac): No prereqs needed here...
50960         * modules/strerror-override (configure.ac): ...but this needs it.
50961         (Files): Add file for needed prereq macro.
50963 2011-06-08  Bruno Haible  <bruno@clisp.org>
50965         strerror_r-posix: Tweaks.
50966         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50967         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50968         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50969         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50970         (gl_FUNC_STRERROR_R): ... to here.
50971         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50973 2011-06-07  Eric Blake  <eblake@redhat.com>
50975         perror: document fixed bugs
50976         * doc/posix-functions/perror.texi (perror): Document recent
50977         patches.
50979 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50981         stat-time: get_stat_birthtime failure is better-defined
50982         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50983         return a timestamp whose tv_sec and tv_nsec values are both -1.
50984         Previously, the spec said only that the tv_nsec value was negative.
50985         This upward-compatible change simplifies GNU tar a bit.
50987 2011-06-07  Eric Blake  <eblake@redhat.com>
50989         strerror_r-posix: work around cygwin 1.7.9
50990         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50991         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50992         bug without replacing strerror_r.
50993         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50994         strerror_r is buggy, but without requiring strerror_r compilation.
50995         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50997         test-perror: relax test to ignore cygwin bug
50998         * tests/test-perror2.c (main): Relax test on requiring detection
50999         of stream errors, and use unbuffered stream.
51000         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51001         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51002         * doc/posix-functions/fputc.texi (fputc): Likewise.
51003         * doc/posix-functions/fputs.texi (fputs): Likewise.
51004         * doc/posix-functions/fputws.texi (fputws): Likewise.
51005         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51006         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51007         * doc/posix-functions/getopt.texi (getopt): Likewise.
51008         * doc/posix-functions/perror.texi (perror): Likewise.
51009         * doc/posix-functions/printf.texi (printf): Likewise.
51010         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51011         * doc/posix-functions/psignal.texi (psignal): Likewise.
51012         * doc/posix-functions/putc.texi (putc): Likewise.
51013         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51014         Likewise.
51015         * doc/posix-functions/putchar.texi (putchar): Likewise.
51016         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51017         Likewise.
51018         * doc/posix-functions/puts.texi (puts): Likewise.
51019         * doc/posix-functions/putwc.texi (putwc): Likewise.
51020         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51021         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51022         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51023         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51024         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51025         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51026         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51027         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51029 2011-05-22  Bruno Haible  <bruno@clisp.org>
51031         strerror: Move AC_LIBOBJ invocations to module description.
51032         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51033         gl_PREREQ_STRERROR invocations from here...
51034         * modules/strerror (configure.ac): ... to here.
51036 2011-05-21  Bruno Haible  <bruno@clisp.org>
51038         perror: Use common idiom.
51039         * modules/perror (configure.ac): Reorder statements.
51041 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51043         tests: fix usage message in 'mktempd_'
51044         * tests/init.sh (mktempd_): In the usage message, use literal
51045         'mktempd_', not '$ME' (which is even undefined), as the name of
51046         the subroutine.
51048 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51050         tests init: new function 'fatal_', for hard errors
51051         Before this patch, the only way offered by tests/init.sh to
51052         properly signal a hard error was the `framework_failure_'
51053         function.  But the error message issued by that function,
51054         as its name would suggest, refers to a set-up failure in the
51055         testsuite, while hard errors can obviously also be due to
51056         other reasons.  The best way to fix this inconsistency is to
51057         introduce a new function with a more general error message.
51058         * tests/init.sh (fatal_): New function.
51060 2011-06-06  Eric Blake  <eblake@redhat.com>
51062         canonicalize-lgpl: use common idiom
51063         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51064         over newer POSIX -Rf.
51065         Reported by Bruno Haible.
51067         canonicalize-lgpl: work around AIX realpath bug
51068         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51069         * doc/posix-functions/realpath.texi (realpath): Document it.
51070         Reported by Bruno Haible.
51072         strerror: work around FreeBSD bug
51073         * lib/strerror.c (strerror): Special case 0.
51074         Reported by Bruno Haible.
51076         strerror-override: avoid bloating errno module
51077         * modules/errno (Files, configure.ac): Move replacement strings...
51078         * modules/strerror-override: ...to new module.
51079         * modules/strerror (Depends-on): Add strerror-override.
51080         * modules/strerror_r-posix (Depends-on): Likewise.
51081         * MODULES.html.sh: Document new module.
51082         Reported by Bruno Haible.
51084 2011-06-06  Bruno Haible  <bruno@clisp.org>
51086         spawn-pipe tests: Rename program.
51087         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51088         * tests/test-spawn-pipe-child.c: Update comment.
51089         * tests/test-spawn-pipe.sh: Update.
51090         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51092         spawn-pipe tests: Link the child program only against libc.
51093         * tests/test-spawn-pipe-child.c: New file, extracted from
51094         tests/test-spawn-pipe.c.
51095         (main): Expect only one argument.
51096         (is_open): New function, copied from tests/test-pipe.c.
51097         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51098         (child_main): Remove function.
51099         (test_pipe): Pass only one argument to the child program.
51100         (main): Remove child process code. Expect the child program's name as
51101         first argument.
51102         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51103         argument.
51104         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51105         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51106         test-spawn-pipe-child against no libraries.
51108 2011-06-06  Bruno Haible  <bruno@clisp.org>
51110         careadlinkat: Avoid mismatch between ssize_t and int.
51111         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51112         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51114 2011-06-06  Jim Meyering  <meyering@redhat.com>
51116         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51117         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51118         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51120 2011-06-05  Bruno Haible  <bruno@clisp.org>
51122         ansi-c++-opt: Interoperability with libtool.
51123         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51124         set the variable to "no", not to ":".
51125         * NEWS: Mention the change.
51127 2011-06-05  Bruno Haible  <bruno@clisp.org>
51129         acl: Fix test failure on AIX 7.
51130         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51131         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51133 2011-06-05  Bruno Haible  <bruno@clisp.org>
51135         pipe-filter-ii: Fix test failure on AIX and IRIX.
51136         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51137         with EAGAIN, retry with a smaller buffer size.
51139 2011-06-05  Bruno Haible  <bruno@clisp.org>
51141         localename: Fix link dependencies.
51142         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51143         * modules/localename-tests (Makefile.am): Link test-localename with
51144         $(LIBTHREAD).
51146 2011-06-05  Bruno Haible  <bruno@clisp.org>
51148         error: Avoid gcc warning.
51149         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51151 2011-06-05  Bruno Haible  <bruno@clisp.org>
51153         unsetenv: Avoid gcc warning.
51154         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51156 2011-06-05  Bruno Haible  <bruno@clisp.org>
51158         setenv: Avoid gcc warning.
51159         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51161 2011-06-05  Bruno Haible  <bruno@clisp.org>
51163         sys_select: Ensure memset is declared also on AIX 7.
51164         * lib/sys_select.in.h: Include <string.h> also on AIX.
51165         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51166         self-contained also on AIX 7.1.
51168 2011-06-04  Jim Meyering  <meyering@redhat.com>
51170         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51171         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51172         function name, "error".
51173         (_gl_translatable_diag_func_re): New configurable variable.
51175 2011-06-04  Bruno Haible  <bruno@clisp.org>
51177         getopt: Avoid gcc warning.
51178         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51180 2011-06-04  Bruno Haible  <bruno@clisp.org>
51182         strerror_r: Fix comments.
51183         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51184         commit.
51186 2011-06-04  Bruno Haible  <bruno@clisp.org>
51188         perror: Fix compilation error.
51189         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51190         Undefine fprintf, not sprintf.
51191         * modules/perror (Depends-on): Remove intprops, verify.
51193 2011-06-04  Bruno Haible  <bruno@clisp.org>
51195         setlocale: Enable replacement on Cygwin 1.5.
51196         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51197         Cygwin 1.5.x.
51198         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51199         LC_CTYPE category also exists on Cygwin 1.5.x.
51201 2011-06-04  Bruno Haible  <bruno@clisp.org>
51203         strerror-override: Don't disable symbol renamings.
51204         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51205         * lib/strerror-override.c: Include config.h.
51206         (strerror_override): Don't undefine.
51208 2011-06-03  Bruno Haible  <bruno@clisp.org>
51210         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51211         * lib/localename.h: Update copyright header.
51212         * lib/localename.c: Likewise.
51213         * lib/relocatable.h: Likewise.
51214         * lib/relocatable.c: Likewise.
51216 2011-06-02  Bruno Haible  <bruno@clisp.org>
51218         doc: Fix a module name.
51219         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51221 2011-06-02  Bruno Haible  <bruno@clisp.org>
51223         pipe2: Remove dependency on 'nonblocking' module.
51224         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51225         O_NONBLOCK is defined by gnulib.
51226         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51227         is zero.
51228         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51229         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51230         defined by gnulib.
51231         (get_nonblocking_flag): New function.
51232         (main): Test O_NONBLOCK flag only if it is nonzero.
51233         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51235 2011-06-03  Jim Meyering  <meyering@redhat.com>
51237         maint: three new prohibit-header-without-use rules
51238         Prohibit use of cloexec.h, posixver.h, same.h without use.
51239         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51240         (sc_prohibit_posixver_without_use): Likewise.
51241         (sc_prohibit_same_without_use): Likewise.
51243 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51245         allocator: 'die' routine is now given requested size
51246         * lib/allocator.h (struct allocator.die): New size arg.
51247         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51248         If the actual problem is an ssize_t limitation, not a size_t or
51249         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51251 2011-06-01  Eric Blake  <eblake@redhat.com>
51253         strerror: drop strerror_r dependency
51254         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51255         * lib/strerror-override.c (strerror_override): ...to new file.
51256         * lib/strerror-override.h: Add prototype.
51257         * lib/strerror-impl.h: Delete.
51258         * lib/strerror.c (strerror): New implementation.
51259         * modules/errno (Files): Add new files.
51260         (configure.ac): Compile new file as appropriate.
51261         * modules/strerror (Files): Drop unused file.
51262         (Depends-on): Drop strerror_r-posix.
51263         * MODULES.html.sh: Document strerror_r-posix.
51264         Requested by Sam Steingold.
51266         perror: call strerror_r directly
51267         * modules/perror (Files): Drop strerror-impl.h.
51268         * lib/perror.c (perror): Use our own stack buffer, rather than
51269         calling a wrapper that uses static storage.
51270         * doc/posix-functions/perror.texi (perror): Document a limitation
51271         of our replacement.
51273         strerror_r: fix includes for FreeBSD
51274         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51275         since we use abort on some platforms.
51276         Reported by Matthias Bolte.
51278 2011-05-31  Bruno Haible  <bruno@clisp.org>
51280         Fix link errors in tests: openat-die uses gettext-h.
51281         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51282         against $(LIBINTL).
51283         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51284         against $(LIBINTL).
51285         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51286         $(LIBINTL).
51287         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51288         against $(LIBINTL).
51289         * modules/linkat-tests (Makefile.am): Link test-linkat against
51290         $(LIBINTL).
51291         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51292         $(LIBINTL).
51293         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51294         against $(LIBINTL).
51295         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51296         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51297         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51298         $(LIBINTL).
51299         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51300         $(LIBINTL).
51301         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51302         $(LIBINTL).
51303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51305 2011-05-31  Bruno Haible  <bruno@clisp.org>
51307         Fix link errors in tests: wait-process uses gettext-h.
51308         * modules/nonblocking-pipe-tests (Makefile.am): Set
51309         test_nonblocking_pipe_main_LDADD.
51310         * modules/nonblocking-socket-tests (Makefile.am): Link
51311         test-nonblocking-socket-main against $(LIBINTL).
51312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51314 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51316         assert-h: work around 'verify' incompatibility
51317         * lib/verify.h: Use @...@ directives, not ifdef.
51318         * modules/assert-h (assert.h): Implement the directives.
51319         (assert.h): Substitute the symbol-prefix more consistently.
51321 2011-05-29  Jim Meyering  <meyering@redhat.com>
51323         trim: remove three superfluous assignments
51324         * lib/trim.c (trim2): Remove three superfluous assignments
51325         and correct brace positioning.
51327 2011-05-29  Bruno Haible  <bruno@clisp.org>
51329         wctype-h: Avoid namespace pollution on Solaris 2.6.
51330         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51331         identifiers.
51332         * doc/posix-headers/wctype.texi: Mention the problem.
51333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51335 2011-05-28  Jim Meyering  <meyering@redhat.com>
51337         parse-datetime.y: accommodate -Wstrict-overflow
51338         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51339         placate -Wstrict-overflow.
51341         trim: avoid a warning from -O2 -Wstrict-overflow
51342         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51344 2011-05-29  Bruno Haible  <bruno@clisp.org>
51346         gnulib-tool: Fix bug in yesterday's commit.
51347         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51348         twice.
51350 2011-05-29  Bruno Haible  <bruno@clisp.org>
51352         Allow multiple gnulib generated include files to be combined.
51353         * gnulib-tool (func_compute_include_guard_prefix): New function.
51354         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51355         ${gl_include_guard_prefix} references.
51356         (func_import, func_create_testdir): Invoke
51357         func_compute_include_guard_prefix.
51358         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51359         * lib/ctype.in.h: Likewise.
51360         * lib/dirent.in.h: Likewise.
51361         * lib/errno.in.h: Likewise.
51362         * lib/fcntl.in.h: Likewise.
51363         * lib/float.in.h: Likewise.
51364         * lib/getopt.in.h: Likewise.
51365         * lib/iconv.in.h: Likewise.
51366         * lib/langinfo.in.h: Likewise.
51367         * lib/locale.in.h: Likewise.
51368         * lib/math.in.h: Likewise.
51369         * lib/netdb.in.h: Likewise.
51370         * lib/netinet_in.in.h: Likewise.
51371         * lib/poll.in.h: Likewise.
51372         * lib/pthread.in.h: Likewise.
51373         * lib/pty.in.h: Likewise.
51374         * lib/sched.in.h: Likewise.
51375         * lib/se-selinux.in.h: Likewise.
51376         * lib/search.in.h: Likewise.
51377         * lib/signal.in.h: Likewise.
51378         * lib/spawn.in.h: Likewise.
51379         * lib/stdarg.in.h: Likewise.
51380         * lib/stddef.in.h: Likewise.
51381         * lib/stdint.in.h: Likewise.
51382         * lib/stdio.in.h: Likewise.
51383         * lib/stdlib.in.h: Likewise.
51384         * lib/string.in.h: Likewise.
51385         * lib/strings.in.h: Likewise.
51386         * lib/sys_file.in.h: Likewise.
51387         * lib/sys_ioctl.in.h: Likewise.
51388         * lib/sys_select.in.h: Likewise.
51389         * lib/sys_socket.in.h: Likewise.
51390         * lib/sys_stat.in.h: Likewise.
51391         * lib/sys_time.in.h: Likewise.
51392         * lib/sys_times.in.h: Likewise.
51393         * lib/sys_uio.in.h: Likewise.
51394         * lib/sys_utsname.in.h: Likewise.
51395         * lib/sys_wait.in.h: Likewise.
51396         * lib/sysexits.in.h: Likewise.
51397         * lib/termios.in.h: Likewise.
51398         * lib/time.in.h: Likewise.
51399         * lib/unistd.in.h: Likewise.
51400         * lib/wchar.in.h: Likewise.
51401         * lib/wctype.in.h: Likewise.
51402         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51403         * modules/ctype (Makefile.am): Likewise.
51404         * modules/dirent (Makefile.am): Likewise.
51405         * modules/errno (Makefile.am): Likewise.
51406         * modules/fcntl-h (Makefile.am): Likewise.
51407         * modules/float (Makefile.am): Likewise.
51408         * modules/getopt-posix (Makefile.am): Likewise.
51409         * modules/iconv-h (Makefile.am): Likewise.
51410         * modules/langinfo (Makefile.am): Likewise.
51411         * modules/locale (Makefile.am): Likewise.
51412         * modules/math (Makefile.am): Likewise.
51413         * modules/netdb (Makefile.am): Likewise.
51414         * modules/netinet_in (Makefile.am): Likewise.
51415         * modules/poll-h (Makefile.am): Likewise.
51416         * modules/pthread (Makefile.am): Likewise.
51417         * modules/pty (Makefile.am): Likewise.
51418         * modules/sched (Makefile.am): Likewise.
51419         * modules/search (Makefile.am): Likewise.
51420         * modules/selinux-h (Makefile.am): Likewise.
51421         * modules/signal (Makefile.am): Likewise.
51422         * modules/spawn (Makefile.am): Likewise.
51423         * modules/stdarg (Makefile.am): Likewise.
51424         * modules/stddef (Makefile.am): Likewise.
51425         * modules/stdint (Makefile.am): Likewise.
51426         * modules/stdio (Makefile.am): Likewise.
51427         * modules/stdlib (Makefile.am): Likewise.
51428         * modules/string (Makefile.am): Likewise.
51429         * modules/strings (Makefile.am): Likewise.
51430         * modules/sys_file (Makefile.am): Likewise.
51431         * modules/sys_ioctl (Makefile.am): Likewise.
51432         * modules/sys_select (Makefile.am): Likewise.
51433         * modules/sys_socket (Makefile.am): Likewise.
51434         * modules/sys_stat (Makefile.am): Likewise.
51435         * modules/sys_time (Makefile.am): Likewise.
51436         * modules/sys_times (Makefile.am): Likewise.
51437         * modules/sys_uio (Makefile.am): Likewise.
51438         * modules/sys_utsname (Makefile.am): Likewise.
51439         * modules/sys_wait (Makefile.am): Likewise.
51440         * modules/sysexits (Makefile.am): Likewise.
51441         * modules/termios (Makefile.am): Likewise.
51442         * modules/time (Makefile.am): Likewise.
51443         * modules/unistd (Makefile.am): Likewise.
51444         * modules/wchar (Makefile.am): Likewise.
51445         * modules/wctype-h (Makefile.am): Likewise.
51446         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51448 2011-05-29  Bruno Haible  <bruno@clisp.org>
51450         assert-h: Allow multiple gnulib generated replacements to coexist.
51451         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51453 2011-05-29  Bruno Haible  <bruno@clisp.org>
51455         argp: Allow coexistence with strerror_r-posix module.
51456         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51457         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51458         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51459         not the glibc signature.
51461 2011-05-28  Bruno Haible  <bruno@clisp.org>
51463         gnulib-tool: Alternative structure of testdirs, similar to --import.
51464         * gnulib-tool: New option --single-configure.
51465         (func_usage): Document it.
51466         (single_configure): New variable.
51467         (func_modules_transitive_closure_separately,
51468         func_modules_transitive_closure_separately,
51469         func_determine_use_libtests, func_modules_add_dummy_separately,
51470         func_modules_to_filelist_separately): New functions, extracted from
51471         func_import.
51472         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51473         (func_import): Use the new functions.
51474         (func_create_testdir): Set final_modules. Handle $single_configure =
51475         true case.
51477 2011-05-28  Bruno Haible  <bruno@clisp.org>
51479         getloadavg: Remove an unreliable safety check.
51480         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51481         getloadavg.c is in place.
51482         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51483         Reported by Sam Steingold <sds@gnu.org>.
51485 2011-05-28  Bruno Haible  <bruno@clisp.org>
51487         doc: Cleanup yet another file produced by texinfo.tex.
51488         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51490 2011-05-28  Bruno Haible  <bruno@clisp.org>
51492         Finish the conditional dependencies mechanism.
51493         * gnulib-tool: New option --no-conditional-dependencies.
51494         (func_usage): Document it. Don't mark --conditional-dependencies as
51495         experimental.
51496         (cond_dependencies): The possible values can now be true, false, empty.
51497         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51498         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51499         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51501 2011-05-28  Bruno Haible  <bruno@clisp.org>
51503         doc: Use a recent texinfo.tex.
51504         * doc/Makefile (tex_opts): New variable.
51505         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51507 2011-05-28  Jim Meyering  <meyering@redhat.com>
51509         intprops.h: adjust comment to match code change
51510         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51511         only once, it *may* have side effects.  Also fix an unrelated typo.
51512         (_GL_INT_SIGNED): Likewise.
51514 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51516         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51518 2011-05-26  Bruno Haible  <bruno@clisp.org>
51520         mbsrchr: Avoid collision with system function on Interix.
51521         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51522         Reported by Markus Duft <mduft@gentoo.org>.
51524 2011-05-15  James Youngman  <jay@gnu.org>
51526         getopt: for ambiguous options, enumerate the possibilities.
51527         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51528         the ambiguous options when an ambiguous prefix is given. This was
51529         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51530         glibc change was
51531         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51533 2011-05-25  Eric Blake  <eblake@redhat.com>
51535         getcwd: work around mingw bug
51536         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51537         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51538         Reported by Matthias Bolte.
51540 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51542         test-intprops: disable -Wtype-limits diagnostics
51543         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51544         diagnostics.  Otherwise, the integer overflow macros generate many
51545         diagnostics.  Reported by Jim Meyering in
51546         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51548         intprops: shorten, to pacify gcc -Woverlength-strings
51549         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51550         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51551         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51552         likely to run afoul of C compiler limits for string constant lengths.
51553         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51555 2011-05-24  Eric Blake  <eblake@redhat.com>
51557         docs: document recently fixed glibc printf bug
51558         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51559         * doc/posix-functions/printf.texi (printf): Likewise.
51560         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51561         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51563         closein-tests: convert to init.sh
51564         * modules/closein-tests (Files): Add init.sh
51565         * tests/test-closein.sh Use it.
51567         yesno-tests: convert to init.sh
51568         * modules/yesno-tests (Files): Add init.sh.
51569         * tests/test-yesno.sh: Use it.
51571         atexit-tests: ensure reliable exit status
51572         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51573         Reported by Bruno Haible.
51575 2011-05-24  Bruno Haible  <bruno@clisp.org>
51577         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51578         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51579         gl_PREREQ_STRERROR_R invocations from here...
51580         * modules/strerror_r-posix (configure.ac): ... to here.
51582 2011-05-24  Eric Blake  <eblake@redhat.com>
51584         strerror_r: fix missing header
51585         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51587         strerror_r: fix AIX test failures
51588         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51589         ERANGE failure.
51591         strerror_r: fix Solaris test failures
51592         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51593         failures.
51594         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51596         strerror_r: enforce POSIX recommendations
51597         * lib/strerror_r.c (safe_copy): New helper method.
51598         (strerror_r): Guarantee a non-empty string.
51599         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51600         recent POSIX rulings and to match our strerror guarantees.
51601         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51603 2011-05-24  Jim Meyering  <meyering@redhat.com>
51605         test-perror2.c: avoid warning about unused variable
51606         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51608 2011-05-24  Eric Blake  <eblake@redhat.com>
51610         perror: avoid spurious test failure on HP-UX
51611         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51613         tests: fix logic bug in init.sh
51614         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51615         shell.
51617 2011-05-24  Jim Meyering  <meyering@redhat.com>
51619         utimensat: do not reference an out-of-scope buffer
51620         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51621         declared in an inner scope, yet "times" would be dereferenced outside
51622         the scope in which "ts" was valid.
51623         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51624         of ts[2] "out/up", so that the use of aliased "times" (via
51625         "times = ts;") does not end up referencing an out-of-scope "ts"
51627         opendir-safer.c: don't clobber errno; don't close negative FD
51628         * lib/opendir-safer.c (opendir_safer):
51629         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51630         file descriptor, and more importantly, don't clobber the
51631         offending errno value with EINVAL.  Before, upon failure
51632         of dup_safer, we would pass the negative file descriptor to
51633         fdopendir, which would clobber errno.
51635 2011-05-23  Bruno Haible  <bruno@clisp.org>
51637         idcache: Fix module description.
51638         * modules/idcache (Include): Set to "idcache.h".
51640 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51642         gnulib-tool: fix portability problem with MacOS sed
51643         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51644         before the "}".  Problem reported by Leo in
51645         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51646         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51647         sed_extract_condition1, sed_extract_condition2.
51649 2011-05-23  Bruno Haible  <bruno@clisp.org>
51651         hash: Simplify autoconf macro.
51652         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51654 2011-05-23  Bruno Haible  <bruno@clisp.org>
51656         getugroups: Fix module description.
51657         * modules/getugroups (Include): Set to "getugroups.h".
51659 2011-05-23  Bruno Haible  <bruno@clisp.org>
51661         linkat: Simplify autoconf macro.
51662         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51664 2011-05-23  Bruno Haible  <bruno@clisp.org>
51665             Eric Blake  <eblake@redhat.com>
51667         linkat, renameat: Update dependencies.
51668         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51669         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51670         symlinkat.
51672 2011-05-23  Jim Meyering  <meyering@redhat.com>
51674         maint.mk: more tight_scope improvements
51675         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51676         (_gl_TS_headers): Define only in if-0'd block.
51677         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51678         sometimes we must *not* use it.  Adjust uses accordingly.
51679         (sc_tight_scope): Use much simpler grep-based test to determine
51680         whether we skip this rule.
51682         maint.mk: generalize/improve the tight-scope rule
51683         * top/maint.mk: Emit a warning when the test is skipped.
51684         (_gl_TS_dir): Add $(srcdir)/ prefix.
51685         (_gl_TS_function_match): Simplify, rather than trying
51686         to enumerate common types.  Otherwise, it would fail to match an
51687         "extern unsigned char const *" declaration in idutils.
51688         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51689         a way to support use of that type of macro.
51690         (_gl_TS_var_match): Simplify regexp.
51691         (_gl_TS_obj_files): New configurable variable.
51692         (_gl_TS_headers): Likewise.
51694 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51696         verify: fix bug when gnulib <assert.h> is also included
51697         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51698         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51699         Perhaps there's a better way, but this fixes the immediate problem.
51700         Problem reported by Bruno Haible in
51701         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51703 2011-05-22  Bruno Haible  <bruno@clisp.org>
51705         xgetcwd: Simplify autoconf macro.
51706         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51708 2011-05-22  Bruno Haible  <bruno@clisp.org>
51710         New module 'mktime-internal'.
51711         * modules/mktime-internal: New file.
51712         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51713         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51714         mktime_internal as a C macro if libc has __mktime_internal.
51715         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51716         conditions.
51717         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51719 2011-05-22  Bruno Haible  <bruno@clisp.org>
51721         timegm: Correct mktime replacement statements.
51722         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51723         defining mktime as a C macro. This completes a 2009-07-28 commit.
51725 2011-05-22  Bruno Haible  <bruno@clisp.org>
51727         timegm: Simplify autoconf macro.
51728         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51730 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51732         clock-time: change to LGPLv2+.
51733         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51734         BSD-like but we have no mark for that; this is good enough for now.
51736 2011-05-21  Bruno Haible  <bruno@clisp.org>
51738         strerror_r: Fix comments.
51739         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51741 2011-05-21  Bruno Haible  <bruno@clisp.org>
51743         relocatable-prog-wrapper: Fix possible link error.
51744         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51745         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51746         (gl_FUNC_SETENV): ... to here.
51747         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51748         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51750 2011-05-21  Bruno Haible  <bruno@clisp.org>
51752         relocatable-prog-wrapper: Assume strerror() exists.
51753         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51754         m4/strerror.m4.
51755         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51756         * lib/relocwrapper.c: Remove mention of strerror module.
51757         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51758         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51759         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51760         C macro.
51762 2011-05-21  Bruno Haible  <bruno@clisp.org>
51764         select: Simplify replacement idiom.
51765         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51766         Win32 platforms.
51767         * lib/sys_select.in.h (select): Simplify accordingly.
51768         * modules/select (Depends-on): Likewise.
51770 2011-05-21  Bruno Haible  <bruno@clisp.org>
51772         mkdir-p: Simplify autoconf macro.
51773         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51774         gl_FUNC_LCHOWN.
51776 2011-05-21  Eric Blake  <eblake@redhat.com>
51778         strerror_r: avoid clobbering strerror on cygwin
51779         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51780         fall back instead to sys_errlist.
51781         * modules/strerror (configure.ac): Add witness.
51782         * tests/test-strerror_r.c (main): Enhance test.
51783         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51784         * tests/test-perror2.c (main): Free memory before exit.
51786 2011-05-21  Bruno Haible  <bruno@clisp.org>
51788         mkdtemp: Use gnulib naming conventions.
51789         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51790         * modules/mkdtemp (configure.ac): Update.
51792 2011-05-20  Eric Blake  <eblake@redhat.com>
51794         strerror_r: avoid corrupting errno on Solaris
51795         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51796         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51798         strerror_r: avoid compiler warning
51799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51801         strerror_r: simplify AIX code
51802         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51804         test-perror: avoid spurious failure on FreeBSD
51805         * modules/perror-tests (Depends-on): Add strerror, now that
51806         strerror_r no longer pulls it in.
51808 2011-05-20  Bruno Haible  <bruno@clisp.org>
51810         strerror_r-posix: Remove unused dependencies.
51811         * modules/strerror_r-posix (Depends-on): Remove strerror.
51812         Reported by Eric Blake.
51814 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51816         intprops: remove assumption about A|B representation
51817         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51818         is a valid integer if both A and B are.  Although this is true for
51819         all known practical hosts, the C standard doesn't guarantee it,
51820         and the code need not assume it.  Also, this change may work around
51821         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51822         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51824 2011-05-20  Eric Blake  <eblake@redhat.com>
51826         perror: work around FreeBSD bug
51827         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51828         is broken.  Move AC_LIBOBJ...
51829         * modules/perror (configure.ac): Here.
51830         * doc/posix-functions/perror.texi (perror): Document this.
51831         * tests/test-perror2.c (main): Enhance test.
51833         test-perror: check for strerror interactions
51834         * tests/macros.h (STREQ): Add macro.
51835         * modules/perror-tests (Files): Add second test.
51836         * tests/test-perror2.c (main): New file.
51837         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51839         test-perror: rewrite to use init script
51840         * modules/perror-tests (Files): Add init.sh.
51841         * tests/test-perror.sh: Use temporary directory.
51843 2011-05-20  Jim Meyering  <meyering@redhat.com>
51845         maint: replace misused "a" with "an"
51846         * doc/intprops.texi: "a integer"
51847         * doc/regex.texi: "a explanation"
51848         * lib/alignof.h: "a object"
51849         * lib/argmatch.h: "a explanation"
51850         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51851         * lib/stdint.in.h: "a integer"
51852         * lib/userspec.c: "a owner"
51853         * doc/gnulib.texi: Fix "a idea", and reword.
51855 2011-05-19  Jim Meyering  <meyering@redhat.com>
51857         maint: correct misuse of "a" and "an"
51858         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51859         * lib/argp-help.c: "an docum...": s/an/a/
51860         * lib/argp-parse.c: "An vector": s/An/A/
51861         * lib/execute.c: "an native": s/an/a/
51862         * lib/spawn-pipe.c: Likewise.
51863         * lib/gc.h: "an Gc_rc": s/an/a/
51864         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51865         * lib/fts.c: "an stat.st_dev": s/an/a/
51867 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51869         intprops-tests: work around HP-UX 11.23 cc bug with constants
51870         * tests/test-intprops.c (VERIFY): New macro.
51871         (main): Use it, instead of verify, to work around the compiler bug; see
51872         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51874         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51875         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51876         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51877         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51878         (_GL_REMAINDER_OVERFLOW): Use it.
51880         intprops-tests: revert unsigned part of previous change
51881         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51882         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51883         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51886 2011-05-19  Bruno Haible  <bruno@clisp.org>
51888         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51889         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51890         strerror_r() returned without filling the buffer.
51891         Reported by Eric Blake.
51893 2011-05-19  Eric Blake  <eblake@redhat.com>
51895         strerror_r: guarantee unchanged errno
51896         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51897         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51898         failure.
51899         * tests/test-strerror_r.c (main): Enhance test.
51901 2011-05-19  Bruno Haible  <bruno@clisp.org>
51903         strerror_r: Reorder #if blocks.
51904         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51905         for consistency with the previous commit.
51907 2011-05-19  Bruno Haible  <bruno@clisp.org>
51909         perror: Avoid clobbering the strerror buffer when possible.
51910         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51911         * lib/strerror.c: Include it.
51912         * modules/strerror (Files): Add lib/strerror-impl.h.
51913         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51914         (my_strerror): New function, defined through lib/strerror-impl.h.
51915         (perror): Use it instead of strerror.
51916         * modules/perror (Files): Add lib/strerror-impl.h.
51917         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51919 2011-05-19  Eric Blake  <eblake@redhat.com>
51921         strerror_r: fix on newer cygwin
51922         * lib/strerror_r.c (strerror_r): Cygwin now has
51923         __xpg_strerror_r, use it.
51925 2011-05-19  Bruno Haible  <bruno@clisp.org>
51927         strerror_r: Avoid clobbering the strerror buffer when possible.
51928         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51929         (sys_nerr, sys_errlist): New declarations.
51930         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51931         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51932         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51934 2011-05-19  Bruno Haible  <bruno@clisp.org>
51936         strerror_r: Fix test failure on mingw.
51937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51938         EXTEND_STRERROR_R.
51939         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51940         macros from errno.in.h instead.
51942 2011-05-19  Eric Blake  <eblake@redhat.com>
51944         strerror: relax test for Solaris
51945         * tests/test-strerror.c (main): Permit Solaris behavior.
51946         * tests/test-strerror_r.c (main): Likewise.
51948         strerror: enforce POSIX ruling on strerror(0)
51949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51951         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51952         * doc/posix-functions/strerror.texi (strerror): Document it.
51953         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51954         * tests/test-strerror.c (main): Strengthen test.
51955         * tests/test-strerror_r.c (main): Likewise.
51957 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51959         intprop-tests: port to older and more-pedantic compilers
51960         * modules/intprops-tests (Files): Add tests/macros.h.
51961         * tests/test-intprops.c: Include macros.h.
51962         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51963         it's no longer documented to expand to an integer constant expression.
51964         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51965         argument is floating point, as it's no longer documented to expand
51966         to an integer constant expression in that case.
51967         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51968         compiler bugs reported by Bruno Haible.  See
51969         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51970         (U0, U1): New constants, to work around the same bugs.  Also,
51971         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51973         intprops: work around C compiler bugs
51974         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51975         bug in Sun C 5.11 2010/08/13 and other compilers; see
51976         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51978         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51979         * doc/intprops.texi (Integer Type Determination): Fix
51980         documentation for TYPE_IS_INTEGER: it returns an constant
51981         expression, not an integer constant expression.  Fix doc for
51982         TYPE_SIGNED: it returns an integer constant expression only if its
51983         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51984         hardly worth documented that way....)
51986 2011-05-18  Bruno Haible  <bruno@clisp.org>
51988         strerror_r: Avoid clobbering the strerror buffer when possible.
51989         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51990         Handle gnulib defined errno values here. When strerror() returns NULL
51991         or an empty string, return EINVAL.
51992         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51993         gnulib defined errno values here.
51994         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51996 2011-05-18  Eric Blake  <eblake@redhat.com>
51998         fnmatch: avoid compiler warning
51999         * lib/fnmatch_loop.c (FCT): Use correct type.
52000         Reported by Matthias Bolte.
52002 2011-05-13  Jim Meyering  <meyering@redhat.com>
52004         maint.mk: three new prohibit_<HDR>_without_use rules
52005         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52006         (sc_prohibit_stdio-safer_without_use): Likewise.
52007         (sc_prohibit_xfreopen_without_use): Likewise.
52009 2011-05-17  Jim Meyering  <meyering@redhat.com>
52011         announce-gen: fail if the NEWS delta is empty
52012         If there's nothing noteworthy in NEWS, then either you forgot
52013         or you shouldn't be releasing.
52014         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52016 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52018         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52019         reserved symbols starting with double underscore from the check.
52021 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52023         intprops: add doc
52024         * doc/intprops.texi: New file, documenting intprops.
52025         * doc/gnulib.texi (Particular Modules): Include it.
52027         verify: add doc to gnulib manual and fix example
52028         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52029         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52030         (Compile-time Assertions): Fix example so it can't overflow.
52032 2011-05-17  Jim Meyering  <meyering@redhat.com>
52034         warnings.m4: don't usurp save_CPPFLAGS variable name
52035         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52037         doc: fix typo
52038         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52040 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52041             Bruno Haible  <bruno@clisp.org>
52043         doc: Tweak recent change.
52044         * README (Portability guidelines): Tweak new text.
52045         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52046         Interix 6.1.
52048 2011-05-16  Eric Blake  <eblake@redhat.com>
52050         inttypes: avoid autoconf warning
52051         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52052         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52054 2011-05-16  Sam Steingold  <sds@gnu.org>
52055         and Eric Blake  <eblake@redhat.com>
52057         vc-list-files: accept multiple directory operands
52058         * build-aux/vc-list-files: Iterate over all remaining operands.
52060 2011-05-16  Bruno Haible  <bruno@clisp.org>
52062         Fix confusion regarding deprecated modules.
52063         * modules/calloc (Status, Notice): Mark module as deprecated, not
52064         obsolete.
52065         * modules/fnmatch-posix (Status, Notice): Likewise.
52066         * modules/getdate (Status, Notice): Likewise.
52067         * modules/getopt (Status, Notice): Likewise.
52068         * modules/malloc (Status, Notice): Likewise.
52069         * modules/pipe (Status, Notice): Likewise.
52070         * modules/realloc (Status, Notice): Likewise.
52071         * modules/rename-dest-slash (Status, Notice): Likewise.
52072         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52073         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52074         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52075         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52076         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52078 2011-05-16  Bruno Haible  <bruno@clisp.org>
52080         doc: List the target platforms.
52081         * doc/gnulib-intro.texi (Target Platforms): New section.
52082         * doc/gnulib.texi (Introduction): Update menu.
52083         * README (Portability guidelines): Refer to the new section. Update
52084         statement about oldest supported environment. Remove rationale why
52085         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52086         unportable C89 function.
52087         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52088         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52090 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52092         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52094 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52096         intprops-tests: new module
52097         * modules/intprops-tests, tests/test-intprops.c: New files.
52099         intprops: add safe, portable integer overflow checking
52100         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52101         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52102         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52103         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52104         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52105         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52106         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52107         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52108         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52109         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52110         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52112 2011-05-12  James Youngman  <jay@gnu.org>
52114         Add a test for glibc's Bugzilla bug #12378.
52115         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52116         doesn't allow the literal matching of a lone "[" (which is
52117         required by POSIX).
52118         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52120 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52122         Sync glibc change fixing Bugzilla bug #12378.
52123         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52124         beginning and fall back to matching as normal character if the
52125         string ends before the matching ']' is found.  This is what POSIX
52126         requires.
52128 2011-05-13  Eric Blake  <eblake@redhat.com>
52130         getcwd-lgpl: relax test for FreeBSD
52131         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52132         issue.
52133         * tests/test-getcwd-lgpl.c (main): Relax test.
52134         Reported by Matthias Bolte.
52136 2011-05-11  Eric Blake  <eblake@redhat.com>
52138         test-fflush: silence compiler warning
52139         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52141 2011-05-11  Bruno Haible  <bruno@clisp.org>
52143         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52144         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52145         * modules/canonicalize (Depends-on): Add 'nocrash'.
52146         * modules/canonicalize-lgpl (Depends-on): Likewise.
52147         * doc/posix-functions/realpath.texi: Update platforms list.
52148         Reported by Ryan Schmidt <ryandesign@macports.org>.
52150 2011-05-11  Bruno Haible  <bruno@clisp.org>
52152         group-member: Declare function in <unistd.h>.
52153         * lib/unistd.in.h (group_member): New declaration.
52154         * lib/group-member.h: Remove file.
52155         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52156         * tests/test-unistd-c++.cc: Check signature of group_member.
52157         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52158         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52159         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52160         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52161         HAVE_GROUP_MEMBER.
52162         * modules/group-member (Files): Remove lib/group-member.h.
52163         (Depends-on): Add unistd. Specify conditions.
52164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52165         (Include): Change to <unistd.h>.
52166         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52167         HAVE_GROUP_MEMBER.
52168         * NEWS: Mention the change.
52169         * lib/euidaccess.c: Don't include group-member.h.
52171 2011-05-11  Bruno Haible  <bruno@clisp.org>
52173         group-member: Document module.
52174         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52175         module.
52177 2011-05-11  Bruno Haible  <bruno@clisp.org>
52179         fclose: Fix mistake earlier today.
52180         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52182 2011-05-11  Eric Blake  <eblake@redhat.com>
52184         fclose: preserve fflush errors
52185         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52186         Reported by Jim Meyering.
52188         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52189         * build-aux/bootstrap (check_versions): When no specific version
52190         is required, merely check that the app produces an exit status
52191         that indicates its existence.
52193         maint.mk: drop redundant check
52194         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52195         the same but better.
52197 2011-05-11  Bruno Haible  <bruno@clisp.org>
52199         fclose: Fix possible link error.
52200         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52201         unregister_shadow_fd. Improve comments.
52202         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52203         Eric Blake.
52205 2011-05-11  Jim Meyering  <meyering@redhat.com>
52207         maint.mk: improve "can not" detection and generalize rule name
52208         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52209         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52210         Use the same technique as in sc_prohibit_doubled_word, so that
52211         we recognize "can not" also when the words are separated by a newline.
52212         Suggested by Eric Blake.
52213         (perl_filename_lineno_text_): Define.  Factored out of...
52214         (prohibit_doubled_word_): ...here.  Use the new definition.
52215         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52216         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52217         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52219 2011-05-10  Eric Blake  <eblake@redhat.com>
52221         fclose: avoid double close race when possible
52222         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52223         all but WINDOWS_SOCKETS.
52225 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52227         openat: correct new comment
52228         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52230 2011-05-10  Jim Meyering  <meyering@redhat.com>
52232         openat: add comments
52233         * lib/openat-proc.c (openat_proc_name): Add comments,
52234         mostly from Eric Blake.
52236 2011-05-09  Eric Blake  <eblake@redhat.com>
52238         openat: reduce syscalls in first probe of /proc
52239         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52240         be a directory.  Simplify the probe for .. bugs.
52241         * modules/openat (Depends-on): Drop same-inode.
52242         Reported by Bastien ROUCARIES.
52244 2011-05-09  Jim Meyering  <meyering@redhat.com>
52246         maint.mk: change semantics/name of tight_scope variables
52247         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52248         Rename variables to align with semantics that make them more useful.
52250         maint.mk: tweak new rule's name not to impinge
52251         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52252         (sc_tight_scope): Use new rule name rather than $@-0.
52254         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52255         * top/maint.mk (sc_tight_scope): New rule.
52256         (sc_tight_scope-0): New rule, ifdef'd out.
52257         (_gl_TS_dir): Default.
52258         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52259         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52261 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52263         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52264         Haible <bruno@clisp.org>.
52266 2011-05-08  Bruno Haible  <bruno@clisp.org>
52268         Comments.
52269         * m4/isnanf.m4: Add comment.
52270         * m4/isnanl.m4: Likewise.
52272 2011-05-08  Bruno Haible  <bruno@clisp.org>
52274         glob: Remove obsolete macro.
52275         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52277 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52279         intprops: Sun C 5.11 supports __typeof__
52280         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52281         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52282         which is new.
52283         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52285         intprops: switch to usual gnulib indenting and naming
52286         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52287         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52289         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52291 2011-05-08  Jim Meyering  <meyering@redhat.com>
52293         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52294         * top/maint.mk (release-prep): Use make's --no-print-directory
52295         option when generating the announcement.  This eliminates the
52296         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52297         generated announcement template.
52299 2011-05-08  Bruno Haible  <bruno@clisp.org>
52301         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52302         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52303         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52305 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52307         ignore-value, verify: Omit include files from lib_SOURCES.
52308         * modules/ignore-value, modules/verify (Makefile.am):
52309         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52310         that leads Automake to duplicate use of am__objects_... variables
52311         in Makefile.in.  See
52312         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52314 2011-05-07  Bruno Haible  <bruno@clisp.org>
52316         fclose: Simplify autoconf macro.
52317         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52318         defined.
52320 2011-05-07  Bruno Haible  <bruno@clisp.org>
52322         canonicalize-lgpl: Fix autoconf macro ordering bug.
52323         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52324         gl_STDLIB_H_DEFAULTS.
52326 2011-05-06  Eric Blake  <eblake@redhat.com>
52328         maintainer-makefile: make sc_po_check easier to tune
52329         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52330         to probe for strings, such as an alternate location for gnulib.
52332         fclose: guarantee behavior on seekable stdin
52333         * modules/fclose (Depends-on): Add fflush.
52334         * doc/posix-functions/fclose.texi (fclose): Document this.
52335         * tests/test-fclose.c (main): Make test for this unconditional.
52337 2011-05-06  Bruno Haible  <bruno@clisp.org>
52339         fflush, fpurge: Relicense under LGPLv2+.
52340         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52341         * modules/fpurge (License): Likewise.
52342         With permission from Eric Blake and Jim Meyering.
52343         Suggested by Eric Blake.
52345 2011-05-06  Karl Berry  <karl@gnu.org>
52347         * MODULES.html.sh (func_all_modules): remove exit.
52349 2011-05-06  Jim Meyering  <meyering@redhat.com>
52351         maint.mk: use info-gnu@ as the default only for a stable release
52352         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52353         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52354         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52355         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52357 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52359         assert-h: new module, which supports C1X-style static_assert
52360         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52361         * lib/verify.h: Revamp so that this can be copied into assert.h,
52362         while retaining the ability to use it standalone as before.
52363         Rename private identifiers so as not to encroach on the
52364         standard C namespace, since this is now used by assert.h.
52365         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52366         the old verify_true.
52367         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52368         the old verify_true.  Use _GL_VERIFY_TYPE.
52369         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52370         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52371         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52372         defined when this file is copied into the replacement assert.h.
52373         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52374         and _Static_assert is not built in.
52375         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52376         defined, and use the new macros mentioned above.
52377         * doc/posix-headers/assert.texi: Document this.
52379 2011-05-05  Bruno Haible  <bruno@clisp.org>
52381         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52382         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52383         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52384         gl_REPLACE_FCLOSE here.
52385         * modules/fflush (Depends-on): Remove fclose.
52386         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52387         combination with module 'fclose'.
52389 2011-05-05  Bruno Haible  <bruno@clisp.org>
52391         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52392         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52393         gl_FUNC_FFLUSH.
52394         (gl_FUNC_FFLUSH): Use it.
52395         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52397         gl_REPLACE_FSEEKO here.
52399 2011-05-05  Bruno Haible  <bruno@clisp.org>
52401         tzset: Relicense under LGPL.
52402         * modules/tzset (License): Change to LGPL.
52403         No agreement needed; it's a no-op.
52405         strtoimax, strtoumax: Relicense under LGPL.
52406         * modules/strtoimax (License): Change to LGPL.
52407         * modules/strtoumax (License): Likewise.
52408         With permission from Jim Meyering, Paul Eggert:
52409         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52410         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52412         getgroups: Relicense under LGPL.
52413         * modules/getgroups (License): Change to LGPL.
52414         With permission from Jim Meyering, Paul Eggert, Eric Blake:
52415         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52416         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52417         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52419         nanosleep: Relicense under LGPL.
52420         * modules/nanosleep (License): Change to LGPL.
52421         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
52422         Haible:
52423         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52424         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52425         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52426         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52428         futimens: Relicense under LGPL.
52429         * modules/futimens (License): Change to LGPL.
52430         With permission from Eric Blake:
52431         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52433         fflush: Relicense under LGPL.
52434         * modules/fflush (License): Change to LGPL.
52435         With permission from Eric Blake, Bruno Haible, Jim Meyering:
52436         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52437         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52438         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52440         tmpfile: Relicense under LGPL.
52441         * modules/tmpfile (License): Change to LGPL.
52442         With permission from Ben Pfaff:
52443         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52445         isfinite: Relicense under LGPL.
52446         * modules/isfinite (License): Change to LGPL.
52447         With permission from Ben Pfaff, Bruno Haible:
52448         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52449         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52451         acosl..tanl: Relicense under LGPL.
52452         * modules/acosl (License): Change to LGPL.
52453         * modules/asinl (License): Likewise.
52454         * modules/atanl (License): Likewise.
52455         * modules/cosl (License): Likewise.
52456         * modules/expl (License): Likewise.
52457         * modules/logl (License): Likewise.
52458         * modules/sinl (License): Likewise.
52459         * modules/sqrtl (License): Likewise.
52460         * modules/tanl (License): Likewise.
52461         Source code originally from glibc and Paolo Bonzini. Agreements:
52462         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52463         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52465 2011-05-05  Bruno Haible  <bruno@clisp.org>
52467         signal: Define sighandler_t.
52468         * lib/signal.in.h (sighandler_t): New type.
52469         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52470         whether sighandler_t is defined.
52471         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52472         * modules/signal (Depends-on): Add extensions.
52473         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52474         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52475         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52477 2011-05-05  Eric Blake  <eblake@redhat.com>
52479         maint: remove useless REPLACE_*_H macros
52480         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52481         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52482         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52483         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52484         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52485         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52486         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52487         * m4/btowc.m4: Update callers.
52488         * m4/dirfd.m4: Likewise.
52489         * m4/duplocale.m4: Likewise.
52490         * m4/fchdir.m4: Likewise.
52491         * m4/fdopendir.m4: Likewise.
52492         * m4/inet_ntop.m4: Likewise.
52493         * m4/inet_pton.m4: Likewise.
52494         * m4/ioctl.m4: Likewise.
52495         * m4/mbrlen.m4: Likewise.
52496         * m4/mbrtowc.m4: Likewise.
52497         * m4/mbsinit.m4: Likewise.
52498         * m4/mbsnrtowcs.m4: Likewise.
52499         * m4/mbsrtowcs.m4: Likewise.
52500         * m4/poll.m4: Likewise.
52501         * m4/setlocale.m4: Likewise.
52502         * m4/wcrtomb.m4: Likewise.
52503         * m4/wcsnrtombs.m4: Likewise.
52504         * m4/wcsrtombs.m4: Likewise.
52505         * m4/wctob.m4: Likewise.
52506         * m4/wcwidth.m4: Likewise.
52507         * modules/posix_spawn: Likewise.
52508         * modules/posix_spawn_file_actions_addclose: Likewise.
52509         * modules/posix_spawn_file_actions_adddup2: Likewise.
52510         * modules/posix_spawn_file_actions_addopen: Likewise.
52511         * modules/posix_spawn_file_actions_destroy: Likewise.
52512         * modules/posix_spawn_file_actions_init: Likewise.
52513         * modules/posix_spawnattr_destroy: Likewise.
52514         * modules/posix_spawnattr_getflags: Likewise.
52515         * modules/posix_spawnattr_getpgroup: Likewise.
52516         * modules/posix_spawnattr_getschedparam: Likewise.
52517         * modules/posix_spawnattr_getschedpolicy: Likewise.
52518         * modules/posix_spawnattr_getsigdefault: Likewise.
52519         * modules/posix_spawnattr_getsigmask: Likewise.
52520         * modules/posix_spawnattr_init: Likewise.
52521         * modules/posix_spawnattr_setflags: Likewise.
52522         * modules/posix_spawnattr_setpgroup: Likewise.
52523         * modules/posix_spawnattr_setschedparam: Likewise.
52524         * modules/posix_spawnattr_setschedpolicy: Likewise.
52525         * modules/posix_spawnattr_setsigdefault: Likewise.
52526         * modules/posix_spawnattr_setsigmask: Likewise.
52527         * modules/posix_spawnp: Likewise.
52529 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52531         Add option to do-release-commit-and-tag to specify branch.
52532         * build-aux/do-release-commit-and-tag: Add --branch.
52534 2011-05-03  Bruno Haible  <bruno@clisp.org>
52536         Avoid unnecessary compilation units, through conditional dependencies.
52537         * modules/accept (Depends-on): Add conditions to the dependencies.
52538         * modules/acosl (Depends-on): Likewise.
52539         * modules/argz (Depends-on): Likewise.
52540         * modules/asinl (Depends-on): Likewise.
52541         * modules/atanl (Depends-on): Likewise.
52542         * modules/atoll (Depends-on): Likewise.
52543         * modules/bind (Depends-on): Likewise.
52544         * modules/btowc (Depends-on): Likewise.
52545         * modules/canonicalize-lgpl (Depends-on): Likewise.
52546         * modules/ceil (Depends-on): Likewise.
52547         * modules/ceilf (Depends-on): Likewise.
52548         * modules/ceill (Depends-on): Likewise.
52549         * modules/chdir-long (Depends-on): Likewise.
52550         * modules/chown (Depends-on): Likewise.
52551         * modules/close (Depends-on): Likewise.
52552         * modules/connect (Depends-on): Likewise.
52553         * modules/cosl (Depends-on): Likewise.
52554         * modules/dirfd (Depends-on): Likewise.
52555         * modules/dprintf (Depends-on): Likewise.
52556         * modules/dprintf-posix (Depends-on): Likewise.
52557         * modules/error (Depends-on): Likewise.
52558         * modules/euidaccess (Depends-on): Likewise.
52559         * modules/expl (Depends-on): Likewise.
52560         * modules/faccessat (Depends-on): Likewise.
52561         * modules/fchdir (Depends-on): Likewise.
52562         * modules/fclose (Depends-on): Likewise.
52563         * modules/fcntl (Depends-on): Likewise.
52564         * modules/fdopendir (Depends-on): Likewise.
52565         * modules/fflush (Depends-on): Likewise.
52566         * modules/floor (Depends-on): Likewise.
52567         * modules/floorf (Depends-on): Likewise.
52568         * modules/floorl (Depends-on): Likewise.
52569         * modules/fnmatch (Depends-on): Likewise.
52570         * modules/fopen (Depends-on): Likewise.
52571         * modules/fprintf-posix (Depends-on): Likewise.
52572         * modules/frexp (Depends-on): Likewise.
52573         * modules/frexp-nolibm (Depends-on): Likewise.
52574         * modules/frexpl (Depends-on): Likewise.
52575         * modules/frexpl-nolibm (Depends-on): Likewise.
52576         * modules/fseek (Depends-on): Likewise.
52577         * modules/fsusage (Depends-on): Likewise.
52578         * modules/ftell (Depends-on): Likewise.
52579         * modules/ftello (Depends-on): Likewise.
52580         * modules/futimens (Depends-on): Likewise.
52581         * modules/getcwd (Depends-on): Likewise.
52582         * modules/getcwd-lgpl (Depends-on): Likewise.
52583         * modules/getdelim (Depends-on): Likewise.
52584         * modules/getdomainname (Depends-on): Likewise.
52585         * modules/getgroups (Depends-on): Likewise.
52586         * modules/gethostname (Depends-on): Likewise.
52587         * modules/getline (Depends-on): Likewise.
52588         * modules/getlogin_r (Depends-on): Likewise.
52589         * modules/getopt-posix (Depends-on): Likewise.
52590         * modules/getpeername (Depends-on): Likewise.
52591         * modules/getsockname (Depends-on): Likewise.
52592         * modules/getsockopt (Depends-on): Likewise.
52593         * modules/getsubopt (Depends-on): Likewise.
52594         * modules/getusershell (Depends-on): Likewise.
52595         * modules/glob (Depends-on): Likewise.
52596         * modules/grantpt (Depends-on): Likewise.
52597         * modules/iconv_open (Depends-on): Likewise.
52598         * modules/iconv_open-utf (Depends-on): Likewise.
52599         * modules/inet_ntop (Depends-on): Likewise.
52600         * modules/inet_pton (Depends-on): Likewise.
52601         * modules/ioctl (Depends-on): Likewise.
52602         * modules/isapipe (Depends-on): Likewise.
52603         * modules/isfinite (Depends-on): Likewise.
52604         * modules/isinf (Depends-on): Likewise.
52605         * modules/lchown (Depends-on): Likewise.
52606         * modules/ldexpl (Depends-on): Likewise.
52607         * modules/link (Depends-on): Likewise.
52608         * modules/linkat (Depends-on): Likewise.
52609         * modules/listen (Depends-on): Likewise.
52610         * modules/logl (Depends-on): Likewise.
52611         * modules/lstat (Depends-on): Likewise.
52612         * modules/mbrlen (Depends-on): Likewise.
52613         * modules/mbrtowc (Depends-on): Likewise.
52614         * modules/mbsinit (Depends-on): Likewise.
52615         * modules/mbsnrtowcs (Depends-on): Likewise.
52616         * modules/mbsrtowcs (Depends-on): Likewise.
52617         * modules/mbtowc (Depends-on): Likewise.
52618         * modules/memcmp (Depends-on): Likewise.
52619         * modules/mkdir (Depends-on): Likewise.
52620         * modules/mkdtemp (Depends-on): Likewise.
52621         * modules/mkfifo (Depends-on): Likewise.
52622         * modules/mkfifoat (Depends-on): Likewise.
52623         * modules/mknod (Depends-on): Likewise.
52624         * modules/mkostemp (Depends-on): Likewise.
52625         * modules/mkostemps (Depends-on): Likewise.
52626         * modules/mkstemp (Depends-on): Likewise.
52627         * modules/mkstemps (Depends-on): Likewise.
52628         * modules/mktime (Depends-on): Likewise.
52629         * modules/nanosleep (Depends-on): Likewise.
52630         * modules/open (Depends-on): Likewise.
52631         * modules/openat (Depends-on): Likewise.
52632         * modules/perror (Depends-on): Likewise.
52633         * modules/poll (Depends-on): Likewise.
52634         * modules/popen (Depends-on): Likewise.
52635         * modules/posix_spawn (Depends-on): Likewise.
52636         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52637         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52638         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52639         * modules/posix_spawnp (Depends-on): Likewise.
52640         * modules/pread (Depends-on): Likewise.
52641         * modules/printf-posix (Depends-on): Likewise.
52642         * modules/ptsname (Depends-on): Likewise.
52643         * modules/putenv (Depends-on): Likewise.
52644         * modules/pwrite (Depends-on): Likewise.
52645         * modules/readline (Depends-on): Likewise.
52646         * modules/readlink (Depends-on): Likewise.
52647         * modules/readlinkat (Depends-on): Likewise.
52648         * modules/recv (Depends-on): Likewise.
52649         * modules/recvfrom (Depends-on): Likewise.
52650         * modules/regex (Depends-on): Likewise.
52651         * modules/remove (Depends-on): Likewise.
52652         * modules/rename (Depends-on): Likewise.
52653         * modules/renameat (Depends-on): Likewise.
52654         * modules/rmdir (Depends-on): Likewise.
52655         * modules/round (Depends-on): Likewise.
52656         * modules/roundf (Depends-on): Likewise.
52657         * modules/roundl (Depends-on): Likewise.
52658         * modules/rpmatch (Depends-on): Likewise.
52659         * modules/select (Depends-on): Likewise.
52660         * modules/send (Depends-on): Likewise.
52661         * modules/sendto (Depends-on): Likewise.
52662         * modules/setenv (Depends-on): Likewise.
52663         * modules/setlocale (Depends-on): Likewise.
52664         * modules/setsockopt (Depends-on): Likewise.
52665         * modules/shutdown (Depends-on): Likewise.
52666         * modules/sigaction (Depends-on): Likewise.
52667         * modules/signbit (Depends-on): Likewise.
52668         * modules/sigprocmask (Depends-on): Likewise.
52669         * modules/sinl (Depends-on): Likewise.
52670         * modules/sleep (Depends-on): Likewise.
52671         * modules/snprintf (Depends-on): Likewise.
52672         * modules/snprintf-posix (Depends-on): Likewise.
52673         * modules/socket (Depends-on): Likewise.
52674         * modules/sprintf-posix (Depends-on): Likewise.
52675         * modules/sqrtl (Depends-on): Likewise.
52676         * modules/stat (Depends-on): Likewise.
52677         * modules/strchrnul (Depends-on): Likewise.
52678         * modules/strdup-posix (Depends-on): Likewise.
52679         * modules/strerror (Depends-on): Likewise.
52680         * modules/strerror_r-posix (Depends-on): Likewise.
52681         * modules/strndup (Depends-on): Likewise.
52682         * modules/strnlen (Depends-on): Likewise.
52683         * modules/strptime (Depends-on): Likewise.
52684         * modules/strsep (Depends-on): Likewise.
52685         * modules/strsignal (Depends-on): Likewise.
52686         * modules/strstr-simple (Depends-on): Likewise.
52687         * modules/strtod (Depends-on): Likewise.
52688         * modules/strtoimax (Depends-on): Likewise.
52689         * modules/strtok_r (Depends-on): Likewise.
52690         * modules/strtoumax (Depends-on): Likewise.
52691         * modules/symlink (Depends-on): Likewise.
52692         * modules/symlinkat (Depends-on): Likewise.
52693         * modules/tanl (Depends-on): Likewise.
52694         * modules/tcgetsid (Depends-on): Likewise.
52695         * modules/tmpfile (Depends-on): Likewise.
52696         * modules/trunc (Depends-on): Likewise.
52697         * modules/truncf (Depends-on): Likewise.
52698         * modules/truncl (Depends-on): Likewise.
52699         * modules/uname (Depends-on): Likewise.
52700         * modules/unlink (Depends-on): Likewise.
52701         * modules/unlockpt (Depends-on): Likewise.
52702         * modules/unsetenv (Depends-on): Likewise.
52703         * modules/usleep (Depends-on): Likewise.
52704         * modules/utimensat (Depends-on): Likewise.
52705         * modules/vasprintf (Depends-on): Likewise.
52706         * modules/vdprintf (Depends-on): Likewise.
52707         * modules/vdprintf-posix (Depends-on): Likewise.
52708         * modules/vfprintf-posix (Depends-on): Likewise.
52709         * modules/vprintf-posix (Depends-on): Likewise.
52710         * modules/vsnprintf (Depends-on): Likewise.
52711         * modules/vsnprintf-posix (Depends-on): Likewise.
52712         * modules/vsprintf-posix (Depends-on): Likewise.
52713         * modules/wcrtomb (Depends-on): Likewise.
52714         * modules/wcscasecmp (Depends-on): Likewise.
52715         * modules/wcscspn (Depends-on): Likewise.
52716         * modules/wcsdup (Depends-on): Likewise.
52717         * modules/wcsncasecmp (Depends-on): Likewise.
52718         * modules/wcsnrtombs (Depends-on): Likewise.
52719         * modules/wcspbrk (Depends-on): Likewise.
52720         * modules/wcsrtombs (Depends-on): Likewise.
52721         * modules/wcsspn (Depends-on): Likewise.
52722         * modules/wcsstr (Depends-on): Likewise.
52723         * modules/wcstok (Depends-on): Likewise.
52724         * modules/wcswidth (Depends-on): Likewise.
52725         * modules/wctob (Depends-on): Likewise.
52726         * modules/wctomb (Depends-on): Likewise.
52727         * modules/wctype (Depends-on): Likewise.
52728         * modules/wcwidth (Depends-on): Likewise.
52729         * modules/write (Depends-on): Likewise.
52731 2011-05-03  Bruno Haible  <bruno@clisp.org>
52733         Support for conditional dependencies.
52734         * doc/gnulib.texi (Module description): Document the syntax of
52735         conditional dependencies.
52736         * gnulib-tool: New option --conditional-dependencies.
52737         (func_usage): Document it.
52738         (cond_dependencies): New variable.
52739         (func_get_automake_snippet_conditional,
52740         func_get_automake_snippet_unconditional): New functions, extracted from
52741         func_get_automake_snippet.
52742         (func_get_automake_snippet): Use them.
52743         (sed_first_32_chars): New variable.
52744         (func_module_shellfunc_name): New function.
52745         (func_module_shellvar_name): New function.
52746         (func_module_conditional_name): New function.
52747         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52748         func_cond_module_condition): New functions.
52749         (func_modules_transitive_closure): Add support for conditional
52750         dependencies.
52751         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52752         conditional automake snippet in an automake conditional.
52753         (func_emit_autoconf_snippets): Emit shell functions that contain the
52754         code for conditional modules.
52755         (func_import, func_create_testdir): Update specification.
52757 2011-05-03  Eric Blake  <eblake@redhat.com>
52759         test-getaddrinfo: report error information
52760         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52762 2011-05-03  Jim Meyering  <meyering@redhat.com>
52764         bootstrap: avoid build failure when $GZIP is set
52765         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52766         program name.  If defined at all, it is supposed to list gzip options.
52767         Reported by Alan Curry in http://debbugs.gnu.org/8609
52769 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52771         readme-release: new module with release instructions
52772         * modules/readme-release: New module.
52773         * top/README-release: New file, from coreutils, grep, diffutils.
52774         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52776 2011-05-02  Eric Blake  <eblake@redhat.com>
52778         fflush: also replace fclose when fixing fflush
52779         * modules/fflush (Depends-on): Add fclose.
52780         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52781         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52782         memstreams with no backing fd.
52783         * doc/posix-functions/fclose.texi (fclose): Document the use of
52784         fflush module to fix the bug.
52785         * tests/test-fclose.c (main): Relax test when fclose is used in
52786         isolation.
52788         fclose: add some tests
52789         * modules/fclose-tests: New test module.
52790         * tests/test-fclose.c: New file.
52791         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52793         fclose: reduced dependencies
52794         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52795         simpler lseek.
52796         * lib/fclose.c (rpl_fclose): Likewise.
52797         Reported by Simon Josefsson.
52799         exit: drop remaining clients
52800         * modules/argmatch (Depends-on): Replace exit with stdlib.
52801         * modules/copy-file (Depends-on): Likewise.
52802         * modules/execute (Depends-on): Likewise.
52803         * modules/exitfail (Depends-on): Likewise.
52804         * modules/obstack (Depends-on): Likewise.
52805         * modules/pagealign_alloc (Depends-on): Likewise.
52806         * modules/pipe-filter-gi (Depends-on): Likewise.
52807         * modules/pipe-filter-ii (Depends-on): Likewise.
52808         * modules/savewd (Depends-on): Likewise.
52809         * modules/spawn-pipe (Depends-on): Likewise.
52810         * modules/wait-process (Depends-on): Likewise.
52811         * modules/xsetenv (Depends-on): Likewise.
52812         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52813         * modules/git-merge-changelog (Depends-on): Likewise.
52814         * modules/long-options (Depends-on): Likewise.
52815         * modules/pt_chown (Depends-on): Likewise.
52816         * modules/sysexits (Depends-on): Likewise.
52818         freading: relax license from LGPLv3+ to LGPLv2+
52819         * modules/freading (License): Relax LGPL version.
52821 2011-05-02  Bruno Haible  <bruno@clisp.org>
52823         fchdir: Remove unused dependencies.
52824         * modules/fchdir (Depends-on): Remove include_next.
52826 2011-05-02  Bruno Haible  <bruno@clisp.org>
52828         gnulib-tool: Refactor.
52829         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52830         from func_emit_autoconf_snippets.
52831         (func_emit_autoconf_snippets): Use it.
52833 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52835         * NEWS: Document removal of 'exit'.
52836         * modules/exit: Remove file.
52838 2011-05-01  Bruno Haible  <bruno@clisp.org>
52840         Update DEPENDENCIES.
52841         * DEPENDENCIES (gettext): Recommend the newest release.
52842         Reported by Simon Josefsson.
52844 2011-05-01  Bruno Haible  <bruno@clisp.org>
52846         gnulib-tool: Reduce code duplication.
52847         * gnulib-tool (func_emit_autoconf_snippets): New function.
52848         (func_import, func_create_testdir): Use it.
52850 2011-04-30  Eric Blake  <eblake@redhat.com>
52852         fclose: don't fail on non-seekable input stream
52853         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52854         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52855         since fflush is allowed to fail in that case.
52857 2011-04-30  Bruno Haible  <bruno@clisp.org>
52859         dup3: cleanup
52860         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52862 2011-04-30  Bruno Haible  <bruno@clisp.org>
52864         netdb: Make it work in C++ mode.
52865         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52866         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52867         module.
52868         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52869         gl_MODULE_INDICATOR_FOR_TESTS.
52870         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52871         * modules/netdb-c++-tests: New file.
52872         * tests/test-netdb-c++.cc: New file.
52874 2011-04-30  Bruno Haible  <bruno@clisp.org>
52876         New modules 'vfscanf', 'vscanf'.
52877         * modules/vfscanf: New file.
52878         * modules/vscanf: New file.
52879         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52880         here.
52881         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52882         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52884 2011-04-30  Bruno Haible  <bruno@clisp.org>
52886         passfd: Add comments.
52887         * lib/passfd.c: Add comments about platforms.
52889 2011-04-30  Bruno Haible  <bruno@clisp.org>
52891         sys_uio: Make <sys/uio.h> self-contained.
52892         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52893         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52895 2011-04-30  Bruno Haible  <bruno@clisp.org>
52897         sys_socket: Ensure 'struct iovec' definition.
52898         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52899         <sys/socket.h>.
52900         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52902 2011-04-30  Bruno Haible  <bruno@clisp.org>
52904         sys_uio: Protect definition of 'struct iovec'.
52905         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52906         it as a C struct.
52908 2011-04-30  Bruno Haible  <bruno@clisp.org>
52910         manywarnings: fix indentation
52911         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52913 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52915         manywarnings: add -Wno-missing-field-initializers if needed.
52916         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52917         option if it's needed to allow initialization with { 0, }
52919 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52921         announce-gen: cosmetic improvement
52922         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52924 2011-04-29  Jim Meyering  <meyering@redhat.com>
52926         vc-list-files: indent with spaces, not TABs
52927         * build-aux/vc-list-files: Convert leading TABs to spaces,
52928         to match the style of most other files in gnulib.
52930         announce-gen: indent with spaces, not TABs
52931         * build-aux/announce-gen: Convert all TABs to spaces, to match
52932         the style of most other files in gnulib.
52934 2011-04-29  Eric Blake  <eblake@redhat.com>
52936         quotearg: avoid uninitialized variable use
52937         * lib/quotearg.c (quoting_options_from_style): Initialize
52938         remaining fields, and ensure that custom styles are only used via
52939         quoting_options rather than quoting_style.
52941 2011-04-29  Jim Meyering  <meyering@redhat.com>
52943         maint.mk: remove unused VC-tag variable
52944         * top/maint.mk (VC-tag): Remove unused variable.
52946 2011-04-29  Bruno Haible  <bruno@clisp.org>
52948         netdb: fix gai_strerror replacements
52949         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52950         * modules/netdb: Substitute it.
52952 2011-04-29  Jim Meyering  <meyering@redhat.com>
52954         test-getcwd.c: avoid new set-but-not-used warning
52955         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52956         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52957         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52958         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52960         test-hash.c: avoid a new shadowing warning
52961         * tests/test-hash.c (main): Don't shadow "dup".
52963 2011-04-28  Eric Blake  <eblake@redhat.com>
52965         getaddrinfo: fix gai_strerror signature
52966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52967         and work around mingw with UNICODE defined.
52968         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52969         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52970         * modules/netdb (Makefile.am): Substitute it.
52971         * lib/netdb.in.h (gai_strerror): Declare replacement.
52972         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52973         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52974         the fix.
52976         getsockopt: avoid compiler warning
52977         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52978         Reported by Matthias Bolte.
52980         tests: drop unused link dependency
52981         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52982         * modules/dirent-safer-tests (Makefile.am): Likewise.
52983         * modules/fdopendir-tests (Makefile.am): Likewise.
52984         * modules/mkfifoat-tests (Makefile.am): Likewise.
52985         * modules/openat-safer-tests (Makefile.am): Likewise.
52986         * modules/openat-tests (Makefile.am): Likewise.
52987         * modules/readlinkat-tests (Makefile.am): Likewise.
52988         * modules/symlinkat-tests (Makefile.am): Likewise.
52989         * modules/linkat-tests (Makefile.am): Likewise.
52990         (Depends-on): Switch to filenamecat-lgpl.
52991         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52992         LIBINTL.
52993         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52994         * tests/test-linkat.c (main): Don't require xalloc.
52996         hash, mgetgroups: drop xalloc dependency
52997         * lib/hash.c (includes): Adjust includes.
52998         * lib/mgetgroups.c (includes): Likewise.
52999         (xgetgroups): Move...
53000         * lib/xgetgroups.c: ...to new file.
53001         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53002         * modules/xgetgroups: New file, split from...
53003         * modules/mgetgroups: ...here.
53004         (Depends-on): Add xalloc-oversized.
53005         * modules/hash (Depends-on): Likewise.
53006         * modules/hash-tests (Depends-on): Drop xalloc.
53007         (test_hash_LDADD): Drop unused library.
53008         * tests/test-hash.c (main): Break xalloc dependency.
53009         (includes): Drop unused include.
53011         xalloc-oversized: new module
53012         * modules/xalloc-oversized: New module.
53013         * modules/xalloc (Depends-on): Add it.
53014         * lib/xalloc.h (xalloc_oversized): Move...
53015         * lib/xalloc-oversized.h: ...into new file.
53017         utimecmp: drop dependency on xmalloc
53018         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53019         due to memory pressure.
53020         * modules/utimecmp (Depends-on): Drop xalloc.
53022 2011-04-27  Eric Blake  <eblake@redhat.com>
53024         getcwd: fix mingw bugs
53025         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53026         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53027         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53029 2011-04-27  Bruno Haible  <bruno@clisp.org>
53031         mkstemps: Ensure declaration on MacOS X 10.5.
53032         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53033         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53034         MacOS X.
53036 2011-04-27  Bruno Haible  <bruno@clisp.org>
53038         mkstemp: More documentation.
53039         * doc/posix-functions/mkstemp.texi: Document header file problem on
53040         MacOS X.
53042 2011-04-27  Bruno Haible  <bruno@clisp.org>
53044         mkstemp: Tweak configure message when cross-compiling.
53045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53046         result as a guess.
53048 2011-04-27  Bruno Haible  <bruno@clisp.org>
53050         clean-temp: Clarify what it does.
53051         * lib/clean-temp.h: Add more comments.
53052         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53053         module.
53054         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53055         * doc/glibc-functions/mkstemps.texi: Likewise.
53056         * doc/glibc-functions/mkostemps.texi: Likewise.
53058 2011-04-27  Eric Blake  <eblake@redhat.com>
53060         fchdir: avoid extra chdir and fix test
53061         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53062         getcwd-lgpl.
53063         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53064         have to be canonical.
53065         (canonicalize_file_name): Drop unused macro.
53066         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53068         filenamecat-lgpl: fix licence
53069         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53070         when it was first created.
53072         linkat, renameat: add missing dependency
53073         * modules/linkat (Depends-on): Require getcwd-lgpl.
53074         * modules/renameat (Depends-on): Likewise.
53076         tests: reduce dependencies
53077         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53078         * tests/test-renameat.c (main): Likewise.
53079         * modules/linkat-tests (Depends-on): Relax dependency.
53080         * modules/renameat-tests (Depends-on): Likewise.
53081         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53082         dependency explicit.
53084         save-cwd: reduce default dependency
53085         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53086         * lib/save-cwd.c: Update comments.
53087         * NEWS: Document the semantic change.
53089         getcwd: enhance tests
53090         * tests/test-getcwd-lgpl.c: New file, taken from...
53091         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53092         repeat long path stress tests from m4 probe.
53093         * modules/getcwd-lgpl-tests: New module.
53094         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53095         * m4/getcwd-abort-bug.m4: Update comment.
53096         * m4/getcwd-path-max.m4: Likewise.
53098         getcwd-lgpl: new module
53099         * modules/getcwd-lgpl: New module.
53100         * lib/getcwd-lgpl.c: New file.
53101         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53102         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53103         * modules/getcwd (configure.ac): Set C witness.
53104         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53106         getcwd: tweak comments
53107         * m4/getcwd-abort-bug.m4: Fix comments.
53108         * m4/getcwd-path-max.m4: Likewise.
53109         * m4/getcwd.m4: Likewise.
53111 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53112         and Eric Blake  <eblake@redhat.com>
53114         mkstemp: replace if system version uses wrong permissions
53115         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53116         read/write mode bits set in file created by mkstemp.
53117         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53119 2011-04-27  Eric Blake  <eblake@redhat.com>
53121         passfd: avoid compiler warning
53122         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53123         Reported by Laine Stump.
53125 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53127         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53128         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53130 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53131         and Eric Blake  <eblake@redhat.com>
53133         mkstemp: mention clean-temp module
53134         * lib/mkstemp.c: Add comment.
53135         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53137 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53139         inttypes: also provide default values for 32-bit tests
53140         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53141         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53143 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53145         strtoumax: remove dependency on strtoimax
53146         This is like the strtoull change of yesterday.
53147         * modules/strtoumax (Files): Add lib/strtoimax.c.
53148         (Depends-on): Remove strtoimax and add verify.
53150         inttypes-incomplete: new module
53151         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53152         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53153         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53154         of gl_INTTYPES_H.
53155         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53156         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53157         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53158         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53159         * modules/strtoumax, modules/xstrtol (Depends-on):
53160         Depend on inttypes-incomplete, not inttypes.
53161         * modules/inttypes-incomplete: New module, containing the contents
53162         of the old modules/inttypes module, except that the Files: section
53163         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53164         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53165         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53166         (Depends-on): Depend only on inttypes-incomplete.
53167         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53169         inttypes: omit now-redundant strtoimax and strtoumax work
53170         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53171         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53173         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53174         This supports apps that need pointers to strtoimax and strtoumax,
53175         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53176         nonexistent functions.  See
53177         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53178         et seq.
53179         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53181         a macro.
53182         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53184 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53186         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53188 2011-04-25  Bruno Haible  <bruno@clisp.org>
53190         strtol, strtoul: Mark modules as obsolete.
53191         * modules/strtol (Status, Notice): New sections.
53192         * modules/strtoul (Status, Notice): New sections.
53194 2011-04-25  Bruno Haible  <bruno@clisp.org>
53196         strtod: Remove check for strtod, unless supporting old platforms.
53197         * modules/strtod-obsolete: New file.
53198         * m4/strtod-obsolete.m4: New file.
53199         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53200         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53201         * modules/strtod (Depends-on): Add strtod-obsolete.
53202         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53204 2011-04-25  Bruno Haible  <bruno@clisp.org>
53206         strcase: Make module obsolete.
53207         * modules/strcase (Status, Notice): New sections.
53209 2011-04-25  Bruno Haible  <bruno@clisp.org>
53211         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53212         * modules/dup2-obsolete: New file.
53213         * m4/dup2-obsolete.m4: New file.
53214         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53215         gl_FUNC_DUP2_OBSOLETE is not also defined.
53216         * modules/dup2 (Depends-on): Add dup2-obsolete.
53217         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53219 2011-04-25  Bruno Haible  <bruno@clisp.org>
53221         strnlen: Avoid memchr related link error on old obsolete platforms.
53222         * modules/memchr-obsolete: New file.
53223         * m4/memchr-obsolete.m4: New file.
53224         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53225         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53226         * modules/memchr (Depends-on): Add memchr-obsolete.
53227         * modules/strnlen (Depends-on): Likewise.
53228         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53230 2011-04-25  Jim Meyering  <meyering@redhat.com>
53232         maint.mk: makefile_at_at_check extend and clean up
53233         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53234         in addition to */Makefile.am.
53235         Exempt legitimate uses of @VAR@ notation, e.g.,
53236         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53237         Remove obsolete coreutils-specific comment.
53238         Prompted by discussion here:
53239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53241 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53243         strtoul: remove dependency on strtol
53244         This is so that 'configure' need not check for strtol merely because
53245         the application needs strtoul.
53246         * modules/strtoul (Files): Add lib/strtol.c.
53247         (Depends-on): Remove strtol.
53249         strtoull: remove dependency on strtoul
53250         This is like the strtoll change.
53251         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53252         (Depends-on): Remove strtoul.
53254         strtoll: remove dependency on strtol
53255         This is so that 'configure' need not check for strtol merely because
53256         the application needs strtoll.
53257         * modules/strtoll (Files): Add lib/strtol.c.
53258         (Depends-on): Remove strtol.
53260 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53262         inttypes: Move some configure check to module 'imaxdiv'.
53263         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53264         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53265         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53267 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53269         inttypes: Move some configure check to module 'imaxabs'.
53270         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53271         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53272         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53274 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53276         inttypes: Remove configure tests that are not needed since 2009-12-31.
53277         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53278         gl_cv_header_working_inttypes_h.
53280 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53282         * modules/strnlen (Depends-on): Remove memchr.
53283         The strnlen implementation doesn't need the memchr module's fixes; see
53284         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53286         strtol: remove dependency on wchar
53287         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53288         * modules/strtol (Depends-on): Remove wchar.
53290 2011-04-21  Eric Blake  <eblake@redhat.com>
53292         passfd: fix test regression on Linux
53293         * modules/passfd-tests (configure.ac): Correct socketpair check.
53295         passfd: speed up configure and drop unused code
53296         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53297         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53298         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53299         Instead of probing at configure for unix_scm_rights_bsd44_way,
53300         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53301         check to a struct member probe.
53302         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53303         (sendfd, recvfd): Update preprocessor checks.
53304         * modules/passfd (Files): Reflect rename, and drop unused file.
53305         (Depends-on): Drop unused dependency.
53307         passfd: allow compilation on mingw
53308         * modules/sys_socket (Depends-on): Add sys_uio.
53309         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53310         iovec and a minimal struct msghdr.
53311         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53312         * tests/test-sys_socket.c (main): Enhance test.
53313         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53314         guaranteed to provide what we need.
53315         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53316         * modules/passfd-tests (Depends-on): Add sys_wait.
53317         * tests/test-passfd.c (main): Skip test on mingw, for now.
53318         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53319         partial 'struct msghdr' implementation.
53321         sys_uio: new module
53322         * modules/sys_uio: New module.
53323         * modules/sys_uio-tests: Likewise.
53324         * lib/sys_uio.in.h: New file.
53325         * m4/sys_uio_h.m4: Likewise.
53326         * tests/test-sys_uio.c: Likewise.
53327         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53328         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53330 2011-04-20  Jim Meyering  <meyering@redhat.com>
53332         useless-if-before-free: avoid false-positive
53333         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53334         disjunct so that it too requires a terminating ";".  Without that,
53335         this script would identify as useless one statement from gcc that
53336         was not:
53337           if (aligned_ptr)
53338             free (((void **) aligned_ptr) [-1]);
53340 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53342         doc: update users.txt.
53343         * users.txt: Add barcode.
53345 2011-04-19  Bruno Haible  <bruno@clisp.org>
53347         ioctl: Remove link dependency on native Windows.
53348         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53349         (gl_close_fn, gl_ioctl_fn): New types.
53350         (struct fd_hook): Renamed from struct close_hook. Change type of
53351         private_close_fn field. Add private_ioctl_fn field.
53352         (close_hook_fn): Add parameter for primary close method.
53353         (execute_close_hooks, execute_all_close_hooks): Likewise.
53354         (ioctl_hook_fn): New type.
53355         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53356         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53357         argument.
53358         (unregister_fd_hook): Renamed from unregister_close_hook.
53359         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53360         Don't include <unistd.h>.
53361         (close): Remove undef.
53362         (anchor): Update.
53363         (execute_close_hooks): Add argument for primary close method.
53364         (execute_all_close_hooks): Likewise.
53365         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53366         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53367         argument. Allow each argument to be NULL.
53368         (unregister_fd_hook): Renamed from unregister_close_hook.
53369         * lib/close.c (rpl_close): Pass 'close' function pointer to
53370         execute_all_close_hooks.
53371         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53372         (primary_ioctl): New function.
53373         (ioctl): Don't call ioctlsocket here. Instead, call
53374         execute_all_ioctl_hooks.
53375         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53376         close method.
53377         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53378         (fd_sockets_hook): Renamed from close_sockets_hook.
53379         (gl_sockets_startup, gl_sockets_cleanup): Update.
53380         * modules/fd-hook: Renamed from modules/close-hook. Update.
53381         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53382         * modules/sockets (Depends-on): Likewise.
53383         * modules/ioctl (Depends-on): Add fd-hook.
53384         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53385         GNULIB_SOCKET.
53387 2011-04-19  Bruno Haible  <bruno@clisp.org>
53389         Move the support of O_NONBLOCK in open() to the 'open' module.
53390         * modules/nonblocking (Depends-on): Remove 'open'.
53391         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53392         gl_cv_have_open_O_NONBLOCK.
53393         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53394         O_NONBLOCK support.
53395         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53397 2011-04-17  Bruno Haible  <bruno@clisp.org>
53399         pipe2: Simplify code.
53400         * lib/pipe2.c (pipe2): Reduce code duplication.
53402 2011-04-17  Bruno Haible  <bruno@clisp.org>
53404         nonblocking: Add comment.
53405         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53407 2011-04-17  Bruno Haible  <bruno@clisp.org>
53409         nonblocking: Add tests for sockets.
53410         * tests/test-nonblocking-socket.sh: New file.
53411         * tests/test-nonblocking-socket-main.c: New file.
53412         * tests/test-nonblocking-socket-child.c: New file.
53413         * tests/test-nonblocking-socket.h: New file.
53414         * tests/socket-server.h: New file.
53415         * tests/socket-client.h: New file.
53416         * modules/nonblocking-socket-tests: New file.
53417         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
53419 2011-04-17  Bruno Haible  <bruno@clisp.org>
53421         nonblocking: Add tests for pipes.
53422         * tests/test-nonblocking-pipe.sh: New file.
53423         * tests/test-nonblocking-pipe-main.c: New file.
53424         * tests/test-nonblocking-pipe-child.c: New file.
53425         * tests/test-nonblocking-pipe.h: New file.
53426         * tests/test-nonblocking-writer.h: New file.
53427         * tests/test-nonblocking-reader.h: New file.
53428         * tests/test-nonblocking-misc.h: New file.
53429         * modules/nonblocking-pipe-tests: New file.
53430         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
53432 2011-04-16  Bruno Haible  <bruno@clisp.org>
53434         gettext: Clarify the needed programmer actions.
53435         * modules/gettext (Notice): New field.
53436         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53438 2011-04-16  Bruno Haible  <bruno@clisp.org>
53440         strchrnul: Tweak last commit.
53441         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53442         bug.
53443         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53444         as in _GL_FUNCDECL_SYS.
53445         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53446         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53448 2011-04-15  Eric Blake  <eblake@redhat.com>
53450         strchrnul: work around cygwin bug
53451         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53452         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53454         * modules/string (Makefile.am): Substitute it.
53455         * lib/string.in.h (strchrnul): Use it.
53457 2011-04-15  Bruno Haible  <bruno@clisp.org>
53459         Don't require lib/stdio-write.c when only module 'stdio' is used.
53460         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53461         invocation.
53462         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53464 2011-04-14  Bruno Haible  <bruno@clisp.org>
53466         Support non-blocking pipe I/O in read() on native Windows.
53467         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53468         (read): New declaration.
53469         * lib/read.c: New file.
53470         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53471         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53472         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53473         vscanf): New declarations.
53474         * lib/stdio-read.c: New file.
53475         * m4/read.m4: New file.
53476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53477         REPLACE_READ.
53478         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53479         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53480         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53481         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53482         (gl_STDIO_H_DEFAULTS): Initialize 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/read: New file.
53486         * modules/nonblocking (Files): Add lib/stdio-read.c.
53487         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53488         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53489         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53490         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53491         * modules/pread (Depends-on): Add read.
53492         * modules/safe-read (Depends-on): Likewise.
53493         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53494         gets, scanf, vfscanf, vscanf): Verify signatures.
53495         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53496         problem with non-blocking pipes.
53497         * doc/posix-functions/fgetc.texi: Likewise.
53498         * doc/posix-functions/fgets.texi: Likewise.
53499         * doc/posix-functions/fread.texi: Likewise.
53500         * doc/posix-functions/fscanf.texi: Likewise.
53501         * doc/posix-functions/getc.texi: Likewise.
53502         * doc/posix-functions/getchar.texi: Likewise.
53503         * doc/posix-functions/gets.texi: Likewise.
53504         * doc/posix-functions/scanf.texi: Likewise.
53505         * doc/posix-functions/vfscanf.texi: Likewise.
53506         * doc/posix-functions/vscanf.texi: Likewise.
53508 2011-04-14  Bruno Haible  <bruno@clisp.org>
53510         Support non-blocking pipe I/O in write() on native Windows.
53511         * lib/write.c (rpl_write): Split a write request that failed merely
53512         because the byte count was larger than the pipe buffer's size.
53513         * doc/posix-functions/write.texi: Mention the problem with large byte
53514         counts.
53516 2011-04-14  Bruno Haible  <bruno@clisp.org>
53518         wchar: Ensure that wchar_t gets defined on uClibc.
53519         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53520         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53522 2011-04-13  Bruno Haible  <bruno@clisp.org>
53524         safe-write, full-read: Avoid unnecessary compilation units.
53525         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53526         (Depends-on): Remove safe-read. Add ssize_t.
53527         * modules/full-read (Files): Add lib/full-write.c.
53528         (Depends-on): Add full-write.
53530 2011-04-13  Bruno Haible  <bruno@clisp.org>
53532         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53533         * modules/pwrite (Depends-on): Add 'write'.
53535 2011-04-13  Bruno Haible  <bruno@clisp.org>
53537         Support non-blocking pipe I/O in write() on native Windows.
53538         * lib/unistd.in.h (write): Enable replacement also if
53539         GNULIB_UNISTD_H_NONBLOCKING is 1.
53540         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53541         (rpl_write): When failing to write on a non-blocking pipe, change
53542         errno from ENOSPC to EAGAIN.
53543         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53544         putchar, puts, vfprintf, vprintf): Enable replacement also if
53545         GNULIB_STDIO_H_NONBLOCKING is 1.
53546         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53547         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53548         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53549         CALL_WITH_SIGPIPE_EMULATION.
53550         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53551         * m4/nonblocking.m4: New file.
53552         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53553         for non-blocking I/O support.
53554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53555         GNULIB_UNISTD_H_NONBLOCKING.
53556         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53557         required for non-blocking I/O support.
53558         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53559         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53560         lib/stdio-write.c, m4/asm-underscore.m4.
53561         (Depends-on): Add stdio, unistd.
53562         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53563         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53564         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53565         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53566         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53567         problem with non-blocking pipes.
53568         * doc/posix-functions/fputc.texi: Likewise.
53569         * doc/posix-functions/fputs.texi: Likewise.
53570         * doc/posix-functions/fwrite.texi: Likewise.
53571         * doc/posix-functions/printf.texi: Likewise.
53572         * doc/posix-functions/putc.texi: Likewise.
53573         * doc/posix-functions/putchar.texi: Likewise.
53574         * doc/posix-functions/puts.texi: Likewise.
53575         * doc/posix-functions/vfprintf.texi: Likewise.
53576         * doc/posix-functions/vprintf.texi: Likewise.
53577         * doc/posix-functions/write.texi: Likewise.
53579 2011-04-10  Jim Meyering  <meyering@redhat.com>
53581         maint.mk: prohibit doubled words
53582         Detect them also when they're separated by a newline.
53583         There are 3 ways to customize it:
53584           - disable the test on a per file basis, as usual with rules using
53585             $(VC_LIST_EXCEPT)
53586           - replace the default doubled-word-selecting regexp (affects all files)
53587           - ignore a particular file-vs-doubled-word match
53588         I nearly used that last one to ignore the "is is" match in
53589         coreutils' NEWS file, since the text was "ls -is is ..."
53590         To do that, I would have added this line to cfg.mk:
53591           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53592         but it would have ignored any "is is" match in NEWS.
53593         Low probability, but still...
53594         Instead, I changed the text, slightly:
53595           -  ls -is is now consistent with ls -lis in ignoring values returned
53596           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53597         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53598         (prohibit_doubled_word_): Define.
53599         (sc_prohibit_doubled_word): New rule.
53600         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53602 2011-04-10  Jim Meyering  <meyering@redhat.com>
53604         maint: fix doubled-word typo in comment
53605         * m4/gethostname.m4: s/is is/it is/
53606         * m4/getdomainname.m4: Likewise.
53608 2011-04-10  Jim Meyering  <meyering@redhat.com>
53610         maint: remove doubled word: s/it it/it/
53611         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53613 2011-04-10  Jim Meyering  <meyering@redhat.com>
53615         maint.mk: remove useless semicolon and backslash
53616         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53617         semicolon and backslash.
53619 2011-04-10  Bruno Haible  <bruno@clisp.org>
53621         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53622         * modules/stdint-tests (Depends-on): Add wchar.
53624 2011-04-10  Jim Meyering  <meyering@redhat.com>
53626         maint: remove doubled words in comments, e.g., s/a a/a/
53627         * lib/strptime.c (day_of_the_week): s/the the/the/
53628         * tests/test-chown.h (test_chown): s/a a/a/
53630         test-chown.h: correct a cast
53631         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53632         when the destination is a stat.st_gid.
53634 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53636         getaddrinfo: Fix test for sa_len member.
53637         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53638         include <sys/types.h> before <sys/socket.h>.
53640 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53642         maint: change "can not" to "cannot"
53643         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53644         boundaries.
53646 2011-04-09  Jim Meyering  <meyering@redhat.com>
53648         maint: change "a a" to "a"
53649         * tests/test-lchown.h (test_lchown): s/a a/a/
53651         maint.mk: prohibit \<the the\>
53652         * top/maint.mk (sc_prohibit_the_the): New rule.
53654         maint: fix "the the" in comment
53655         * lib/count-one-bits.h: s/the the/the/
53657         maint: change "can not" to "cannot"
53658         But do not change the occurrences in maintain.texi or in
53659         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53660         * doc/gnulib-tool.texi: s/can not/cannot/
53661         * doc/posix-functions/accept.texi (accept): Likewise.
53662         * doc/posix-functions/socket.texi (socket): Likewise.
53663         * lib/mbrtowc.c: Likewise.
53665         maint.mk: prohibit use of "can not"
53666         * top/maint.mk (sc_prohibit_can_not): New rule.
53667         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53669 2011-04-09  Bruno Haible  <bruno@clisp.org>
53671         careadlinkat: Guard against misuse of careadlinkatcwd.
53672         * lib/careadlinkat.c: Include <stdlib.h>.
53673         (careadlinkatcwd): Check that the fd argument is as expected.
53675 2011-04-09  Bruno Haible  <bruno@clisp.org>
53677         careadlinkat: Use common coding style.
53678         * lib/careadlinkat.c: Move gnulib includes after system includes.
53680 2011-04-09  Bruno Haible  <bruno@clisp.org>
53682         careadlinkat: Clarify specification.
53683         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53684         (careadlinkatcwd): Add comment.
53685         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53687 2011-04-09  Bruno Haible  <bruno@clisp.org>
53689         areadlinkat: Avoid link error on many platforms.
53690         * modules/areadlinkat (Depends-on): Add areadlink.
53692 2011-04-09  Bruno Haible  <bruno@clisp.org>
53694         allocator, careadlinkat: Fix double-inclusion guard.
53695         * lib/allocator.h: Fix double-inclusion guard.
53696         * lib/careadlinkat.h: Likewise.
53698 2011-04-09  Bruno Haible  <bruno@clisp.org>
53700         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53701         * lib/relocwrapper.c: Update dependencies hierarchy.
53702         * build-aux/install-reloc: Update list of files to be compiled.
53703         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53704         lib/allocator.[hc].
53706 2011-04-08  Eric Blake  <eblake@redhat.com>
53708         strftime: silence gnulib-tool warning
53709         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53711 2011-04-08  Bruno Haible  <bruno@clisp.org>
53713         verify: Fix syntax error with GCC 4.6 in C++ mode.
53714         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53715         (HAVE_STATIC_ASSERT): New macro.
53716         (verify_true, verify): Use 'static_assert' if it is supported and
53717         '_Static_assert' is not supported.
53719 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53721         allocator: New module.
53722         * modules/allocator, lib/allocator.c: New files.
53723         * lib/allocator.h (stdlib_allocator): New decl.
53724         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53725         Remove.  Do not include <stdlib.h>.
53726         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53727         * modules/careadlinkat (Files): Remove lib/allocator.h.
53728         (Depends-on): Add allocator.
53730         stdlib: let modules use system malloc, realloc
53731         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53732         if !_GL_USE_STDLIB_ALLOC.
53733         (malloc, realloc): Limit this change to a smaller scope.
53735         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53736         (malloc, realloc): Don't #undef; no longer needed.
53737         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53738         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53739         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53740         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53741         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53742         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53743         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53744         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53746         careadlinkat: rename members to avoid problem
53747         * lib/allocator.h (struct allocator): Rename members from
53748         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53749         and realloc are #define'd.  Reported by Eric Blake in
53750         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53751         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53753 2011-04-08  Eric Blake  <eblake@redhat.com>
53755         nonblocking: reduce dependency
53756         * tests/test-nonblocking.c: Only test sockets when in use.
53757         * modules/nonblocking-tests (Depends-on): Drop socket.
53758         (Makefile.am): Link even if sockets are not present.
53759         * modules/pipe2-tests (Makefile.am): Likewise.
53760         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53762         pipe2: fix O_NONBLOCK support on mingw
53763         * modules/pipe2 (Depends-on): Add nonblocking.
53764         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53765         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53766         * tests/test-nonblocking.c (main): Likewise.
53767         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53769         fcntl-h: fix O_ACCMODE on cygwin
53770         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53771         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53773         pipe-filter: drop O_NONBLOCK workarounds
53774         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53775         * modules/pipe-filter-ii (Depends-on): Likewise.
53776         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53778         nonblocking: provide O_NONBLOCK for mingw
53779         * modules/nonblocking (Depends-on): Add open.
53780         (configure.ac): Set new witness macro.
53781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53782         * modules/fcntl-h (Makefile.am): Substitute it.
53783         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53784         nonblocking module is in use.
53785         * lib/nonblocking.c: Adjust portability test.
53786         * lib/open.c (open): Don't let native open see gnulib flag.
53787         * tests/test-fcntl-h.c (main): Enhance test.
53788         * tests/test-open.h (test_open): Likewise.
53789         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53791         careadlinkat: fix compilation error on mingw
53792         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53793         within struct allocator.
53795 2011-04-06  Eric Blake  <eblake@redhat.com>
53797         binary-io: relicense under LGPLv2+
53798         * modules/binary-io (License): Relax to LGPLv2+.
53799         Requested for libvirt, and required by pipe2.
53801 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53803         verify: use _Static_assert if available
53804         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53805         (verify_true, verify): Use it if available.  This generates better
53806         diagnostics with GCC 4.6.0 and later.
53808 2011-04-05  Bruno Haible  <bruno@clisp.org>
53810         Remove leftover generated .h files after config.status changed.
53812         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53813         GL_GENERATE_ALLOCA_H.
53814         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53815         GL_GENERATE_ALLOCA_H evaluates to false.
53817         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53818         GL_GENERATE_ARGZ_H.
53819         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53820         evaluates to false.
53822         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53823         GL_GENERATE_BYTESWAP_H.
53824         * modules/byteswap (Makefile.am): Remove byteswap.h if
53825         GL_GENERATE_BYTESWAP_H evaluates to false.
53827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53828         GL_GENERATE_ERRNO_H.
53829         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53830         evaluates to false.
53832         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53833         GL_GENERATE_FLOAT_H.
53834         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53835         evaluates to false.
53837         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53838         GL_GENERATE_FNMATCH_H.
53839         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53840         GL_GENERATE_FNMATCH_H evaluates to false.
53842         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53843         GL_GENERATE_GLOB_H.
53844         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53845         evaluates to false.
53847         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53848         automake conditional GL_GENERATE_ICONV_H.
53849         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53850         evaluates to false.
53852         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53853         GL_GENERATE_NETINET_IN_H.
53854         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53855         GL_GENERATE_NETINET_IN_H evaluates to false.
53857         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53858         conditional GL_GENERATE_PTHREAD_H.
53859         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53860         * modules/pthread (Makefile.am): Remove pthread.h if
53861         GL_GENERATE_PTHREAD_H evaluates to false.
53863         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53864         GL_GENERATE_SCHED_H.
53865         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53866         evaluates to false.
53868         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53869         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53870         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53871         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53873         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53874         GL_GENERATE_STDARG_H.
53875         * modules/stdarg (Makefile.am): Remove stdarg.h if
53876         GL_GENERATE_STDARG_H evaluates to false.
53878         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53879         GL_GENERATE_STDBOOL_H.
53880         * modules/stdbool (Makefile.am): Remove stdbool.h if
53881         GL_GENERATE_STDBOOL_H evaluates to false.
53883         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53884         conditional GL_GENERATE_STDDEF_H.
53885         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53886         * modules/stddef (Makefile.am): Remove stddef.h if
53887         GL_GENERATE_STDDEF_H evaluates to false.
53889         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53890         GL_GENERATE_STDINT_H.
53891         * modules/stdint (Makefile.am): Remove stdint.h if
53892         GL_GENERATE_STDINT_H evaluates to false.
53894         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53895         GL_GENERATE_SYSEXITS_H.
53896         * modules/sysexits (Makefile.am): Remove sysexits.h if
53897         GL_GENERATE_SYSEXITS_H evaluates to false.
53899         Reported by Karl Berry and Ralf Wildenhues.
53901 2011-04-05  Bruno Haible  <bruno@clisp.org>
53903         Ensure to rebuild generated .h files when config.status has changed.
53904         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53905         config.status.
53906         * modules/ctype (Makefile.am): Likewise.
53907         * modules/dirent (Makefile.am): Likewise.
53908         * modules/errno (Makefile.am): Likewise.
53909         * modules/fcntl-h (Makefile.am): Likewise.
53910         * modules/float (Makefile.am): Likewise.
53911         * modules/getopt-posix (Makefile.am): Likewise.
53912         * modules/glob (Makefile.am): Likewise.
53913         * modules/iconv-h (Makefile.am): Likewise.
53914         * modules/inttypes (Makefile.am): Likewise.
53915         * modules/langinfo (Makefile.am): Likewise.
53916         * modules/locale (Makefile.am): Likewise.
53917         * modules/math (Makefile.am): Likewise.
53918         * modules/netdb (Makefile.am): Likewise.
53919         * modules/netinet_in (Makefile.am): Likewise.
53920         * modules/poll-h (Makefile.am): Likewise.
53921         * modules/pthread (Makefile.am): Likewise.
53922         * modules/pty (Makefile.am): Likewise.
53923         * modules/sched (Makefile.am): Likewise.
53924         * modules/search (Makefile.am): Likewise.
53925         * modules/selinux-h (Makefile.am): Likewise.
53926         * modules/signal (Makefile.am): Likewise.
53927         * modules/spawn (Makefile.am): Likewise.
53928         * modules/stdarg (Makefile.am): Likewise.
53929         * modules/stdbool (Makefile.am): Likewise.
53930         * modules/stddef (Makefile.am): Likewise.
53931         * modules/stdint (Makefile.am): Likewise.
53932         * modules/stdio (Makefile.am): Likewise.
53933         * modules/stdlib (Makefile.am): Likewise.
53934         * modules/string (Makefile.am): Likewise.
53935         * modules/strings (Makefile.am): Likewise.
53936         * modules/sys_file (Makefile.am): Likewise.
53937         * modules/sys_ioctl (Makefile.am): Likewise.
53938         * modules/sys_select (Makefile.am): Likewise.
53939         * modules/sys_socket (Makefile.am): Likewise.
53940         * modules/sys_stat (Makefile.am): Likewise.
53941         * modules/sys_time (Makefile.am): Likewise.
53942         * modules/sys_times (Makefile.am): Likewise.
53943         * modules/sys_utsname (Makefile.am): Likewise.
53944         * modules/sys_wait (Makefile.am): Likewise.
53945         * modules/sysexits (Makefile.am): Likewise.
53946         * modules/termios (Makefile.am): Likewise.
53947         * modules/time (Makefile.am): Likewise.
53948         * modules/unistd (Makefile.am): Likewise.
53949         * modules/wchar (Makefile.am): Likewise.
53950         * modules/wctype-h (Makefile.am): Likewise.
53951         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53953 2011-04-05  Bruno Haible  <bruno@clisp.org>
53955         pipe2: Relicense under LGPLv2+.
53956         * modules/pipe2 (License): Change to LGPLv2+.
53957         Requested by Eric Blake, for libvirt.
53959 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53961         bootstrap: compute gnulib_extra_files after updating build_aux
53962         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53963         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53965 2011-04-05  Eric Blake  <eblake@redhat.com>
53967         bootstrap: preserve git whitelist item sorting
53968         * build-aux/bootstrap (sort_patterns): New function.
53969         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53971 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53973         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53974         sc_space_tab check.
53976 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53978         areadlink, areadlinkat: rewrite in terms of careadlinkat
53979         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53980         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53981         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53982         (malloc, realloc): Remove #undefs.
53983         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53984         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53985         readlink, ssize_t, stdint, unistd.
53986         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53987         areadlink, stdint.
53989         careadlinkat: new module
53990         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53991         * modules/careadlinkat: New files, written by me with
53992         a review and feedback from Ben Pfaff in
53993         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53995 2011-04-01  Bruno Haible  <bruno@clisp.org>
53997         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53998         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53999         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54000         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54001         Reported by Bruce Korb <bruce.korb@gmail.com>.
54003 2011-04-01  Bruno Haible  <bruno@clisp.org>
54005         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54006         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54007         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54008         * modules/wcpcpy (Depends-on): Add extensions.
54009         * modules/wcpncpy (Depends-on): Likewise.
54010         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54011         systems.
54012         * doc/posix-functions/wcpncpy.texi: Likewise.
54013         * doc/posix-functions/wcwidth.texi: Likewise.
54015 2011-03-31  Eric Blake  <eblake@redhat.com>
54017         nonblocking: fix mingw test failures
54018         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54019         non-blocking flag on regular file.
54020         (get_nonblocking_flag): Set errno on invalid fd.
54021         * tests/test-nonblocking.c (main): Avoid test failure on
54022         directories if fchdir is not active.
54023         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54025 2011-03-31  Bruno Haible  <bruno@clisp.org>
54027         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54028         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54029         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54030         Reported by Simon Josefsson <simon@josefsson.org>.
54032 2011-03-31  Bruno Haible  <bruno@clisp.org>
54033         and Eric Blake  <eblake@redhat.com>
54035         nonblocking: new module
54036         * modules/nonblocking: New module.
54037         * modules/nonblocking-tests: Likewise.
54038         * lib/nonblocking.h: New file.
54039         * lib/nonblocking.c: Likewise.
54040         * tests/test-nonblocking.c: New test.
54041         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54043 2011-03-30  Bruno Haible  <bruno@clisp.org>
54045         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54046         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54047         instead of 'printf' format for GCC >= 4.4.
54048         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54049         (fprintf, printf, vfprintf, vprintf): Declare with
54050         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54051         the system's vfprintf() function.
54052         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54054 2011-03-30  Eric Blake  <eblake@redhat.com>
54056         passfd: fix scoping bug
54057         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54058         before sendmsg/recvmsg.
54060         passfd: standardize coding conventions
54061         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54062         can be learned at compile time.
54063         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54064         ifdefs.
54065         (sendfd, recvfd): Follow gnulib code conventions.
54067         passfd: fix incorrect sendmsg arguments
54068         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54069         incorrect msg_controllen value.
54070         * modules/passfd-tests (Depends-on): Check for alarm.
54071         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54072         Reported by Bastien ROUCARIES.
54074 2011-03-30  Bruno Haible  <bruno@clisp.org>
54076         c-strcasestr: Relicense under LGPLv2+.
54077         * modules/c-strcasestr (License): Change to LGPLv2+.
54078         Requested by Eric Blake, for libvirt.
54080 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54082         * users.txt: Add libidn2.  Fix libtasn1 link.
54084 2011-03-30  Jim Meyering  <meyering@redhat.com>
54086         tests: readlink* ("",... fails with EINVAL on newer kernels
54087         readlink and readlinkat have typically failed with ENOENT for
54088         the invalid, empty file name,  "".  However, with the advent
54089         of linux-2.6.39, they fail with EINVAL.
54090         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54091         when operating on the empty file name.
54092         * tests/test-readlink.h (test_readlink): Likewise.
54094 2011-03-29  Bruno Haible  <bruno@clisp.org>
54096         Relicense some modules under LGPLv2+, for libidn2.
54097         * modules/array-mergesort (License): Change to LGPLv2+.
54098         * modules/c-strcaseeq (License): Likewise.
54099         * modules/striconveh (License): Likewise.
54100         * modules/striconveha (License): Likewise.
54101         * modules/uniconv/base (License): Likewise.
54102         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54103         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54104         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54105         * modules/unictype/base (License): Likewise.
54106         * modules/unictype/bidiclass-of (License): Likewise.
54107         * modules/unictype/category-M (License): Likewise.
54108         * modules/unictype/category-none (License): Likewise.
54109         * modules/unictype/category-of (License): Likewise.
54110         * modules/unictype/category-test (License): Likewise.
54111         * modules/unictype/category-test-withtable (License): Likewise.
54112         * modules/unictype/combining-class (License): Likewise.
54113         * modules/unictype/joiningtype-of (License): Likewise.
54114         * modules/unictype/scripts (License): Likewise.
54115         * modules/uninorm/base (License): Likewise.
54116         * modules/uninorm/canonical-decomposition (License): Likewise.
54117         * modules/uninorm/composition (License): Likewise.
54118         * modules/uninorm/decompose-internal (License): Likewise.
54119         * modules/uninorm/decomposition-table (License): Likewise.
54120         * modules/uninorm/nfc (License): Likewise.
54121         * modules/uninorm/nfd (License): Likewise.
54122         * modules/uninorm/u32-normalize (License): Likewise.
54123         * modules/unistr/base (License): Likewise.
54124         * modules/unistr/u32-cpy (License): Likewise.
54125         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54126         * modules/unistr/u32-to-u8 (License): Likewise.
54127         * modules/unistr/u32-uctomb (License): Likewise.
54128         * modules/unistr/u8-check (License): Likewise.
54129         * modules/unistr/u8-mblen (License): Likewise.
54130         * modules/unistr/u8-mbtouc (License): Likewise.
54131         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54132         * modules/unistr/u8-mbtoucr (License): Likewise.
54133         * modules/unistr/u8-prev (License): Likewise.
54134         * modules/unistr/u8-strlen (License): Likewise.
54135         * modules/unistr/u8-to-u32 (License): Likewise.
54136         * modules/unistr/u8-uctomb (License): Likewise.
54137         * modules/unitypes (License): Likewise.
54138         Requested by Simon Josefsson.
54140 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54142         lib-symbol-visibility: Add a notice.
54143         * modules/lib-symbol-visibility (Notice): New field.
54145 2011-03-29  Bruno Haible  <bruno@clisp.org>
54147         getaddrinfo: Doc fix.
54148         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54149         section "fixed in Gnulib".
54151 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54153         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54154         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54156 2011-03-26  Bruno Haible  <bruno@clisp.org>
54158         unictype/property-byname: Reduce the number of load-time relocations.
54159         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54160         (UC_PROPERTY_INDEX_*): New enumeration values.
54161         (uc_property_byname): Convert an index from the lookup table to an
54162         uc_property_t.
54163         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54164         values.
54166 2011-03-26  Bruno Haible  <bruno@clisp.org>
54168         unictype/property-byname: Allow omitted word separators and aliases.
54169         * lib/unictype/pr_byname.gperf: Add property names without word
54170         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54171         for 'space'.
54173 2011-03-26  Bruno Haible  <bruno@clisp.org>
54175         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54176         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54177         also hyphens to space.
54178         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54179         without spaces.
54180         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54182 2011-03-26  Bruno Haible  <bruno@clisp.org>
54184         unictype/joiningtype-byname: Recognize long names as well.
54185         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54186         a long name.
54187         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54188         unictype/joiningtype_byname.h.
54189         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54190         * lib/unictype/joiningtype_byname.gperf: New file.
54191         * modules/unictype/joiningtype-byname (Files): Add
54192         lib/unictype/joiningtype_byname.gperf.
54193         (Depends-on): Add gperf.
54194         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54195         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54196         long names.
54198         Tests for module 'unictype/joiningtype-longname'.
54199         * modules/unictype/joiningtype-longname-tests: New file.
54200         * tests/unictype/test-joiningtype_longname.c: New file.
54202         New module 'unictype/joiningtype-longname'.
54203         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54204         * lib/unictype/joiningtype_longname.c: New file.
54205         * modules/unictype/joiningtype-longname: New file.
54206         * modules/unictype/joiningtype-all (Depends-on): Add
54207         unictype/joiningtype-longname.
54209 2011-03-26  Bruno Haible  <bruno@clisp.org>
54211         unictype/bidiclass-byname: Recognize long names as well.
54212         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54213         name.
54214         * lib/unictype/bidi_byname.c: Include <string.h>,
54215         unictype/bidi_byname.h.
54216         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54217         * lib/unictype/bidi_byname.gperf: New file.
54218         * modules/unictype/bidiclass-byname (Files): Add
54219         lib/unictype/bidi_byname.gperf.
54220         (Depends-on): Add gperf.
54221         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54222         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54223         long names.
54225         Tests for module 'unictype/bidiclass-longname'.
54226         * modules/unictype/bidiclass-longname-tests: New file.
54227         * tests/unictype/test-bidi_longname.c: New file.
54229         New module 'unictype/bidiclass-longname'.
54230         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54231         * lib/unictype/bidi_longname.c: New file.
54232         * modules/unictype/bidiclass-longname: New file.
54233         * modules/unictype/bidiclass-all (Depends-on): Add
54234         unictype/bidiclass-longname.
54236 2011-03-26  Bruno Haible  <bruno@clisp.org>
54238         unictype/bidi*: Rename modules.
54239         * modules/unictype/bidiclass-all: Renamed from
54240         modules/unictype/bidicategory-all.
54241         * modules/unictype/bidiclass-name: Renamed from
54242         modules/unictype/bidiclass-name.
54243         (Description): Update.
54244         * modules/unictype/bidiclass-name-tests: Renamed from
54245         modules/unictype/bidicategory-name-tests.
54246         * modules/unictype/bidiclass-byname: Renamed from
54247         modules/unictype/bidicategory-byname.
54248         (Description): Update.
54249         * modules/unictype/bidiclass-byname-tests: Renamed from
54250         modules/unictype/bidicategory-byname-tests.
54251         * modules/unictype/bidiclass-of: Renamed from
54252         modules/unictype/bidicategory-of.
54253         (Description): Update.
54254         * modules/unictype/bidiclass-of-tests: Renamed from
54255         modules/unictype/bidicategory-of-tests.
54256         * modules/unictype/bidiclass-test: Renamed from
54257         modules/unictype/bidicategory-test.
54258         (Description): Update.
54259         * modules/unictype/bidiclass-test-tests: Renamed from
54260         modules/unictype/bidicategory-test-tests.
54261         * modules/unictype/bidicategory-all: New file, a simple redirection.
54262         * modules/unictype/bidicategory-name: Likewise.
54263         * modules/unictype/bidicategory-byname: Likewise.
54264         * modules/unictype/bidicategory-of: Likewise.
54265         * modules/unictype/bidicategory-test: Likewise.
54266         * modules/unictype/property-bidi-* (Dependencies): Update.
54267         * lib/unictype/bidi_*.c: Update comment.
54269 2011-03-26  Bruno Haible  <bruno@clisp.org>
54271         unictype/bidi*: Rename functions, part 2.
54272         * modules/unictype/bidicategory-name (configure.ac): Update required
54273         libunistring version.
54274         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54276 2011-03-25  Bruno Haible  <bruno@clisp.org>
54278         New module 'unictype/combining-class-all'.
54279         * modules/unictype/combining-class-all: New file.
54281         Tests for module 'unictype/combining-class-byname'.
54282         * modules/unictype/combining-class-byname-tests: New file.
54283         * tests/unictype/test-combiningclass_byname.c: New file.
54285         New module 'unictype/combining-class-byname'.
54286         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54287         * lib/unictype/combiningclass_byname.c: New file.
54288         * lib/unictype/combiningclass_byname.gperf: New file.
54289         * modules/unictype/combining-class-byname: New file.
54291         Tests for module 'unictype/combining-class-longname'.
54292         * modules/unictype/combining-class-longname-tests: New file.
54293         * tests/unictype/test-combiningclass_longname.c: New file.
54295         New module 'unictype/combining-class-longname'.
54296         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54297         * lib/unictype/combiningclass_longname.c: New file.
54298         * modules/unictype/combining-class-longname: New file.
54300         Tests for module 'unictype/combining-class-name'.
54301         * modules/unictype/combining-class-name-tests: New file.
54302         * tests/unictype/test-combiningclass_name.c: New file.
54304         New module 'unictype/combining-class-name'.
54305         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54306         * lib/unictype/combiningclass_name.c: New file.
54307         * modules/unictype/combining-class-name: New file.
54309 2011-03-25  Bruno Haible  <bruno@clisp.org>
54311         unictype/combining-class: Rename source files.
54312         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54313         of unictype/combining.h.
54314         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54315         Update.
54316         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54317         * modules/unictype/combining-class (Description): Fix.
54318         (Files, Makefile.am): Update.
54319         * tests/unictype/test-combiningclass.c: Renamed from
54320         tests/unictype/test-combining.c.
54321         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54323 2011-03-25  Bruno Haible  <bruno@clisp.org>
54325         unictype: Update list of canonical combining classes.
54326         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54328 2011-03-25  Bruno Haible  <bruno@clisp.org>
54330         unictype/category-byname: Recognize long names as well.
54331         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54332         a long name.
54333         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54334         unictype/categ_byname.h.
54335         (UC_CATEGORY_INDEX_*): New enumeration values.
54336         (uc_general_category_byname): Use uc_general_category_lookup and
54337         convert from index to value.
54338         * lib/unictype/categ_byname.gperf: New file.
54339         * modules/unictype/category-byname (Files): Add
54340         lib/unictype/categ_byname.gperf.
54341         (Depends-on): Add gperf.
54342         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54343         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54344         long names.
54346         Tests for module 'unictype/category-longname'.
54347         * modules/unictype/category-longname-tests: New file.
54348         * tests/unictype/test-categ_longname.c: New file.
54350         New module 'unictype/category-longname'.
54351         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54352         * lib/unictype/categ_longname.c: New file.
54353         * modules/unictype/category-longname: New file.
54354         * modules/unictype/category-all (Depends-on): Add it.
54356 2011-03-25  Bruno Haible  <bruno@clisp.org>
54358         Tests for module 'unictype/category-LC'.
54359         * modules/unictype/category-LC-tests: New file.
54360         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54362         New module 'unictype/category-LC'.
54363         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54364         (UC_CATEGORY_LC): New declaration.
54365         (UC_CASED_LETTER): New macro.
54366         * lib/gen-uni-tables.c (is_category_LC): New function.
54367         (output_categories): Also handle category LC.
54368         (UC_CATEGORY_MASK_LC): New enumeration value.
54369         (general_category_byname): Also handle category LC.
54370         * lib/unictype/categ_LC.c: New file.
54371         * lib/unictype/categ_LC.h: New file, automatically generated.
54372         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54373         category LC.
54374         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54375         * modules/unictype/category-LC: New file.
54376         * modules/unictype/category-byname (Depends-on): Add
54377         unictype/category-LC.
54378         * modules/unictype/category-all (Depends-on): Likewise.
54380 2011-03-25  Eric Blake  <eblake@redhat.com>
54382         xmalloc: revert yesterday's regression
54383         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54384         realloc's underlying behavior (allowing allocation of zero-size
54385         objects, especially if malloc-gnu is also in use).
54387 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54389         maint.mk: add missing version to VC-tag
54390         * top/maint.mk: git tag was missing actual tag name; add it.
54392         valgrind: do leak checking, and exit with code 1 on error (not 0)
54393         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54394         to VALGRIND.
54396 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54398         posix-modules: say what it does.
54399         * posix-modules: Add a line to the --help output saying what it does.
54401 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54403         xmalloc: Do not leak if underlying realloc is C99 compatible.
54404         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54405         This avoids a leak on C99-based systems.  See
54406         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54408 2011-03-24  Eric Blake  <eblake@redhat.com>
54410         realloc: document portability problem
54411         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54412         passing 0 size to realloc.
54414 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
54416         doc: update users.txt
54417         * users.txt: Add cvsps, tmpwatch
54419 2011-03-23  Matt Rice  <ratmice@gmail.com>
54421         doc: update users.txt
54422         * users.txt: Add gdb.
54424 2011-03-23  Jim Meyering  <meyering@redhat.com>
54426         doc: update users.txt
54427         Looking through matches up to the following URL (there are still
54428         several more pages), I found several projects that use gnulib:
54429         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
54430         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
54431         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
54433 2011-03-22  Bruno Haible  <bruno@clisp.org>
54435         unictype/bidi*: Rename functions.
54436         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
54437         uc_bidi_class, uc_is_bidi_class): New declarations.
54438         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54439         uc_bidi_category_byname.
54440         (uc_bidi_category_byname): New function.
54441         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54442         u_bidi_category_name.
54443         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54444         (uc_bidi_category_name): New function.
54445         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54446         uc_bidi_category.
54447         (uc_bidi_category): New function.
54448         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54449         uc_is_bidi_category. Invoke uc_bidi_class.
54450         (uc_is_bidi_category): New function.
54451         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54452         instead of uc_bidi_category_byname.
54453         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54454         instead of uc_bidi_category_name.
54455         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54456         uc_bidi_category.
54457         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54458         instead of uc_is_bidi_category.
54460 2011-03-21  Bruno Haible  <bruno@clisp.org>
54462         New module 'unictype/joininggroup-all'.
54463         * modules/unictype/joininggroup-all: New file.
54465         Tests for module 'unictype/joininggroup-of'.
54466         * modules/unictype/joininggroup-of-tests: New file.
54467         * tests/unictype/test-joininggroup_of.c: New file.
54468         * tests/unictype/test-joininggroup_of.h: New file, automatically
54469         generated by gen-uni-tables.
54471         New module 'unictype/joininggroup-of'.
54472         * modules/unictype/joininggroup-of: New file.
54473         * lib/unictype/joininggroup_of.c: New file.
54474         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54475         gen-uni-tables.
54477         Tests for module 'unictype/joininggroup-byname'.
54478         * modules/unictype/joininggroup-byname-tests: New file.
54479         * tests/unictype/test-joininggroup_byname.c: New file.
54481         New module 'unictype/joininggroup-byname'.
54482         * modules/unictype/joininggroup-byname: New file.
54483         * lib/unictype/joininggroup_byname.c: New file.
54484         * lib/unictype/joininggroup_byname.gperf: New file.
54486         Tests for module 'unictype/joininggroup-name'.
54487         * modules/unictype/joininggroup-name-tests: New file.
54488         * tests/unictype/test-joininggroup_name.c: New file.
54490         New module 'unictype/joininggroup-name'.
54491         * modules/unictype/joininggroup-name: New file.
54492         * lib/unictype/joininggroup_name.c: New file.
54493         * lib/unictype/joininggroup_name.h: New file.
54495         New module 'unictype/joiningtype-all'.
54496         * modules/unictype/joiningtype-all: New file.
54498         Tests for module 'unictype/joiningtype-of'.
54499         * modules/unictype/joiningtype-of-tests: New file.
54500         * tests/unictype/test-joiningtype_of.c: New file.
54501         * tests/unictype/test-joiningtype_of.h: New file, automatically
54502         generated by gen-uni-tables.
54504         New module 'unictype/joiningtype-of'.
54505         * modules/unictype/joiningtype-of: New file.
54506         * lib/unictype/joiningtype_of.c: New file.
54507         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54508         gen-uni-tables.
54510         Tests for module 'unictype/joiningtype-byname'.
54511         * modules/unictype/joiningtype-byname-tests: New file.
54512         * tests/unictype/test-joiningtype_byname.c: New file.
54514         New module 'unictype/joiningtype-byname'.
54515         * modules/unictype/joiningtype-byname: New file.
54516         * lib/unictype/joiningtype_byname.c: New file.
54518         Tests for module 'unictype/joiningtype-name'.
54519         * modules/unictype/joiningtype-name-tests: New file.
54520         * tests/unictype/test-joiningtype_name.c: New file.
54522         New module 'unictype/joiningtype-name'.
54523         * modules/unictype/joiningtype-name: New file.
54524         * lib/unictype/joiningtype_name.c: New file.
54526         unictype: Add support for Arabic shaping properties.
54527         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54528         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54529         declarations.
54530         (UC_JOINING_GROUP_*): New enumeration values.
54531         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54532         declarations.
54533         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54534         (unicode_joining_type): New variable.
54535         (UC_JOINING_GROUP_*): New enumeration values.
54536         (unicode_joining_group): New variable.
54537         (fill_arabicshaping, joining_type_as_c_identifier,
54538         output_joining_type_test, output_joining_type,
54539         joining_group_as_c_identifier, output_joining_group_test,
54540         output_joining_group): New functions.
54541         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54542         fill_arabicshaping and output_joining_type_test, output_joining_type,
54543         output_joining_group_test, output_joining_group.
54544         Reported by Simon Josefsson.
54546 2011-03-21  Jim Meyering  <meyering@redhat.com>
54548         strftime: fix a bug in yesterday's change
54549         * lib/strftime.c (add): Accommodate width's initial value of -1.
54550         Otherwise, nstrftime would copy uninitialized data into
54551         the result buffer.
54553 2011-03-21  Jim Meyering  <meyering@redhat.com>
54555         tests: add strftime-tests module
54556         * tests/test-strftime.c: New file.
54557         * modules/strftime-tests: New module.
54559 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54561         strftime: don't assume a byte count fits in 'int'
54562         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54563         found this problem by static analysis, using gcc -Wstrict-overflow
54564         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54565         on an integer overflow having undefined behavior, but it turns out
54566         that the argument is a size, which might not fit in 'int' anyway,
54568 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54570         stdio: don't require ignore_value around fwrite
54572         This patch works around libc bug 11959
54573         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54574         Without this patch, applications must often write
54575         ignore_value (fwrite (...)) even though the ignore_value is
54576         not helpful here.  It's common to write many objects, using
54577         fwrite/printf/etc., and then use ferror to detect output error.
54579         I considered making this patch optional, but decided against it,
54580         because libc is obviously being inconsistent here: there is no
54581         reason libc should insist that user code must inspect fwrite
54582         return's value without also insisting that it inspect printf's,
54583         putchar's, etc.  If user code wants to have a strict style where
54584         all these functions' values are checked (so that ferror need not
54585         be checked), we could add support for that style in a new gnulib
54586         module, but in the meantime it's better to be consistent and to
54587         support common usage.
54589         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54590         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54591         that we are compiling in checking mode, and if not C++, and
54592         if not already wrapping fwrite for some other reason.
54593         (fwrite): #define to rpl_fwrite if the latter is defined.
54595 2011-03-20  Bruno Haible  <bruno@clisp.org>
54597         verror: Fix compilation error introduced on 2011-02-13.
54598         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54599         instead of __attribute__.
54600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54602 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54603             Bruno Haible  <bruno@clisp.org>
54605         socklen: do not depend on sys_socket
54606         While trying to modify Emacs to use gnulib's socklen module,
54607         I discovered a circular dependency: socklen depends on sys_socket
54608         and vice versa.  Emacs can use socklen, but it does not need
54609         sys_socket because it has its own substitute for sys/socket.h.
54610         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54611         gl_TYPE_SOCKLEN_T.
54612         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54613         gl_PREREQ_SYS_H_SOCKET.
54614         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54615         gl_PREREQ_SYS_H_SOCKET.
54616         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54617         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54618         * modules/socklen (Depends-on): Do not depend on sys_socket.
54619         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54621 2011-03-20  Jim Meyering  <meyering@redhat.com>
54623         maint.mk: sort file names *after* new transformation
54624         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54625         prefix would have led to an unwarranted failure in GNU parted.
54626         Sort after that transformation.
54628 2011-03-19  Jim Meyering  <meyering@redhat.com>
54630         maint.mk: fix po-file syntax-check rule
54631         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54632         Patch by Bruno Haible.
54634 2011-03-19  Bruno Haible  <bruno@clisp.org>
54636         socklen: Update comment.
54637         * m4/socklen.m4: Update comment about platforms.
54639 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54640             Bruno Haible  <bruno@clisp.org>
54642         inet_ntop, inet_pton: Simplify.
54643         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54644         documented to provide socklen_t and we already depend on sys_socket.
54645         * modules/inet_pton (Depends-on): Likewise.
54646         * lib/arpa_inet.in.h: Adjust comment.
54648 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54649             Bruno Haible  <bruno@clisp.org>
54651         netdb: Simplify.
54652         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54653         documented to provide socklen_t and we already depend on sys_socket.
54654         * lib/netdb.in.h: Adjust comment.
54656 2011-03-19  Bruno Haible  <bruno@clisp.org>
54658         sys_socket, netdb: Document problem with socklen_t.
54659         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54660         platforms.
54661         * doc/posix-headers/netdb.texi: Likewise.
54663 2011-03-18  Eric Blake  <eblake@redhat.com>
54665         maint.mk: let po check work in VPATH build
54666         * top/maint.mk (po_file): Allow cfg.mk override.
54667         (sc_po_check): Allow VPATH use.
54668         Reported by Jiri Denemark.
54670 2011-03-16  Jim Meyering  <meyering@redhat.com>
54672         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54673         Before, you would have had to create one .x-sc_ file per rule in order
54674         to exempt offending files.  Now, you may instead use a Make variable --
54675         usually defined in cfg.mk -- whose name identifies the affected rule.
54676         * top/maint.mk (_sc_excl): Define.
54677         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54678         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54680 2011-03-13  Bruno Haible  <bruno@clisp.org>
54682         ignore-value tests: Avoid warnings.
54683         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54684         empty for gcc < 3.4.
54686 2011-03-13  Bruno Haible  <bruno@clisp.org>
54688         passfd: Fix link error on Solaris.
54689         * modules/passfd (Description): Correct.
54690         (Depends-on): Add socketlib.
54691         (Link): New section.
54692         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54694 2011-03-13  Bruno Haible  <bruno@clisp.org>
54696         passfd: Fix link error on AIX 5.2.
54697         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54699 2011-03-13  Bruno Haible  <bruno@clisp.org>
54701         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54702         * lib/sys_socket.in.h: Include <stddef.h>.
54703         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54704         CMSG_FIRSTHDR. Remove unused variable.
54706 2011-03-13  Bruno Haible  <bruno@clisp.org>
54708         passfd: Fix compilation error on OpenBSD.
54709         * lib/passfd.c: Include <sys/uio.h>.
54711 2011-03-13  Bruno Haible  <bruno@clisp.org>
54713         passfd test: Fix warnings.
54714         * tests/test-passfd.c: Include <sys/wait.h>.
54715         (main): Fix typo.
54717 2011-03-13  Bruno Haible  <bruno@clisp.org>
54719         passfd module, part 4, tweaks.
54720         * tests/test-passfd.c: Reorder includes.
54721         (main): Fix perror and printf calls.
54723 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54725         passfd module, part 4.
54726         * modules/passfd-tests: New file.
54727         * tests/test-passfd.c: New file.
54729 2011-03-13  Jim Meyering  <meyering@redhat.com>
54731         Makefile: rely on GNU make; derive syntax-check rule names
54732         Rather than requiring that each sc_ rule be listed as a dependent
54733         of "check", use features of GNU make to derive the list.
54734         * Makefile (syntax-check-rules): Define.
54735         (check): Depend on the new variable, not the hard-coded list.
54737 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54738             Bruno Haible  <bruno@clisp.org>
54740         passfd module, part 3.
54741         * lib/passfd.h (recvfd): Add a flags argument.
54742         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54743         (recvfd): Add a flags argument.
54744         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54745         exists.
54746         * modules/passfd (Depends-on): Add cloexec.
54747         Suggested by Eric Blake.
54749 2011-03-13  Bruno Haible  <bruno@clisp.org>
54751         passfd module, part 2, tweaks.
54752         * modules/passfd (Files): Reorder.
54753         (Depends-on): Remove errno.
54754         (Include): Remove <sys/socket.h>, <sys/un.h>.
54755         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54756         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54757         specification header. Include <sys/socket.h> always. Don't include
54758         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54759         (sendfd): Clarify that it sets errno when it fails.
54760         (recvfd): Fix specification.
54762 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54764         passfd module, part 2.
54765         * modules/passfd: New file.
54766         * lib/passfd.h: New file.
54767         * lib/passfd.c: New file.
54769 2011-03-12  Bruno Haible  <bruno@clisp.org>
54771         wcswidth, mbswidth: Avoid integer overflow.
54772         * lib/wcswidth.c: Include <limits.h>.
54773         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54774         * lib/mbswidth.c: Include <limits.h>.
54775         (mbsnwidth): Avoid 'int' overflow.
54776         Reported by Jim Meyering.
54778 2011-03-12  Bruno Haible  <bruno@clisp.org>
54780         futimens, utimensat: Avoid endless recursion on Solaris 10.
54781         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54782         Solaris.
54783         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54784         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54786 2011-03-11  Jim Meyering  <meyering@redhat.com>
54788         maint.mk: relax a regexp to accommodate other formatting styles
54789         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54790         between "ngettext" and the following "(".
54792 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54794         maint.mk: suppress a false positive warning
54795         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54796         diagnostics are marked with ngettext.
54798 2011-03-10  Eric Blake  <eblake@redhat.com>
54800         wchar: add explicit dependencies, for Tru64
54801         * modules/mbmemcasecoll (Depends-on): Add wchar.
54802         * modules/mbtowc (Depends-on): Likewise.
54803         * modules/vasnprintf (Depends-on): Likewise.
54804         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54805         * modules/wctomb (Depends-on): Likewise.
54806         Reported by Peter O'Gorman.
54808 2011-03-08  Bruno Haible  <bruno@clisp.org>
54810         passfd module, part 1, tweaks.
54811         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54812         Improve indentation. Improve AC_MSG_CHECKING messages.
54813         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54814         gl_SOCKET_FAMILIES.
54816 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54818         passfd module, part 1.
54819         * m4/afunix.m4: New file.
54820         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54821         sockets.
54823 2011-03-08  Bruno Haible  <bruno@clisp.org>
54825         regex-quote: New API.
54826         * lib/regex-quote.h: Include <stdbool.h>.
54827         (struct regex_quote_spec): New type.
54828         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54829         New declarations.
54830         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54831         'const struct regex_quote_spec *' argument.
54832         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54833         (pcre_special): New constant.
54834         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54835         New functions.
54836         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54837         'const struct regex_quote_spec *' argument.
54838         * modules/regex-quote (Depends-on): Add stdbool.
54839         * tests/test-regex-quote.c (check): Update for new API. Add test for
54840         anchored results.
54841         * NEWS: Mention the API change.
54842         Reported by Reuben Thomas and Eric Blake.
54844 2011-03-06  Bruno Haible  <bruno@clisp.org>
54846         regex-quote: Fix creation of POSIX extended regular expressions.
54847         * lib/regex-quote.c (ere_special): Add grouping and alternation
54848         operators.
54850 2011-03-05  Bruno Haible  <bruno@clisp.org>
54852         doc: Improve doc regarding autopoint vs. gnulib.
54853         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54854         disable autopoint while running autoreconf.
54855         Suggested by Ralf Wildenhues.
54857 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54859         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54860         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54862 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54864         parse-duration: remove xalloc.h dependency
54865         * lib/parse-duration.c (parse_period): handle NULL return from
54866         strdup instead of calling xstrdup().
54867         * modules/parse-duration: remove "xalloc" dependency
54869 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54871         bootstrap: honor m4_base when running aclocal
54872         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54874 2011-03-02  Jim Meyering  <meyering@redhat.com>
54876         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54877         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54878         on request from Matt Booth.
54880 2011-03-01  Eric Blake  <eblake@redhat.com>
54882         test-link: work on Hurd
54883         * tests/test-link.h (test_link): Hurd rejects linking directories
54884         with EISDIR instead of the POSIX-mandated EPERM.
54886 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54888         stdio: simplify by moving files to printf-posix, sigpipe
54889         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54890         since this symbol is needed only if printf is replaced.
54891         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54892         Require gl_ASM_SYMBOL_PREFIX.
54893         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54894         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54895         (Depends-on): Add 'raise'.
54896         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54897         * modules/stdio (Files): Remove lib/stdio-write.c,
54898         m4/asm-underscore.m4.
54899         (Depends-on): Remove 'raise'.
54901         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54902         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54903         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54904         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54906 2011-02-28  Bruno Haible  <bruno@clisp.org>
54908         localcharset: Assume ANSI C behaviour of free().
54909         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54910         calling free().
54911         Suggested by Simon Josefsson <simon@josefsson.org>.
54913 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54914             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54915             Bruno Haible  <bruno@clisp.org>  (tiny change)
54917         On Cygwin, use /proc file system instead of win32 API.
54918         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54919         Win32 file names.
54920         (DllMain): Simplify by removing Cygwin specific code.
54921         (find_shared_library_fullname): Use Linux specific implementation also
54922         for Cygwin.
54923         (get_shared_library_fullname): Update accordingly.
54924         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54925         Win32 file names.
54926         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54927         Cygwin specific code.
54929 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54930             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54932         Fix OpenMP flag detection for various Fortran compilers.
54933         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54934         OpenMP-conditional compilation construct, to force compile
54935         failure with missing OpenMP flag.
54936         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54938 2011-02-25  Eric Blake  <eblake@redhat.com>
54940         strstr: expand test coverage
54941         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54942         compilation.
54943         * tests/test-memmem.c (main): Duplicate tests.
54944         * tests/test-strcasestr.c (main): Likewise.
54945         * tests/test-c-strcasestr.c (main): Likewise.
54947 2011-02-25  Jim Meyering  <meyering@redhat.com>
54949         maint.mk: detect missing-NL-at-EOF, too
54950         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54951         it also detects when a file lacks a newline at EOF.
54952         (require_exactly_one_NL_at_EOF_): Renamed from
54953         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54954         since people may well have .x-sc_... file names tied to the
54955         existing name.  Suggested by Eric Blake.
54957 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54959         dirname: move m4/dos.m4 functionality into lib/dosname.h
54961         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54962         extracts symbols from it, puts them into config.h; but it's much
54963         easier to use the symbols directly.  filename.h already does this,
54964         but it disagrees with dos.m4 in some respects.  This patch
54965         introduces a different include file dosname.h that packages up
54966         dos.m4, and then later we can work on merging filename.h and
54967         dosname.h.  Applications that need only the easy-to-configure
54968         symbols should consider including dosname.h rather than dirname.h.
54969         * NEWS: Mention incompatible changes.
54970         * m4/dos.m4: Remove.
54971         * lib/dosname.h, modules/dosname: New files.
54972         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54973         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54974         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54975         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54976         Include dosname.h, not dirname.h.
54977         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54978         Include dosname.h, for definitions of symbols like ISSLASH
54979         that used to be in config.h.
54980         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54982         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54983         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54984         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54985         * modules/rmdir (Files): Likewise.
54986         * modules/stat (Files): Likewise.
54987         * modules/unlink (Files): Likewise.
54988         * modules/dirname-lgpl (Depends-on): Add dosname.
54989         * modules/lstat (Depends-on): Likewise.
54990         * modules/openat (Depends-on): Likewise.
54991         * modules/rmdir (Depends-on): Likewise.
54992         * modules/savewd (Depends-on): Likewise.
54993         * modules/stat (Depends-on): Likewise.
54994         * modules/unlink (Depends-on): Likewise.
54995         * modules/openat (Depends-on): Remove dirname-lgpl.
54996         * modules/savewd (Depends-on): Likewise.
54997         * tests/test-dirname.c: Do not use removed symbols like
54998         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54999         the remaining symbols, e.g., ISSLASH ('\\').
55001 2011-02-25  Eric Blake  <eblake@redhat.com>
55003         strstr: revert patches that introduced bug and pessimization
55004         * lib/str-two-way.h: Add another reference.
55005         (two_way_short_needle, two_way_long_needle): Revert changes from
55006         2011-02-24; they pessimize search speed.
55007         (critical_factorization): Partially revert changes from
55008         2010-06-22; they violate the requirement that the left half of the
55009         needle be smaller than the period of the needle.
55011 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55013         filenamecat: remove unnecessary dependency on dirname-lgpl
55014         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55015         is no direct dependency, just an indirect one via filenamecat-lgpl.
55017         remove: remove unnecessary use of m4/dos.m4
55018         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55019         * modules/remove (FILES): Remove m4/dos.m4.
55021         * lib/openat-proc.c: Don't include dirname.h; not needed.
55023         backupfile: remove unnecessary use of m4/dos.m4
55024         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55025         of its symbols are used by the backupfile code.  backupfile.c does
55026         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55027         for the rare case of programs that want all their backup file
55028         names to live within 8+3 limits, and dos.m4 doesn't address that.
55029         * modules/backupfile (Files): Remove m4/dos.m4.
55031 2011-02-24  Jim Meyering  <meyering@redhat.com>
55033         strstr: fix a bug whereby strstr would mistakenly return NULL
55034         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55035         in period calculation.
55036         (two_way_long_needle): Likewise.
55037         The original problem was reported by Mike Stump in
55038         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55039         Ralf Wildenhues provided the short needle and haystack.
55040         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55041         Add a more involved test to trigger the bug in two_way_long_needle.
55043 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55045         gnulib-tool: remove use of bold display in help screen
55046         * gnulib-tool (func_usage): Do not use bold display anymore in the
55047         help screen.  That was just meant to be a temporary emphasis for a
55048         backward-incompatible change.
55050 2011-02-23  Bruno Haible  <bruno@clisp.org>
55052         Fix misindentation of preprocessor directives.
55053         * lib/argp-namefrob.h: Reindent preprocessor directives.
55054         * lib/getopt_int.h (struct _getopt_data): Likewise.
55055         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55056         * lib/vasnprintf.c (decode_long_double): Likewise.
55057         * tests/test-argmatch.c: Insert blank lines, for clarity.
55058         * tests/test-exclude.c: Likewise.
55060 2011-02-22  Bruno Haible  <bruno@clisp.org>
55062         ioctl: Fix for MacOS X in 64-bit mode.
55063         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55064         value.
55065         Suggested by Eric Blake.
55066         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55068 2011-02-22  Jim Meyering  <meyering@redhat.com>
55070         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55071         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55072         in lib/.
55074 2011-02-22  Eric Blake  <eblake@redhat.com>
55076         maint: avoid any CDPATH issue
55077         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55079         maint: adjust cpp indentation for my modules, as well
55080         * Makefile (sc_cpp_indent_check): Add my name.
55081         * lib/fbufmode.c: Filter through cppi.
55082         * lib/fpurge.c: Likewise.
55083         * lib/freadable.c: Likewise.
55084         * lib/freading.c: Likewise.
55085         * lib/fwritable.c: Likewise.
55086         * lib/fwriting.c: Likewise.
55087         * lib/sigaction.c: Likewise.
55089 2011-02-22  Jim Meyering  <meyering@redhat.com>
55091         maint: adjust cpp indentation to reflect nesting depth
55092         I.e., in a block of code that begins with an unnested "#if",
55093         put one space between the "#" in column 1 and following token.
55094         For example,
55095         -#include <sys/vfs.h>
55096         +# include <sys/vfs.h>
55097         Do this only in .c files that are part of a module I maintain.
55098         * lib/linkat.c: Filter through cppi.
55099         * lib/nanosleep.c: Likewise.
55100         * lib/openat.c: Likewise.
55101         * lib/openat-die.c: Likewise.
55102         * lib/dup3.c: Likewise.
55103         * lib/fchownat.c: Likewise.
55104         * lib/flock.c: Likewise.
55105         * lib/fsync.c: Likewise.
55106         * lib/fts.c: Likewise.
55107         * lib/getpass.c: Likewise.
55108         * lib/gettimeofday.c: Likewise.
55109         * lib/userspec.c: Likewise.
55110         * Makefile (sc_cpp_indent_check): New rule, to check this.
55112 2011-02-22  Bruno Haible  <bruno@clisp.org>
55114         New module 'wctomb'.
55115         * lib/stdlib.in.h (wctomb): New declaration.
55116         * lib/wctomb.c: New file.
55117         * lib/wctomb-impl.h: New file.
55118         * m4/wctomb.m4: New file.
55119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55120         REPLACE_WCTOMB.
55121         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55122         REPLACE_WCTOMB.
55123         * modules/wctomb: New file.
55124         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55125         * doc/posix-functions/wctomb.texi: Mention the new module.
55126         * modules/wctob (Depends-on): Add wctomb.
55128 2011-02-22  Bruno Haible  <bruno@clisp.org>
55130         New module 'mbtowc'.
55131         * lib/stdlib.in.h (mbtowc): New declaration.
55132         * lib/mbtowc.c: New file.
55133         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55134         * m4/mbtowc.m4: New file.
55135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55136         REPLACE_MBTOWC.
55137         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55138         REPLACE_MBTOWC.
55139         * modules/mbtowc: New file.
55140         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55141         * doc/posix-functions/mbtowc.texi: Mention the new module.
55142         * modules/btowc (Depends-on): Add mbtowc.
55144 2011-02-22  Bruno Haible  <bruno@clisp.org>
55146         wcrtomb: Add more tests for native Windows platforms.
55147         * tests/test-wcrtomb-w32-1.sh: New file.
55148         * tests/test-wcrtomb-w32-2.sh: New file.
55149         * tests/test-wcrtomb-w32-3.sh: New file.
55150         * tests/test-wcrtomb-w32-4.sh: New file.
55151         * tests/test-wcrtomb-w32-5.sh: New file.
55152         * tests/test-wcrtomb-w32.c: New file.
55153         * modules/wcrtomb-tests (Files): Add them.
55154         (Makefile.am): Arrange to run these tests.
55155         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55156         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55158 2011-02-20  Bruno Haible  <bruno@clisp.org>
55160         wcrtomb: Enhance test.
55161         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55163 2011-02-20  Bruno Haible  <bruno@clisp.org>
55165         mbrtowc: Tiny optimization.
55166         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55168 2011-02-20  Jim Meyering  <meyering@redhat.com>
55170         test-exclude.c: remove unmatched #endif
55171         * tests/test-exclude.c: Remove stray #endif, left over from
55172         the change of a week ago.
55174 2011-02-19  Jim Meyering  <meyering@redhat.com>
55176         git-version-gen: skip "-dirty" check when appropriate
55177         * build-aux/git-version-gen: Don't run any git commands when the
55178         version string comes from .tarball-version.  Prior to this, we
55179         would run git update-index --refresh even from a just-unpacked
55180         tarball directory, and that could affect a .git/ directory in a
55181         parent of the build directory.  Reported by Mike Frysinger.
55183 2011-02-19  Bruno Haible  <bruno@clisp.org>
55185         unictype/property-byname: Reduce the size of the 'data' segment.
55186         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55188 2011-02-19  Bruno Haible  <bruno@clisp.org>
55190         unictype/scripts: Reduce the size of the 'data' segment.
55191         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55192         '%pic'.
55193         * lib/unictype/scripts_byname.gperf: Regenerated.
55195 2011-02-19  Bruno Haible  <bruno@clisp.org>
55197         stdint: Update documentation.
55198         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55200 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55202         stdint: omit redundant check for wchar.h
55203         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55204         always tests whether wchar.h exists, so remove the now-redundant test.
55206 2011-02-18  Bruno Haible  <bruno@clisp.org>
55208         stdint: Cut dependency to module 'wchar'.
55209         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55210         include the necessary prerequisites.
55211         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55212         * modules/stdint (Depends-on): Remove wchar.
55213         (Makefile.am): Substitute HAVE_WCHAR_H.
55214         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55216 2011-02-18  Eric Blake  <eblake@redhat.com>
55218         longlong: skip, rather than fail, on cross-compilation
55219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55220         when cross-compiling; regression from 2011-02-16.
55222 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55224         * NEWS: Mention 2011-02-08 change to stdlib.
55226 2011-02-17  Bruno Haible  <bruno@clisp.org>
55228         getloadavg: Add comments about platforms.
55229         * m4/getloadavg.m4: Add comment.
55230         * lib/getloadavg.c: Likewise.
55232 2011-02-17  Bruno Haible  <bruno@clisp.org>
55234         getloadavg: Fix link error on Solaris 2.6.
55235         * modules/getloadavg (Link): New section.
55236         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55237         linking test-getloadavg.
55238         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55239         getloadavg.
55241 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55243         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55244         It was 'int', but this doesn't match the IRIX 6.5 manual.
55245         Suggested by Bruno Haible in
55246         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55248 2011-02-17  Bruno Haible  <bruno@clisp.org>
55250         havelib: Fix comments.
55251         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55252         change.
55254 2011-02-17  Bruno Haible  <bruno@clisp.org>
55256         havelib: Update config.rpath.
55257         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55259 2011-02-17  Bruno Haible  <bruno@clisp.org>
55261         getloadavg test: Add some plausibility checks.
55262         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55263         is improbable.
55265 2011-02-16  Eric Blake  <eblake@redhat.com>
55267         maintainer-makefile: make syntax-check a no-op from tarballs
55268         * top/maint.mk (no-vc-detected): New rule.
55269         (local-checks-available): Use it to avoid hanging if someone tries
55270         'make syntax-check' from a tarball.  Also append to any non-syntax
55271         checks already defined in cfg.mk.
55273 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55275         longlong: tune, particularly for common case of c99
55277         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55278         or running anything if c99, or if unsigned long long int does not
55279         work.  In either case, we know the answer without further tests.
55280         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55281         it at most once, and use its results for both long long int and
55282         unsigned long long int.  This is more likely to be efficient in
55283         the common case where the program wants to check for both long
55284         long int and unsigned long long int.
55285         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55286         since the answer is already known.
55288 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55290         getloadavg: set errno
55291         * lib/getloadavg.c: Set errno when returning -1.  If no other
55292         error number looks appropriate, set it to ENOSYS if the getloadavg
55293         looks like it can't possibly ever work, ENOTSUP otherwise.
55294         Suggested by Bruno Haible in
55295         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55297         getloadavg: trim unused parts and speed up 'configure'
55298         * NEWS: Document this.
55299         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55300         always compiled if getloadavg is absent.
55301         Move test code to ...
55302         * tests/test-getloadavg.c: New file, containing previous
55303         contents of test from lib/getloadavg.c.  It also contains
55304         suggestions by Bruno Haible in
55305         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55306         * modules/getloadavg-tests: New file.
55307         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55308         Do tests in the same order as they're needed for getloadavg.c.
55309         Omit setgid-related tests that generate symbols KMEM_GROUP,
55310         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55311         Do only the tests that are needed to see whether the system has
55312         getloadavg, moving the other tests into ...
55313         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55314         NLIST_NAME_UNION; nobody should be using it.  Do not define
55315         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55316         relevant, as the user of this module shouldn't care how getloadavg
55317         is implemented.
55319         getloadavg: omit unused var
55320         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55322 2011-02-15  Jim Meyering  <meyering@redhat.com>
55324         doc: update users.txt
55325         * users.txt: Update iwhd's URL.
55327 2011-02-13  Bruno Haible  <bruno@clisp.org>
55329         Consistent macro naming for macros that use GCC __attribute__.
55330         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55331         _ATTRIBUTE_NONNULL_.
55332         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55333         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55334         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55335         ATTRIBUTE_DEPRECATED.
55336         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55337         ATTRIBUTE_NORETURN.
55338         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55339         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55340         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55341         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55342         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55343         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55344         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55345         ATTRIBUTE_SENTINEL.
55346         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55347         ATTRIBUTE_RETURN_CHECK.
55348         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55349         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55350         ATTRIBUTE_NORETURN.
55351         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55352         Reported by Paul Eggert.
55354 2011-02-13  Bruno Haible  <bruno@clisp.org>
55356         Don't interfere with a program's definition of __attribute__.
55357         * lib/argp.h (__attribute__): Remove definition.
55358         (_GL_ATTRIBUTE_FORMAT): New macro.
55359         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55360         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55361         (_GL_ATTRIBUTE_FORMAT): New macro.
55362         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55363         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55364         GCC 3 or newer.
55365         * lib/error.h (__attribute__): Remove definition.
55366         (_GL_ATTRIBUTE_FORMAT): New macro.
55367         (error, error_at_line): Use it.
55368         * lib/hash.h (__attribute__): Remove definition.
55369         (ATTRIBUTE_WUR): Update definition. Define always.
55370         * lib/openat.h (__attribute__): Remove definition.
55371         (ATTRIBUTE_NORETURN): Update definition. Define always.
55372         * lib/sigpipe-die.h (__attribute__): Remove definition.
55373         (ATTRIBUTE_NORETURN): Update definition. Define always.
55374         * lib/vasnprintf.h (__attribute__): Remove definition.
55375         (_GL_ATTRIBUTE_FORMAT): New macro.
55376         (asnprintf, vasnprintf): Use it.
55377         * lib/xalloc.h (__attribute__): Remove definition.
55378         (ATTRIBUTE_NORETURN): Update definition. Define always.
55379         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55380         * lib/xmemdup0.h (__attribute__): Remove definition.
55381         (ATTRIBUTE_NORETURN): Update definition. Define always.
55382         * lib/xprintf.h (__attribute__): Remove definition.
55383         (_GL_ATTRIBUTE_FORMAT): New macro.
55384         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55385         * lib/xstrtol.h (__attribute__): Remove definition.
55386         (ATTRIBUTE_NORETURN): Update definition. Define always.
55387         * lib/xvasprintf.h (__attribute__): Remove definition.
55388         (_GL_ATTRIBUTE_FORMAT): New macro.
55389         (xasprintf, xvasprintf): Use it.
55390         * tests/test-argmatch.c (__attribute__): Remove definition.
55391         (ATTRIBUTE_NORETURN): Update definition. Define always.
55392         * tests/test-exclude.c (__attribute__): Remove definition.
55393         (ATTRIBUTE_NORETURN): Update definition. Define always.
55394         Reported by Paul Eggert.
55396 2011-02-13  Bruno Haible  <bruno@clisp.org>
55398         mbrtowc: Add more tests for native Windows platforms.
55399         * tests/test-mbrtowc-w32-1.sh: New file.
55400         * tests/test-mbrtowc-w32-2.sh: New file.
55401         * tests/test-mbrtowc-w32-3.sh: New file.
55402         * tests/test-mbrtowc-w32-4.sh: New file.
55403         * tests/test-mbrtowc-w32-5.sh: New file.
55404         * tests/test-mbrtowc-w32.c: New file.
55405         * modules/mbrtowc-tests (Files): Add them.
55406         (Makefile.am): Arrange to run these tests.
55407         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55408         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55410 2011-02-13  Bruno Haible  <bruno@clisp.org>
55412         mbrtowc: Work around native Windows bug.
55413         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
55414         guess when no suitable locale for testing was found.
55415         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
55417 2011-02-13  Bruno Haible  <bruno@clisp.org>
55419         mbsinit: Work around mingw bug.
55420         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
55421         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
55422         Windows.
55423         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
55425 2011-02-13  Bruno Haible  <bruno@clisp.org>
55427         mbsinit: Don't crash for a NULL argument.
55428         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
55429         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
55431 2011-02-13  Bruno Haible  <bruno@clisp.org>
55433         Don't interfere with a program's definition of __attribute__.
55434         * lib/stdio.in.h (__attribute__): Remove definition.
55435         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
55436         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
55437         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55438         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55439         * lib/string.in.h (__attribute__): Remove definition.
55440         Reported by Paul Eggert.
55442 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55444         stdlib: don't get in the way of non-GCC __attribute__
55445         See thread starting at
55446         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55447         Revert previous stdlib change, installing the following instead:
55448         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55449         to get in the way of a non-GCC compiler that supports __attribute__.
55450         (_GL_ATTRIBUTE_RETURN): New macro.
55451         (_Exit): Use it instead of __attribute__.
55453 2011-02-12  Bruno Haible  <bruno@clisp.org>
55455         quotearg test: Avoid test failure on mingw.
55456         * tests/test-quotearg.sh: Convert the locale identifier from native
55457         Windows syntax to Unix syntax.
55459 2011-02-12  Bruno Haible  <bruno@clisp.org>
55461         setlocale: Prefer gnulib's override over libintl's override.
55462         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55463         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55464         GNULIB_defined_setlocale is set.
55466 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55468         stdlib: support non-GCC __attribute__
55470         Fix a serious and tricky problem encountered when attempting to
55471         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55472         5.5, but it crashed due to memory corruption on Solaris 10 with
55473         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55474         bits that are otherwise zero.  This tagging is optional inside
55475         Emacs but is preferred and is used when __attribute__ ((__aligned
55476         (8))) works, as it does with both recent-enough GCC and with Sun C
55477         5.11.  However, Sun C 5.11 is not GCC and does not #define
55478         __GNUC__ and __GNUC_MINOR__.
55480         When I added the getloadavg module to Emacs, it brought in
55481         stdlib.in.h, which contained this fragment:
55483            #ifndef __attribute__
55484            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55485            #  define __attribute__(Spec)   /* empty */
55486            # endif
55487            #endif
55489         When files that include <stdlib.h> were compiled with Sun C 5.11,
55490         the above code disabled __attribute__ ((__aligned (8))), which
55491         caused variables to not be properly aligned, which eventually led
55492         to the pointer corruption mentioned above.  (This was a bit hard
55493         to diagnose, unfortunately.)
55495         Several "#define __attribute__(X) /* empty */" code snippets need
55496         to be eradicated from Gnulib to work with non-GCC compilers that
55497         support __attribute__.  The Autoconf way to do this is to test for
55498         each kind of attribute that we want support for, and selectively
55499         enable that in source code.
55501         Fix this problem just for stdlib.h, by adding a test for the
55502         __noreturn__ attribute, and change stdlib.in.h to use that test
55503         when needed.  This technique can be easily generalized to the
55504         other *.in.h files and attributes, and a similar technique can be
55505         used for *.h and *.c files.  This patch is enough to solve the
55506         problem for Emacs + getloadavg, and I thought I'd publish it for
55507         feedback before undertaking further, similar fixes in other
55508         modules.
55510         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55511         because it's not needed for stdlib.h.  It merely substitutes the
55512         value directly into stdlib.h.  We may well need to #define it, or
55513         similar symbols, for other modules, but it's nice to also have an
55514         option to not #define it for applications like Emacs that do not
55515         need it.
55517         * lib/stdlib.in.h (__attribute__): Do not #define.
55518         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55519         be defined only if the _Exit module is also used.
55520         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55522         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55523         platforms.
55524         * modules/_Exit (Files): Add m4/attribute.m4.
55525         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55526         * m4/attribute.m4: New file.
55528 2011-02-12  Bruno Haible  <bruno@clisp.org>
55530         wcsrtombs: Work around bug on native Windows.
55531         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55532         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55533         instead of len.
55534         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55536 2011-02-12  Bruno Haible  <bruno@clisp.org>
55538         mbsrtowcs: Work around bug on native Windows.
55539         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55540         against mingw bug.
55541         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55543 2011-02-12  Bruno Haible  <bruno@clisp.org>
55545         Avoid setlocale bugs in tests.
55546         * modules/btowc (Dependencies): Add setlocale.
55547         * modules/c-strcase (Dependencies): Likewise.
55548         * modules/mbmemcasecmp (Dependencies): Likewise.
55549         * modules/mbmemcasecoll (Dependencies): Likewise.
55550         * modules/mbrtowc (Dependencies): Likewise.
55551         * modules/mbscasecmp (Dependencies): Likewise.
55552         * modules/mbscasestr (Dependencies): Likewise.
55553         * modules/mbschr (Dependencies): Likewise.
55554         * modules/mbscspn (Dependencies): Likewise.
55555         * modules/mbsinit (Dependencies): Likewise.
55556         * modules/mbsncasecmp (Dependencies): Likewise.
55557         * modules/mbsnrtowcs (Dependencies): Likewise.
55558         * modules/mbspbrk (Dependencies): Likewise.
55559         * modules/mbspcasecmp (Dependencies): Likewise.
55560         * modules/mbsrchr (Dependencies): Likewise.
55561         * modules/mbsrtowcs (Dependencies): Likewise.
55562         * modules/mbsspn (Dependencies): Likewise.
55563         * modules/mbsstr (Dependencies): Likewise.
55564         * modules/nl_langinfo (Dependencies): Likewise.
55565         * modules/quotearg (Dependencies): Likewise.
55566         * modules/unicase/locale-language (Dependencies): Likewise.
55567         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55568         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55569         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55570         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55571         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55572         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55573         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55574         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55575         * modules/vasnprintf-posix (Dependencies): Likewise.
55576         * modules/wcrtomb (Dependencies): Likewise.
55577         * modules/wcsnrtombs (Dependencies): Likewise.
55578         * modules/wcsrtombs (Dependencies): Likewise.
55580 2011-02-12  Bruno Haible  <bruno@clisp.org>
55582         setlocale: Workaround native Windows bug.
55583         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55584         succeeds but sets LC_CTYPE to "C", report a failure.
55585         * tests/test-setlocale2.sh: New file.
55586         * tests/test-setlocale2.c: New file.
55587         * modules/setlocale-tests (Files): Add the new files.
55588         (Makefile.am): Enable test-setlocale2.sh test.
55589         * doc/posix-functions/setlocale.texi: Mention workaround.
55591 2011-02-11  Bruno Haible  <bruno@clisp.org>
55593         Tests for module 'setlocale'.
55594         * modules/setlocale-tests: New file.
55595         * tests/test-setlocale1.sh: New file.
55596         * tests/test-setlocale1.c: New file.
55598         New module 'setlocale'.
55599         * lib/locale.in.h (setlocale): New declaration.
55600         * lib/setlocale.c: New file, based on
55601         gettext/gettext-runtime/intl/setlocale.c.
55602         * m4/setlocale.m4: New file.
55603         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55604         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55605         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55606         REPLACE_SETLOCALE.
55607         * modules/setlocale: New file.
55608         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55609         * doc/posix-functions/setlocale.texi: Mention the new module.
55611 2011-02-11  Bruno Haible  <bruno@clisp.org>
55613         Prepare for locale dependent tests on mingw.
55614         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55615         because it has the wrong locale encoding.
55616         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55617         French_France.1252 instead of "fr".
55618         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55619         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55620         because it has the wrong locale encoding.
55621         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55622         native Windows, try Turkish_Turkey.65001.
55623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55624         Chinese_China.54936.
55626         Prepare for locale dependent tests on mingw.
55627         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55628         differently.
55629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55630         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55634 2011-02-11  Eric Blake  <eblake@redhat.com>
55636         strptime: avoid compiler warnings
55637         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55638         compiler warnings about dead code.
55639         Reported by Daniel P. Berrange.
55641 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55643         doc: update users.txt
55644         * users.txt: Add rcs.
55646 2011-02-10  John W. Eaton  <jwe@gnu.org>
55648         doc: update users.txt
55649         * users.txt: Add octave.
55651 2011-02-10  Jim Meyering  <meyering@redhat.com>
55653         doc: update users.txt
55654         * users.txt: Add iwhd.
55656 2011-02-09  Bruno Haible  <bruno@clisp.org>
55658         gnulib-tool: Make copyright notice adjustment more robust.
55659         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55660         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55661         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55662         License".
55663         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55665 2011-02-06  Bruno Haible  <bruno@clisp.org>
55667         New module 'towctrans'.
55668         * modules/towctrans: New file.
55669         * lib/wctype.in.h (towctrans): New declaration.
55670         * lib/towctrans.c: New file.
55671         * lib/towctrans-impl.h: New file.
55672         * m4/towctrans.m4: New file.
55673         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55674         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55675         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55676         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55677         * doc/posix-functions/towctrans.texi: Mention the new module.
55679 2011-02-06  Bruno Haible  <bruno@clisp.org>
55681         New module 'wctrans'.
55682         * modules/wctrans: New file.
55683         * lib/wctype.in.h (wctrans): New declaration.
55684         * lib/wctrans.c: New file.
55685         * lib/wctrans-impl.h: New file.
55686         * m4/wctrans.m4: New file.
55687         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55688         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55689         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55690         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55691         * doc/posix-functions/wctrans.texi: Mention the new module.
55693 2011-02-06  Bruno Haible  <bruno@clisp.org>
55695         New module 'iswctype'.
55696         * modules/iswctype: New file.
55697         * lib/wctype.in.h (iswctype): New declaration.
55698         * lib/iswctype.c: New file.
55699         * lib/iswctype-impl.h: New file.
55700         * m4/iswctype.m4: New file.
55701         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55702         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55703         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55704         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55705         * doc/posix-functions/iswctype.texi: Mention the new module and the
55706         HP-UX 11.00 problem.
55708 2011-02-06  Bruno Haible  <bruno@clisp.org>
55710         New module 'wctype'.
55711         * modules/wctype: Change to represent the wctype() substitute.
55712         * lib/wctype.in.h (wctype): New declaration.
55713         * lib/wctype.c: New file.
55714         * lib/wctype-impl.h: New file.
55715         * m4/wctype.m4: New file.
55716         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55717         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55718         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55719         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55720         * doc/posix-functions/wctype.texi: Mention the new module and the
55721         HP-UX 11.00 problem.
55723 2011-02-06  Bruno Haible  <bruno@clisp.org>
55725         wctype-h: Ensure wctype_t and wctrans_t are defined.
55726         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55727         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55728         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55729         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55730         HAVE_WCTRANS_T.
55731         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55733 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55735         flock: fix license typo
55737         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55738         omitted.
55740 2011-02-08  Bruno Haible  <bruno@clisp.org>
55742         Split large sed scripts, for HP-UX sed.
55743         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55744         to avoid HP-UX limit of 99 commands, in the near future.
55745         * modules/stdlib (Makefile.am): Likewise.
55746         * modules/unistd (Makefile.am): Likewise.
55747         * modules/wchar (Makefile.am): Likewise.
55748         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55749         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55750         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55752 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55753             Bruno Haible  <bruno@clisp.org>
55755         stdlib: improve random_r modularization
55756         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55757         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55758         you also need the random_r module to get this material right.
55759         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55760         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55761         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55763 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55765         stdlib: don't depend on stdint
55766         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55767         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55768         be independent of whether stdint.h is needed.
55769         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55770         here, instead of ...
55771         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55772         struct random_data should be using the random_r module, not just
55773         the stdlib module (which wouldn't make sense: what package needs
55774         just struct random_data without also needing random_r?).
55775         * modules/stdlib (Depends-on): Remove stdint.
55777         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55778         See the thread rooted at
55779         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55780         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55781         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55782         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55783         __VMS)); previously it was always included (via fcntl--.h).
55784         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55785         hand; this is good enough for load averages.  Also, do not use
55786         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55787         flags directly if available and don't bother otherwise.  (Packages
55788         that need the extra reliability should use the modules that define
55789         these flags on older platforms that lack them.)
55790         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55791         fcntl-safer.
55793 2011-02-08  Jim Meyering  <meyering@redhat.com>
55795         di-set.h, ino-map.h: add multiple-inclusion guard
55796         Technically, the guard is required only for ino-map.h, due to its
55797         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55798         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55799         * lib/ino-map.h: Likewise.
55801 2011-02-06  Bruno Haible  <bruno@clisp.org>
55803         iswblank: Ensure declaration on glibc systems.
55804         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55805         * modules/iswblank (Dependencies): Add 'extensions'.
55806         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55808 2011-02-06  Bruno Haible  <bruno@clisp.org>
55810         New module 'iswblank'.
55811         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55812         * modules/iswblank: New file.
55813         * modules/wctype-h (Files): Remove lib/iswblank.c.
55814         (Makefile.am): Substitute GNULIB_ISWBLANK.
55815         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55816         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55817         (gl_WCTYPE_H_DEFAULTS): New macro.
55818         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55819         * modules/iswblank-tests: New file.
55820         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55821         * tests/test-wctype-h.c (main): Remove iswblank tests.
55822         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55823         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55824         of 'wctype-h'.
55825         * NEWS: Mention the change.
55826         * modules/mbchar (Depends-on): Add iswblank.
55828 2011-02-08  Bruno Haible  <bruno@clisp.org>
55830         di-set tests: Refactor.
55831         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55832         unnecessary includes.
55833         (ASSERT): Remove macro.
55834         (main): Make C90 compliant by avoiding variable declaration after
55835         statement.
55836         * modules/di-set-tests (Files): Add tests/macros.h.
55838 2011-02-08  Bruno Haible  <bruno@clisp.org>
55840         ino-map tests: Refactor.
55841         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55842         unnecessary includes.
55843         (ASSERT): Remove macro.
55844         (main): Make C90 compliant by avoiding variable declaration after
55845         statement.
55846         * modules/ino-map-tests (Files): Add tests/macros.h.
55848 2011-02-08  Jim Meyering  <meyering@redhat.com>
55850         di-set: add "const" to a cast
55851         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55852         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55854 2011-02-06  Bruno Haible  <bruno@clisp.org>
55856         Rename module 'wctype' to 'wctype-h'.
55857         * modules/wctype-h: Renamed from modules/wctype.
55858         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55859         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55860         (Files, Depends-on, Makefile.am): Update.
55861         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55862         (Files, Makefile.am): Update.
55863         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55864         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55865         * doc/posix-headers/wctype.texi: Update.
55866         * doc/posix-functions/iswalnum.texi: Update.
55867         * doc/posix-functions/iswalpha.texi: Update.
55868         * doc/posix-functions/iswblank.texi: Update.
55869         * doc/posix-functions/iswcntrl.texi: Update.
55870         * doc/posix-functions/iswdigit.texi: Update.
55871         * doc/posix-functions/iswgraph.texi: Update.
55872         * doc/posix-functions/iswlower.texi: Update.
55873         * doc/posix-functions/iswprint.texi: Update.
55874         * doc/posix-functions/iswpunct.texi: Update.
55875         * doc/posix-functions/iswspace.texi: Update.
55876         * doc/posix-functions/iswupper.texi: Update.
55877         * doc/posix-functions/iswxdigit.texi: Update.
55878         * doc/posix-functions/towlower.texi: Update.
55879         * doc/posix-functions/towupper.texi: Update.
55880         * NEWS: Mention the change.
55881         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55882         * modules/mbchar (Dependencies): Likewise.
55883         * modules/mbswidth (Dependencies): Likewise.
55884         * modules/quotearg (Dependencies): Likewise.
55885         * modules/regex (Dependencies): Likewise.
55886         * modules/wcscasecmp (Dependencies): Likewise.
55887         * modules/wcsncasecmp (Dependencies): Likewise.
55888         * modules/wcwidth (Dependencies): Likewise.
55890 2011-02-06  Bruno Haible  <bruno@clisp.org>
55892         New module 'wcswidth'.
55893         * modules/wcswidth: New file.
55894         * lib/wchar.in.h (wcswidth): New declaration.
55895         * lib/wcswidth.c: New file.
55896         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55897         * m4/wcswidth.m4: New file.
55898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55900         REPLACE_WCSWIDTH.
55901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55902         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55903         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55904         * doc/posix-functions/wcswidth.texi: Mention the new module.
55906 2011-02-06  Bruno Haible  <bruno@clisp.org>
55908         New module 'wcstok'.
55909         * modules/wcstok: New file.
55910         * lib/wchar.in.h (wcstok): New declaration.
55911         * lib/wcstok.c: New file.
55912         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55913         * m4/wcstok.m4: New file.
55914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55917         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55918         * doc/posix-functions/wcstok.texi: Mention the new module.
55920 2011-02-06  Bruno Haible  <bruno@clisp.org>
55922         New module 'wcsstr'.
55923         * modules/wcsstr: New file.
55924         * lib/wchar.in.h (wcsstr): New declaration.
55925         * lib/wcsstr.c: New file.
55926         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55927         * m4/wcsstr.m4: New file.
55928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55931         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55932         * doc/posix-functions/wcsstr.texi: Mention the new module.
55934 2011-02-06  Bruno Haible  <bruno@clisp.org>
55936         New module 'wcspbrk'.
55937         * modules/wcspbrk: New file.
55938         * lib/wchar.in.h (wcspbrk): New declaration.
55939         * lib/wcspbrk.c: New file.
55940         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55941         * m4/wcspbrk.m4: New file.
55942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55945         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55946         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55948 2011-02-06  Bruno Haible  <bruno@clisp.org>
55950         New module 'wcsspn'.
55951         * modules/wcsspn: New file.
55952         * lib/wchar.in.h (wcsspn): New declaration.
55953         * lib/wcsspn.c: New file.
55954         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55955         * m4/wcsspn.m4: New file.
55956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55958         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55959         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55960         * doc/posix-functions/wcsspn.texi: Mention the new module.
55962 2011-02-06  Bruno Haible  <bruno@clisp.org>
55964         New module 'wcscspn'.
55965         * modules/wcscspn: New file.
55966         * lib/wchar.in.h (wcscspn): New declaration.
55967         * lib/wcscspn.c: New file.
55968         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55969         * m4/wcscspn.m4: New file.
55970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55972         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55973         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55974         * doc/posix-functions/wcscspn.texi: Mention the new module.
55976 2011-02-06  Bruno Haible  <bruno@clisp.org>
55978         New module 'wcsrchr'.
55979         * modules/wcsrchr: New file.
55980         * lib/wchar.in.h (wcsrchr): New declaration.
55981         * lib/wcsrchr.c: New file.
55982         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55983         * m4/wcsrchr.m4: New file.
55984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55986         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55987         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55988         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55990 2011-02-06  Bruno Haible  <bruno@clisp.org>
55992         New module 'wcschr'.
55993         * modules/wcschr: New file.
55994         * lib/wchar.in.h (wcschr): New declaration.
55995         * lib/wcschr.c: New file.
55996         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55997         * m4/wcschr.m4: New file.
55998         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55999         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56000         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56001         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56002         * doc/posix-functions/wcschr.texi: Mention the new module.
56004 2011-02-06  Bruno Haible  <bruno@clisp.org>
56006         New module 'wcsdup'.
56007         * modules/wcsdup: New file.
56008         * lib/wchar.in.h (wcsdup): New declaration.
56009         * lib/wcsdup.c: New file.
56010         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56011         * m4/wcsdup.m4: New file.
56012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56015         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56016         * doc/posix-functions/wcsdup.texi: Mention the new module.
56018 2011-02-06  Bruno Haible  <bruno@clisp.org>
56020         New module 'wcsxfrm'.
56021         * modules/wcsxfrm: New file.
56022         * lib/wchar.in.h (wcsxfrm): New declaration.
56023         * lib/wcsxfrm.c: New file.
56024         * lib/wcsxfrm-impl.h: New file.
56025         * m4/wcsxfrm.m4: New file.
56026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56029         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56030         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56032 2011-02-06  Bruno Haible  <bruno@clisp.org>
56034         New module 'wcscoll'.
56035         * modules/wcscoll: New file.
56036         * lib/wchar.in.h (wcscoll): New declaration.
56037         * lib/wcscoll.c: New file.
56038         * lib/wcscoll-impl.h: New file.
56039         * m4/wcscoll.m4: New file.
56040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56043         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56044         * doc/posix-functions/wcscoll.texi: Mention the new module.
56046 2011-02-06  Bruno Haible  <bruno@clisp.org>
56048         New module 'wcsncasecmp'.
56049         * modules/wcsncasecmp: New file.
56050         * lib/wchar.in.h (wcsncasecmp): New declaration.
56051         * lib/wcsncasecmp.c: New file.
56052         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56053         * m4/wcsncasecmp.m4: New file.
56054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56057         HAVE_WCSNCASECMP.
56058         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56059         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56061 2011-02-06  Bruno Haible  <bruno@clisp.org>
56063         New module 'wcscasecmp'.
56064         * modules/wcscasecmp: New file.
56065         * lib/wchar.in.h (wcscasecmp): New declaration.
56066         * lib/wcscasecmp.c: New file.
56067         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56068         * m4/wcscasecmp.m4: New file.
56069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56072         HAVE_WCSCASECMP.
56073         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56074         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56076 2011-02-05  Bruno Haible  <bruno@clisp.org>
56078         New module 'wcsncmp'.
56079         * modules/wcsncmp: New file.
56080         * lib/wchar.in.h (wcsncmp): New declaration.
56081         * lib/wcsncmp.c: New file.
56082         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56083         * m4/wcsncmp.m4: New file.
56084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56087         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56088         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56090 2011-02-05  Bruno Haible  <bruno@clisp.org>
56092         New module 'wcscmp'.
56093         * modules/wcscmp: New file.
56094         * lib/wchar.in.h (wcscmp): New declaration.
56095         * lib/wcscmp.c: New file.
56096         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56097         * m4/wcscmp.m4: New file.
56098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56100         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56101         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56102         * doc/posix-functions/wcscmp.texi: Mention the new module.
56104 2011-02-05  Bruno Haible  <bruno@clisp.org>
56106         New module 'wcsncat'.
56107         * modules/wcsncat: New file.
56108         * lib/wchar.in.h (wcsncat): New declaration.
56109         * lib/wcsncat.c: New file.
56110         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56111         * m4/wcsncat.m4: New file.
56112         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56113         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56115         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56116         * doc/posix-functions/wcsncat.texi: Mention the new module.
56118 2011-02-05  Bruno Haible  <bruno@clisp.org>
56120         New module 'wcscat'.
56121         * modules/wcscat: New file.
56122         * lib/wchar.in.h (wcscat): New declaration.
56123         * lib/wcscat.c: New file.
56124         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56125         * m4/wcscat.m4: New file.
56126         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56127         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56129         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56130         * doc/posix-functions/wcscat.texi: Mention the new module.
56132 2011-02-05  Bruno Haible  <bruno@clisp.org>
56134         New module 'wcpncpy'.
56135         * modules/wcpncpy: New file.
56136         * lib/wchar.in.h (wcpncpy): New declaration.
56137         * lib/wcpncpy.c: New file.
56138         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56139         * m4/wcpncpy.m4: New file.
56140         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56141         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56142         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56143         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56144         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56146 2011-02-05  Bruno Haible  <bruno@clisp.org>
56148         New module 'wcsncpy'.
56149         * modules/wcsncpy: New file.
56150         * lib/wchar.in.h (wcsncpy): New declaration.
56151         * lib/wcsncpy.c: New file.
56152         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56153         * m4/wcsncpy.m4: New file.
56154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56156         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56157         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56158         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56160 2011-02-05  Bruno Haible  <bruno@clisp.org>
56162         New module 'wcpcpy'.
56163         * modules/wcpcpy: New file.
56164         * lib/wchar.in.h (wcpcpy): New declaration.
56165         * lib/wcpcpy.c: New file.
56166         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56167         * m4/wcpcpy.m4: New file.
56168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56170         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56171         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56172         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56174 2011-02-05  Bruno Haible  <bruno@clisp.org>
56176         New module 'wcscpy'.
56177         * modules/wcscpy: New file.
56178         * lib/wchar.in.h (wcscpy): New declaration.
56179         * lib/wcscpy.c: New file.
56180         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56181         * m4/wcscpy.m4: New file.
56182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56185         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56186         * doc/posix-functions/wcscpy.texi: Mention the new module.
56188 2011-02-05  Bruno Haible  <bruno@clisp.org>
56190         New module 'wcsnlen'.
56191         * modules/wcsnlen: New file.
56192         * lib/wchar.in.h (wcsnlen): New declaration.
56193         * lib/wcsnlen.c: New file.
56194         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56195         * m4/wcsnlen.m4: New file.
56196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56199         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56200         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56202 2011-02-05  Bruno Haible  <bruno@clisp.org>
56204         New module 'wcslen'.
56205         * modules/wcslen: New file.
56206         * lib/wchar.in.h (wcslen): New declaration.
56207         * lib/wcslen.c: New file.
56208         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56209         * m4/wcslen.m4: New file.
56210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56213         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56214         * doc/posix-functions/wcslen.texi: Mention the new module.
56216 2011-02-05  Bruno Haible  <bruno@clisp.org>
56218         New module 'wmemset'.
56219         * modules/wmemset: New file.
56220         * lib/wchar.in.h (wmemset): New declaration.
56221         * lib/wmemset.c: New file.
56222         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56223         * m4/wmemset.m4: New file.
56224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56226         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56227         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56228         * doc/posix-functions/wmemset.texi: Mention the new module.
56230 2011-02-05  Bruno Haible  <bruno@clisp.org>
56232         New module 'wmemmove'.
56233         * modules/wmemmove: New file.
56234         * lib/wchar.in.h (wmemmove): New declaration.
56235         * lib/wmemmove.c: New file.
56236         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56237         * m4/wmemmove.m4: New file.
56238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56240         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56241         HAVE_WMEMMOVE.
56242         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56243         * doc/posix-functions/wmemmove.texi: Mention the new module.
56245 2011-02-05  Bruno Haible  <bruno@clisp.org>
56247         New module 'wmemcpy'.
56248         * modules/wmemcpy: New file.
56249         * lib/wchar.in.h (wmemcpy): New declaration.
56250         * lib/wmemcpy.c: New file.
56251         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56252         * m4/wmemcpy.m4: New file.
56253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56255         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56256         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56257         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56259 2011-02-05  Bruno Haible  <bruno@clisp.org>
56261         New module 'wmemcmp'.
56262         * modules/wmemcmp: New file.
56263         * lib/wchar.in.h (wmemcmp): New declaration.
56264         * lib/wmemcmp.c: New file.
56265         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56266         * m4/wmemcmp.m4: New file.
56267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56269         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56270         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56271         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56273 2011-02-07  Jim Meyering  <meyering@redhat.com>
56275         di-set, ino-map: new modules, from coreutils
56276         * lib/di-set.c: New file.
56277         * lib/di-set.h: Likewise.
56278         * lib/ino-map.c: Likewise.
56279         * lib/ino-map.h: Likewise.
56280         * modules/di-set: Likewise.
56281         * modules/di-set-tests: Likewise.
56282         * modules/ino-map: Likewise.
56283         * modules/ino-map-tests: Likewise.
56284         * tests/test-di-set.c: Likewise.
56285         * tests/test-ino-map.c: Likewise.
56287 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56289         getloadavg: merge minor changes from Emacs
56291         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56292         (getloadavg): Use memset, not bzero.
56294         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56295         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56296         clash (bug#86).
56298 2010-11-14  Bruno Haible  <bruno@clisp.org>
56300         Allow multiple gnulib generated replacements to coexist.
56301         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56302         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56303         * lib/langinfo.in.h (nl_item): Likewise.
56304         * lib/math.in.h (_NaN, NAN): Likewise.
56305         * lib/netdb.in.h (struct addrinfo): Likewise.
56306         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56307         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56308         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56309         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56310         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56311         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56312         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56313         pthread_mutexattr_init, pthread_mutexattr_settype,
56314         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56315         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56316         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56317         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56318         * lib/sched.in.h (struct sched_param): Likewise.
56319         * lib/se-selinux.in.h (security_class_t, security_context_t,
56320         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56321         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56322         lsetfilecon, fsetfilecon, security_check_context,
56323         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56324         Likewise.
56325         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56326         Likewise.
56327         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56328         _gl_function_taking_int_returning_void_t, union sigval,
56329         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56330         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56331         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56332         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56333         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56334         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56335         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56336         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56337         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56338         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56339         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56340         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56341         socklen_t, rpl_fd_isset): Likewise.
56342         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56343         * lib/sys_time.in.h (struct timeval): Likewise.
56344         * lib/sys_times.in.h (struct tms): Likewise.
56345         * lib/sys_utsname.in.h (struct utsname):
56346         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56347         * lib/unistd.in.h (getpagesize): Likewise.
56348         * lib/wchar.in.h (mbstate_t): Likewise.
56349         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56350         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56351         towlower, towupper): Likewise.
56352         Reported by Sam Steingold <sds@gnu.org>.
56354 2011-02-05  Eric Blake  <eblake@redhat.com>
56356         unsetenv: work around Haiku issues
56357         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56358         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56360 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56362         libposix: avoid calling error() within libposix
56363         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56364         is defined.
56366 2011-02-05  Eric Blake  <eblake@redhat.com>
56368         strerror_r-posix: port to cygwin
56369         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56370         implementation.
56371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56372         * tests/test-strerror_r.c (main): Fix test.
56373         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56374         issue.
56376 2011-02-05  Bruno Haible  <bruno@clisp.org>
56378         New module 'wmemchr'.
56379         * modules/wmemchr: New file.
56380         * lib/wchar.in.h (wmemchr): New declaration.
56381         * lib/wmemchr.c: New file.
56382         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56383         * m4/wmemchr.m4: New file.
56384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56386         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56387         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56388         * doc/posix-functions/wmemchr.texi: Mention the new module.
56390 2011-02-04  Eric Blake  <eblake@redhat.com>
56392         fdopendir: detect FreeBSD bug
56393         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56394         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56396 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56398         stdbool: do not define HAVE_STDBOOL_H
56399         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56400         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56401         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56402         imported from the latest Autoconf git.  It was motivated by Emacs,
56403         which uses gnulib but does not need HAVE_STDBOOL_H.
56405 2011-02-04  Bruno Haible  <bruno@clisp.org>
56407         wcsnrtombs: Prepare for new module wwcsnrtombs.
56408         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56409         * lib/wcsnrtombs.c: Include it.
56410         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56412         wcsrtombs: Prepare for new module wwcsrtombs.
56413         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
56414         * lib/wcsrtombs.c: Include it.
56415         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
56417         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
56418         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
56419         * lib/mbsnrtowcs.c: Include it.
56420         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
56422         mbsrtowcs: Prepare for new module mbsrtowwcs.
56423         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
56424         * lib/mbsrtowcs.c: Include it.
56425         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
56427 2011-02-04  Bruno Haible  <bruno@clisp.org>
56429         vasnprintf: Reduce use of malloc for small format strings.
56430         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
56431         (arguments): Add room for the first 7 arguments.
56432         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
56433         (char_directives, u8_directives, u16_directives, u32_directives): Add
56434         room for the first 7 directives.
56435         * lib/printf-parse.c: Include <string.h>.
56436         (PRINTF_PARSE): Change memory handling code so that it uses the first
56437         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56438         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56439         Reported by Pádraig Brady <P@draigbrady.com>.
56441 2011-01-31  Eric Blake  <eblake@redhat.com>
56443         dup2: work around Haiku bug
56444         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56445         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56446         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56447         * tests/test-dup2.c (main): Enhance test.
56449 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56451         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56452         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56453         declared by eglibc 2.11.2.
56454         * lib/stdio.in.h: Likewise.
56456 2011-01-31  Eric Blake  <eblake@redhat.com>
56458         ignore-value: add missing test dependency
56459         * tests/test-ignore-value.c: Revert previous change; stdio.h
56460         provides off_t.
56461         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56463 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56465         mktime: clarify long_int width checking
56466         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56467         the top level, to make it clearer that the assumption about
56468         long_int width is being checked.  See
56469         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56471 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56473         ignore-value: Fix self-test.
56474         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56476 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56478         TYPE_MAXIMUM: avoid theoretically undefined behavior
56479         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56480         negative number, which the C Standard says has undefined behavior.
56481         In practice this is not a problem, but might as well do it by the book.
56482         Reported by Rich Felker and Eric Blake; see
56483         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56484         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56485         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56487         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56488         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56489         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56491         mktime: #undef mktime before #defining it
56492         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56494         mktime: systematically normalize tm_isdst comparisons
56495         * lib/mktime.c (isdst_differ): New function.
56496         (__mktime_internal): Use it systematically for all isdst comparisons.
56497         This completes the fix for libc BZ #6723, and removes the need for
56498         normalizing tm_isdst.  See
56499         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56500         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56502         mktime: fix some integer overflow issues and sidestep the rest
56504         This was prompted by a bug report by Benjamin Lindner for MinGW
56505         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56506         His bug is due to signed integer overflow (0 - INT_MIN), and I
56507         I scanned through mktime.c looking for other integer overflow
56508         problems, fixing all the bugs I found.
56510         Although the C Standard says the resulting code is still not safe
56511         in the presence of integer overflow, in practice it should be good
56512         enough for all real-world two's-complement implementations, except
56513         for debugging environments that deliberately trap on integer
56514         overflow (e.g., gcc -ftrapv).
56516         * lib/mktime.c (WRAPV): New macro.
56517         (SHR): Also check that long_int and time_t shift right in the
56518         usual way, before using the fast-but-unportable method.
56519         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56520         used.  The code already assumed two's complement, so there's
56521         no need to test for alternatives.  All uses removed.
56522         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56523         the C standard.  Problem reported by Rich Felker in
56524         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56525         (twos_complement_arithmetic): Also check long_int and time_t.
56526         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56527         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56528         (__mktime_internal): Avoid integer overflow with unary subtraction
56529         in two instances where -1 - X is an adequate replacement for -X,
56530         since the calculations are approximate.
56532 2011-01-29  Eric Blake  <eblake@redhat.com>
56534         mktime: avoid infinite loop
56535         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56536         type; behavior is still undefined but portable to all known targets.
56537         Reported by Rich Felker.
56539 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56541         rename, unlink, same-inode: Relicense.
56542         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56543         * modules/unlink (License): Likewise.
56544         * modules/same-inode (License): Likewise.
56546 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56548         mktime: avoid problems on NetBSD 5 / i386
56549         * lib/mktime.c (long_int): New type.  This works around a problem
56550         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56551         but time_t is 64 bits, and where I expect the existing code is
56552         wrong in some cases.
56553         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56554         (ydhms_diff): Bring back the compile-time check for wide-enough
56555         year and yday.
56557         mktime: fix misspelling in comment
56558         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56559         This merges all recent glibc changes of importance.
56561 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56563         move-if-change: cope with concurrent mv of identical file.
56564         * build-aux/move-if-change (CMPPROG): Accept environment
56565         variable as an override for `cmp'.
56566         (usage): Document CMPPROG.
56567         Adjust comparison to drop stdout.  Cope with failure of mv if
56568         the target file exists and is identical to the source, for
56569         parallel builds.
56570         Report from H.J. Lu against binutils in PR binutils/12283.
56572 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56574         * users.txt: Mention sharutils.
56576 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56578         * users.txt: Mention OATH Toolkit.
56580 2011-01-27  Bruno Haible  <bruno@clisp.org>
56582         Prepare for supporting FreeBSD 10.
56583         * build-aux/config.libpath: Remove handling of freebsd1*.
56585 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56587         Prepare for supporting FreeBSD 10.
56588         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56589         match FreeBSD 10.0.
56591 2011-01-27  Bruno Haible  <bruno@clisp.org>
56593         vma-iter, get-rusage-as: Add OpenBSD support.
56594         * modules/vma-iter (configure.ac): Test for mquery.
56595         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56596         * lib/vma-iter.c: Include <sys/mman.h>.
56597         (vma_iterate): Add an implementation based on mquery().
56598         * lib/resource-ext.h (get_rusage_as): Update comments.
56599         * lib/get-rusage-as.c: Likewise.
56600         * lib/get-rusage-data.c: Likewise.
56602 2011-01-26  Karl Berry  <karl@gnu.org>
56604         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56605         variables to make it easier to override the makeinfo program used.
56607 2011-01-26  Eric Blake  <eblake@redhat.com>
56609         fcntl: work around Haiku F_DUPFD bugs
56610         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56611         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56612         cloexec bit on duplication.
56613         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56615 2011-01-26  Bruno Haible  <bruno@clisp.org>
56617         Enable memory leak tests on AIX.
56618         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56619         * tests/test-fprintf-posix3.c (main): Likewise.
56621 2011-01-26  Bruno Haible  <bruno@clisp.org>
56623         Tests for module 'get-rusage-data'.
56624         * modules/get-rusage-data-tests: New file.
56625         * tests/test-get-rusage-data.c: New file.
56627         New module 'get-rusage-data'.
56628         * lib/resource-ext.h (get_rusage_data): New declaration.
56629         * lib/get-rusage-data.c: New file.
56630         * modules/get-rusage-data: New file.
56632 2011-01-25  Bruno Haible  <bruno@clisp.org>
56634         get-rusage-as: Allow for easier testing.
56635         * lib/resource-ext.h (get_rusage_as): Add comment.
56636         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56637         (main): New function for interactive testing.
56639 2011-01-25  Bruno Haible  <bruno@clisp.org>
56641         vma-iter: Treat Haiku like BeOS.
56642         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56643         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56645 2011-01-25  Eric Blake  <eblake@redhat.com>
56647         c-stack: fix regression on cygwin when libsigsegv is present
56648         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56650 2011-01-24  Bruno Haible  <bruno@clisp.org>
56652         vma-iter: Avoid empty intervals.
56653         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56654         on an empty interval.
56656 2011-01-24  Jim Meyering  <meyering@redhat.com>
56658         u64: remove unnecessary #include
56659         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56661 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56663         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56664         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56666 2011-01-23  Bruno Haible  <bruno@clisp.org>
56668         New module 'vma-iter'.
56669         * lib/vma-iter.h: New file.
56670         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56671         * modules/vma-iter: New file.
56672         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56673         for get_rusage_as_via_iterator.
56674         (vma_iterate_callback): New function.
56675         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56676         * modules/get-rusage-as (Depends-on): Add vma-iter.
56678 2011-01-23  Bruno Haible  <bruno@clisp.org>
56680         uninorm: Tweak includes.
56681         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56682         Reported by Jim Meyering.
56684 2011-01-23  Bruno Haible  <bruno@clisp.org>
56686         get-rusage-as: Improve on NetBSD.
56687         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56688         /proc, like on FreeBSD.
56690 2011-01-23  Jim Meyering  <meyering@redhat.com>
56692         xreadlink.h: remove unnecessary #include
56693         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56695         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56696         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56698 2011-01-23  Bruno Haible  <bruno@clisp.org>
56700         get-rusage-as: Fix bug.
56701         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56702         original limit when aborting the first loop.
56704 2011-01-23  Bruno Haible  <bruno@clisp.org>
56706         wctype: Ensure valid C syntax.
56707         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56708         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56710 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56712         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56714         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56715         as they are needed only for configure's test case.
56716         This removes two unnecessary symbols from config.h.
56718         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56719         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56721         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56722         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56723         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56724         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56725         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56726         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56727         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56728         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56730         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56731         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56732         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56733         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56734         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56735         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56737 2011-01-21  Eric Blake  <eblake@redhat.com>
56739         maintainer-makefile: work with older git for submodule check
56740         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56741         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56742         Reported by Matthias Bolte.
56744         bootstrap: minor portability fixes
56745         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56746         (usage): Omit leading capital and trailing . on help phrases, per
56747         GNU Coding Standards.
56748         (check_versions, top level): Prefix messages with script name.
56750 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56752         bootstrap: support --no-git option
56753         * build-aux/bootstrap: Add --no-git option, to be used when
56754         --gnulib-srcdir points to the exact desired checkout.
56756 2011-01-21  Eric Blake  <eblake@redhat.com>
56758         strerror_r-posix: work with glibc 2.13
56759         * lib/strerror_r.c (strerror_r): Fix return type.
56761 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56762             Bruno Haible  <bruno@clisp.org>
56764         uN_strstr: New unit tests.
56765         * modules/unistr/u8-strstr-tests: New file.
56766         * modules/unistr/u16-strstr-tests: New file.
56767         * modules/unistr/u32-strstr-tests: New file.
56768         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56769         * tests/unistr/test-u8-strstr.c: New file.
56770         * tests/unistr/test-u16-strstr.c: New file.
56771         * tests/unistr/test-u32-strstr.c: New file.
56773 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56774             Bruno Haible  <bruno@clisp.org>
56776         Make uN_strstr functions O(n) worst-case.
56777         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56778         16-bit and 32-bit unit cases, use the unibyte algorithm from
56779         lib/mbsstr.c.
56780         * lib/unistr/u8-strstr.c: Include <string.h>.
56781         (UNIT_IS_UINT8_T): New macro.
56782         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56783         (U_STRLEN, U_STRNLEN): New macros.
56784         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56785         (U_STRLEN, U_STRNLEN): New macros.
56786         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56787         (configure.ac): Update required libunistring version.
56788         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56789         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56790         malloca.
56791         (configure.ac): Update required libunistring version.
56792         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56793         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56794         malloca.
56795         (configure.ac): Update required libunistring version.
56797 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56798             Bruno Haible  <bruno@clisp.org>
56800         Prepare for faster uN_strstr functions.
56801         * lib/str-kmp.h: Support definable UNITs.
56802         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56803         needle_len argument.
56804         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56805         * lib/mbscasestr.c (mbscasestr): Likewise.
56807 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56809         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56810         * tests/test-malloca.c (main): Unset the environment variable
56811         to greatly speed up the test.
56812         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56813         * modules/malloca-tests: Depend on unsetenv.
56815 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56817         ignore-value: remove stdint dependency
56818         * lib/ignore-value.h: Remove <stdint.h>
56819         * modules/ignore-value: Remove stdint dependency.
56821 2011-01-21  Jim Meyering  <meyering@redhat.com>
56823         maint.mk: adjust variable name to be consistent with other gl_ vars
56824         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56825         to be lower case.
56827 2011-01-20  Jim Meyering  <meyering@redhat.com>
56829         maint.mk: make "check" depend on public-submodule-commit by default
56830         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56832 2011-01-20  Bruno Haible  <bruno@clisp.org>
56834         mbfile, mbiter: Complete change from 2008-12-21.
56835         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56836         * m4/mbiter.m4 (gl_MBITER): Likewise.
56838 2011-01-20  Jim Meyering  <meyering@redhat.com>
56840         init.sh: insert space between each function name and "()"
56841         * tests/init.sh: Make it a little easier to see that a function's
56842         name is "warn_", and not "warn" when looking at the first part of
56843         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56845 2011-01-20  Jim Meyering  <meyering@redhat.com>
56847         mountlist: clean up code formatting
56848         * lib/mountlist.c (read_file_system_list): Split a long line,
56849         correct bracing style, use NULL in place of "(struct statfs *)0",
56850         don't parenthesize return value, add spaces around "=" and after
56851         ";-in-for-stmt".
56853 2011-01-14  Markus Duft  <mduft@gentoo.org>
56855         mountlist: add support for Interix
56856         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56857         Apply statvfs to all entries of /dev/fs.
56858         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56859         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56861 2011-01-20  Jim Meyering  <meyering@redhat.com>
56863         maint.mk: improve the public-submodule-commit rule
56864         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56865         to suppress printing of its commands... unless V=1.
56866         Add git submodule's --quiet option to suppress printing of e.g.,
56867         "Entering gnulib" output.
56868         "cd" into $(srcdir) before running git submodule.
56870 2011-01-20  Bruno Haible  <bruno@clisp.org>
56872         include_next: Fix bug introduced on 2011-01-18.
56873         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56874         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56875         ac_cv_header_... variable if the second argument is not 'check'.
56876         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56877         gl_NEXT_HEADERS_INTERNAL.
56879 2011-01-20  Bruno Haible  <bruno@clisp.org>
56881         Allow the user to avoid the GNULIB_TEST_* macros.
56882         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56883         Suggested by Paul Eggert.
56885 2011-01-14  Jim Meyering  <meyering@redhat.com>
56887         bootstrap: avoid failure when there is no .gitmodules file
56888         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56889         has been assigned to, even when its value is the empty string.
56890         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56891         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56892         Reported by John W. Eaton <jwe@gnu.org>.
56894 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56896         assume <ctype.h>, ..., <time.h> exist
56897         For years gnulib has been assuming the existence of the headers
56898         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56899         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56900         them, since they don't appear to be needed.
56901         * README (Portability guidelines): Document this.
56902         * lib/flock.c: Assume <fcntl.h> exists.
56903         * lib/regex_internal.h: Assume <locale.h> exists.
56904         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56906         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56907         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56908         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56909         * m4/regex.m4 (gl_REGEX): Likewise.
56910         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56911         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56912         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56913         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56914         * tests/test-argp.c: Likewise.
56915         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56917         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56918         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56919         AA_APPLE_UNIVERSAL_BUILD.  See
56920         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56921         * NEWS: Document this.
56923 2011-01-19  Eric Blake  <eblake@redhat.com>
56925         c-stack: assume stack overflow if SA_SIGINFO unsupported
56926         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56927         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56928         sigaction will work.
56929         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56930         behavior match Linux.
56931         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56933         stdbool-tests: accommodate Haiku
56934         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56936         binary-io: fix O_TEXT on Haiku
56937         * modules/binary-io (Depends-on): Add fcntl-h.
56938         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56939         than blindly undefining O_TEXT.
56940         Reported by Scott McCreary.
56942 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56944         include_next: do not check for standard headers like stddef.h
56946         I found this problem when modifying Emacs to use gnulib.
56947         I noticed that it added HAVE_STDDEF_H to config.h, even though
56948         gnulib always assumes <stddef.h> exists as per README and this
56949         symbol is unnecessary.
56950         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56951         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56952         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56953         faster for headers like stddef.h that are known to exist.
56954         (gl_CHECK_NEXT_HEADERS): Use it.
56955         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56956         rather than gl_CHECK_NEXT_HEADERS.
56957         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56958         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56960 2011-01-18  Eric Blake  <eblake@redhat.com>
56962         ansi-c++-opt: skip C++ dependency style if C++ is unused
56963         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56964         tests when we know C++ compilation is not desired.
56965         Reported by Scott McCreary.
56967 2011-01-18  Bruno Haible  <bruno@clisp.org>
56969         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56970         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56971         (main): Perform test also when getrlimit and setrlimit don't exist or
56972         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56973         limiting the address space size using setrlimit, compare the address
56974         space size before and after the test.
56975         * tests/test-dprintf-posix2.c: Likewise.
56976         * tests/test-fprintf-posix3.sh: Update skip messages.
56977         * tests/test-dprintf-posix2.sh: Likewise.
56978         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56979         * modules/dprintf-posix-tests (Depends-on): Likewise.
56980         Reported by Bruce Korb <bkorb@gnu.org> and
56981         Gary V. Vaughan <gary@gnu.org>.
56983 2011-01-18  Bruno Haible  <bruno@clisp.org>
56985         get-rusage-as: Improvement for Cygwin.
56986         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56987         areas that are merely reserved.
56989 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56991         strftime: remove dependencies on multibyte modules
56993         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56994         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56995         only if __osf__ is defined, and I suspect OSF doesn't need these
56996         other modules.  If my guess is wrong, we'll need to come up with a
56997         variant of strftime that doesn't need the multibyte modules.
56999         I discovered this problem when attempting modify Emacs to use the
57000         strftime module.  With the previous gnulib, this caused Emacs to
57001         need 31 new files, ranging from lib/config.charset to
57002         m4/wint_t.m4.  This was overkill and I expect would be offputting
57003         to the Emacs maintainers.  After this change, only 6 new files are
57004         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57005         stdbool.m4, and tm_gmtoff.m4.
57007         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57008         Suggested by Bruno Haible in
57009         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57011         and do not check for wchar.h.
57012         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57013         (Depends-on): Remove mbrlen, mbsinit, wchar.
57015 2011-01-18  Bruno Haible  <bruno@clisp.org>
57017         Tests for module 'get-rusage-as'.
57018         * modules/get-rusage-as-tests: New file.
57019         * tests/test-get-rusage-as.c: New file.
57021         New module 'get-rusage-as'.
57022         * modules/get-rusage-as: New file.
57023         * lib/resource-ext.h: New file.
57024         * lib/get-rusage-as.c: New file.
57026 2011-01-17  Eric Blake  <eblake@redhat.com>
57028         sigaction: relax license from LGPLv3+ to LGPLv2+
57029         * modules/sigaction (License): Relax to LGPLv2+.
57031 2011-01-14  Bruno Haible  <bruno@clisp.org>
57033         filemode: Make function declarations usable in C++ mode.
57034         * lib/filemode.h: Enclose function declarations in extern "C" block.
57035         Reported by John W. Eaton <jwe@gnu.org>.
57037 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57039         save-cwd: no longer include "xgetcwd.h"
57040         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57041         This avoids a compilation failure in projects that use save-cwd
57042         without also using the xgetcwd module.
57044 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57046         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57047         This is so that a program like Emacs, which needs only dtoastr,
57048         does not have to bother with distributing and compiling ftoastr
57049         and ldtoastr.
57050         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57051         * modules/dtoastr, modules/ldtoastr: New files.
57052         * modules/ftoastr: Now works just for 'float'.
57053         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57054         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57055         dtoastr.c, ldtoastr.c.
57057 2011-01-11  Jim Meyering  <meyering@redhat.com>
57059         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57060         There is no need to work around the lack of the fchdir function,
57061         since gnulib can now provide a replacement when required.
57062         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57063         * modules/save-cwd (Depends-on): Add fchdir.
57065 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57067         openat, save-cwd: avoid xmalloc
57069         This removes a direct (but undocumented) dependency of openat on
57070         xalloc, along with an indirect dependency via save-cwd.  It also
57071         removes a dependency of save-cwd on xgetcwd, and thereby
57072         indirectly on xalloc.  This change causes the openat substitute
57073         to fall back on save_cwd when memory is tight, and for save_cwd to
57074         fail instead of dying when memory is tight, but that's good enough.
57075         Problem and initial idea for fix reported by Bastien Roucaries in
57076         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57078         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57079         xalloc.h (for xmalloc).
57080         (openat_proc_name): Use malloc, not xmalloc.
57081         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57082         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57084         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57085         This avoids heap allocation for file names whose lengths are in
57086         the range 512..1023, with the upper bound increasing to at most
57087         4031 depending on the platform's PATH_MAX.  (We do not want
57088         pathmax.h here as it might supply a non-constant PATH_MAX.)
57089         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57090         Perhaps they should be moved to malloca.h?
57091         (OPENAT_BUFFER_SIZE): Use them.
57093 2011-01-10  Bruno Haible  <bruno@clisp.org>
57095         doc: Update users.txt.
57096         * users.txt: Add recutils.
57098 2011-01-09  Karl Berry  <karl@gnu.org>
57100         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57102         * doc/configmake.texi: New file.
57103         * doc/gnulib.texi: Include it.
57104         * modules/configmake: Move documentation from here.
57106 2011-01-09  Bruno Haible  <bruno@clisp.org>
57108         Update to Unicode 6.0.0.
57109         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57110         (get_lbp): Update for Unicode 6.0.0.
57111         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57112         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57113         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57114         U+11001, U+11038..U+11046. Remove U+06DE.
57115         (uc_width): Fix bounds of planes.
57116         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57117         lib/uniwidth/width.c.
57118         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57119         trailing whitespace removed.
57120         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57121         without comments, but with the original copyright notice.
57122         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57123         * lib/unicase/ignorable.h: Likewise.
57124         * lib/unicase/tocasefold.h: Likewise.
57125         * lib/unicase/tolower.h: Likewise.
57126         * lib/unicase/totitle.h: Likewise.
57127         * lib/unicase/toupper.h: Likewise.
57128         * lib/unictype/bidi_of.h: Likewise.
57129         * lib/unictype/blocks.h: Likewise.
57130         * lib/unictype/categ_C.h: Likewise.
57131         * lib/unictype/categ_Cn.h: Likewise.
57132         * lib/unictype/categ_L.h: Likewise.
57133         * lib/unictype/categ_Ll.h: Likewise.
57134         * lib/unictype/categ_Lm.h: Likewise.
57135         * lib/unictype/categ_Lo.h: Likewise.
57136         * lib/unictype/categ_Lu.h: Likewise.
57137         * lib/unictype/categ_M.h: Likewise.
57138         * lib/unictype/categ_Mc.h: Likewise.
57139         * lib/unictype/categ_Me.h: Likewise.
57140         * lib/unictype/categ_Mn.h: Likewise.
57141         * lib/unictype/categ_N.h: Likewise.
57142         * lib/unictype/categ_Nd.h: Likewise.
57143         * lib/unictype/categ_No.h: Likewise.
57144         * lib/unictype/categ_P.h: Likewise.
57145         * lib/unictype/categ_Po.h: Likewise.
57146         * lib/unictype/categ_S.h: Likewise.
57147         * lib/unictype/categ_Sc.h: Likewise.
57148         * lib/unictype/categ_Sk.h: Likewise.
57149         * lib/unictype/categ_Sm.h: Likewise.
57150         * lib/unictype/categ_So.h: Likewise.
57151         * lib/unictype/categ_of.h: Likewise.
57152         * lib/unictype/combining.h: Likewise.
57153         * lib/unictype/ctype_alnum.h: Likewise.
57154         * lib/unictype/ctype_alpha.h: Likewise.
57155         * lib/unictype/ctype_graph.h: Likewise.
57156         * lib/unictype/ctype_lower.h: Likewise.
57157         * lib/unictype/ctype_print.h: Likewise.
57158         * lib/unictype/ctype_punct.h: Likewise.
57159         * lib/unictype/ctype_upper.h: Likewise.
57160         * lib/unictype/decdigit.h: Likewise.
57161         * lib/unictype/digit.h: Likewise.
57162         * lib/unictype/numeric.h: Likewise.
57163         * lib/unictype/pr_alphabetic.h: Likewise.
57164         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57166         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57167         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57168         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57169         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57170         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57171         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57172         * lib/unictype/pr_case_ignorable.h: Likewise.
57173         * lib/unictype/pr_cased.h: Likewise.
57174         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57175         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57176         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57177         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57178         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57179         * lib/unictype/pr_combining.h: Likewise.
57180         * lib/unictype/pr_composite.h: Likewise.
57181         * lib/unictype/pr_currency_symbol.h: Likewise.
57182         * lib/unictype/pr_decimal_digit.h: Likewise.
57183         * lib/unictype/pr_deprecated.h: Likewise.
57184         * lib/unictype/pr_format_control.h: Likewise.
57185         * lib/unictype/pr_grapheme_base.h: Likewise.
57186         * lib/unictype/pr_grapheme_extend.h: Likewise.
57187         * lib/unictype/pr_grapheme_link.h: Likewise.
57188         * lib/unictype/pr_id_continue.h: Likewise.
57189         * lib/unictype/pr_id_start.h: Likewise.
57190         * lib/unictype/pr_ideographic.h: Likewise.
57191         * lib/unictype/pr_lowercase.h: Likewise.
57192         * lib/unictype/pr_math.h: Likewise.
57193         * lib/unictype/pr_numeric.h: Likewise.
57194         * lib/unictype/pr_other_alphabetic.h: Likewise.
57195         * lib/unictype/pr_other_id_continue.h: Likewise.
57196         * lib/unictype/pr_other_math.h: Likewise.
57197         * lib/unictype/pr_punctuation.h: Likewise.
57198         * lib/unictype/pr_sentence_terminal.h: Likewise.
57199         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57200         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57201         * lib/unictype/pr_unified_ideograph.h: Likewise.
57202         * lib/unictype/pr_uppercase.h: Likewise.
57203         * lib/unictype/pr_xid_continue.h: Likewise.
57204         * lib/unictype/pr_xid_start.h: Likewise.
57205         * lib/unictype/scripts.h: Likewise.
57206         * lib/unictype/scripts_byname.gperf: Likewise.
57207         * lib/unictype/sy_java_ident.h: Likewise.
57208         * lib/unigbrk/gbrkprop.h: Likewise.
57209         * lib/unilbrk/lbrkprop1.h: Likewise.
57210         * lib/unilbrk/lbrkprop2.h: Likewise.
57211         * lib/uninorm/decomposition-table2.h: Likewise.
57212         * lib/uniwbrk/wbrkprop.h: Likewise.
57213         * tests/unicase/test-cased.c: Likewise.
57214         * tests/unicase/test-ignorable.c: Likewise.
57215         * tests/unicase/test-uc_tolower.c: Likewise.
57216         * tests/unicase/test-uc_totitle.c: Likewise.
57217         * tests/unicase/test-uc_toupper.c: Likewise.
57218         * tests/unictype/test-categ_C.c: Likewise.
57219         * tests/unictype/test-categ_Cn.c: Likewise.
57220         * tests/unictype/test-categ_L.c: Likewise.
57221         * tests/unictype/test-categ_Ll.c: Likewise.
57222         * tests/unictype/test-categ_Lm.c: Likewise.
57223         * tests/unictype/test-categ_Lo.c: Likewise.
57224         * tests/unictype/test-categ_Lu.c: Likewise.
57225         * tests/unictype/test-categ_M.c: Likewise.
57226         * tests/unictype/test-categ_Mc.c: Likewise.
57227         * tests/unictype/test-categ_Me.c: Likewise.
57228         * tests/unictype/test-categ_Mn.c: Likewise.
57229         * tests/unictype/test-categ_N.c: Likewise.
57230         * tests/unictype/test-categ_Nd.c: Likewise.
57231         * tests/unictype/test-categ_No.c: Likewise.
57232         * tests/unictype/test-categ_P.c: Likewise.
57233         * tests/unictype/test-categ_Po.c: Likewise.
57234         * tests/unictype/test-categ_S.c: Likewise.
57235         * tests/unictype/test-categ_Sc.c: Likewise.
57236         * tests/unictype/test-categ_Sk.c: Likewise.
57237         * tests/unictype/test-categ_Sm.c: Likewise.
57238         * tests/unictype/test-categ_So.c: Likewise.
57239         * tests/unictype/test-ctype_alnum.c: Likewise.
57240         * tests/unictype/test-ctype_alpha.c: Likewise.
57241         * tests/unictype/test-ctype_graph.c: Likewise.
57242         * tests/unictype/test-ctype_lower.c: Likewise.
57243         * tests/unictype/test-ctype_print.c: Likewise.
57244         * tests/unictype/test-ctype_punct.c: Likewise.
57245         * tests/unictype/test-ctype_upper.c: Likewise.
57246         * tests/unictype/test-decdigit.h: Likewise.
57247         * tests/unictype/test-digit.h: Likewise.
57248         * tests/unictype/test-numeric.h: Likewise.
57249         * tests/unictype/test-pr_alphabetic.c: Likewise.
57250         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57251         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57252         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57253         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57254         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57255         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57256         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57257         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57258         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57259         * tests/unictype/test-pr_cased.c: Likewise.
57260         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57261         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57262         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57263         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57264         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57265         * tests/unictype/test-pr_combining.c: Likewise.
57266         * tests/unictype/test-pr_composite.c: Likewise.
57267         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57268         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57269         * tests/unictype/test-pr_deprecated.c: Likewise.
57270         * tests/unictype/test-pr_format_control.c: Likewise.
57271         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57272         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57273         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57274         * tests/unictype/test-pr_id_continue.c: Likewise.
57275         * tests/unictype/test-pr_id_start.c: Likewise.
57276         * tests/unictype/test-pr_ideographic.c: Likewise.
57277         * tests/unictype/test-pr_lowercase.c: Likewise.
57278         * tests/unictype/test-pr_math.c: Likewise.
57279         * tests/unictype/test-pr_numeric.c: Likewise.
57280         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57281         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57282         * tests/unictype/test-pr_other_math.c: Likewise.
57283         * tests/unictype/test-pr_punctuation.c: Likewise.
57284         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57285         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57286         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57287         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57288         * tests/unictype/test-pr_uppercase.c: Likewise.
57289         * tests/unictype/test-pr_xid_continue.c: Likewise.
57290         * tests/unictype/test-pr_xid_start.c: Likewise.
57291         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57292         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57293         changes.
57294         * lib/unictype/categ_Cc.h: Likewise.
57295         * lib/unictype/categ_Cf.h: Likewise.
57296         * lib/unictype/categ_Co.h: Likewise.
57297         * lib/unictype/categ_Cs.h: Likewise.
57298         * lib/unictype/categ_Lt.h: Likewise.
57299         * lib/unictype/categ_Nl.h: Likewise.
57300         * lib/unictype/categ_Pc.h: Likewise.
57301         * lib/unictype/categ_Pd.h: Likewise.
57302         * lib/unictype/categ_Pe.h: Likewise.
57303         * lib/unictype/categ_Pf.h: Likewise.
57304         * lib/unictype/categ_Pi.h: Likewise.
57305         * lib/unictype/categ_Ps.h: Likewise.
57306         * lib/unictype/categ_Z.h: Likewise.
57307         * lib/unictype/categ_Zl.h: Likewise.
57308         * lib/unictype/categ_Zp.h: Likewise.
57309         * lib/unictype/categ_Zs.h: Likewise.
57310         * lib/unictype/ctype_blank.h: Likewise.
57311         * lib/unictype/ctype_cntrl.h: Likewise.
57312         * lib/unictype/ctype_digit.h: Likewise.
57313         * lib/unictype/ctype_space.h: Likewise.
57314         * lib/unictype/ctype_xdigit.h: Likewise.
57315         * lib/unictype/mirror.h: Likewise.
57316         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57317         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57318         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57319         * lib/unictype/pr_bidi_control.h: Likewise.
57320         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57321         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57322         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57323         * lib/unictype/pr_bidi_pdf.h: Likewise.
57324         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57325         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57326         * lib/unictype/pr_dash.h: Likewise.
57327         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57328         * lib/unictype/pr_diacritic.h: Likewise.
57329         * lib/unictype/pr_extender.h: Likewise.
57330         * lib/unictype/pr_hex_digit.h: Likewise.
57331         * lib/unictype/pr_hyphen.h: Likewise.
57332         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57333         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57334         * lib/unictype/pr_ignorable_control.h: Likewise.
57335         * lib/unictype/pr_iso_control.h: Likewise.
57336         * lib/unictype/pr_join_control.h: Likewise.
57337         * lib/unictype/pr_left_of_pair.h: Likewise.
57338         * lib/unictype/pr_line_separator.h: Likewise.
57339         * lib/unictype/pr_logical_order_exception.h: Likewise.
57340         * lib/unictype/pr_non_break.h: Likewise.
57341         * lib/unictype/pr_not_a_character.h: Likewise.
57342         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57343         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57344         * lib/unictype/pr_other_id_start.h: Likewise.
57345         * lib/unictype/pr_other_lowercase.h: Likewise.
57346         * lib/unictype/pr_other_uppercase.h: Likewise.
57347         * lib/unictype/pr_paired_punctuation.h: Likewise.
57348         * lib/unictype/pr_paragraph_separator.h: Likewise.
57349         * lib/unictype/pr_pattern_syntax.h: Likewise.
57350         * lib/unictype/pr_pattern_white_space.h: Likewise.
57351         * lib/unictype/pr_private_use.h: Likewise.
57352         * lib/unictype/pr_quotation_mark.h: Likewise.
57353         * lib/unictype/pr_radical.h: Likewise.
57354         * lib/unictype/pr_soft_dotted.h: Likewise.
57355         * lib/unictype/pr_space.h: Likewise.
57356         * lib/unictype/pr_titlecase.h: Likewise.
57357         * lib/unictype/pr_variation_selector.h: Likewise.
57358         * lib/unictype/pr_white_space.h: Likewise.
57359         * lib/unictype/pr_zero_width.h: Likewise.
57360         * lib/unictype/sy_c_ident.h: Likewise.
57361         * lib/unictype/sy_c_whitespace.h: Likewise.
57362         * lib/unictype/sy_java_whitespace.h: Likewise.
57363         * lib/uninorm/composition-table.gperf: Likewise.
57364         * lib/uninorm/decomposition-table1.h: Likewise.
57365         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57366         LB8.
57367         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57368         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57369         * modules/unictype/*: Bump version number of expected libunistring
57370         version.
57372 2011-01-09  Bruno Haible  <bruno@clisp.org>
57374         Update to Unicode 5.2.0.
57375         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57376         trailing whitespace removed.
57378 2011-01-09  Bruno Haible  <bruno@clisp.org>
57380         New Unicode character properties, from Unicode 5.2.0.
57381         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57382         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57383         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57384         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57385         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57386         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57387         uc_is_property_cased, uc_is_property_case_ignorable,
57388         uc_is_property_changes_when_lowercased,
57389         uc_is_property_changes_when_uppercased,
57390         uc_is_property_changes_when_titlecased,
57391         uc_is_property_changes_when_casefolded,
57392         uc_is_property_changes_when_casemapped): New declarations.
57393         * lib/unictype/pr_byname.gperf: Add the new properties.
57394         * modules/unictype/property-byname (Depends-on): Depend on the new
57395         properties modules.
57396         * modules/unictype/property-all (Depends-on): Likewise.
57397         * MODULES.html.sh (Unicode string functions): Add
57398         unictype/property-case-ignorable, unictype/property-cased,
57399         unictype/property-changes-when-casefolded,
57400         unictype/property-changes-when-casemapped,
57401         unictype/property-changes-when-lowercased,
57402         unictype/property-changes-when-titlecased,
57403         unictype/property-changes-when-uppercased.
57405         New module 'unictype/property-changes-when-casemapped'.
57406         * modules/unictype/property-changes-when-casemapped: New file.
57407         * lib/unictype/pr_changes_when_casemapped.c: New file.
57408         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57409         generated by gen-uni-tables.
57410         * modules/unictype/property-changes-when-casemapped-tests: New file.
57411         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57412         automatically generated by gen-uni-tables.
57414         New module 'unictype/property-changes-when-casefolded'.
57415         * modules/unictype/property-changes-when-casefolded: New file.
57416         * lib/unictype/pr_changes_when_casefolded.c: New file.
57417         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
57418         generated by gen-uni-tables.
57419         * modules/unictype/property-changes-when-casefolded-tests: New file.
57420         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
57421         automatically generated by gen-uni-tables.
57423         New module 'unictype/property-changes-when-titlecased'.
57424         * modules/unictype/property-changes-when-titlecased: New file.
57425         * lib/unictype/pr_changes_when_titlecased.c: New file.
57426         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
57427         generated by gen-uni-tables.
57428         * modules/unictype/property-changes-when-titlecased-tests: New file.
57429         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
57430         automatically generated by gen-uni-tables.
57432         New module 'unictype/property-changes-when-uppercased'.
57433         * modules/unictype/property-changes-when-uppercased: New file.
57434         * lib/unictype/pr_changes_when_uppercased.c: New file.
57435         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
57436         generated by gen-uni-tables.
57437         * modules/unictype/property-changes-when-uppercased-tests: New file.
57438         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57439         automatically generated by gen-uni-tables.
57441         New module 'unictype/property-changes-when-lowercased'.
57442         * modules/unictype/property-changes-when-lowercased: New file.
57443         * lib/unictype/pr_changes_when_lowercased.c: New file.
57444         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57445         generated by gen-uni-tables.
57446         * modules/unictype/property-changes-when-lowercased-tests: New file.
57447         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57448         automatically generated by gen-uni-tables.
57450         New module 'unictype/property-case-ignorable'.
57451         * modules/unictype/property-case-ignorable: New file.
57452         * lib/unictype/pr_case_ignorable.c: New file.
57453         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57454         by gen-uni-tables.
57455         * modules/unictype/property-case-ignorable-tests: New file.
57456         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57457         generated by gen-uni-tables.
57459         New module 'unictype/property-cased'.
57460         * modules/unictype/property-cased: New file.
57461         * lib/unictype/pr_cased.c: New file.
57462         * lib/unictype/pr_cased.h: New file, automatically generated by
57463         gen-uni-tables.
57464         * modules/unictype/property-cased-tests: New file.
57465         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57466         gen-uni-tables.
57468 2011-01-09  Bruno Haible  <bruno@clisp.org>
57470         Update to Unicode 5.2.0.
57471         * lib/gen-uni-tables.c (output_predicate, output_category,
57472         output_combclass, output_bidi_category, output_decimal_digit_test,
57473         output_decimal_digit, output_digit_test, output_digit,
57474         output_numeric_test, output_numeric, output_mirror, output_scripts,
57475         output_scripts_byname, output_blocks, output_ident_category): Fix
57476         comment header.
57477         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57478         get_wbp.
57479         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57480         items.
57481         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57482         Changes_When_Lowercased, Changes_When_Uppercased,
57483         Changes_When_Titlecased, Changes_When_Casefolded,
57484         Changes_When_Casemapped.
57485         (is_property_alphabetic, is_property_default_ignorable_code_point):
57486         Update for Unicode 5.2.0.
57487         (is_property_cased, is_property_case_ignorable,
57488         is_property_changes_when_lowercased,
57489         is_property_changes_when_uppercased,
57490         is_property_changes_when_titlecased,
57491         is_property_changes_when_casefolded,
57492         is_property_changes_when_casemapped): New functions.
57493         (output_properties): Output also the properties cased, case_ignorable,
57494         changes_when_lowercased, changes_when_uppercased,
57495         changes_when_titlecased, changes_when_casefolded,
57496         changes_when_casemapped.
57497         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57498         Unicode TR#11 revision 17 -> 19.
57499         (LBP_CP): New enumeration value.
57500         (LBP_*): Adjust values accordingly.
57501         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57502         TR#14 revision 22 -> 24.
57503         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57504         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57505         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57506         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57507         is_WBP_MIDLETTER.
57508         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57509         the code1 and code2 of each composition rule.
57510         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57511         * lib/unicase/ignorable.h: Likewise.
57512         * lib/unicase/tocasefold.h: Likewise.
57513         * lib/unicase/tolower.h: Likewise.
57514         * lib/unicase/totitle.h: Likewise.
57515         * lib/unicase/toupper.h: Likewise.
57516         * lib/unictype/bidi_of.h: Likewise.
57517         * lib/unictype/blocks.h: Likewise.
57518         * lib/unictype/categ_C.h: Likewise.
57519         * lib/unictype/categ_Cf.h: Likewise.
57520         * lib/unictype/categ_Cn.h: Likewise.
57521         * lib/unictype/categ_L.h: Likewise.
57522         * lib/unictype/categ_Ll.h: Likewise.
57523         * lib/unictype/categ_Lm.h: Likewise.
57524         * lib/unictype/categ_Lo.h: Likewise.
57525         * lib/unictype/categ_Lu.h: Likewise.
57526         * lib/unictype/categ_M.h: Likewise.
57527         * lib/unictype/categ_Mc.h: Likewise.
57528         * lib/unictype/categ_Mn.h: Likewise.
57529         * lib/unictype/categ_N.h: Likewise.
57530         * lib/unictype/categ_Nd.h: Likewise.
57531         * lib/unictype/categ_Nl.h: Likewise.
57532         * lib/unictype/categ_No.h: Likewise.
57533         * lib/unictype/categ_P.h: Likewise.
57534         * lib/unictype/categ_Pd.h: Likewise.
57535         * lib/unictype/categ_Po.h: Likewise.
57536         * lib/unictype/categ_S.h: Likewise.
57537         * lib/unictype/categ_Sc.h: Likewise.
57538         * lib/unictype/categ_So.h: Likewise.
57539         * lib/unictype/categ_of.h: Likewise.
57540         * lib/unictype/combining.h: Likewise.
57541         * lib/unictype/ctype_alnum.h: Likewise.
57542         * lib/unictype/ctype_alpha.h: Likewise.
57543         * lib/unictype/ctype_graph.h: Likewise.
57544         * lib/unictype/ctype_lower.h: Likewise.
57545         * lib/unictype/ctype_print.h: Likewise.
57546         * lib/unictype/ctype_punct.h: Likewise.
57547         * lib/unictype/ctype_upper.h: Likewise.
57548         * lib/unictype/decdigit.h: Likewise.
57549         * lib/unictype/digit.h: Likewise.
57550         * lib/unictype/numeric.h: Likewise.
57551         * lib/unictype/pr_alphabetic.h: Likewise.
57552         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57553         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57554         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57555         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57556         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57557         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57558         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57559         * lib/unictype/pr_combining.h: Likewise.
57560         * lib/unictype/pr_composite.h: Likewise.
57561         * lib/unictype/pr_currency_symbol.h: Likewise.
57562         * lib/unictype/pr_dash.h: Likewise.
57563         * lib/unictype/pr_decimal_digit.h: Likewise.
57564         * lib/unictype/pr_deprecated.h: Likewise.
57565         * lib/unictype/pr_diacritic.h: Likewise.
57566         * lib/unictype/pr_extender.h: Likewise.
57567         * lib/unictype/pr_grapheme_base.h: Likewise.
57568         * lib/unictype/pr_grapheme_extend.h: Likewise.
57569         * lib/unictype/pr_grapheme_link.h: Likewise.
57570         * lib/unictype/pr_id_continue.h: Likewise.
57571         * lib/unictype/pr_id_start.h: Likewise.
57572         * lib/unictype/pr_ideographic.h: Likewise.
57573         * lib/unictype/pr_ignorable_control.h: Likewise.
57574         * lib/unictype/pr_logical_order_exception.h: Likewise.
57575         * lib/unictype/pr_lowercase.h: Likewise.
57576         * lib/unictype/pr_numeric.h: Likewise.
57577         * lib/unictype/pr_other_alphabetic.h: Likewise.
57578         * lib/unictype/pr_punctuation.h: Likewise.
57579         * lib/unictype/pr_sentence_terminal.h: Likewise.
57580         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57581         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57582         * lib/unictype/pr_unified_ideograph.h: Likewise.
57583         * lib/unictype/pr_uppercase.h: Likewise.
57584         * lib/unictype/pr_xid_continue.h: Likewise.
57585         * lib/unictype/pr_xid_start.h: Likewise.
57586         * lib/unictype/pr_zero_width.h: Likewise.
57587         * lib/unictype/scripts.h: Likewise.
57588         * lib/unictype/scripts_byname.gperf: Likewise.
57589         * lib/unictype/sy_java_ident.h: Likewise.
57590         * lib/unigbrk/gbrkprop.h: Likewise.
57591         * lib/unilbrk/lbrkprop1.h: Likewise.
57592         * lib/unilbrk/lbrkprop2.h: Likewise.
57593         * lib/unilbrk/lbrktables.h: Likewise.
57594         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57595         LBP_CP. Implement rule LB30.
57596         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57597         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57598         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57599         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57600         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57601         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57602         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57603         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57604         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57605         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57606         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57607         bits instead of 16 bits in the code1 and code2 of each composition
57608         rule.
57609         (uc_composition): Update for Unicode 5.2.0.
57610         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57611         * lib/uninorm/decomposition-table2.h: Likewise.
57612         * lib/uniwbrk/wbrkprop.h: Likewise.
57613         * tests/unicase/test-cased.c: Likewise.
57614         * tests/unicase/test-ignorable.c: Likewise.
57615         * tests/unicase/test-uc_tolower.c: Likewise.
57616         * tests/unicase/test-uc_totitle.c: Likewise.
57617         * tests/unicase/test-uc_toupper.c: Likewise.
57618         * tests/unictype/test-categ_C.c: Likewise.
57619         * tests/unictype/test-categ_Cf.c: Likewise.
57620         * tests/unictype/test-categ_Cn.c: Likewise.
57621         * tests/unictype/test-categ_L.c: Likewise.
57622         * tests/unictype/test-categ_Ll.c: Likewise.
57623         * tests/unictype/test-categ_Lm.c: Likewise.
57624         * tests/unictype/test-categ_Lo.c: Likewise.
57625         * tests/unictype/test-categ_Lu.c: Likewise.
57626         * tests/unictype/test-categ_M.c: Likewise.
57627         * tests/unictype/test-categ_Mc.c: Likewise.
57628         * tests/unictype/test-categ_Mn.c: Likewise.
57629         * tests/unictype/test-categ_N.c: Likewise.
57630         * tests/unictype/test-categ_Nd.c: Likewise.
57631         * tests/unictype/test-categ_Nl.c: Likewise.
57632         * tests/unictype/test-categ_No.c: Likewise.
57633         * tests/unictype/test-categ_P.c: Likewise.
57634         * tests/unictype/test-categ_Pd.c: Likewise.
57635         * tests/unictype/test-categ_Po.c: Likewise.
57636         * tests/unictype/test-categ_S.c: Likewise.
57637         * tests/unictype/test-categ_Sc.c: Likewise.
57638         * tests/unictype/test-categ_So.c: Likewise.
57639         * tests/unictype/test-ctype_alnum.c: Likewise.
57640         * tests/unictype/test-ctype_alpha.c: Likewise.
57641         * tests/unictype/test-ctype_graph.c: Likewise.
57642         * tests/unictype/test-ctype_lower.c: Likewise.
57643         * tests/unictype/test-ctype_print.c: Likewise.
57644         * tests/unictype/test-ctype_punct.c: Likewise.
57645         * tests/unictype/test-ctype_upper.c: Likewise.
57646         * tests/unictype/test-decdigit.h: Likewise.
57647         * tests/unictype/test-digit.h: Likewise.
57648         * tests/unictype/test-numeric.h: Likewise.
57649         * tests/unictype/test-pr_alphabetic.c: Likewise.
57650         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57651         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57652         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57653         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57654         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57655         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57656         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57657         * tests/unictype/test-pr_combining.c: Likewise.
57658         * tests/unictype/test-pr_composite.c: Likewise.
57659         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57660         * tests/unictype/test-pr_dash.c: Likewise.
57661         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57662         * tests/unictype/test-pr_deprecated.c: Likewise.
57663         * tests/unictype/test-pr_diacritic.c: Likewise.
57664         * tests/unictype/test-pr_extender.c: Likewise.
57665         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57666         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57667         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57668         * tests/unictype/test-pr_id_continue.c: Likewise.
57669         * tests/unictype/test-pr_id_start.c: Likewise.
57670         * tests/unictype/test-pr_ideographic.c: Likewise.
57671         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57672         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57673         * tests/unictype/test-pr_lowercase.c: Likewise.
57674         * tests/unictype/test-pr_numeric.c: Likewise.
57675         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57676         * tests/unictype/test-pr_punctuation.c: Likewise.
57677         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57678         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57679         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57680         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57681         * tests/unictype/test-pr_uppercase.c: Likewise.
57682         * tests/unictype/test-pr_xid_continue.c: Likewise.
57683         * tests/unictype/test-pr_xid_start.c: Likewise.
57684         * tests/unictype/test-pr_zero_width.c: Likewise.
57685         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57686         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57687         changed behaviour: line breaking is now disallowed between a letter
57688         or '=' and '('.
57689         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57690         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57691         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57692         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57693         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57694         lib/uniwidth/width.c.
57695         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57696         without comments, but with the original copyright notice.
57697         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57698         changes.
57699         * lib/unictype/categ_Cc.h: Likewise.
57700         * lib/unictype/categ_Co.h: Likewise.
57701         * lib/unictype/categ_Cs.h: Likewise.
57702         * lib/unictype/categ_Lt.h: Likewise.
57703         * lib/unictype/categ_Me.h: Likewise.
57704         * lib/unictype/categ_Pc.h: Likewise.
57705         * lib/unictype/categ_Pe.h: Likewise.
57706         * lib/unictype/categ_Pf.h: Likewise.
57707         * lib/unictype/categ_Pi.h: Likewise.
57708         * lib/unictype/categ_Ps.h: Likewise.
57709         * lib/unictype/categ_Sk.h: Likewise.
57710         * lib/unictype/categ_Sm.h: Likewise.
57711         * lib/unictype/categ_Z.h: Likewise.
57712         * lib/unictype/categ_Zl.h: Likewise.
57713         * lib/unictype/categ_Zp.h: Likewise.
57714         * lib/unictype/categ_Zs.h: Likewise.
57715         * lib/unictype/ctype_blank.h: Likewise.
57716         * lib/unictype/ctype_cntrl.h: Likewise.
57717         * lib/unictype/ctype_digit.h: Likewise.
57718         * lib/unictype/ctype_space.h: Likewise.
57719         * lib/unictype/ctype_xdigit.h: Likewise.
57720         * lib/unictype/mirror.h: Likewise.
57721         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57722         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57723         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57724         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57725         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57726         * lib/unictype/pr_bidi_control.h: Likewise.
57727         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57728         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57729         * lib/unictype/pr_bidi_pdf.h: Likewise.
57730         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57731         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57732         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57733         * lib/unictype/pr_format_control.h: Likewise.
57734         * lib/unictype/pr_hex_digit.h: Likewise.
57735         * lib/unictype/pr_hyphen.h: Likewise.
57736         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57737         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57738         * lib/unictype/pr_iso_control.h: Likewise.
57739         * lib/unictype/pr_join_control.h: Likewise.
57740         * lib/unictype/pr_left_of_pair.h: Likewise.
57741         * lib/unictype/pr_line_separator.h: Likewise.
57742         * lib/unictype/pr_math.h: Likewise.
57743         * lib/unictype/pr_non_break.h: Likewise.
57744         * lib/unictype/pr_not_a_character.h: Likewise.
57745         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57746         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57747         * lib/unictype/pr_other_id_continue.h: Likewise.
57748         * lib/unictype/pr_other_id_start.h: Likewise.
57749         * lib/unictype/pr_other_lowercase.h: Likewise.
57750         * lib/unictype/pr_other_math.h: Likewise.
57751         * lib/unictype/pr_other_uppercase.h: Likewise.
57752         * lib/unictype/pr_paired_punctuation.h: Likewise.
57753         * lib/unictype/pr_paragraph_separator.h: Likewise.
57754         * lib/unictype/pr_pattern_syntax.h: Likewise.
57755         * lib/unictype/pr_pattern_white_space.h: Likewise.
57756         * lib/unictype/pr_private_use.h: Likewise.
57757         * lib/unictype/pr_quotation_mark.h: Likewise.
57758         * lib/unictype/pr_radical.h: Likewise.
57759         * lib/unictype/pr_soft_dotted.h: Likewise.
57760         * lib/unictype/pr_space.h: Likewise.
57761         * lib/unictype/pr_titlecase.h: Likewise.
57762         * lib/unictype/pr_variation_selector.h: Likewise.
57763         * lib/unictype/pr_white_space.h: Likewise.
57764         * lib/unictype/sy_c_ident.h: Likewise.
57765         * lib/unictype/sy_c_whitespace.h: Likewise.
57766         * lib/unictype/sy_java_whitespace.h: Likewise.
57767         * modules/uni*/*: Bump version number of expected libunistring version.
57768         Reported by Simon Josefsson.
57770 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57772         useless-if-before-free: fix typo in --help and make the internal,
57773         automatic version date update process work once again.
57774         --help output contained a NUL character instead of the
57775         backslash-zero that was intended.  Also, the "must lie within
57776         the first 8 lines" line is on line 9, and hence not getting
57777         automatically updated.
57778         * build-aux/useless-if-before-free: Fix the former by adding a
57779         backslash, and the latter by condensing the three lines of what-it-does
57780         to a single line, leaving one line of slack for the future.
57782 2011-01-09  Bruno Haible  <bruno@clisp.org>
57784         uniwidth/width: Fix width of U+1D173..U+1D17A.
57785         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57786         symbolic_width, output_width_property_test): New functions.
57787         (main): Invoke output_nonspacing_property, output_width_property_test.
57788         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57789         U+1D173..U+1D17A.
57790         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57791         1.
57792         * modules/uniwidth/*: Bump version number of expected libunistring
57793         version.
57794         * modules/unilbrk/*: Likewise.
57796 2011-01-08  Bruno Haible  <bruno@clisp.org>
57798         uninorm tests: Preserve copyright of Unicode data file.
57799         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57800         Mention modifications.
57802 2011-01-08  Bruno Haible  <bruno@clisp.org>
57804         gen-uni-tables: Prepare for Unicode 5.2.0.
57805         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57806         (debug_output_lbp, output_lbp): Update.
57808 2011-01-08  Bruno Haible  <bruno@clisp.org>
57810         unilbrk: Clarify gen-uni-tables.c code.
57811         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57812         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57813         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57815 2011-01-07  Bruno Haible  <bruno@clisp.org>
57817         strtod: Restore errno when successfully parsing Infinity or NaN.
57818         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57819         restore the original errno.
57821 2011-01-07  Bruno Haible  <bruno@clisp.org>
57823         remove test: Avoid failure on HP-UX 11.
57824         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57826 2011-01-07  Bruno Haible  <bruno@clisp.org>
57828         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57829         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57830         error code.
57832 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57834         ignore-value: fixup comments, and add Eric Blake
57835         as an author since he rewrote the macros.
57836         * lib/ignore-value.h (ignore_value):  State that
57837         we now support aggregates.  Also specify exactly
57838         when the GCC warn_unused_result feature was added.
57840 2011-01-06  Eric Blake  <eblake@redhat.com>
57842         ignore-value: support aggregate types
57843         * lib/ignore-value.h (ignore_value): Provide separate gcc
57844         definition.
57845         * modules/ignore-value-tests: New test module.
57846         * tests/test-ignore-value.c: New test.
57848         maint.mk: improve sc_prohibit_strcmp regex
57849         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57850         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57851         definition of STRNEQ.
57853         signal: work around Haiku issue with SIGBUS
57854         * lib/siglist.h: Add comment.
57855         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57856         strsignal's favoring of SIGSEGV.
57857         * tests/test-signal.c (main): Avoid test failure.
57858         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57859         Reported by Scott McCreary.
57861         maint.mk: add pre-release check to ensure submodule commits are public
57862         * top/maint.mk (public-submodule-commit): New rule.
57863         (submodule-checks): New variable.
57864         (alpha beta stable): Depend on the variable.
57866 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57867         and Jim Meyering  <meyering@redhat.com>
57869         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57870         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57871         (ATTRIBUTE_DEPRECATED): Define.
57872         (_ignore_case): New function.
57873         (ignore_value): New macro, to replace the old function.
57874         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57875         * modules/ignore-value (Depends-on): Add stdint.
57877 2011-01-04  Eric Blake  <eblake@redhat.com>
57879         doc: regenerate INSTALL
57880         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57881         @firstparagraphindent support, now that autoconf dropped it.
57882         (INSTALL_PRELUDE): Reinstate old macro.
57883         * doc/install.texi: Resync from autoconf.
57884         * doc/INSTALL: Reflect recent autoconf update.
57885         * doc/INSTALL.ISO: Likewise.
57886         * doc/INSTALL.UTF-8: Likewise.
57887         Reported by Karl Berry.
57889 2011-01-04  Bruce Korb  <address@hidden>
57891         git-version-gen: avoid a sub-shell
57892         * build-aux/git-version-gen: Redirect stderr in `...` via
57893         "exec 2>...", rather than via an added sub-shell.
57895 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57897         git-version-gen: use (...) rather than sh -c '...'
57898         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57899         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57901 2011-01-03  Jim Meyering  <meyering@redhat.com>
57903         git-version-gen: convert leading TABs to spaces
57904         * build-aux/git-version-gen: Expand leading TABs.
57906         git-version-gen: handle failed "git rev-list"
57907         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57908         from git and proceeding as if it had succeeded but printed no SHA1
57909         checksums, suppress the diagnostic and handle the failure.
57910         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57912         git-version-gen: include command name in one more diagnostic
57913         * build-aux/git-version-gen: When the required .tarball-version file
57914         was missing or unreadable, you might see the diagnostic from "cat",
57915         but no trace of the name of the invoking script.  Now, you still see
57916         the diagnostic from cat, but also get one from "git-version-gen: ".
57917         Inspired by a patch from Bruce Korb.
57919         update-copyright: adjust test to match changed code
57920         * tests/test-update-copyright.sh: Change test's expected output
57921         to match new actual output.
57923 2011-01-02  Bruno Haible  <bruno@clisp.org>
57925         getlogin_r: Avoid test failure on HP-UX 11.
57926         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57927         ERANGE when the second argument is zero.
57928         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57929         portability problem.
57931 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57933         * build-aux/update-copyright: doc Simon's changes
57935 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57937         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57938         environment variable.
57940 2011-01-02  Bruno Haible  <bruno@clisp.org>
57942         unigbrk: Avoid gcc warnings.
57943         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57944         unused variable.
57945         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57946         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57947         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57948         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57949         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57950         Change type of first argument to 'const char *'.
57951         (main): Remove unused variable.
57952         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57953         type of first argument to 'const char *'.
57954         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57955         Likewise.
57956         (main): Change type of variable 's'.
57957         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57958         to 'int'.
57960 2011-01-02  Bruno Haible  <bruno@clisp.org>
57962         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57963         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57964         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57965         bug.
57966         * lib/pwrite.c: Undo 2010-12-31 patch.
57967         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57969 2011-01-02  Bruno Haible  <bruno@clisp.org>
57971         pread: Fix test whether it works.
57972         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57974 2011-01-02  Bruno Haible  <bruno@clisp.org>
57976         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57977         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57978         ends in "6". Don't require a specific month name. Try also the locale
57979         names found on HP-UX 11 and Solaris 7.
57981 2011-01-02  Bruno Haible  <bruno@clisp.org>
57983         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57984         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57985         C linkage.
57986         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57988 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57990         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57991         for consistency, since the "cluster" term is not used elsewhere.
57992         * lib/unigbrk.in.h: Update name.
57993         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57994         * lib/unigbrk/u16-grapheme-next.c: Update name.
57995         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57996         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57997         * lib/unigbrk/u32-grapheme-next.c: Update name.
57998         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57999         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58000         * lib/unigbrk/u8-grapheme-next.c: Update name.
58001         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58002         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58003         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58004         Suggested by Bruno Haible.
58006 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58008         Remove module 'u8-grapheme-len' as too redundant with
58009         'u8-grapheme-next'.
58010         * modules/unigbrk/u8-grapheme-len: Delete file.
58011         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58012         * lib/unigbrk.in.h: Remove prototype for deleted function.
58013         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58014         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58016         Remove module 'u16-grapheme-len' as too redundant with
58017         'u16-grapheme-next'.
58018         * modules/unigbrk/u16-grapheme-len: Delete file.
58019         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58020         * lib/unigbrk.in.h: Remove prototype for deleted function.
58021         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58022         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58024         Remove module 'u32-grapheme-len' as too redundant with
58025         'u32-grapheme-next'.
58026         * modules/unigbrk/u32-grapheme-len: Delete file.
58027         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58028         * lib/unigbrk.in.h: Remove prototype for deleted function.
58029         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58030         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58032         Suggested by Bruno Haible.
58034 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58036         * unigbrk.in.h: Fix typo: "ben" => "been".
58037         Reported by Bruno Haible.
58039 2011-01-01  Jim Meyering  <meyering@redhat.com>
58041         maint: update almost all copyright ranges to include 2011
58042         Run the new "make update-copyright" rule.
58044 2011-01-01  Jim Meyering  <meyering@redhat.com>
58046         maint: update-copyright: exempt doc/INSTALL*
58047         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58048         since they are generated.  Suggested by Bruno Haible.
58050 2011-01-01  Jim Meyering  <meyering@redhat.com>
58052         maint: refine the update-copyright rule
58053         * Makefile (update-copyright): Also exclude any file that includes
58054         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58055         code that merely generates the comment.
58057 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58059         New module 'u8-grapheme-len'.
58060         * modules/unigbrk/u8-grapheme-len: New file.
58061         * modules/unigbrk/u8-grapheme-len-tests: New file.
58062         * lib/unigbrk.in.h: Add prototype for new function.
58063         * lib/unigbrk/u8-grapheme-len.c: New file.
58064         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58066         New module 'u16-grapheme-len'.
58067         * modules/unigbrk/u16-grapheme-len: New file.
58068         * modules/unigbrk/u16-grapheme-len-tests: New file.
58069         * lib/unigbrk.in.h: Add prototype for new function.
58070         * lib/unigbrk/u16-grapheme-len.c: New file.
58071         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58073         New module 'u32-grapheme-len'.
58074         * modules/unigbrk/u32-grapheme-len: New file.
58075         * modules/unigbrk/u32-grapheme-len-tests: New file.
58076         * lib/unigbrk.in.h: Add prototype for new function.
58077         * lib/unigbrk/u32-grapheme-len.c: New file.
58078         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58080         New module 'u8-grapheme-next'.
58081         * modules/unigbrk/u8-grapheme-next: New file.
58082         * modules/unigbrk/u8-grapheme-next-tests: New file.
58083         * lib/unigbrk.in.h: Add prototype for new function.
58084         * lib/unigbrk/u8-grapheme-next.c: New file.
58085         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58087         New module 'u16-grapheme-next'.
58088         * modules/unigbrk/u16-grapheme-next: New file.
58089         * modules/unigbrk/u16-grapheme-next-tests: New file.
58090         * lib/unigbrk.in.h: Add prototype for new function.
58091         * lib/unigbrk/u16-grapheme-next.c: New file.
58092         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58094         New module 'u32-grapheme-next'.
58095         * modules/unigbrk/u32-grapheme-next: New file.
58096         * modules/unigbrk/u32-grapheme-next-tests: New file.
58097         * lib/unigbrk.in.h: Add prototype for new function.
58098         * lib/unigbrk/u32-grapheme-next.c: New file.
58099         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58101         New module 'u8-grapheme-prev'.
58102         * modules/unigbrk/u8-grapheme-prev: New file.
58103         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58104         * lib/unigbrk.in.h: Add prototype for new function.
58105         * lib/unigbrk/u8-grapheme-prev.c: New file.
58106         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58108         New module 'u16-grapheme-prev'.
58109         * modules/unigbrk/u16-grapheme-prev: New file.
58110         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58111         * lib/unigbrk.in.h: Add prototype for new function.
58112         * lib/unigbrk/u16-grapheme-prev.c: New file.
58113         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58115         New module 'u32-grapheme-prev'.
58116         * modules/unigbrk/u32-grapheme-prev: New file.
58117         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58118         * lib/unigbrk.in.h: Add prototype for new function.
58119         * lib/unigbrk/u32-grapheme-prev.c: New file.
58120         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58122         New module 'u8-grapheme-breaks'.
58123         * modules/unigbrk/u8-grapheme-breaks: New file.
58124         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58125         * lib/unigbrk.in.h: Add prototype for new function.
58126         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58127         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58129         New module 'u16-grapheme-breaks'.
58130         * modules/unigbrk/u16-grapheme-breaks: New file.
58131         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58132         * lib/unigbrk.in.h: Add prototype for new function.
58133         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58134         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58136         New module 'u32-grapheme-breaks'.
58137         * modules/unigbrk/u32-grapheme-breaks: New file.
58138         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58139         * lib/unigbrk.in.h: Add prototype for new function.
58140         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58141         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58143         New module 'ulc-grapheme-breaks'.
58144         * modules/unigbrk/ulc-grapheme-breaks: New file.
58145         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58146         * m4/locale-ar.m4: New file.
58147         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58148         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58149         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58151 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58153         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58154         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58155         modified how this file was generated before I initially submitted
58156         the module, but failed to regenerate it.  This meant that several
58157         of the level2 entries were wrong.
58158         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58159         Remove the division-by-2 that is folded into the table now that
58160         gbrkprop.h has been regenerated properly.  Now -1 entries are
58161         handled correctly.
58163         New module 'unigbrk/uc-gbrk-prop-tests'.
58164         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58165         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58166         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58167         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58169 2011-01-01  Bruno Haible  <bruno@clisp.org>
58171         Avoid use of hexadecimal escapes.
58172         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58173         instead of hexadecimal escapes.
58175 2011-01-01  Jim Meyering  <meyering@redhat.com>
58177         maint: new rule to update copyright year ranges
58178         * Makefile (update-copyright): New rule.
58180         maint: indent with TABs in Makefile
58181         * Makefile: Expand leading sequences of spaces to TABs
58183         version-etc: update the copyright year it reports
58184         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58186 2010-12-31  Bruno Haible  <bruno@clisp.org>
58188         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58189         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58190         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58191         zero.
58193 2010-12-31  Bruno Haible  <bruno@clisp.org>
58195         pwrite: Work around HP-UX 11.11 bug.
58196         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58197         works and set REPLACE_PWRITE if not.
58198         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58199         function.
58200         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58202 2010-12-31  Bruno Haible  <bruno@clisp.org>
58204         pread: Work around HP-UX 11 bugs.
58205         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58206         and set REPLACE_PREAD if not.
58207         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58209 2010-12-31  Eric Blake  <eblake@redhat.com>
58211         nl_langinfo: fix YESEXPR on Irix 6.5
58212         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58213         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58214         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58215         it.
58217 2010-12-31  Bruno Haible  <bruno@clisp.org>
58219         iconv: Document HP-UX 11 bug.
58220         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58222 2010-12-31  Bruno Haible  <bruno@clisp.org>
58224         ldexpl: Fix link error on HP-UX 11.
58225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58226         LDEXPL_LIBM, using $ISNANL_LIBM.
58228 2010-12-31  Eric Blake  <eblake@redhat.com>
58230         ftello: avoid compilation failure with SunStudio c89
58231         * lib/ftello.c (ftello): Use lseek, not llseek.
58233         tests: avoid failing coreutils tests on cygwin
58234         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58235         (create_exe_shims_): Return 0 when skipping.
58237 2010-12-31  Bruno Haible  <bruno@clisp.org>
58239         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58240         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58242 2010-12-31  Bruno Haible  <bruno@clisp.org>
58244         waitpid: Fix link error in C++ mode.
58245         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58247 2010-12-31  Bruno Haible  <bruno@clisp.org>
58249         isnan: Use GCC built-ins when possible.
58250         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58251         __builtin_isnan.
58252         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58253         (isnan): Define using GCC built-ins for GCC >= 4.0.
58255 2010-12-31  Bruno Haible  <bruno@clisp.org>
58257         isnand: Fix mistake.
58258         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58259         __builtin_isnand.
58261 2010-12-31  Bruno Haible  <bruno@clisp.org>
58263         open: Avoid C++ error on HP-UX 11.
58264         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58266 2010-12-31  Bruno Haible  <bruno@clisp.org>
58268         time_r: Add missing declarations on HP-UX 11.
58269         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58270         instead of HAVE_LOCALTIME_R.
58271         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58272         HAVE_LOCALTIME_R always.
58273         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58274         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58275         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58276         HAVE_LOCALTIME_R.
58277         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58278         * doc/posix-functions/localtime_r.texi: Likewise.
58280 2010-12-29  Eric Blake  <eblake@redhat.com>
58282         mountlist: tweak previous commit
58283         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58284         Reported by Paul Eggert.
58286         mountlist: fix local drive detection on cygwin
58287         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58288         that works for cygwin.
58290 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58292         ftoastr, snprintf: ftoastr + snprintf module
58293         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58294         since the snprintf module now should be good enough here.
58295         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58296         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58297         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58298         GNULIB_SNPRINTF only for the test directory, and the latter
58299         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58300         seems to suffice by itself.
58302 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58304         alloca: one step towards thread-safety
58305         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58306         need for a static variable.  All callers changed.  This does not
58307         make the alloca replacement thread-safe, but it's one step.
58309         tests: minor indenting change
58310         * tests/init.sh: Sync from coreutils housekeeping patch
58311         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58312         to keep lines within 80 columns.
58314 2010-12-28  Jim Meyering  <meyering@redhat.com>
58316         regex: don't infloop on persistent failing calloc
58317         * lib/regexec.c (build_trtable): Return failure indication upon
58318         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58319         In glibc, this was fixed for version 2.13:
58320         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58322 2010-12-28  Bruno Haible  <bruno@clisp.org>
58323             Paul Eggert <eggert@cs.ucla.edu>
58325         linkat: Make implementation robust against system behaviour variations.
58326         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58327         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58328         way, and to -2 if it needs a generic runtime test.
58329         * lib/linkat.c (solaris_optimized_link_immediate,
58330         solaris_optimized_link_follow): New functions.
58331         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58332         (check_same_link): Use it.
58334 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58336         New module 'unigbrk/base'.
58337         * modules/unigbrk/base: New file.
58338         * lib/unigbrk.in.h: New file.
58340         New module 'unigbrk/uc-gbrk-prop'.
58341         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58342         * modules/unigbrk/uc-gbrk-prop: New file.
58343         * lib/unigbrk/gbrkprop.h: New file.
58344         * lib/unigbrk/uc-gbrk-prop.c: New file.
58346         New module 'unigbrk/uc-is-grapheme-break'.
58347         * modules/unigbrk/uc-is-grapheme-break: New file.
58348         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58349         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58350         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58351         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58352         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58354         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58356 2010-12-27  Bruno Haible  <bruno@clisp.org>
58358         linkat test: Avoid failure on Solaris 11 2010-11.
58359         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58361 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58363         utimens: work around glibc rounding bug on more platforms
58364         * lib/utimens.c (fdutimens): Work around rounding bug even if
58365         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58366         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58368 2010-12-27  Bruno Haible  <bruno@clisp.org>
58370         select tests: Improve comments.
58371         * tests/test-select.c (do_select): Add comments.
58373 2010-12-27  Bruno Haible  <bruno@clisp.org>
58375         select tests: Safer way of handling timeout.
58376         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58377         at every invocation.
58379 2010-12-27  Bruno Haible  <bruno@clisp.org>
58381         select tests: Use 'bool' where appropriate.
58382         * tests/test-select.c (connect_to_socket): Change argument type to
58383         'bool'.
58385 2010-12-27  Bruno Haible  <bruno@clisp.org>
58387         select tests: Use existing modules.
58388         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58389         (configure.ac): Don't test for unistd.h.
58390         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58391         declared in <unistd.h>.
58393 2010-12-27  Bruno Haible  <bruno@clisp.org>
58395         mbrtowc: Work around a Solaris 7 bug.
58396         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58397         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58398         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58399         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58400         MBRTOWC_NULL_ARG1_BUG.
58401         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58402         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58403         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58404         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58406 2010-12-27  Jim Meyering  <meyering@redhat.com>
58408         read-file.c: tweak syntax
58409         * lib/read-file.c (fread_file): Remove space after "*" in function
58410         definitions.
58412 2010-12-27  Bruno Haible  <bruno@clisp.org>
58414         times test: Avoid gcc warnings on OSF/1.
58415         * tests/test-times.c (main): Cast printf arguments from clock_t to
58416         'long int'.
58418 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58420         utimens: work around glibc rounding bug on older Linux kernels
58421         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
58422         on Linux with a glibc whose utimes might not work, then work
58423         around a longstanding glibc bug involving rounding rather than
58424         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
58425         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58427 2010-12-26  Bruno Haible  <bruno@clisp.org>
58429         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
58430         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
58431         _GL_CXXALIAS_SYS.
58432         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58434 2010-12-26  Bruno Haible  <bruno@clisp.org>
58436         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
58437         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58438         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58439         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58440         looking for the declaration.
58441         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58442         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58443         problem.
58444         * doc/posix-functions/inet_pton.texi: Likewise.
58446 2010-12-26  Bruno Haible  <bruno@clisp.org>
58448         arpa_inet: Use the common idioms with C++ support.
58449         * lib/arpa_inet.in.h: Include c++defs.h.
58450         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58451         support.
58452         * modules/arpa_inet (Depends-on): Add c++defs.
58453         (Makefile.am): Substitute the contents of c++defs.h.
58454         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58455         * modules/arpa_inet-c++-tests: New file.
58456         * tests/test-arpa_inet-c++.cc: New file.
58458 2010-12-25  Bruno Haible  <bruno@clisp.org>
58460         Fix more C++ link errors on Solaris 8.
58461         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58462         $(LIB_EACCESS).
58463         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58464         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58465         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58466         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58467         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58469 2010-12-25  Bruno Haible  <bruno@clisp.org>
58471         printf-posix: Fix link error when a non-GCC compiler is used.
58472         * lib/stdio.in.h (printf): When not using GCC, override printf
58473         correctly.
58474         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58476 2010-12-25  Bruno Haible  <bruno@clisp.org>
58478         strerror_r-posix: Update doc.
58479         * doc/posix-functions/strerror_r.texi: Update doc about the return
58480         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58482 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58484         utimens: simplify the logic of the previous change
58485         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58486         This should not affect whether the test succeeds or fails.
58488         utimens: configure better on hosts with NFS clock skew
58489         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58490         uses the clock of the local host.  It might use the clock of the
58491         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58492         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58494 2010-12-25  Bruno Haible  <bruno@clisp.org>
58496         ptsname test: Avoid failure on Solaris.
58497         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58498         open a pseudo-terminal; don't use BSD-style ptys.
58499         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58501 2010-12-25  Bruno Haible  <bruno@clisp.org>
58503         ptsname: Avoid ERANGE failure on some systems.
58504         * lib/ptsname.c (buffer): Increase size.
58506 2010-12-25  Bruno Haible  <bruno@clisp.org>
58508         rename, renameat: Avoid test failures at NFS mounted locations.
58509         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58510         so that subsequent mkdir calls succeed.
58512 2010-12-25  Bruno Haible  <bruno@clisp.org>
58514         iswblank: Fix C++ link error on Solaris 8.
58515         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58516         _GL_FUNCDECL_SYS.
58518 2010-12-25  Bruno Haible  <bruno@clisp.org>
58520         unistd: Fix C++ link error on Solaris 8.
58521         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58523 2010-12-25  Bruno Haible  <bruno@clisp.org>
58525         readlink doc: Mention an old glibc bug.
58526         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58528 2010-12-25  Bruno Haible  <bruno@clisp.org>
58530         fcntl-h: Fix for use of C++ on glibc systems.
58531         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58532         also on glibc systems in C++ mode.
58533         Reported by Gary V. Vaughan <gary@gnu.org>.
58535 2010-12-25  Bruno Haible  <bruno@clisp.org>
58537         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58538         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58540 2010-12-25  Bruno Haible  <bruno@clisp.org>
58542         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58543         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58544         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58545         test whether truncl works according to ISO C 99 with IEC 60559.
58546         * m4/truncl-ieee.m4: New file.
58547         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58548         m4/signbit.m4.
58549         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58551 2010-12-25  Bruno Haible  <bruno@clisp.org>
58553         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58554         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58555         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58556         test whether ceill works according to ISO C 99 with IEC 60559.
58557         * m4/ceill-ieee.m4: New file.
58558         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58559         m4/signbit.m4.
58560         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58562 2010-12-25  Bruno Haible  <bruno@clisp.org>
58564         Ensure all prerequisites of <wchar.h> are included.
58565         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58566         before <wchar.h>.
58567         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58568         gl_MBRLEN_NUL_RETVAL): Likewise.
58569         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58570         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58571         AC_FUNC_MBRTOWC): Likewise.
58572         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58573         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58574         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58575         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58576         Likewise.
58577         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58578         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58579         (gl_WCHAR_H): Improve comments.
58580         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58582 2010-12-25  Bruno Haible  <bruno@clisp.org>
58584         strtok_r: Fix C syntax error in autoconf macro.
58585         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58586         characters in test program.
58588 2010-12-24  Bruno Haible  <bruno@clisp.org>
58590         ceil, trunc, round: Fix gcc warnings.
58591         * lib/ceil.c (MIN): Undefine before redefining.
58592         * lib/trunc.c (MIN): Likewise.
58593         * lib/round.c (MIN): Likewise.
58594         Include <math.h> first.
58596 2010-12-24  Bruno Haible  <bruno@clisp.org>
58598         select tests: Avoid failures on OSF/1 5.1.
58599         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58600         failure of closing the last socket; it may fail with ECONNRESET.
58602 2010-12-24  Eric Blake  <eblake@redhat.com>
58604         stdint: avoid HP-UX 10.20 preprocessor bug
58605         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58606         than #if.
58607         * tests/test-floor2.c (main): Likewise.
58608         Reported by Peter O'Gorman.
58610         pipe: make obsoletion transition easier
58611         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58612         * modules/pipe (Files): Include revived file.
58613         (Include): Drop reference, to mirror getdate's behavior.
58615 2010-12-24  Bruno Haible  <bruno@clisp.org>
58617         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58618         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58619         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58620         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58622 2010-12-24  Bruno Haible  <bruno@clisp.org>
58624         gethostname: Ensure declaration on NonStop Kernel.
58625         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58626         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58628 2010-12-24  Bruno Haible  <bruno@clisp.org>
58630         sys_select: Ensure all necessary types on NonStop Kernel.
58631         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58632         include <sys/time.h>.
58633         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58634         NonStop Kernel.
58635         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58637 2010-12-24  Bruno Haible  <bruno@clisp.org>
58639         sys_select: Remove unneeded include.
58640         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58641         have <sys/select.h>.
58643 2010-12-24  Bruno Haible  <bruno@clisp.org>
58645         gethostname: Provide a fallback for HOST_NAME_MAX.
58646         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58647         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58648         instead.
58649         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58651 2010-12-24  Bruno Haible  <bruno@clisp.org>
58653         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58654         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58655         (SA_RESTART): Likewise.
58656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58658 2010-12-24  Bruno Haible  <bruno@clisp.org>
58660         signal: Define NSIG.
58661         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58662         * tests/test-signal.c (nsig): New variable.
58663         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58665 2010-12-24  Bruno Haible  <bruno@clisp.org>
58667         rename, renameat: Avoid test failures on OSF/1 5.1.
58668         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58669         alternative error codes.
58670         * tests/test-renameat.c (main): Likewise.
58672 2010-12-24  Bruno Haible  <bruno@clisp.org>
58674         *printf: Detect large precisions bug on Solaris 10/SPARC.
58675         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58676         by Paul Eggert.
58677         * tests/test-snprintf-posix.h (test_function): Add this test code here
58678         too.
58679         * tests/test-sprintf-posix.h (test_function): Likewise.
58680         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58681         * tests/test-vasprintf-posix.c (test_function): Likewise.
58682         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58683         around by gnulib.
58684         * doc/posix-functions/printf.texi: Likewise.
58685         * doc/posix-functions/snprintf.texi: Likewise.
58686         * doc/posix-functions/sprintf.texi: Likewise.
58687         * doc/posix-functions/vfprintf.texi: Likewise.
58688         * doc/posix-functions/vprintf.texi: Likewise.
58689         * doc/posix-functions/vsnprintf.texi: Likewise.
58690         * doc/posix-functions/vsprintf.texi: Likewise.
58691         * doc/posix-functions/dprintf.texi: Undo last commit.
58692         * doc/posix-functions/vdprintf.texi: Likewise.
58694 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58696         tests: port test-fdutimensat.c to Solaris 8
58697         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58698         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58699         On Solaris 8, it fails with errno == ENOSYS, because there is no
58700         futimens (so it can't use the fd), and there is no lutimens (so it
58701         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58703         vsnprintf: make more consistent with snprintf; doc fixes
58705         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58706         the byte count return problem was promoted from the snprintf-posix
58707         to the snprintf module.
58708         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58709         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58710         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58711         * tests/test-snprintf.c (main): Check the byte count returned.
58712         * tests/test-vsnprintf.c (main): Likewise.
58714 2010-12-23  Eric Blake  <eblake@redhat.com>
58716         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58717         * modules/sigpipe (License): Relax license.
58719 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58721         doc: document Solaris printf bug with large float precisions
58722         * doc/posix-functions/dprintf.texi (dprintf):
58723         * doc/posix-functions/fprintf.texi (fprintf):
58724         * doc/posix-functions/printf.texi (printf):
58725         * doc/posix-functions/snprintf.texi (snprintf):
58726         * doc/posix-functions/sprintf.texi (sprintf):
58727         * doc/posix-functions/vdprintf.texi (vdprintf):
58728         * doc/posix-functions/vfprintf.texi (vfprintf):
58729         * doc/posix-functions/vprintf.texi (vprintf):
58730         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58731         * doc/posix-functions/vsprintf.texi (vsprintf):
58732         Mention that these functions mishandle large floating point
58733         precisions on Solaris 10.  The same bug is also present in Solaris
58734         8, and I assume earlier.  This causes "cd gnulib-tests; make
58735         check" to fail on Solaris 8 (and I assume, later) when building
58736         the latest coreutils, in test-vasprintf-posix's call to
58737         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58738         the wide flavors (e.g., wprintf) so this patch just updates the
58739         documentation for the narrow ones.
58741         test-posixtm.c: add two tests
58742         * tests/test-posixtm.c: Add two tests, to highlight the
58743         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58744         around this bug; this is merely to document it.
58746 2010-12-22  Bruno Haible  <bruno@clisp.org>
58748         getlogin_r: Work around portability problem on OSF/1.
58749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58750         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58751         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58752         test for a truncated result.
58753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58754         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58755         * modules/getlogin_r (Depends-on): Add memchr.
58756         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58758 2010-12-22  Bruno Haible  <bruno@clisp.org>
58760         ptsname: Avoid test failure on OSF/1 5.1.
58761         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58762         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58763         (same_slave): New function.
58764         (main): Use it to compare ptsname's result with the expected file name.
58766 2010-12-22  Bruno Haible  <bruno@clisp.org>
58768         Port extended stdio modules to HP NonStop Kernel.
58769         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58770         macros.
58771         * lib/fbufmode.c: Update comments.
58772         * lib/fflush.c: Likewise.
58773         * lib/fpurge.c: Likewise.
58774         * lib/freadable.c: Likewise.
58775         * lib/freadahead.c: Likewise.
58776         * lib/freading.c: Likewise.
58777         * lib/freadptr.c: Likewise.
58778         * lib/freadseek.c: Likewise.
58779         * lib/fseeko.c: Likewise.
58780         * lib/fseterr.c: Likewise.
58781         * lib/fwritable.c: Likewise.
58782         * lib/fwriting.c: Likewise.
58783         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58785 2010-12-22  Bruno Haible  <bruno@clisp.org>
58787         ttyname_r: Work around bug on OSF/1 5.1.
58788         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58790         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58791         present.
58792         * lib/ttyname_r.c (ttyname_r): Update comments.
58794 2010-12-22  Bruno Haible  <bruno@clisp.org>
58796         round: Implement result sign according to IEEE 754.
58797         * lib/round.c (MIN, MINUS_ZERO): New macros.
58798         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58799         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58800         * tests/test-round-ieee.c (main): Likewise.
58801         * tests/test-roundl-ieee.c (main): Likewise.
58803         trunc: Implement result sign according to IEEE 754.
58804         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58805         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58806         * tests/test-trunc2.c: Include minus-zero.h.
58807         (MINUS_ZERO): New macro.
58808         (trunc_reference): Keep in sync with lib/trunc.c.
58809         * tests/test-truncf2.c: Include minus-zero.h.
58810         (MINUS_ZERO): New macro.
58811         (truncf_reference): Keep in sync with lib/trunc.c.
58812         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58813         * tests/test-trunc-ieee.c (main): Likewise.
58814         * tests/test-truncl-ieee.c (main): Likewise.
58816         ceil: Implement result sign according to IEEE 754.
58817         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58818         (FUNC): Return -0.0 for -1 < x < 0.
58819         * tests/test-ceil2.c: Include minus-zero.h.
58820         (MINUS_ZERO): New macro.
58821         (ceil_reference): Keep in sync with lib/ceil.c.
58822         * tests/test-ceilf2.c: Include minus-zero.h.
58823         (MINUS_ZERO): New macro.
58824         (ceilf_reference): Keep in sync with lib/ceil.c.
58825         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58826         * tests/test-ceil-ieee.c (main): Likewise.
58827         * tests/test-ceill-ieee.c (main): Likewise.
58829         floor: Implement result sign according to IEEE 754.
58830         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58831         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58832         * tests/test-floorf2.c (floorf_reference): Likewise.
58833         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58834         * tests/test-floor-ieee.c (main): Likewise.
58835         * tests/test-floorl-ieee.c (main): Likewise.
58837 2010-12-22  Bruno Haible  <bruno@clisp.org>
58839         getaddrinfo: Update doc.
58840         * doc/posix-functions/gai_strerror.texi: Return type is also different
58841         on AIX and HP-UX.
58843 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58845         getaddrinfo, inet_ntop: Update doc for Solaris.
58846         * doc/posix-functions/gai_strerror.texi: Return type is also an
58847         issue on Solaris 9 and earlier.
58848         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58849         on Solaris 10 and earlier.
58851 2010-12-21  Bruno Haible  <bruno@clisp.org>
58853         New module 'roundl-ieee'.
58854         * modules/roundl-ieee: New file.
58855         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58856         test whether roundl works according to ISO C 99 with IEC 60559.
58857         * m4/roundl-ieee.m4: New file.
58858         * modules/roundl-ieee-tests: New file.
58859         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58860         * tests/test-roundl.c (main): Remove signbit tests.
58861         * modules/roundl-tests (Depends-on): Remove signbit.
58862         * doc/posix-functions/roundl.texi: Mention the new module.
58864 2010-12-21  Bruno Haible  <bruno@clisp.org>
58866         New module 'truncl-ieee'.
58867         * modules/truncl-ieee: New file.
58868         * modules/truncl-ieee-tests: New file.
58869         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58870         * tests/test-truncl.c (main): Remove signbit tests.
58871         * modules/truncl-tests (Depends-on): Remove signbit.
58872         * doc/posix-functions/truncl.texi: Mention the new module.
58874 2010-12-21  Bruno Haible  <bruno@clisp.org>
58876         New module 'ceill-ieee'.
58877         * modules/ceill-ieee: New file.
58878         * modules/ceill-ieee-tests: New file.
58879         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58880         * tests/test-ceill.c (main): Remove signbit tests.
58881         * modules/ceill-tests (Depends-on): Remove signbit.
58882         * doc/posix-functions/ceill.texi: Mention the new module.
58884 2010-12-21  Bruno Haible  <bruno@clisp.org>
58886         New module 'floorl-ieee'.
58887         * modules/floorl-ieee: New file.
58888         * modules/floorl-ieee-tests: New file.
58889         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58890         * tests/test-floorl.c (main): Remove signbit tests.
58891         * modules/floorl-tests (Depends-on): Remove signbit.
58892         * doc/posix-functions/floorl.texi: Mention the new module.
58894 2010-12-21  Bruno Haible  <bruno@clisp.org>
58896         New module 'round-ieee'.
58897         * modules/round-ieee: New file.
58898         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58899         whether round works according to ISO C 99 with IEC 60559.
58900         * m4/round-ieee.m4: New file.
58901         * modules/round-ieee-tests: New file.
58902         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58903         * tests/test-round1.c (main): Remove signbit tests.
58904         * modules/round-tests (Depends-on): Remove 'signbit'.
58905         * doc/posix-functions/round.texi: Mention the new module.
58907 2010-12-21  Bruno Haible  <bruno@clisp.org>
58909         New module 'trunc-ieee'.
58910         * modules/trunc-ieee: New file.
58911         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58912         whether trunc works according to ISO C 99 with IEC 60559.
58913         * m4/trunc-ieee.m4: New file.
58914         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58916         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58917         * modules/trunc-ieee-tests: New file.
58918         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58919         * tests/test-trunc1.c (main): Remove signbit tests.
58920         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58921         * doc/posix-functions/trunc.texi: Mention the new module.
58923 2010-12-21  Bruno Haible  <bruno@clisp.org>
58925         New module 'ceil-ieee'.
58926         * modules/ceil-ieee: New file.
58927         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58928         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58929         ISO C 99 with IEC 60559.
58930         * m4/ceil-ieee.m4: New file.
58931         * modules/ceil (Files): Add lib/ceil.c.
58932         (Depends-on): Add 'float'.
58933         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58934         * lib/math.in.h (ceil): New declaration.
58935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58936         REPLACE_CEIL.
58937         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58938         * modules/ceil-ieee-tests: New file.
58939         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58940         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58941         * doc/posix-functions/ceil.texi: Mention the new module.
58943 2010-12-21  Bruno Haible  <bruno@clisp.org>
58945         New module 'floor-ieee'.
58946         * modules/floor-ieee: New file.
58947         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58948         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58949         ISO C 99 with IEC 60559.
58950         * m4/floor-ieee.m4: New file.
58951         * modules/floor (Files): Add lib/floor.c.
58952         (Depends-on): Add 'float'.
58953         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58954         * lib/math.in.h (floor): New declaration.
58955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58956         REPLACE_FLOOR.
58957         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58958         * modules/floor-ieee-tests: New file.
58959         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58960         * tests/test-math-c++.cc: Check the signature of 'floor'.
58961         * doc/posix-functions/floor.texi: Mention the new module.
58963 2010-12-21  Bruno Haible  <bruno@clisp.org>
58965         New module 'roundf-ieee'.
58966         * modules/roundf-ieee: New file.
58967         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58968         test whether roundf works according to ISO C 99 with IEC 60559.
58969         * m4/roundf-ieee.m4: New file.
58970         * modules/roundf-ieee-tests: New file.
58971         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58972         * tests/test-roundf1.c (main): Remove signbit tests.
58973         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58974         * doc/posix-functions/roundf.texi: Mention the new module.
58976 2010-12-21  Bruno Haible  <bruno@clisp.org>
58978         New module 'truncf-ieee'.
58979         * modules/truncf-ieee: New file.
58980         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58981         test whether truncf works according to ISO C 99 with IEC 60559.
58982         * m4/truncf-ieee.m4: New file.
58983         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58985         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58986         * modules/truncf-ieee-tests: New file.
58987         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58988         * tests/test-truncf1.c (main): Remove signbit tests.
58989         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58990         * doc/posix-functions/truncf.texi: Mention the new module.
58992 2010-12-21  Bruno Haible  <bruno@clisp.org>
58994         New module 'ceilf-ieee'.
58995         * modules/ceilf-ieee: New file.
58996         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58997         test whether ceilf works according to ISO C 99 with IEC 60559.
58998         * m4/ceilf-ieee.m4: New file.
58999         * modules/ceilf-ieee-tests: New file.
59000         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59001         * tests/test-ceilf1.c (main): Remove signbit tests.
59002         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59003         * doc/posix-functions/ceilf.texi: Mention the new module.
59005 2010-12-21  Bruno Haible  <bruno@clisp.org>
59007         New module 'floorf-ieee'.
59008         * modules/floorf-ieee: New file.
59009         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59010         test whether floorf works according to ISO C 99 with IEC 60559.
59011         * m4/floorf-ieee.m4: New file.
59012         * modules/floorf-ieee-tests: New file.
59013         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59014         * tests/test-floorf1.c (main): Remove signbit tests.
59015         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59016         * doc/posix-functions/floorf.texi: Mention the new module.
59018 2010-12-21  Bruno Haible  <bruno@clisp.org>
59020         Support for minus zero in autoconf macros.
59021         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59022         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59023         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59024         * tests/minus-zero.h: Update comments.
59026 2010-12-21  Bruno Haible  <bruno@clisp.org>
59028         Tests for module 'ceil'.
59029         * modules/ceil-tests: New file.
59030         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59031         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59033 2010-12-21  Bruno Haible  <bruno@clisp.org>
59035         Tests for module 'floor'.
59036         * modules/floor-tests: New file.
59037         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59038         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59040 2010-12-21  Bruno Haible  <bruno@clisp.org>
59042         math: Fix indentation.
59043         * lib/math.in.h (floorf): Fix indentation.
59045 2010-12-21  Bruno Haible  <bruno@clisp.org>
59047         Fix cross-compilation guesses on Solaris.
59048         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59049         not match "solaris2.10".
59050         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59051         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59052         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59054 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59056         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59057         This fixes a problem observed with the latest coreutils snapshot
59058         that caused a test to fail on Solaris 8.  src/csplit.c's call
59059         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59060         earlier, instead of returning the number of bytes that would have
59061         been generated; this causes csplit to incorrectly report memory
59062         exhaustion.
59063         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59064         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59065         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59066         comments to match.
59067         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59068         Fix typo in matching older versions of Solaris: "solaris2.10"
59069         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59070         only for guessing while cross-compiling.
59071         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59073 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59075         ftoastr: fix comment again
59076         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59077         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59078         Also, simplify example a bit by using flags = 0.
59080 2010-12-20  Bruno Haible  <bruno@clisp.org>
59082         round*, trunc*: Update documentation regarding glibc.
59083         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59084         * doc/posix-functions/round.texi: Likewise.
59085         * doc/posix-functions/roundl.texi: Likewise.
59086         * doc/posix-functions/truncf.texi: Likewise.
59087         * doc/posix-functions/trunc.texi: Likewise.
59088         * doc/posix-functions/truncl.texi: Likewise.
59090 2010-12-20  Bruno Haible  <bruno@clisp.org>
59092         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59093         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59094         * doc/posix-functions/round.texi: Likewise.
59095         * doc/posix-functions/roundl.texi: Likewise.
59097 2010-12-20  Bruno Haible  <bruno@clisp.org>
59099         ttyname_r: Add missing declaration on HP-UX 11.
59100         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59101         HAVE_TTYNAME_R.
59102         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59103         declared. Set HAVE_TTYNAME_R always.
59104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59105         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59106         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59107         HAVE_TTYNAME_R.
59108         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59110 2010-12-20  Bruno Haible  <bruno@clisp.org>
59112         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59113         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59114         * doc/posix-functions/getlogin_r.texi: Likewise.
59115         * tests/test-getlogin.c: Include <errno.h>.
59116         (main): Avoid test failure on HP-UX 11.11.
59117         * tests/test-getlogin_r.c (main): Likewise.
59119 2010-12-20  Bruno Haible  <bruno@clisp.org>
59121         getlogin_r: Add missing declaration on HP-UX 11.
59122         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59123         declared also when it exists as a function.
59124         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59126 2010-12-20  Bruno Haible  <bruno@clisp.org>
59128         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59129         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59130         through wcrtomb.
59132 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59134         ftoastr: fix comment
59135         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59136         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59138 2010-12-19  Bruno Haible  <bruno@clisp.org>
59140         isnan: Ensure it is a macro.
59141         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59142         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59143         Solaris.
59145 2010-12-19  Bruno Haible  <bruno@clisp.org>
59147         ldexpl test: Fix link error on OSF/1 5.1.
59148         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59150 2010-12-19  Bruno Haible  <bruno@clisp.org>
59152         wctype: Make it work in C++ mode on OSF/1 5.1.
59153         * lib/wctype.in.h (iswblank): Declare but not define here.
59154         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59155         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59156         * modules/wctype (Files): Add lib/iswblank.c.
59158 2010-12-19  Bruno Haible  <bruno@clisp.org>
59160         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59161         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59162         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59164 2010-12-19  Bruno Haible  <bruno@clisp.org>
59166         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59167         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59168         _POSIX_PII_SOCKET.
59169         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59170         * doc/posix-functions/recvfrom.texi: Likewise.
59171         * doc/posix-functions/send.texi: Likewise.
59172         * doc/posix-functions/sendto.texi: Likewise.
59174 2010-12-19  Bruno Haible  <bruno@clisp.org>
59176         tcgetsid: Add missing declaration on OSF/1 5.1.
59177         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59178         HAVE_TCGETSID.
59179         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59180         Don't set HAVE_TCGETSID.
59181         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59182         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59183         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59184         HAVE_TCGETSID.
59185         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59187 2010-12-19  Bruno Haible  <bruno@clisp.org>
59189         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59190         * lib/stdio.in.h: During the include_next statement, let recursive
59191         includes of this file include only the system header file.
59193 2010-12-19  Bruno Haible  <bruno@clisp.org>
59195         iconv_open: Fix regression from 2010-12-04.
59196         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59197         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59199 2010-12-19  Bruno Haible  <bruno@clisp.org>
59201         stdbool test: Avoid a gcc warning.
59202         * tests/test-stdbool.c (main): Fail if e1 is false.
59203         Reported by Jim Meyering.
59205 2010-12-19  Jim Meyering  <meyering@redhat.com>
59207         setenv: restore to working order
59208         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59209         mistakenly removed.
59210         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59211         HAVE_SETENV.
59212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59213         HAVE_SETENV.
59215 2010-12-19  Bruno Haible  <bruno@clisp.org>
59217         Document some different function declarations on OSF/1 5.1.
59218         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59219         * doc/posix-functions/inet_ntop.texi: Likewise.
59220         * doc/posix-functions/gethostname.texi: Likewise.
59221         * lib/unistd.in.h (gethostname): Update comment.
59223 2010-12-19  Bruno Haible  <bruno@clisp.org>
59225         doc: Mention vasprintf-posix module.
59226         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59227         the 'vasprintf-posix' module.
59228         * doc/glibc-functions/vasprintf.texi: Likewise.
59230 2010-12-19  Bruno Haible  <bruno@clisp.org>
59232         unsetenv: Add missing declaration on OSF/1 5.1.
59233         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59235         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59237         not HAVE_UNSETENV.
59238         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59239         HAVE_UNSETENV.
59240         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59242 2010-12-19  Bruno Haible  <bruno@clisp.org>
59244         setenv: Add missing declaration on OSF/1 5.1.
59245         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59247         declared. Don't set HAVE_SETENV.
59248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59249         not HAVE_SETENV.
59250         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59251         HAVE_SETENV.
59252         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59254 2010-12-19  Bruno Haible  <bruno@clisp.org>
59256         nl_langinfo tests: Avoid gcc warning.
59257         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59259 2010-12-19  Bruno Haible  <bruno@clisp.org>
59261         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59262         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59263         _GL_CXXALIAS_SYS.
59265 2010-12-19  Bruno Haible  <bruno@clisp.org>
59267         stdbool: Relax test.
59268         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59269         address to 'bool' work in static initializer, for compilers other than
59270         GCC.
59272 2010-12-19  Bruno Haible  <bruno@clisp.org>
59274         ftello: Add missing declaration on OSF/1 5.1.
59275         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59276         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59278         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59279         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59281 2010-12-19  Bruno Haible  <bruno@clisp.org>
59283         fseeko: Add missing declaration on OSF/1 5.1.
59284         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59285         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59287         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59288         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59290 2010-12-19  Bruno Haible  <bruno@clisp.org>
59292         fchdir: Add missing declaration on OSF/1 5.1.
59293         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59296         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59297         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59299 2010-12-19  Bruno Haible  <bruno@clisp.org>
59301         relocatable-prog-wrapper: Separate from relocatable-prog.
59302         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59303         uninstall-relocwrapper rule here.
59304         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59305         Reported by Ian Beckwith <ianb@erislabs.net>.
59307 2010-12-19  Bruno Haible  <bruno@clisp.org>
59309         unistr/u8-mbsnlen: Add missing dependency.
59310         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59311         Reported by Ian Beckwith <ianb@erislabs.net>.
59313 2010-12-19  Bruno Haible  <bruno@clisp.org>
59315         iconv: Make it possible again to use this module without 'iconv-h'.
59316         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59317         if it is not defined.
59318         Reported by Ian Beckwith <ianb@erislabs.net>.
59320 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59322         acl: port to Solaris 8 when copying from tmpfs to ufs
59323         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59324         error number.  Problem observed on Solaris 8 with latest
59325         coreutils, with "mv A B", where A is on a tmpfs file system and B
59326         is on a ufs file system.  This caused coreutils' mv/part-symlink
59327         test to fail.
59329         tests: set fail=0 at start
59330         * tests/init.sh (setup_): Move fail=0 initialization here ...
59331         (mktempd_): ... from here, so that tests can rely on fail being
59332         set to 0 initially.  This fixes a problem in coreutils; see:
59333         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59335 2010-12-18  Bruno Haible  <bruno@clisp.org>
59337         memmem-simple: Stylistic changes.
59338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59339         Fix preprocessor directive indentation.
59341 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59343         memmem, memmem-simple: reorganize and expand empty needle check
59344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59345         functional checks to memmem-simple so that one has a fully functional
59346         memmem by using just this module.
59347         Restrict the performance only check to the memmem module.
59348         Also expand the empty needle check to ensure the correct
59349         pointer is returned, not just a non NULL pointer.
59350         * doc/glibc-functions/memmem.texi: Rearrange the portability
59351         documentation to correlate with the rearranged checks.
59352         Clarify exactly how the memmem and memmem-simple modules
59353         relate to each other.
59355 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59356             Bruno Haible  <bruno@clisp.org>
59358         Improve cross-compilation guesses for uClibc.
59359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59360         that uClibc does not have the glibc bug.
59361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59362         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59364 2010-12-14  Eric Blake  <eblake@redhat.com>
59366         configmake: provide fallbacks for oldest supported autotools
59367         * m4/configmake.m4: New file.
59368         * modules/configmake (Files): Ship it.
59369         (configure.ac): Use it to guarantee fallbacks.
59371 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59373         read-file: Improve handling of large files
59374         * lib/read-file.c (fread_file): Minimize realloc()s
59375         for regular files, and better manage sizes around SIZE_MAX.
59377 2010-12-13  Eric Blake  <eblake@redhat.com>
59379         cloexec, fcntl: relax license
59380         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59381         consent from all contributors.
59382         * modules/fcntl (License): Likewise.
59384 2010-12-10  Bruno Haible  <bruno@clisp.org>
59386         Tests for module 'pipe-posix'.
59387         * modules/pipe-posix-tests: New file.
59388         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59390 2010-12-10  Bruno Haible  <bruno@clisp.org>
59392         pipe-posix: Make it work in C++ mode.
59393         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59394         (pipe): Use common idiom, not a macro definition.
59395         * lib/pipe.c: New file.
59396         * m4/pipe.m4: New file.
59397         * modules/pipe-posix (Description): Enhance.
59398         (Files): Add lib/pipe.c, m4/pipe.m4.
59399         (configure.ac): Invoke gl_FUNC_PIPE.
59400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59401         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59402         * tests/test-unistd-c++.cc: Check the signature of pipe.
59404 2010-12-10  Bruno Haible  <bruno@clisp.org>
59406         Rename module 'pipe' to 'spawn-pipe'.
59407         * modules/spawn-pipe: New file, renamed from modules/pipe.
59408         (Files, configure.ac, Makefile.am): Update.
59409         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59410         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59411         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59412         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
59413         "spawn-pipe.h" instead of "pipe.h".
59414         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
59415         to gl_SPAWN_PIPE.
59416         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
59417         (Files, Makefile.am): Update.
59418         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
59419         Update.
59420         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
59421         Include "spawn-pipe.h" instead of "pipe.h".
59422         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
59423         * lib/javacomp.c: Likewise.
59424         * lib/javaversion.c: Likewise.
59425         * lib/pipe-filter-gi.c: Likewise.
59426         * lib/pipe-filter-ii.c: Likewise.
59427         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
59428         * modules/javacomp (Depends-on): Likewise.
59429         * modules/javaversion (Depends-on): Likewise.
59430         * modules/pipe-filter-gi (Depends-on): Likewise.
59431         * modules/pipe-filter-ii (Depends-on): Likewise.
59432         * MODULES.html.sh (Executing programs): Update.
59433         * NEWS: Mention the change.
59435 2010-12-10  Eric Blake  <eblake@redhat.com>
59437         pipe-posix: new module
59438         * modules/pipe-posix: New file.
59439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59440         (gl_UNISTD_H): Check for declaration.
59441         * modules/unistd (Makefile.am): Substitute it.
59442         * lib/unistd.in.h (pipe): Provide it for mingw.
59443         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59444         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59446 2010-12-07  Bruno Haible  <bruno@clisp.org>
59448         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59449         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59450         u8_strcmp_gnu.
59451         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59453 2010-12-06  Bruno Haible  <bruno@clisp.org>
59455         Update internal documentation.
59456         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59458 2010-12-04  Bruno Haible  <bruno@clisp.org>
59460         Put more information about failed tests into the test return codes.
59461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59462         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59463         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59465         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59466         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59467         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59468         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59469         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59472         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59473         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59474         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59475         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59476         returns a bit mask.
59477         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59478         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59479         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59480         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59481         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59482         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59485         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59486         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59487         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59488         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59489         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59491         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59492         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59493         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59494         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59495         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59496         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59498         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59500         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59501         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59502         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59503         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59504         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59505         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59506         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59507         gl_PRINTF_PRECISION): Likewise.
59508         * m4/regex.m4 (gl_REGEX): Likewise.
59509         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59510         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59512         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59516         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59517         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59518         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59519         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59520         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59521         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59522         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59523         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59525         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59526         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59528         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59529         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59530         enumerated value.
59531         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59533 2010-12-04  Bruno Haible  <bruno@clisp.org>
59535         Update for Solaris 11 2010-11.
59536         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59537         Express, released in November 2010.
59539 2010-12-04  Bruno Haible  <bruno@clisp.org>
59541         nproc: Relax license.
59542         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59543         and Paul Eggert.
59544         Requested by Ludovic Courtès <ludo@gnu.org>.
59546 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59548         utimecmp: fine-grained src to nearby coarse-grained dest
59550         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59551         and the source is on a file system with higher-resolution time
59552         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59553         not work, and the time stamps are close together, the algorithm to
59554         determine the exact resolution from the read-back mtime was buggy:
59555         it had a "!=" where it should have had an "==".  This bug has been
59556         in the code ever since it was introduced to gnulib.
59557         Problem reported by Dan Jacobson in
59558         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59560 2010-11-30  Bruno Haible  <bruno@clisp.org>
59562         strerror_r-posix: Fix autoconf test.
59563         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59565 2010-11-28  Bruno Haible  <bruno@clisp.org>
59566             Paul Eggert  <eggert@cs.ucla.edu>
59568         Tests for module 'getdomainname'.
59569         * modules/getdomainname-tests: New file.
59570         * tests/test-getdomainname.c: New file, based on
59571         tests/test-gethostname.c.
59573 2010-11-28  Bruno Haible  <bruno@clisp.org>
59574             Paul Eggert  <eggert@cs.ucla.edu>
59576         getdomainname: Use the system function when possible.
59577         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59578         (getdomainname): Replace if needed. Provide the declaration if it is
59579         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59580         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59581         (getdomainname): When the system has getdomainname, call the system
59582         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59583         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59584         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59585         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59586         the function if its second argument is of type 'int' or if it is found
59587         in libnsl.
59588         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59589         <sys/systeminfo.h> and sysinfo().
59590         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59592         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59593         HAVE_GETDOMAINNAME.
59594         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59595         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59596         * doc/glibc-functions/getdomainname.texi: Document the problems with
59597         the getdomainname declaration.
59599 2010-11-28  Bruno Haible  <bruno@clisp.org>
59601         sys_socket: Ensure ss_family field on AIX.
59602         * lib/sys_socket.in.h (ss_family): New macro definition.
59603         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59604         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59605         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59606         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59607         * modules/sys_socket (Makefile.am): Substitute
59608         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59609         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59611 2010-11-27  Bruno Haible  <bruno@clisp.org>
59613         readline: Improve configure output.
59614         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59615         "checking for readline..." result understandable.
59617 2010-11-27  Bruno Haible  <bruno@clisp.org>
59619         *printf-posix: Detect a bug on Solaris 10/x86.
59620         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59621         for floating-point output.
59622         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59623         directive.
59624         * tests/test-snprintf-posix.h (test_function): Likewise.
59625         * tests/test-sprintf-posix.h (test_function): Likewise.
59626         * tests/test-vasprintf-posix.c (test_function): Likewise.
59627         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59628         * doc/posix-functions/printf.texi: Likewise.
59629         * doc/posix-functions/snprintf.texi: Likewise.
59630         * doc/posix-functions/sprintf.texi: Likewise.
59631         * doc/posix-functions/vfprintf.texi: Likewise.
59632         * doc/posix-functions/vprintf.texi: Likewise.
59633         * doc/posix-functions/vsnprintf.texi: Likewise.
59634         * doc/posix-functions/vsprintf.texi: Likewise.
59635         * doc/glibc-functions/obstack_printf.texi: Likewise.
59636         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59638 2010-11-27  Bruno Haible  <bruno@clisp.org>
59640         Fix link error when module libunistring-optional is in use.
59641         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59642         * modules/striconveha-tests (Makefile.am): Likewise.
59644 2010-11-27  Bruno Haible  <bruno@clisp.org>
59646         regex: Mention link dependencies.
59647         * modules/regex (Link): New section.
59648         * modules/rpmatch (Link): Likewise.
59649         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59651 2010-11-27  Bruno Haible  <bruno@clisp.org>
59653         ftoastr: Fix compilation error on Solaris.
59654         * lib/ftoastr.c: Include <config.h>.
59656 2010-11-27  Bruno Haible  <bruno@clisp.org>
59658         getloadavg: Update documentation.
59659         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59661 2010-11-27  Bruno Haible  <bruno@clisp.org>
59663         sys_socket: Fix test whether the functions are declared.
59664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59665         not <sys/select.h>.
59667 2010-11-27  Bruno Haible  <bruno@clisp.org>
59669         getpass: Make sure to get system declaration on some platforms.
59670         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59671         gl_USE_SYSTEM_EXTENSIONS.
59672         * modules/getpass (Depends-on): Add extensions.
59674 2010-11-26  Bruno Haible  <bruno@clisp.org>
59676         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59677         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59678         'iconv' module is present.
59679         (ICONV_CONST): New macro.
59680         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59681         ICONV_CONST.
59682         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59683         set ICONV_CONST.
59684         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59685         here.
59686         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59687         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59688         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59689         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59690         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59691         present.
59693 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59695         ftoastr: comment fix
59696         * lib/ftoastr.c: "little" -> "little or no" in comment
59698 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59700         stdint: port to GCC 4.3 + OSX + Octave
59701         On this platform, stdint.h is buggy and defines int64_t to long
59702         long int.  The replacement defined it to long int, causing
59703         problems with C++ style name mangling.  Instead, trust the system
59704         definition if INT64_MAX is defined, and likewise for the unsigned
59705         variant.   Problem reported by Jarno Rajahalme in
59706         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59707         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59708         and don't mess with int64_t and INT64_MAX in this case.
59709         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59711 2010-11-24  Bruno Haible  <bruno@clisp.org>
59713         doc: Corrections regarding MacOS X 10.4 and 10.5.
59714         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59715         MacOS X.
59716         Reported by Simon Josefsson.
59718 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59720         Uninstall ".bin" files installed by relocwrapper.
59721         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59722         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59723         unless it is already there.
59725 2010-11-21  Bruno Haible  <bruno@clisp.org>
59727         Update for NetBSD 5.0.
59728         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59729         NetBSD; the test fails on NetBSD 5.0.
59730         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59731         about NetBSD.
59733 2010-11-21  Bruno Haible  <bruno@clisp.org>
59735         Update for HP-UX 11.23 and HP-UX 11.31.
59736         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59737         HP-UX.
59739 2010-11-21  Bruno Haible  <bruno@clisp.org>
59741         Update for MacOS X 10.5.
59742         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59743         MacOS X; the test fails on MacOS X 10.5.8.
59744         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59745         about MacOS X.
59747 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59749         bootstrap: add bootstrap_sync option.
59750         See discussion at
59751         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59752         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59753         * build-aux/bootstrap: Accept --bootstrap-sync to update
59754         bootstrap if it is not identical to the local gnulib's
59755         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59756         enable this by default.  Accept --no-bootstrap-sync to disable
59757         it.
59759 2010-11-20  Bruno Haible  <bruno@clisp.org>
59761         Ensure that <features.h> is included before __GLIBC__ is tested.
59762         * lib/printf-parse.h: Include <features.h>.
59763         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59764         Reported by Mike Frysinger <vapier@gentoo.org>.
59766         Ensure that <features.h> is included before __GLIBC__ is tested.
59767         * lib/wchar.in.h: Include <features.h>.
59768         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59769         * modules/wchar (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         * lib/arpa_inet.in.h: Include <features.h>.
59774         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59775         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59776         Reported by Mike Frysinger <vapier@gentoo.org>.
59778         Ensure that <features.h> is included before __GLIBC__ is tested.
59779         * build-aux/link-warning.h: Include <features.h>.
59780         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59781         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59782         Reported by Mike Frysinger <vapier@gentoo.org>.
59784         Ensure that <features.h> is included before __GLIBC__ is tested.
59785         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59786         Reported by Mike Frysinger <vapier@gentoo.org>.
59788 2010-11-20  Bruno Haible  <bruno@clisp.org>
59790         memmem: Fix autoconf test.
59791         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59793 2010-11-20  Bruno Haible  <bruno@clisp.org>
59795         Port to uClibc.
59796         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59797         * lib/fcntl.in.h: Likewise.
59798         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59799         * lib/mbrtowc.c (mbrtowc): Likewise.
59800         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59801         * lib/strerror_r.c: Likewise.
59802         * lib/unistr/u8-strnlen.c: Likewise.
59803         * lib/vasnprintf.c (decimal_point_char): Likewise.
59804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59805         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59807         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59808         * tests/test-sigaction.c (handler, main): Likewise.
59809         * lib/freading.h: Treat uClibc like a non-glibc platform.
59810         * lib/freading.c: Likewise.
59811         * lib/gettext.h: Likewise.
59812         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59813         Likewise.
59814         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59815         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59816         * lib/propername.c (proper_name_utf8): Likewise.
59817         * lib/spawn.in.h: Likewise.
59818         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59819         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59820         mem_cd_iconveh_internal): Likewise.
59821         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59822         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59823         strstr, strcasestr): Likewise.
59824         * lib/unicodeio.c (unicode_to_mb): Likewise.
59825         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59826         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59827         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59828         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59829         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59830         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59831         * lib/unistr/u8-stpncpy.c: Likewise.
59832         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59833         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59834         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59835         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59836         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59837         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59838         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59841         Likewise.
59842         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59843         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59844         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59847         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59848         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59849         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59850         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59851         * tests/test-striconveha.c (main): Likewise.
59852         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59853         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59854         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59855         * doc/posix-functions/getline.texi: Likewise.
59856         Reported by Mike Frysinger <vapier@gentoo.org>.
59858 2010-11-20  Bruno Haible  <bruno@clisp.org>
59860         nproc: Fix condition.
59861         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59862         HAVE_PTHREAD_AFFINITY_NP.
59864 2010-11-20  Bruno Haible  <bruno@clisp.org>
59866         Fix a comment.
59867         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59869 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59871         ftoastr: don't assume snprintf
59872         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59873         Implement a subset of snprintf here, by using sprintf safely.
59874         * modules/ftoastr (Depends-on): Remove snprintf.
59876 2010-11-19  Jim Meyering  <meyering@redhat.com>
59878         test-rename.h: fix compilation failure
59879         * tests/test-rename.h (test_rename): Add omitted "}".
59881 2010-11-17  Jim Meyering  <meyering@redhat.com>
59883         maint.mk: add a URL discussing the no-@acronym policy
59884         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59886 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59888         ftoastr: depend on snprintf, improve comments
59889         * lib/ftoastr.c: Also mention Loitsch's draft.
59890         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59891         needed in the current implementation, but it might simplify
59892         speeding up the code later.
59893         * modules/ftoastr: Depend on snprintf; this improves portability.
59894         Suggested by Bruno Haible in the same email.
59896         ftoastr: port to hosts lacking strtof and strtold
59897         Problem reported by Bruno Haible in
59898         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59899         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59900         environment and strtold (and presumably strtof) are not available.
59901         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59902         (configure.ac): Require gl_C99_STRTOLD.
59904 2010-11-18  Bruno Haible  <bruno@clisp.org>
59906         c-strtold: Avoid link error on AIX 7.
59907         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59908         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59909         (gl_C_STRTOLD): Test whether strtold_l exists.
59910         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59912 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59914         intprops: new macro INT_BITS_STRLEN_BOUND
59915         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59916         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59917         not exposed.  Also, it uses a slightly tighter bound than before;
59918         though this makes no practical difference, we might as well be as
59919         tight as we easily can.
59921         ftoastr: new module, for lossless conversion of floats to short strings
59922         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59923         * modules/ftoastr: New files.
59925 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59927         bootstrap: port to Solaris sed
59928         * build-aux/bootstrap (get_version): Port to Solaris sed.
59929         See Ralf Wildenhues's note in
59930         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59932 2010-11-14  Jim Meyering  <meyering@redhat.com>
59934         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59935         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59936         and move definition closer to sole use.
59938 2010-11-13  Jim Meyering  <meyering@redhat.com>
59940         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59941         Now we require at least autoconf-2.59, which means the work-around
59942         is no longer needed.
59943         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59944         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59945         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59946         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59947         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59949 2010-11-13  Bruno Haible  <bruno@clisp.org>
59951         rename, renameat: Avoid test failures at NFS mounted locations.
59952         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59953         functions.
59954         (test_rename): Use assert_nonexistent.
59955         * tests/test-rename.c: Include <dirent.h>.
59956         * tests/test-renameat.c: Likewise.
59957         Reported by Gary V. Vaughan <gary@gnu.org>.
59959         rename, renameat: Document Linux bug with NFS
59960         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59961         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59962         * doc/posix-functions/renameat.texi: Likewise.
59963         Suggested by Eric Blake.
59965 2010-11-13  Bruno Haible  <bruno@clisp.org>
59967         rename test: Add comments.
59968         * tests/test-rename.h (test_rename): Add structure and comments.
59970 2010-11-13  Eric Blake  <eblake@redhat.com>
59972         maintainer-makefile: cover a few more files
59973         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59974         scripts generated within C files, for libvirt.
59976 2010-11-13  Bruno Haible  <bruno@clisp.org>
59978         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59979         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59980         character, return the number of bytes that belong together, not always
59981         1.
59982         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59983         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59984         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59985         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59986         number of bytes of an invalid character.
59987         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59988         (main): Invoke it.
59989         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59990         results.
59991         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59992         malformed byte sequences.
59993         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59994         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59995         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59996         Reported by Ben Pfaff and Paolo Bonzini.
59998 2010-11-13  Bruno Haible  <bruno@clisp.org>
60000         openat: Work around glibc bug with fchownat() and empty file names.
60001         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60002         (gl_FUNC_FCHOWNAT): Invoke it.
60003         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60004         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60005         Reported by Gary V. Vaughan <gary@gnu.org>.
60007 2010-11-13  Bruno Haible  <bruno@clisp.org>
60009         openat: Ensure autoconf macro ordering.
60010         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60011         gl_USE_SYSTEM_EXTENSIONS.
60012         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60014 2010-11-13  Bruno Haible  <bruno@clisp.org>
60016         Update comments.
60017         * lib/unistr/u8-check.c: Update file name in comments.
60018         * lib/unistr/u8-mblen.c: Likewise.
60019         * lib/unistr/u8-prev.c: Likewise.
60020         * lib/unistr/u8-strmblen.c: Likewise.
60021         * lib/unistr/u8-strmbtouc.c: Likewise.
60023 2010-11-13  Jim Meyering  <meyering@redhat.com>
60025         tests: avoid test failure on Solaris 10 due to lack of PATH export
60026         * tests/test-update-copyright.sh: Don't forget to export PATH.
60028         init.sh: ensure that IFS is defined, just in case...
60029         * tests/init.sh (setup_): Ensure that IFS is defined,
60030         so that saving and restoring it works as expected.  This
60031         appears to be useful at least for an old version of dash
60032         from a long time ago (RH 6).  See here for details:
60033         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60035         maint.mk: tighten "test a == b" check
60036         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60037         test to files that contain something like #!/bin/sh.
60038         Without this, coreutils would get two false positives in
60039         the comments of C source files.
60041 2010-11-12  Eric Blake  <eblake@redhat.com>
60043         bootstrap: fix typo in previous attempt
60044         * build-aux/bootstrap (buildreq): Correct the grouping.
60045         Reported by Paul Eggert.
60047         maintainer-makefile: prohibit test x == x
60048         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60049         Based on a report by Matthias Bolte.
60051         bootstrap: allow FreeBSD gzip
60052         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60053         which has no '.' and goes to stderr.
60054         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60055         Reported by Matthias Bolte.
60057         maintainer-makefile: check for i18n setup
60058         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60059         will likely work.
60061 2010-11-12  Bruno Haible  <bruno@clisp.org>
60063         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60064         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60065         * lib/nanosleep.c (nanosleep): Likewise.
60067 2010-11-11  Bruno Haible  <bruno@clisp.org>
60069         fcntl-h: Fix for use of C++ on glibc systems.
60070         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60071         also on glibc systems in C++ mode.
60072         Reported by Gary V. Vaughan <gary@gnu.org>.
60074 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60076         mknod: avoid false failure with dash
60077         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60079 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60081         unlink: Fix "is it should" typo in diagnostic.
60082         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60083         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60085 2010-11-11  Bruno Haible  <bruno@clisp.org>
60087         Tests for module 'strerror_r-posix'.
60088         * modules/strerror_r-posix-tests: New file.
60089         * tests/test-strerror_r.c: New file.
60090         * tests/test-string-c++.cc: Check the signature of strerror_r.
60092         New module 'strerror_r-posix'.
60093         * lib/string.in.h (strerror_r): New declaration.
60094         * lib/strerror_r.c: New file.
60095         * m4/strerror_r.m4: New file.
60096         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60097         of strerror_r.
60098         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60099         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60100         * modules/strerror_r-posix: New file.
60101         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60102         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60103         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60104         portability problems.
60106 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60108         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60109         line is also considered for output. Quoted function name in shell
60110         command, so temporary files for functions like MyClass::operator()
60111         are removed correctly without errors.
60113 2010-11-09  Bruno Haible  <bruno@clisp.org>
60115         * doc/posix-functions/strerror.texi: List more failing platforms.
60117         * doc/posix-functions/strerror.texi: Add a comment.
60119 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60121         fdopendir: fix bug on MacOS X when low on file descriptors
60123         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60124         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60125         All callers changed.
60126         (fdopendir): Invoke save_cwd at the top level, not after using
60127         multiple dup() calls to use up file descriptors.  Then retry
60128         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60129         less than the maximum number of open file descriptors, because
60130         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60131         on Mac OS X 10.6.4 for tar 1.24
60132         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60133         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60134         and for tar 1.25
60135         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60137 2010-11-07  Bruno Haible  <bruno@clisp.org>
60139         vasnprintf: Support I flag on glibc systems.
60140         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60141         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60142         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60143         snprintf function.
60144         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60145         glibc systems.
60146         * tests/test-vasnprintf-posix3.c: New file.
60147         * modules/vasnprintf-posix-tests (Files): Add it.
60148         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60150 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60152         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60153         * MODULES.html.sh: For compiler warnings, use name
60154         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60156 2010-11-05  Eric Blake  <eblake@redhat.com>
60158         ceil, floor: avoid spurious failure with icc
60159         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60160         [denormals-as-zero] when optimizing without -mieee-fp option.
60161         * tests/test-floorf2.c (floorf_reference): Likewise.
60162         * tests/test-ceilf1.c (dummy): New function.
60163         (main): Use it to outsmart icc's optimization.
60164         * tests/test-floorf1.c (dummy, main): Likewise.
60166         tests: require working signbit
60167         * modules/ceilf-tests (Depends-on): Add signbit.
60168         * modules/ceill-tests (Depends-on): Likewise.
60169         * modules/floorf-tests (Depends-on): Likewise.
60170         * modules/floorl-tests (Depends-on): Likewise.
60171         * modules/round-tests (Depends-on): Likewise.
60172         * modules/roundf-tests (Depends-on): Likewise.
60173         * modules/roundl-tests (Depends-on): Likewise.
60174         * modules/trunc-tests (Depends-on): Likewise.
60175         * modules/truncf-tests (Depends-on): Likewise.
60176         * modules/truncl-tests (Depends-on): Likewise.
60178         strtod: work around icc bug
60179         * lib/strtod.c (minus_zero): Define to working value.
60180         (strtod): Use it to avoid icc bug.
60182         copysign: enhance tests
60183         * modules/copysign-tests (Files): Add minus-zero.h.
60184         * tests/test-copysign.c (main): Also test zeros.
60186 2010-11-04  Eric Blake  <eblake@redhat.com>
60188         ceil, floor, round, trunc: enhance tests of -0
60189         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60190         * tests/test-ceill.c (main): Likewise.
60191         * tests/test-floorf1.c (main): Likewise.
60192         * tests/test-floorl.c (main): Likewise.
60193         * tests/test-round1.c (main): Likewise.
60194         * tests/test-roundf1.c (main): Likewise.
60195         * tests/test-roundl.c (main): Likewise.
60196         * tests/test-trunc1.c (main): Likewise.
60197         * tests/test-truncf1.c (main): Likewise.
60198         * tests/test-truncl.c (main): Likewise.
60200 2010-11-04  Eric Blake  <eblake@redhat.com>
60202         frexp, tests: work around ICC bug with -zero
60203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60204         works with more compilers.
60205         * tests/minus-zero.h: New file.
60206         * modules/ceilf-tests (Files): Include it.
60207         * modules/ceill-tests (Files): Likewise.
60208         * modules/floorf-tests (Files): Likewise.
60209         * modules/floorl-tests (Files): Likewise.
60210         * modules/frexp-nolibm-tests (Files): Likewise.
60211         * modules/frexp-tests (Files): Likewise.
60212         * modules/frexpl-nolibm-tests (Files): Likewise.
60213         * modules/frexpl-tests (Files): Likewise.
60214         * modules/isnan-tests (Files): Likewise.
60215         * modules/isnand-nolibm-tests (Files): Likewise.
60216         * modules/isnand-tests (Files): Likewise.
60217         * modules/isnanf-nolibm-tests (Files): Likewise.
60218         * modules/isnanf-tests (Files): Likewise.
60219         * modules/isnanl-nolibm-tests (Files): Likewise.
60220         * modules/isnanl-tests (Files): Likewise.
60221         * modules/round-tests (Files): Likewise.
60222         * modules/roundf-tests (Files): Likewise.
60223         * modules/roundl-tests (Files): Likewise.
60224         * modules/ldexpl-tests (Files): Likewise.
60225         * modules/signbit-tests (Files): Likewise.
60226         * modules/snprintf-posix-tests (Files): Likewise.
60227         * modules/sprintf-posix-tests (Files): Likewise.
60228         * modules/strtod-tests (Files): Likewise.
60229         * modules/trunc-tests (Files): Likewise.
60230         * modules/truncf-tests (Files): Likewise.
60231         * modules/truncl-tests (Files): Likewise.
60232         * modules/vsnprintf-posix-tests (Files): Likewise.
60233         * modules/vsprintf-posix-tests (Files): Likewise.
60234         * modules/vasnprintf-posix-tests (Files): Likewise.
60235         * modules/vasprintf-posix-tests (Files): Likewise.
60236         * tests/test-ceilf1.c (main): Use it.
60237         * tests/test-ceill.c (main): Likewise.
60238         * tests/test-floorf1.c (main): Likewise.
60239         * tests/test-floorl.c (main): Likewise.
60240         * tests/test-frexp.c (main): Likewise.
60241         * tests/test-frexpl.c (main): Likewise.
60242         * tests/test-isnan.c (main): Likewise.
60243         * tests/test-isnand.h (main): Likewise.
60244         * tests/test-isnanf.h (main): Likewise.
60245         * tests/test-isnanl.h (main): Likewise.
60246         * tests/test-ldexpl.c (main): Likewise.
60247         * tests/test-round.c (main): Likewise.
60248         * tests/test-roundf.c (main): Likewise.
60249         * tests/test-roundl.c (main): Likewise.
60250         * tests/test-signbit.c (test_signbitf, test_signbitd)
60251         (test_signbitl): Likewise.
60252         * tests/test-snprintf-posix.h (test_function): Likewise.
60253         * tests/test-sprintf-posix.h (test_function): Likewise.
60254         * tests/test-strtod.c (main): Likewise.
60255         * tests/test-trunc1.c (main): Likewise.
60256         * tests/test-truncf1.c (main): Likewise.
60257         * tests/test-truncl.c (main): Likewise.
60259         isnanl: work around icc bug
60260         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60262 2010-11-03  Eric Blake  <eblake@redhat.com>
60264         tests: fix compiler warnings
60265         * tests/test-getopt.h (test_getopt): Fix condition.
60266         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60267         * tests/test-pipe2.c (main): Likewise.
60268         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60270         utimens: fix broken m4 test
60271         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60273 2010-10-28  Bruno Haible  <bruno@clisp.org>
60275         posix_spawn*, getdtablesize: Relax license.
60276         * modules/posix_spawn (License): Change to LGPLv2+.
60277         * modules/posix_spawnp (License): Likewise.
60278         * modules/posix_spawn-internal (License): Likewise.
60279         * modules/posix_spawnattr_init (License): Likewise.
60280         * modules/posix_spawnattr_getflags (License): Likewise.
60281         * modules/posix_spawnattr_setflags (License): Likewise.
60282         * modules/posix_spawnattr_getpgroup (License): Likewise.
60283         * modules/posix_spawnattr_setpgroup (License): Likewise.
60284         * modules/posix_spawnattr_getschedparam (License): Likewise.
60285         * modules/posix_spawnattr_setschedparam (License): Likewise.
60286         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60287         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60288         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60289         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60290         * modules/posix_spawnattr_getsigmask (License): Likewise.
60291         * modules/posix_spawnattr_setsigmask (License): Likewise.
60292         * modules/posix_spawnattr_destroy (License): Likewise.
60293         * modules/posix_spawn_file_actions_init (License): Likewise.
60294         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60295         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60296         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60297         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60298         * modules/getdtablesize (License): Likewise.
60299         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60301 2010-10-26  Bruno Haible  <bruno@clisp.org>
60303         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60304         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60305         Cygwin and mingw.
60306         Suggested by Eric Blake.
60308 2010-10-26  Bruno Haible  <bruno@clisp.org>
60310         stdio: Work around compilation error due to renameat() on Solaris 10.
60311         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60312         * lib/renameat.c: Don't include <unistd.h> here.
60313         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60314         Reported by Paul Eggert and Eric Blake.
60316 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60318         renameat: port to Solaris 10, which declares renameat in unistd.h
60320         * lib/renameat.c: Include unistd.h before stdio.h, because
60321         Solaris 10 declares renameat in unistd.h.  Problem encountered
60322         when building GNU tar 1.24 on Solaris 10.
60324 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60326         fdopendir: fix C89 compilation
60327         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60328         compilers.
60330 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60332         inttostr: simplify by removing unnecessary redundancy
60333         * lib/anytostr.c: Don't include verify.h.
60334         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60335         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60336         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60337         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60338         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60339         Likewise.
60340         * modules/inttostr (Depends-on): Remove 'verify'.
60342 2010-10-23  Bruno Haible  <bruno@clisp.org>
60344         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60345         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60346         Reported by Eric Blake.
60348 2010-10-23  Bruno Haible  <bruno@clisp.org>
60350         Tests: Fix LOCALE_JA on MirBSD 10.
60351         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60352         to an UTF-8 locale.
60353         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60354         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60355         Reported by Eric Blake.
60357 2010-10-21  Bruno Haible  <bruno@clisp.org>
60359         nl_langinfo test: Avoid test failure on NetBSD 5.
60360         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60361         Reported by Eric Blake.
60363 2010-10-21  Eric Blake  <eblake@redhat.com>
60365         c-stack: work around libsigsegv 2.8 bug
60366         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60367         overflow on at least PowerPC64.
60369 2010-10-17  Bruno Haible  <bruno@clisp.org>
60371         userspec: Drop redundant file.
60372         * modules/userspec (Files): Remove lib/inttostr.h.
60374 2010-10-17  Bruno Haible  <bruno@clisp.org>
60376         nl_langinfo tests: Silence some warnings.
60377         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60378         Reported by Jim Meyering.
60380 2010-10-17  Bruno Haible  <bruno@clisp.org>
60382         Make use of GCC's attribute __alloc_size__.
60383         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60384         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60385         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60386         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60387         __alloc_size__.
60388         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60389         Suggested by Jim Meyering.
60391 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60393         bootstrap: anchor .gitignore entries.
60394         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60395         with...
60396         (insert_vc_ignore): ... this new function, which prepends `/' to
60397         all .gitignore entries before passing them to
60398         insert_sorted_if_absent.
60400 2010-10-16  Bruno Haible  <bruno@clisp.org>
60402         nextafter: Fix configure check.
60403         * modules/nextafter (configure.ac): Correct expected prototype.
60405 2010-10-16  Bruno Haible  <bruno@clisp.org>
60407         termios: Update documentation.
60408         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60410 2010-10-16  Bruno Haible  <bruno@clisp.org>
60412         tests: Make them compile with TinyCC.
60413         * tests/test-strstr.c (main): Remove parentheses around array
60414         initializer.
60416 2010-10-15  Eric Blake  <eblake@redhat.com>
60418         ignore-value: make header idempotent
60419         * lib/ignore-value.h: Add double-inclusion guards.
60420         Reported by Stefan Berger.
60422 2010-10-15  Jim Meyering  <meyering@redhat.com>
60424         GNUmakefile: handle "stable" target, not "major"
60425         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
60426         lists in maint.mk and announce-gen.  Without this, "make stable"
60427         would fail to ensure that $(VERSION) is up to date.
60429 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
60431         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
60432         & co.
60434 2010-10-14  Bruno Haible  <bruno@clisp.org>
60436         vasnprintf: Don't set errno to 0.
60437         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60438         block that sets it to 0.
60439         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60441 2010-10-14  Bruno Haible  <bruno@clisp.org>
60443         socketlib: Fix.
60444         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60445         gl_PREREQ_SYS_H_WINSOCK2.
60446         Reported by Ian Beckwith <ianb@erislabs.net>.
60448 2010-10-13  Jim Meyering  <meyering@redhat.com>
60450         test-select-stdin.c: avoid warn_unused_result warnings
60451         * tests/test-select-stdin.c: Include "macros.h".
60452         ASSERT that read and fflush succeed.
60454 2010-10-13  Jim Meyering  <meyering@redhat.com>
60456         git-version-gen: do require git-VC'd files in cwd
60457         * build-aux/git-version-gen: Reject a git version string
60458         if there are no commits associated with the current directory.
60459         This avoids an unlikely false-positive (unrelated dir whose parent
60460         repository also contains a tag matching v*), as pointed out
60461         by Giuseppe Scrivano in
60462         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60464 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60466         argv-iter: omit nonconforming declaration
60467         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60468         enum arg_iter_err declaration, which doesn't conform to C99.
60469         Solaris 10 cc warns about this.
60471 2010-10-13  Eric Blake  <eblake@redhat.com>
60473         termios: fix compilation on mingw
60474         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60475         (gl_TERMIOS_H): Adjust it on mingw.
60476         * modules/termios (Makefile.am): Substitute new key.
60477         * lib/termios.in.h (includes): Make include_next conditional.
60478         * doc/posix-headers/termios.texi (termios.h): Update
60479         documentation.
60480         Reported by Daniel P. Berrange.
60482 2010-10-13  Jim Meyering  <meyering@redhat.com>
60484         git-version-gen: don't require that .git/ be in the current dir
60485         * build-aux/git-version-gen: Adjust this script so that it works
60486         when run from any working directory beneath the top-level .git/-
60487         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60490         test-select: avoid warn_unused_result warnings
60491         * tests/test-select.c: Include "macros.h".
60492         ASSERT that each call to read, write, and pipe succeeds.
60493         While not technically required, also check each "close".
60494         * modules/select-tests (Files): Add tests/macros.h.
60496         test-symlinkat: remove declaration of unused local
60497         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60499         test-inttostr: avoid shadowing warnings
60500         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60501         and use malloc rather than the stack for the same reason as
60502         mentioned in the comment justifying the other allocation.
60504 2010-10-11  Bruno Haible  <bruno@clisp.org>
60506         stdlib: Allow multiple gnulib generated replacements to coexist.
60507         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60508         Reported by Sam Steingold <sds@gnu.org>.
60510 2010-10-11  Jim Meyering  <meyering@redhat.com>
60512         fix a documentation typo
60513         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60515 2010-10-11  Eric Blake  <eblake@redhat.com>
60517         futimens: work around Solaris 11 bug
60518         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60519         * tests/test-futimens.h (test_futimens): Enhance, rather than
60520         weaken test.
60521         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60523 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60525         Indentation.
60526         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60527         higher-level operators more to the left.
60529 2010-10-11  Jim Meyering  <meyering@redhat.com>
60531         test-futimens: avoid unwarranted test failure on Solaris 5.11
60532         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60533         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60534         because it tries to dereference the NULL name argument.
60536 2010-10-11  Bruno Haible  <bruno@clisp.org>
60538         Indentation.
60539         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60540         indentation.
60542 2010-10-11  Jim Meyering  <meyering@redhat.com>
60544         spawn.in.h: make indentation consistent with parentheses
60545         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60546         Make indentation consistent with parentheses.
60548 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60550         Fix mismatched parens in previous commit
60551         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60552         parens.
60554 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60556         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60558         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60559         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60560         * lib/malloca.c: Include "verify.h".
60561         (verify1): Remove, replacing with a verify call.
60562         * lib/relocwrapper.c (verify1): Likewise.
60563         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60564         Likewise.
60565         * modules/malloca (Depends-on): Add 'verify'.
60566         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60567         * modules/vasnprintf (Depends-on): Add 'verify'.
60568         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60569         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60570         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60571         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60573         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60574         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60576         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60578         Formerly the style was sometimes 2*X - 1, because the C standard
60579         was wrongly thought to disallow ?: in integral constant expressions.
60580         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60581         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60582         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60583         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60584         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60585         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60586         verify that time_t cannot be floating.
60588 2010-10-08  Eric Blake  <eblake@redhat.com>
60590         time: enforce recent POSIX ruling that time_t is integral
60591         * lib/time.in.h (__time_t_must_be_integral): Detect any
60592         problematic systems, allowing the rest of gnulib to assume POSIX.
60594 2010-10-08  Jim Meyering  <meyering@redhat.com>
60596         fdopendir: fix a bug on systems lacking openat and /proc support
60597         OpenBSD 4.7 is one such system.  The most noticeable effect was
60598         failure of any application making nontrivial use of fts: rm, du,
60599         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60600           ./rm: traversal failed: `a': Bad file descriptor
60601         Debugging that, you see that even though FD 6 was closed just
60602         prior to the opendir call in fd_clone_opendir, its resulting
60603         dir->dd_fd was 8, rather than the expected value of 6:
60605         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60606         93                close (fd);
60607         (gdb) n
60608         94                dir = fd_clone_opendir (dupfd);
60609         (gdb) n
60610         95                saved_errno = errno;
60611         (gdb) p dir->dd_fd
60612         $11 = 8
60614         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60615         The problem is that on OpenBSD, fd_clone_opendir has to resort
60616         to using the old-style save/restore CWD mechanism, due to its
60617         lack of openat/proc support, and *that* would steal the FD (6)
60618         that opendir was supposed to use.
60620         The fix is to squirrel away the desired FD so that save_cwd uses a
60621         different one, and then free the dest FD right before calling opendir.
60622         That guarantees opendir will use the required file descriptor.
60624         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60626 2010-10-08  Bruno Haible  <bruno@clisp.org>
60628         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60629         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60631 2010-10-08  Bruno Haible  <bruno@clisp.org>
60633         nanosleep: Make replacement POSIX compliant.
60634         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60635         is out of range.
60636         Reported by Jim Meyering.
60638 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60640         bootstrap: add hook for altering gnulib.mk, for Bison
60641         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60642         the Bison bootstrapping process can rewrite file names and variables
60643         in this file before later parts of 'bootstrap' use the file.
60644         Bison wants to include lib/gnulib.mk from the top-level makefile,
60645         so it needs the file names in this file to be relative to the top
60646         level, not relative to lib; plus it needs variable names to be
60647         rewritten.
60648         (slurp): Use the new function.
60650         bootstrap: reformat for readability
60651         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60653 2010-10-08  Eric Blake  <eblake@redhat.com>
60655         docs: update cygwin progress
60656         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60657         1.7.7.
60658         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60659         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60660         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60661         * doc/posix-functions/carg.texi (carg): Likewise.
60662         * doc/posix-functions/cargf.texi (cargf): Likewise.
60663         * doc/posix-functions/casin.texi (casin): Likewise.
60664         * doc/posix-functions/casinf.texi (casinf): Likewise.
60665         * doc/posix-functions/casinh.texi (casinh): Likewise.
60666         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60667         * doc/posix-functions/catan.texi (catan): Likewise.
60668         * doc/posix-functions/catanf.texi (catanf): Likewise.
60669         * doc/posix-functions/catanh.texi (catanh): Likewise.
60670         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60671         * doc/posix-functions/ccos.texi (ccos): Likewise.
60672         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60673         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60674         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60675         * doc/posix-functions/cexp.texi (cexp): Likewise.
60676         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60677         * doc/posix-functions/cimag.texi (cimag): Likewise.
60678         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60679         * doc/posix-functions/clog.texi (clog): Likewise.
60680         * doc/posix-functions/clogf.texi (clogf): Likewise.
60681         * doc/posix-functions/conj.texi (conj): Likewise.
60682         * doc/posix-functions/conjf.texi (conjf): Likewise.
60683         * doc/posix-functions/cpow.texi (cpow): Likewise.
60684         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60685         * doc/posix-functions/cproj.texi (cproj): Likewise.
60686         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60687         * doc/posix-functions/creal.texi (creal): Likewise.
60688         * doc/posix-functions/crealf.texi (crealf): Likewise.
60689         * doc/posix-functions/csin.texi (csin): Likewise.
60690         * doc/posix-functions/csinf.texi (csinf): Likewise.
60691         * doc/posix-functions/csinh.texi (csinh): Likewise.
60692         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60693         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60694         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60695         * doc/posix-functions/ctan.texi (ctan): Likewise.
60696         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60697         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60698         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60699         * doc/posix-headers/complex.texi (complex.h): Likewise.
60701 2010-10-07  Jim Meyering  <meyering@redhat.com>
60703         parse-datetime: avoid compilation failure on OpenBSD 4.7
60704         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60705         This works around a compilation failure on OpenBSD 4.7:
60706         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60708 2010-10-07  Eric Blake  <eblake@redhat.com>
60710         docs: update cygwin progress
60711         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60712         1.7.6.
60713         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60714         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60715         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60716         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60717         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60718         Likewise.
60719         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60720         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60721         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60722         Likewise.
60723         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60724         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60725         Likewise.
60726         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60727         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60728         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60729         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60730         Likewise.
60731         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60732         Likewise.
60733         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60735         docs: update parse-datetime history
60736         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60737         documentation of this function's history and alternatives.
60739         cygwin: use more robust version check
60740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60741         exclude an eventual cygwin 1.9.1.
60742         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60744         (gl_FUNC_STRCASESTR): Likewise.
60745         Reported by Bruno Haible.
60747 2010-10-06  Bruno Haible  <bruno@clisp.org>
60749         string, sys_select: Avoid #including large headers unless necessary.
60750         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60751         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60752         OSF/1, BeOS, Haiku.
60753         Reported by Jim Meyering.
60755 2010-10-05  Eric Blake  <eblake@redhat.com>
60757         memmem, strstr, strcasestr: fix bug with long periodic needle
60758         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60759         periodic needle having false positive.
60760         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60761         and cygwin 1.7.7.
60762         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60764         (gl_FUNC_STRCASESTR): Likewise.
60765         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60766         * tests/test-memmem.c (main): Expose the bug.
60767         * tests/test-strcasestr.c (main): Likewise.
60768         * tests/test-strstr.c (main): Likewise.
60769         * tests/test-c-strcasestr.c (main): Likewise.
60770         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60771         * doc/posix-functions/strstr.texi (strstr): Likewise.
60772         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60773         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60775 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60777         parse-datetime: do some more renaming
60778         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60779         parse_datetime, not get_date.  Mention the renaming.
60780         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60781         in comments.
60782         * m4/bison.m4: Likewise.
60784 2010-10-05  Eric Blake  <eblake@redhat.com>
60786         parse-datetime: better name than get_date
60787         * NEWS: Reword the deprecation notice.
60788         * modules/get_date: Rename to modules/parse-datetime.
60789         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60790         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60791         * lib/get_date.y: Rename to lib/parse-datetime.y.
60792         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60793         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60794         * doc/getdate.texi: Provide fallback wrapper.
60795         * lib/getdate.h: Move guts, and wrap...
60796         * lib/parse-datetime.h: ...new file.
60797         * lib/parse-datetime.y (get_date): Rename...
60798         (parse_datetime): ...to this.
60799         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60800         (gl_PARSE_DATETIME): ...to this.
60801         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60802         documentation.
60803         * modules/getdate (Files): Provide fallback docs and header.
60804         (Notice, Depends-on): Update references.
60805         * tests/test-parse-datetime.c: Likewise.
60806         * DEPENDENCIES: Likewise.
60807         * MODULES.html.sh (Date and time <time.h>): Likewise.
60808         * doc/parse-datetime.texi (Date input formats)
60809         (Authors of parse_datetime): Likewise.
60810         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60811         (Include): Likewise.
60812         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60813         * gnulib-tool: Likewise.
60814         * m4/bison.m4 (gl_BISON): Likewise.
60815         Suggested by Bruno Haible.
60817 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60819         more ports to Solaris tr, which needs [] around ranges
60820         * gnulib-tool: Solaris tr needs [] around ranges.
60821         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60822         * tests/test-pipe-filter-gi1.c (main): Likewise.
60823         * tests/test-pipe-filter-ii1.c (main): Likewise.
60825 2010-10-05  Eric Blake  <eblake@redhat.com>
60827         bootstrap: fix Solaris regression
60828         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60829         around ranges.
60830         Reported by Pádraig Brady.
60832         bootstrap: work with pkg-config
60833         * build-aux/bootstrap (check_versions): Also transliterate - in
60834         prerequisite name.
60835         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60836         prerequisites that were already found, to avoid confusion.
60837         Reported by Justin Clift.
60839         faccessat: remove unused wrappers
60840         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60841         presence of these wrappers dragged in -lgen on Solaris.
60842         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60844 2010-10-05  Jim Meyering  <meyering@redhat.com>
60846         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60847         * Makefile (sc_pragma_columns): New syntax-check rule.
60849 2010-10-04  Bruno Haible  <bruno@clisp.org>
60851         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60852         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60853         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60854         Reported by Bruce Korb and Eric Blake.
60856 2010-10-04  Bruno Haible  <bruno@clisp.org>
60858         threadlib: Make option --with-libpth-prefix work.
60859         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60860         use $LIBPTH, not just -lpth.
60862 2010-10-04  Bruno Haible  <bruno@clisp.org>
60864         Avoid line length limitation from HP NonStop system header files.
60865         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60866         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60867         * lib/ctype.in.h: Likewise.
60868         * lib/dirent.in.h: Likewise.
60869         * lib/errno.in.h: Likewise.
60870         * lib/fcntl.in.h: Likewise.
60871         * lib/float.in.h: Likewise.
60872         * lib/getopt.in.h: Likewise.
60873         * lib/iconv.in.h: Likewise.
60874         * lib/inttypes.in.h: Likewise.
60875         * lib/langinfo.in.h: Likewise.
60876         * lib/locale.in.h: Likewise.
60877         * lib/math.in.h: Likewise.
60878         * lib/netdb.in.h: Likewise.
60879         * lib/netinet_in.in.h: Likewise.
60880         * lib/poll.in.h: Likewise.
60881         * lib/pthread.in.h: Likewise.
60882         * lib/pty.in.h: Likewise.
60883         * lib/sched.in.h: Likewise.
60884         * lib/se-selinux.in.h: Likewise.
60885         * lib/search.in.h: Likewise.
60886         * lib/signal.in.h: Likewise.
60887         * lib/spawn.in.h: Likewise.
60888         * lib/stdarg.in.h: Likewise.
60889         * lib/stddef.in.h: Likewise.
60890         * lib/stdint.in.h: Likewise.
60891         * lib/stdio.in.h: Likewise.
60892         * lib/stdlib.in.h: Likewise.
60893         * lib/string.in.h: Likewise.
60894         * lib/strings.in.h: Likewise.
60895         * lib/sys_file.in.h: Likewise.
60896         * lib/sys_ioctl.in.h: Likewise.
60897         * lib/sys_select.in.h: Likewise.
60898         * lib/sys_socket.in.h: Likewise.
60899         * lib/sys_stat.in.h: Likewise.
60900         * lib/sys_time.in.h: Likewise.
60901         * lib/sys_times.in.h: Likewise.
60902         * lib/sys_utsname.in.h: Likewise.
60903         * lib/sys_wait.in.h: Likewise.
60904         * lib/sysexits.in.h: Likewise.
60905         * lib/termios.in.h: Likewise.
60906         * lib/time.in.h: Likewise.
60907         * lib/unistd.in.h: Likewise.
60908         * lib/wchar.in.h: Likewise.
60909         * lib/wctype.in.h: Likewise.
60910         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60911         * modules/ctype (Makefile.am): Likewise.
60912         * modules/dirent (Makefile.am): Likewise.
60913         * modules/errno (Makefile.am): Likewise.
60914         * modules/fcntl-h (Makefile.am): Likewise.
60915         * modules/float (Makefile.am): Likewise.
60916         * modules/getopt-posix (Makefile.am): Likewise.
60917         * modules/iconv-h (Makefile.am): Likewise.
60918         * modules/inttypes (Makefile.am): Likewise.
60919         * modules/langinfo (Makefile.am): Likewise.
60920         * modules/locale (Makefile.am): Likewise.
60921         * modules/math (Makefile.am): Likewise.
60922         * modules/netdb (Makefile.am): Likewise.
60923         * modules/netinet_in (Makefile.am): Likewise.
60924         * modules/poll-h (Makefile.am): Likewise.
60925         * modules/pthread (Makefile.am): Likewise.
60926         * modules/pty (Makefile.am): Likewise.
60927         * modules/sched (Makefile.am): Likewise.
60928         * modules/search (Makefile.am): Likewise.
60929         * modules/selinux-h (Makefile.am): Likewise.
60930         * modules/signal (Makefile.am): Likewise.
60931         * modules/spawn (Makefile.am): Likewise.
60932         * modules/stdarg (Makefile.am): Likewise.
60933         * modules/stddef (Makefile.am): Likewise.
60934         * modules/stdint (Makefile.am): Likewise.
60935         * modules/stdio (Makefile.am): Likewise.
60936         * modules/stdlib (Makefile.am): Likewise.
60937         * modules/string (Makefile.am): Likewise.
60938         * modules/strings (Makefile.am): Likewise.
60939         * modules/sys_file (Makefile.am): Likewise.
60940         * modules/sys_ioctl (Makefile.am): Likewise.
60941         * modules/sys_select (Makefile.am): Likewise.
60942         * modules/sys_socket (Makefile.am): Likewise.
60943         * modules/sys_stat (Makefile.am): Likewise.
60944         * modules/sys_time (Makefile.am): Likewise.
60945         * modules/sys_times (Makefile.am): Likewise.
60946         * modules/sys_utsname (Makefile.am): Likewise.
60947         * modules/sys_wait (Makefile.am): Likewise.
60948         * modules/sysexits (Makefile.am): Likewise.
60949         * modules/termios (Makefile.am): Likewise.
60950         * modules/time (Makefile.am): Likewise.
60951         * modules/unistd (Makefile.am): Likewise.
60952         * modules/wchar (Makefile.am): Likewise.
60953         * modules/wctype (Makefile.am): Likewise.
60955 2010-10-04  Bruno Haible  <bruno@clisp.org>
60957         read-file tests: Avoid a test failure on NonStop Kernel.
60958         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60959         a regular file.
60960         Reported by Joachim Schmitz <schmitz@hp.com>.
60962 2010-10-03  Bruno Haible  <bruno@clisp.org>
60964         gnulib-tool: Fixes for --create-testdir with --libtool.
60965         * gnulib-tool (func_get_automake_snippet): Don't augment
60966         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60967         an executable.
60968         (func_create_testdir): Handle module 'alloca' like func_import.
60969         Reported by Bruce Korb <bruce.korb@gmail.com>.
60971 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60973         Avoid some lines longer than 80 characters.
60974         * lib/stdint.in.h: Break long comment lines.
60975         * lib/math.in.h: Likewise.
60976         (_GL_NUM_UINT_WORDS): New macro, for readability.
60977         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60978         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60979         * lib/stdlib.in.h: Likewise.
60980         * lib/spawn.in.h: Likewise.
60981         * lib/sys_socket.in.h: Update an URL.
60982         * lib/sys_stat.in.h: Break long line.
60984 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60986         Improve pmccabe2html.
60987         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60988         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60989         when the sources change. Remove the line in the HTML about "Used
60990         ranges" (which implied that there might be other unused ranges),
60991         rename "Resume" to "Summary" (easier to understand for more users).
60992         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60993         styles, and some unnecessary blank lines.
60995 2010-10-03  Bruno Haible  <bruno@clisp.org>
60996             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60998         acl: Add support for ACLs on NonStop Kernel.
60999         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61000         Check whether the function aclsort() exists.
61001         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61002         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61003         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61004         (acl_nontrivial [HAVE_ACLSORT]: New function.
61005         (file_has_acl): Implement for NonStop Kernel.
61006         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61007         (qset_acl): Implement for NonStop Kernel.
61008         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61009         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61010         (main): Implement for NonStop Kernel.
61011         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61012         Kernel. Handle this flavor.
61013         * tests/test-set-mode-acl.sh: Likewise.
61014         * tests/test-copy-acl.sh: Likewise.
61015         * tests/test-copy-file.sh: Likewise.
61017 2010-10-03  Bruno Haible  <bruno@clisp.org>
61019         Info about ACLs on NonStop Kernel.
61020         * doc/acl-resources.txt: Add info about NonStop Kernel.
61021         References by Joachim Schmitz <schmitz@hp.com>.
61023 2010-10-02  Bruno Haible  <bruno@clisp.org>
61025         Define missing EDQUOT on NonStop Kernel.
61026         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61027         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61028         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61029         missing.
61030         * doc/posix-headers/errno.texi: Mention the NSK bug.
61031         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61032         Reported by Joachim Schmitz <schmitz@hp.com>.
61034 2010-10-02  Bruno Haible  <bruno@clisp.org>
61036         Update doc for POSIX:2008.
61037         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61038         Update URL of POSIX specification.
61040 2010-10-02  Bruno Haible  <bruno@clisp.org>
61042         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61043         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61044         from gnulib, not from Automake.
61046 2010-10-02  Bruno Haible  <bruno@clisp.org>
61048         New module 'system-posix'.
61049         * modules/system-posix: New file.
61050         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61051         module is present.
61052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61053         GNULIB_SYSTEM_POSIX.
61054         * modules/stdlib (Depends-on): Remove sys_wait.
61055         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61056         * doc/posix-functions/system.texi: Mention the new module.
61057         * doc/posix-headers/stdlib.texi: Likewise.
61058         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61059         define test_sys_wait_macros to a no-op.
61060         Reported by Sam Steingold <sds@gnu.org>.
61062 2010-09-30  Bruno Haible  <bruno@clisp.org>
61064         More renaming from 'getdate' to 'get_date'.
61065         * doc/get_date.texi: Renamed from doc/getdate.texi.
61066         * modules/get_date (Files): Update.
61067         * MODULES.html.sh (Date and time <time.h>): Update.
61068         * DEPENDENCIES: Update.
61069         * gnulib-tool: Update comment.
61070         * m4/bison.m4 (gl_BISON): Likewise.
61071         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61073 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61075         bootstrap: support ACLOCAL_FLAGS during aclocal
61076         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61077         can add additional -I dir for third-party .m4 files.
61079 2010-09-30  Eric Blake  <eblake@redhat.com>
61081         bootstrap: use glibtoolize on MacOS
61082         * build-aux/bootstrap (check_versions): Convert libtool into
61083         libtoolize.
61084         (tool search): Move libtool check earlier, and look for
61085         glibtoolize for MacOS.
61086         (gnulib_tool_options): Auto-add --libtool when appropriate.
61087         Reported by Justin Clift.
61089         poll: fix typo that broke test on MacOS
61090         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61091         Reported by Justin Clift.
61093         getdate: rename to get_date
61094         Note: getdate.h is not renamed, to minimize client impact.
61095         * modules/getdate: Mark obsolete.  Move old contents...
61096         * modules/get_date: ...to new module name.
61097         * modules/getdate-tests: Move...
61098         * modules/get_date-tests: ...here.
61099         * m4/getdate.m4: Move...
61100         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61101         * lib/getdate.y: Move...
61102         * lib/get_date.y: ...here.
61103         * tests/test-getdate.c: Move...
61104         * tests/test-get_date.c: ...here.
61105         * doc/posix-functions/getdate.texi (getdate): Update name.
61106         * NEWS: Mention the change.
61108 2010-09-29  Bruno Haible  <bruno@clisp.org>
61110         Separate the module 'waitpid' from the module 'sys_wait'.
61111         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61112         present.
61113         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61114         gl_MODULE_INDICATOR_FOR_TESTS.
61115         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61116         * modules/sys_wait (Depends-on): Remove waitpid.
61117         (Makefile.am): Substitute GNULIB_WAITPID.
61118         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61119         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61120         signature only if the 'waitpid' module is present.
61121         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61122         * NEWS: Mention the change.
61123         * modules/grantpt (Depends-on): Add waitpid.
61124         * modules/wait-process (Depends-on): Likewise.
61126 2010-09-29  Bruno Haible  <bruno@clisp.org>
61128         More tests for module 'sys_wait'.
61129         * modules/sys_wait-c++-tests: New file.
61130         * tests/test-sys_wait-c++.cc: New file.
61131         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61132         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61134 2010-09-29  Bruno Haible  <bruno@clisp.org>
61136         New module 'waitpid'.
61137         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61138         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61139         Don't include <process.h>.
61140         (waitpid): Declare only, using modern idiom.
61141         * m4/waitpid.m4: New file.
61142         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61143         * modules/waitpid: New file.
61144         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61145         (Makefile.am): Update.
61146         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61148 2010-09-28  Bruno Haible  <bruno@clisp.org>
61150         poll: Assume ANSI C.
61151         * lib/poll.c (poll): Use an ANSI C declaration.
61153 2010-09-28  Bruno Haible  <bruno@clisp.org>
61155         poll-h: Create poll.h on all platforms.
61156         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61157         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61158         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61159         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61160         (gl_REPLACE_POLL_H): Don't set POLL_H.
61161         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61162         * modules/poll-h (Depends-on): Add include_next.
61163         (Makefile.am): Create poll.h unconditionally. Substitute also
61164         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61166 2010-09-28  Bruno Haible  <bruno@clisp.org>
61168         Tests for module 'poll-h'.
61169         * modules/poll-h-c++-tests: New file.
61170         * tests/test-poll-h-c++.cc: New file.
61172         Tests for module 'poll-h'.
61173         * modules/poll-h-tests: New file.
61174         * tests/test-poll-h.c: New file.
61176 2010-09-28  Bruno Haible  <bruno@clisp.org>
61178         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61179         * modules/poll-h (Depends-on): Add 'extensions'.
61181 2010-09-28  Bruno Haible  <bruno@clisp.org>
61183         New module 'poll-h'.
61184         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61185         (poll): Use modern idiom.
61186         * modules/poll-h: New file.
61187         * modules/poll (Files): Remove lib/poll.in.h.
61188         (Depends-on): Add poll-h.
61189         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61190         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61191         * m4/poll_h.m4: New file.
61192         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61193         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61194         and invoke gl_REPLACE_POLL_H.
61195         * lib/poll.c: Use common idiom.
61196         * tests/test-poll.c: Likewise.
61197         * doc/posix-headers/poll.texi: Mention the poll-h module.
61198         Suggested by Eric Blake.
61200 2010-09-26  Bruno Haible  <bruno@clisp.org>
61202         sys_wait: Implement WSTOPSIG.
61203         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61204         Reported by Simon Josefsson.
61206 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61208         stdlib, sys_wait: Avoid compilation error on mingw.
61209         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61211 2010-09-26  Bruno Haible  <bruno@clisp.org>
61213         stdlib tests: Avoid code duplication.
61214         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61215         * modules/sys_wait-tests (Files): Likewise.
61216         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61217         * tests/test-stdlib.c: Include test-sys_wait.h.
61218         (main): Invoke test_sys_wait_macros.
61219         * tests/test-sys_wait.c: Include test-sys_wait.h.
61220         (main): Invoke test_sys_wait_macros.
61222 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61224         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61225         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61226         sure Windows sockets are working before calling getaddrinfo.
61227         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61228         * doc/gnulib.texi (Windows sockets): Fix typo.
61230 2010-09-25  Bruno Haible  <bruno@clisp.org>
61232         Tests for module 'regex-quote'.
61233         * modules/regex-quote-tests: New file.
61234         * tests/test-regex-quote.c: New file.
61236         New module 'regex-quote'.
61237         * lib/regex-quote.h: New file.
61238         * lib/regex-quote.c: New file.
61239         * modules/regex-quote: New file.
61240         Suggested by Reuben Thomas <rrt@sc3d.org>.
61242 2010-09-24  Bruno Haible  <bruno@clisp.org>
61244         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61245         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61247 2010-09-23  Bruno Haible  <bruno@clisp.org>
61249         setenv: Relax license.
61250         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61251         Blake.
61252         Requested by Eric Blake.
61254 2010-09-22  Bruno Haible  <bruno@clisp.org>
61256         termios: Relax license.
61257         * modules/termios (License): Change to LGPLv2+.
61258         Requested by Eric Blake.
61260 2010-09-22  Bruno Haible  <bruno@clisp.org>
61262         threadlib: Allow the package to change the default to 'no'.
61263         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61264         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61265         Reported by Paul Eggert.
61267 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61268             Bruno Haible  <bruno@clisp.org>
61270         Fix endless loop in mbmemcasecoll.
61271         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61272         byte.
61273         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61275 2010-09-22  Bruno Haible  <bruno@clisp.org>
61277         Tests for module 'memcoll'.
61278         * modules/memcoll-tests: New file.
61279         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61281         memcoll, xmemcoll: Clarify size vs. length.
61282         * modules/memcoll.c (memcoll0): Clarify specification.
61283         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61284         passed to collate_error.
61286 2010-09-22  Bruno Haible  <bruno@clisp.org>
61288         Tests for module 'memcasecmp'.
61289         * modules/memcasecmp-tests: New file.
61290         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61292 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61294         * lib/pthread.in.h: Add split double-inclusion guard, and include
61295         system <pthread.h> if there is one.  Use @@-style as in other
61296         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61297         pthread.h doesn't.
61298         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61299         (pthread_mutexattr_settype, pthread_mutex_trylock):
61300         New static inline functions, if there's no system <pthread.h>.
61301         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61302         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61303         Approximate with mutexes if the system lacks spinlocks, as in
61304         MacOS.
61305         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61306         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61307         @@-style.  Check for spinlocks separately.
61308         (gl_PTHREAD_DEFAULTS): New macro.
61309         * modules/pthread: Redo to use a more typical style for in.h files.
61311 2010-09-21  Eric Blake  <eblake@redhat.com>
61313         net_if: enhance tests
61314         * tests/test-net_if.c (main): Move signature checks earlier.
61315         Print failures to stderr.
61316         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61317         Document the bug that we do not yet fix.
61319 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61321         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61322         about gnulib, not GSS.
61324 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61326         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61327         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61328         for Emacs.
61329         * build-aux/pmccabe2html: Make Makefile.am example code more
61330         cut-and-paste friendly.
61332 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61334         * tests/test-net_if.c: New file.
61335         * modules/net_if-tests: New file.
61337 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61339         pthread: add pthread_spin_destroy
61340         * lib/pthread.in.h (pthread_spin_destroy): New function.
61342 2010-09-19  Bruno Haible  <bruno@clisp.org>
61344         gnulib-tool: Fix --help output.
61345         * gnulib-tool (func_usage): Fix help message.
61346         Reported by Reuben Thomas <rrt@sc3d.org>.
61348 2010-09-18  Jim Meyering  <meyering@redhat.com>
61350         maint.mk: avoid unexpanded \n in two diagnostics
61351         * top/maint.mk (sc_prohibit_always_true_header_tests):
61352         Don't use a literal \n in a halt=... assignment.  It would not be
61353         expanded, and the two \n bytes would appear in the diagnostic output
61354         rather than the desired newline.  Use halt=$$(printf ... instead.
61355         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61357 2010-09-18  Bruno Haible  <bruno@clisp.org>
61359         netinet_in: Doc tweak.
61360         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61361         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61363 2010-09-18  Jim Meyering  <meyering@redhat.com>
61365         init.sh: correct an outdated comment
61366         * tests/init.sh (create_exe_shims_):  s/function/alias/
61368         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61369         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61370         a file named "*.exe" is removed between the glob expansion and the
61371         processing of that oddly named file.
61373 2010-09-17  Eric Blake  <eblake@redhat.com>
61375         mirbsd: add some more support
61376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61377         in BSD family.
61378         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61379         devices as OpenBSD.
61380         * m4/host-os.m4 (mirbsd): Add MirBSD.
61382         tests: fix unportable assumption on sys/wait.h
61383         * tests/test-sys_wait.c (main): Relax test.
61384         * tests/test-stdlib.c (main): Likewise.
61386         init.sh: accommodate directory with no .exes
61387         * tests/init.sh: Accomodate directory containing only scripts.
61389         tests: avoid compiler warning
61390         * tests/test-stdlib.c (main): Use the variable.
61392         fdutimens, fdutimensat: update signature, again
61393         * lib/utimens.h (gl_futimens): Delete, and move signature...
61394         (fdutimens): ...here.
61395         (fdutimensat): Rearrange signature.
61396         (lutimensat): Rename variable for clarity.
61397         * lib/fdutimensat.c (fdutimensat): Update signature.
61398         * lib/utimens.c (fdutimens): Likewise.
61399         (gl_futimens): Delete.
61400         (utimens, lutimens): Update callers.
61401         * lib/futimens.c (futimens): Likewise.
61402         * tests/test-fdutimensat.c: Likewise.
61403         * tests/test-utimens.c: Likewise.
61404         * tests/test-futimens.h: Update comment.
61405         * NEWS: Mention this.
61406         Suggested by Paul Eggert.
61408 2010-09-17  Bruno Haible  <bruno@clisp.org>
61410         Take over the maintenance of some older macros from Autoconf.
61411         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61412         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
61413         GNU Autoconf.
61414         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
61415         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
61417 2010-09-17  Eric Blake  <eblake@redhat.com>
61419         fdutimensat: drop atflag validation
61420         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
61421         with valid fd, to close a race scenario where futimens is
61422         unsupported and FILE was replaced by a symlink.
61423         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
61424         accordingly.
61425         Suggested by Paul Eggert.
61427 2010-09-16  Bruno Haible  <bruno@clisp.org>
61429         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
61430         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
61432 2010-09-16  Bruno Haible  <bruno@clisp.org>
61434         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
61435         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
61436         login_tty exists.
61437         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61439 2010-09-16  Bruno Haible  <bruno@clisp.org>
61441         login_tty: Make the replacement code work on BSD systems.
61442         * lib/login_tty.c: Include <sys/ioctl.h>.
61443         (login_tty): Use ioctl TIOCSCTTY when available.
61444         * modules/login_tty (Depends-on): Add sys_ioctl.
61445         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61447 2010-09-16  Bruno Haible  <bruno@clisp.org>
61449         login_tty: Stricter unit test.
61450         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61451         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61452         and tcgetsid() after login_tty.
61453         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61455 2010-09-16  Bruno Haible  <bruno@clisp.org>
61457         New module 'tcgetsid'.
61458         * lib/tcgetsid.c: New file.
61459         * m4/tcgetsid.m4: New file.
61460         * modules/tcgetsid: New file.
61461         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61462         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61463         GNULIB_TCGETSID, HAVE_TCGETSID.
61464         * lib/termios.in.h: Include <sys/types.h>.
61465         (tcgetsid): New declaration.
61466         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61467         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61468         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61469         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61471 2010-09-16  Bruno Haible  <bruno@clisp.org>
61473         Tests for module 'termios'.
61474         * modules/termios-c++-tests: New file.
61475         * modules/termios-tests: New file.
61476         * tests/test-termios-c++.cc: New file.
61477         * tests/test-termios.c: New file.
61479         New module 'termios'.
61480         * modules/termios: New file.
61481         * lib/termios.in.h: New file.
61482         * m4/termios_h.m4: New file.
61483         * doc/posix-headers/termios.texi: Mention the new module.
61485 2010-09-16  Eric Blake  <eblake@redhat.com>
61487         fdutimensat: add an atflag parameter
61488         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61489         * lib/utimens.h (fdutimensat): Update prototype.
61490         * tests/test-fdutimensat.c: Adjust test to match.
61491         * NEWS: Document the change.
61492         Suggested by Paul Eggert.
61494 2010-09-16  Bruno Haible  <bruno@clisp.org>
61496         Fix typos in comments.
61497         * lib/striconveh.h: Fix typo in comment.
61498         * lib/login_tty.c (login_tty): Likewise.
61500 2010-09-15  Bruno Haible  <bruno@clisp.org>
61502         stdlib: clarify MirBSD WEXITSTATUS bug
61503         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61504         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61506 2010-09-15  Eric Blake  <eblake@redhat.com>
61508         stdlib: work around MirBSD WEXITSTATUS bug
61509         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61510         * modules/stdlib (Depends-on): Add sys_wait.
61511         * tests/test-sys_wait.c (main): Enhance test.
61512         * tests/test-stdlib.c (main): Likewise.
61513         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61515         docs: mention MacOS issue with WEXITSTATUS(constant)
61516         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61517         issue.
61518         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61520         strnlen: add tests
61521         * modules/strnlen-tests: New file.
61522         * tests/test-strnlen.c: Likewise.
61524 2010-09-14  Bruno Haible  <bruno@clisp.org>
61526         unistr/base: Avoid link errors when module 'libunistring' is also used.
61527         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61528         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61529         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61530         Declare also when HAVE_LIBUNISTRING is set.
61531         Reported by Pádraig Brady <P@draigbrady.com>.
61533 2010-09-14  Eric Blake  <eblake@redhat.com>
61535         test-rawmemchr: make more robust
61536         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61537         (Depends-on, configure.ac): Add needed prerequisites to use it.
61538         * modules/memchr-tests (Files, Depends-on, configure.ac):
61539         Likewise, to avoid implicit reliance on memchr module prereqs.
61540         * tests/test-memchr.c (main): Ensure proper masking.
61541         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61542         reads.
61544         memchr: detect glibc Alpha bug
61545         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61546         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61547         Alpha.
61548         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61549         * tests/test-memchr.c (main): Enhance test.
61550         Reported by Nelson H. F. Beebe.
61552 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61554         fts, getcwd, glob: audit for dirfd returning -1
61555         * lib/fts.c (opendir): Remove #define; no longer used.
61556         (opendirat): New arg PDIR_FD.  All callers changed.
61557         (fts_build, _opendir2): Use new opendirat to avoid the need for
61558         dirfd, or for checking whether dirfd returns a negative value.
61559         Don't use opendir; always use openat followed by fdopendir.
61560         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61561         it.
61562         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61563         returns -1 here.
61564         * modules/fts (Depends-on): Remove dirfd.
61565         * modules/getcwd (Depends-on): Likewise.
61567 2010-09-13  Eric Blake  <eblake@redhat.com>
61569         float: fix broken MirBSD header
61570         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61571         * doc/posix-headers/float.texi (float.h): Document it.
61573 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61575         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61576         * lib/fts.c (opendirat): New arg extra_flags.
61577         (__opendir2): Use it to avoid following symlinks when opening
61578         a directory, if symlinks are not supposed to be followed.  See
61579         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61581         fdopendir: preserve argument fd before returning
61582         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61583         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61584         (fdopendir): Use them, arranging for FD to be open to the same
61585         directory that it was when it started.  (It might be temporarily
61586         closed while fdopendir is running, so this not thread- or
61587         signal-safe.)  Be careful to do the right thing even when file
61588         descriptors are scarce and dup fails with errno == EMFILE.  See
61589         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61591 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61593         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61594         * NEWS: Document change.
61595         * m4/regex.m4: Disable test for regoff_t size.
61597 2010-09-13  Jim Meyering  <meyering@redhat.com>
61599         fts: don't operate on an invalid file descriptor after failed dup
61600         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61601         negative file descriptor.
61603 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61605         savedir: add streamsavedir, deprecate fdsavedir
61606         * NEWS: Mention deprecation of fdsavedir.
61607         * lib/savedir.c (streamsavedir): New extern function, whose name
61608         ends in "savedir" to be consistent with the others.  This differs
61609         from savedirstream in that it doesn't close its argument.  The
61610         next version of GNU tar will use this instead of fdsavedir, to
61611         avoid some race conditions and conserve file descriptors.
61612         (savedirstream): Reimplement as a wrapper around streamsavedir.
61613         (fdsavedir): Add a comment deprecating this function.  As far as
61614         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61615         * lib/savedir.h (streamsavedir): New decl.
61616         (fdsavedir): Add a comment deprecating this.
61618 2010-09-10  Bruno Haible  <bruno@clisp.org>
61620         langinfo: Fix last commit.
61621         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61622         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61625 2010-09-10  Bruno Haible  <bruno@clisp.org>
61627         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61628         * lib/progreloc.c (O_EXEC): Define fallback.
61630 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61632         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61633         * NEWS: Document recent changes to fcntl-h.
61634         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61635         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61636         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61637         Similarly for O_SEARCH; this last was already true, but not documented.
61638         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61639         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61640         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61641         Likewise.
61642         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61643         is zero, not whether it is defined.
61644         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61645         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61646         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61648 2010-09-10  Bruno Haible  <bruno@clisp.org>
61650         langinfo, nl_langinfo: Fix for IRIX 5.3.
61651         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61652         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61653         HAVE_LANGINFO_YESEXPR.
61654         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61655         HAVE_LANGINFO_YESEXPR.
61656         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61657         HAVE_LANGINFO_T_FMT_AMPM is 0.
61658         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61659         HAVE_LANGINFO_YESEXPR is 0.
61660         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61661         NOEXPR.
61662         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61663         * doc/posix-functions/nl_langinfo.texi: Likewise.
61664         Reported by Eric Blake.
61666 2010-09-10  Bruno Haible  <bruno@clisp.org>
61668         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61669         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61670         on FreeBSD 8.0 and OpenBSD 4.6.
61671         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61672         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61673         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61674         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61675         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61676         ac_includes_default.
61677         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61679 2010-09-09  Eric Blake  <eblake@redhat.com>
61681         strsignal: work around NetBSD bug
61682         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61683         * lib/string.in.h (includes): Likewise.
61684         * doc/posix-functions/strsignal.texi (strsignal): Document the
61685         bug.
61686         Reported by Nelson H. F. Beebe.
61688         gnulib-tool: work with NetBSD /bin/sh
61689         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61690         (func_get_description, func_get_comment, func_get_status)
61691         (func_get_notice, func_get_applicability, func_get_filelist)
61692         (func_get_dependencies, func_get_autoconf_early_snippet)
61693         (func_get_autoconf_snippet, func_get_automake_snippet)
61694         (func_get_include_directive, func_get_link_directive)
61695         (func_get_license, func_get_maintainer, func_import): Avoid
61696         shell syntax errors from parsing syntax extensions.
61698 2010-09-09  Bruno Haible  <bruno@clisp.org>
61700         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61701         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61702         a reliable way to determine whether the 'alias' command works.
61704 2010-09-08  Jim Meyering  <meyering@redhat.com>
61706         init.sh: penalize a set-x-impaired shell; don't disqualify it
61707         * tests/init.sh: Too many shells corrupt application stderr when
61708         you set -x, so we can't afford to disqualify them, since at least
61709         on Irix-6.5, that would disqualify all bourne shells.
61710         Instead, use a two-pass approach.
61711         On the first pass, try to find a shell that meets the stricter
61712         condition that set -x does not corrupt stderr.
61713         If no shell meets the stricter condition, retest each candidate
61714         shell, but without that extra condition.  Finally, when
61715         VERBOSE=yes is requested and set -x might cause trouble, simply
61716         issue a warning and refrain from enabling debug output.
61718 2010-09-08  Eric Blake  <eblake@redhat.com>
61720         unsetenv: fix OpenBSD bug
61721         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61722         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61723         documentation.
61724         Reported by Jim Meyering.
61726         strtod: work around IRIX 6.5 bug
61727         * lib/strtod.c (strtod): Reparse number on shorter string if
61728         exponent parse was invalid.
61729         * tests/test-strtod.c (main): Add check for "0x1p 2".
61730         Reported by Tom G. Christensen.
61732         getopt: optimize previous patch
61733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61734         empty variable.  Speed up awk script.
61735         Reported by Paolo Bonzini.
61737 2010-09-08  Jim Meyering  <meyering@redhat.com>
61739         test.sh: disqualify shells for which set -x corrupts stderr
61740         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61741         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61742         appear in stderr output.  For example, this command:
61743             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61744         prints "P=1" on those two systems:
61746 2010-09-08  Bruno Haible  <bruno@clisp.org>
61748         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61749         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61750         commands, because some shells ignore redirections when there is an
61751         error in the command lookup.
61752         Reported by Eric Blake.
61754 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61756         * lib/regex.h: Fix a mention of `regex_compile' (should be
61757         `re_compile_pattern').
61758         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61759         (re_set_registers): Correct name of parameter in comment.
61761         * doc/regex.texi: Add documentation for missing syntax flags.
61762         Remove commented-out documentation of defunct syntax option
61763         RE_NO_EMPTY_ALTS.
61764         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61765         Add documentation of re_set_registers.
61766         Document trick to re-use a pattern buffer by setting fastmap manually.
61767         Update documentation of struct re_pattern_buffer per public members.
61768         Uncomment documentation of equivalence class operators and
61769         collating symbol operators, since they are now implemented,
61770         Explain leftmost-longest matching in relation to alternatives.
61771         Tidy documentation of substring matching.
61772         Remove POSIX documentation, which is done better in
61773         glibc, and refer the reader there. Keep BSD API documentation, as
61774         that is not readily available elsewhere.
61776 2010-09-07  Eric Blake  <eblake@redhat.com>
61778         getopt: handle POSIXLY_CORRECT set but not exported
61779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61780         export state of POSIXLY_CORRECT, due to bash set -o posix.
61781         Reported by Dustin J. Mitchell.
61783 2010-09-05  Bruno Haible  <bruno@clisp.org>
61785         gnulib-tool: Highlight the changed options.
61786         * gnulib-tool (func_usage): Display the --import, --add-import,
61787         --remove-import explanations in bold font.
61789 2010-09-06  Karl Berry  <karl@gnu.org>
61791         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61793 2010-09-05  Bruno Haible  <bruno@clisp.org>
61795         uniwidth/width: Update comment.
61796         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61797         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61799 2010-09-05  Bruno Haible  <bruno@clisp.org>
61801         isinf, isnan: Relax license.
61802         * modules/isinf (License): Change from GPL to LGPL, with consent from
61803         Ben Pfaff.
61804         * modules/isnan (License): Likewise.
61805         Requested by Ludovic Courtès.
61807 2010-09-04  Bruno Haible  <bruno@clisp.org>
61809         gnulib-tool: Help migration from --import to --add-import or --update.
61810         * gnulib-tool: Emit a verbose error message when --import is used
61811         without any module name.
61813 2010-09-04  Bruno Haible  <bruno@clisp.org>
61815         Update doc about gnulib-tool.
61816         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61817         'gnulib-tool --update' in more detail.
61818         Reported by Eric Blake.
61820 2010-09-04  Bruno Haible  <bruno@clisp.org>
61822         gnulib-tool: Change --import. New options --add/remove-import.
61823         * gnulib-tool: New options --add-import, --remove-import.
61824         (func_usage): Document them.
61825         (have_associative): Define always.
61826         (func_import): In import mode, don't merge the specified settings with
61827         the cached settings. Implement remove-import mode.
61828         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61829         Explain when to use them versus --import.
61830         (Simple update): Use --add-import instead of --import.
61831         * NEWS: Mention the change.
61833 2010-09-04  Bruno Haible  <bruno@clisp.org>
61835         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61836         separate gnulib.mk.
61838 2010-09-04  Bruno Haible  <bruno@clisp.org>
61840         gnulib-tool: Don't talk about CVS any more.
61841         * gnulib-tool (func_usage, func_import): Write "version control"
61842         instead of CVS.
61844 2010-09-04  Jim Meyering  <meyering@redhat.com>
61846         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61847         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61848         false positives (whose names may be ill-chosen) when searching
61849         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61850         would cause a false-positive.
61852         avoid coreutils "make distcheck" failure
61853         Coreutils tests with an absolute build directory name that contains
61854         a space.  Not quoting this directory name caused a failure.
61855         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61856         * tests/test-vc-list-files-cvs.sh: Likewise.
61858 2010-09-04  Bruno Haible  <bruno@clisp.org>
61860         gnulib-tool: Avoid error when run in a package without Makefile.am.
61861         * gnulib-tool: When collecting the m4dirs in a package that does not
61862         have a Makefile.am, eliminate those directories that contain no
61863         gnulib-cache.m4. Fix expression that counts these directories.
61865 2010-09-04  Bruno Haible  <bruno@clisp.org>
61867         update-copyright test: Improve output when perl is missing or too old.
61868         * tests/test-update-copyright.sh: Move test of Perl version down after
61869         the test whether Perl exists. Provide an explanation relating Perl's
61870         error message to Automake's SKIP: message.
61872 2010-09-04  Bruno Haible  <bruno@clisp.org>
61874         Don't augment PATH in TESTS_ENVIRONMENT.
61875         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61876         set abs_aux_dir instead of augmenting PATH.
61877         * modules/vc-list-files-tests (Makefile.am): Likewise.
61878         * tests/test-update-copyright.sh: Augment PATH here.
61879         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61880         path_prepend_.
61881         * tests/test-vc-list-files-git.sh: Likewise.
61883 2010-09-04  Jim Meyering  <meyering@redhat.com>
61885         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61886         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61888 2010-09-04  Bruno Haible  <bruno@clisp.org>
61890         strdup: Fix compilation error in C++ mode.
61891         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61892         the macro.
61894 2010-09-04  Bruno Haible  <bruno@clisp.org>
61896         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61897         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61898         macro into a function.
61899         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61901 2010-09-04  Bruno Haible  <bruno@clisp.org>
61903         Set PATH_SEPARATOR the same way autoconf does.
61904         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61905         the value of PATH_SEPARATOR the same way autoconf-generated configure
61906         scripts do.
61907         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61908         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61910 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61912         Set PATH_SEPARATOR the same way autoconf does.
61913         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61914         the same way autoconf-generated configure scripts do.
61915         * posix-modules: Likewise.
61917 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61919         hash: fix safe_hasher const typo
61920         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61921         const; otherwise, there is a type error later.
61923 2010-09-02  Jim Meyering  <meyering@redhat.com>
61925         test-update-copyright.sh: require perl 5.8.0
61926         * tests/test-update-copyright.sh: Require 5.8.0,
61927         which Tom G. Christensen has confirmed is adequate,
61928         while 5.6.1 is not.
61930 2010-09-02  Eric Blake  <eblake@redhat.com>
61932         tests: init.sh improvements for re-exec'ing with zsh
61933         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61934         -vx through shell re-exec.
61935         Reported by Tom G. Christensen.
61937         wctype: fix typo in previous commit
61938         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61939         Reported by Ludovic Courtès.
61941 2010-09-02  Jim Meyering  <meyering@redhat.com>
61943         test-update-copyright.sh: skip test if Perl is too old
61944         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61945         Reported by Tom G. Christensen.
61947 2010-09-02  Bruno Haible  <bruno@clisp.org>
61949         wctype: Avoid compilation error on IRIX 6.5.30.
61950         * lib/wctype.in.h (iswblank): Declare with a replacement if
61951         REPLACE_ISWBLANK is set.
61952         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61953         declared. Set REPLACE_ISWBLANK.
61954         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61955         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61956         * doc/posix-headers/wctype.texi: Likewise.
61957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61959 2010-09-01  Bruno Haible  <bruno@clisp.org>
61961         New module 'socketlib'.
61962         * modules/socketlib: New file.
61963         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61964         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61965         * modules/sockets (Depends-on): Add socketlib.
61966         Suggested by Sam Steingold <sds@gnu.org>.
61968 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61970         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61972         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61973         when one needs search access to a directory but not read access.
61974         On systems where it is available, it works in some cases where
61975         O_RDONLY does not, namely on directories that are searchable but
61976         not readable, and which need only to be searchable.  If O_SEARCH
61977         is not available, fall back to the traditional method of using
61978         O_RDONLY.
61980         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61981         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61982         when opening a directory that needs only to be searchable.
61983         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61984         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61985         * lib/openat-proc.c (openat_proc_name): Likewise.
61986         * lib/openat.c (openat_needs_fchdir): Likewise.
61987         * lib/save-cwd.c (save_cwd): Likewise.
61988         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61990 2010-08-28  Bruno Haible  <bruno@clisp.org>
61992         New module 'host-cpu-c-abi'.
61993         * modules/host-cpu-c-abi: New file.
61994         * m4/host-cpu-c-abi.m4: New file, based on part of
61995         clisp/src/m4/general.m4.
61996         Requested by Sam Steingold <sds@gnu.org>.
61998 2010-08-31  Eric Blake  <eblake@redhat.com>
61999         and Jim Meyering  <meyering@redhat.com>
62001         hash: factor, and guard against misbehaving hasher function
62002         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62003         of table->hasher's return value.  Also protect against a hash value
62004         so large that adding it to table->bucket results in a NULL pointer.
62005         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62006         Use it in place of open-coded check-and-abort.
62008 2010-08-30  Bruno Haible  <bruno@clisp.org>
62010         hash: silence spurious clang warning
62011         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62012         Reported by Eric Blake.
62014 2010-08-30  Eric Blake  <eblake@redhat.com>
62016         strstr, memmem, strcasestr: avoid leaked shell message
62017         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62018         FreeBSD.
62019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62022         tests: silence clang warning
62023         * tests/test-malloca.c (do_allocation): Avoid dead store.
62025 2010-08-29  Bruno Haible  <bruno@clisp.org>
62027         gettext: Fix recent mistake.
62028         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62030 2010-08-29  Bruno Haible  <bruno@clisp.org>
62032         selinux-h: Offer a --without-selinux option.
62033         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62034         --without-selinux was specified, skip all tests and define
62035         HAVE_SELINUX_SELINUX_H to 0.
62036         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62037         set LIB_SELINUX to empty.
62038         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62039         gl_LIBSELINUX. If --without-selinux was specified, replace
62040         selinux/context.h.
62041         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62043 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62044             Bruno Haible  <bruno@clisp.org>
62046         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62047         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62048         of HAVE_REALLOC.
62049         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62050         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62051         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62052         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62054 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62055             Bruno Haible  <bruno@clisp.org>
62057         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62058         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62059         HAVE_CALLOC.
62060         * lib/xmalloc.c: Update accordingly.
62061         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62062         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62063         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62065 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62066             Bruno Haible  <bruno@clisp.org>
62068         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62069         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62070         HAVE_MALLOC.
62071         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62072         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62073         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62075 2010-08-29  Bruno Haible  <bruno@clisp.org>
62077         Update modules list.
62078         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62079         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62080         (String handling <string.h>): Add astrxfrm.
62081         (File system functions): Add readlinkat.
62083 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62085         Tests for module 'realloc-gnu'.
62086         * modules/realloc-gnu-tests: New file.
62087         * tests/test-realloc-gnu.c: New file.
62089         Tests for module 'calloc-gnu'.
62090         * modules/calloc-gnu-tests: New file.
62091         * tests/test-calloc-gnu.c: New file.
62093         Tests for module 'malloc-gnu'.
62094         * modules/malloc-gnu-tests: New file.
62095         * tests/test-malloc-gnu.c: New file.
62097 2010-08-28  Bruno Haible  <bruno@clisp.org>
62099         Rename module 'realloc' -> 'realloc-gnu'.
62100         * modules/realloc-gnu: New file, copied from modules/realloc.
62101         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62102         obsolete.
62103         * modules/mgetgroups (Depends-on): Update.
62104         * doc/posix-functions/realloc.texi: Update.
62105         * NEWS: Mention the change.
62107         Rename module 'calloc' -> 'calloc-gnu'.
62108         * modules/calloc-gnu: New file, copied from modules/calloc.
62109         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62110         obsolete.
62111         * doc/posix-functions/calloc.texi: Update.
62112         * NEWS: Mention the change.
62114         Rename module 'malloc' -> 'malloc-gnu'.
62115         * modules/malloc-gnu: New file, copied from modules/malloc.
62116         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62117         obsolete.
62118         * modules/argp (Depends-on): Update.
62119         * modules/regex (Depends-on): Update.
62120         * doc/posix-functions/malloc.texi: Update.
62121         * NEWS: Mention the change.
62123 2010-08-28  Eric Blake  <eblake@redhat.com>
62125         pread, pwrite: add missing dependency
62126         * modules/pread (Depends-on): Add extensions.
62127         * modules/pwrite (Depends-on): Likewise.
62129 2010-08-28  Bruno Haible  <bruno@clisp.org>
62131         unistr/u*-strchr: Fix tests dependencies.
62132         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62133         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62134         Reported by Ian Beckwith <ianb@erislabs.net>.
62136 2010-08-28  Bruno Haible  <bruno@clisp.org>
62138         read-file: Don't occupy too much unused memory.
62139         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62141 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62142             Eric Blake  <eblake@redhat.com>
62143             Bruno Haible  <bruno@clisp.org>
62145         read-file: Avoid memory reallocations with regular files.
62146         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62147         (fread_file): With regular files, use the remaining length as the
62148         initial buffer size.  Check against overflow.
62149         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62150         sys_stat.
62152 2010-08-28  Bruno Haible  <bruno@clisp.org>
62154         ftello: Relax license.
62155         * modules/ftello (License): Relax to LGPLv2+.
62156         Reported by Eric Blake.
62158 2010-08-28  Bruno Haible  <bruno@clisp.org>
62160         Avoid relocwrapper link errors due to gnulib replacement functions.
62161         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62162         function.
62163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62165 2010-08-28  Bruno Haible  <bruno@clisp.org>
62167         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62168         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62169         defined.
62170         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62171         Suggested by Eric Blake.
62173 2010-08-28  Bruno Haible  <bruno@clisp.org>
62175         sys_socket, netdb: Ensure socklen_t gets defined.
62176         * modules/sys_socket (Depends-on): Add socklen.
62177         * modules/netdb (Depends-on): Likewise.
62178         * modules/getaddrinfo (Depends-on): Remove socklen.
62179         * modules/getsockopt (Depends-on): Likewise.
62180         * modules/setsockopt (Depends-on): Likewise.
62181         * tests/test-sys_socket.c: Check that socklen_t is defined.
62182         * tests/test-netdb.c: Likewise.
62183         * m4/socklen.m4: Update comments.
62184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62186 2010-08-27  Eric Blake  <eblake@redhat.com>
62188         login_tty: add missing dependency
62189         * modules/login_tty (Depends-on): Add pty.
62191 2010-08-26  Eric Blake  <eblake@redhat.com>
62193         lib-symbol-versions: fix m4 quoting
62194         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62195         format for AC_LINK_IFELSE.
62197         glob: fix compile test
62198         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62200         btowc: fix missing file
62201         * modules/btowc (Files): Also ship locale-fr.m4.
62203         lseek: fix link test
62204         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62205         AC_LINK_IFELSE.
62207         include_next: silence autoconf 2.68 warning
62208         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62209         AC_COMPILE_IFELSE as special.
62210         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62211         autoconf < 2.68.
62213         acl: fix compilation test
62214         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62215         AC_COMPILE_IFELSE.
62217 2010-08-26  Bruno Haible  <bruno@clisp.org>
62219         Modernize AC_TRY_RUN invocations.
62220         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62221         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62222         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62223         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62224         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62225         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62226         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62228         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62229         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62231         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62232         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62233         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62235         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62236         gl_MBRLEN_NUL_RETVAL): Likewise.
62237         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62238         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62239         Likewise.
62240         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62241         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62242         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62243         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62244         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62245         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62246         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62247         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62248         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62249         Likewise.
62250         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62251         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62252         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62253         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62254         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62256         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62257         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62258         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62261 2010-08-26  Bruno Haible  <bruno@clisp.org>
62263         Modernize AC_TRY_LINK invocations.
62264         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62265         AC_TRY_LINK.
62266         * m4/argp.m4 (gl_ARGP): Likewise.
62267         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62268         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62269         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62270         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62271         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62272         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62273         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62274         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62275         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62276         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62277         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62278         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62279         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62280         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62281         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62282         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62283         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62284         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62285         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62286         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62287         Likewise.
62288         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62289         Likewise.
62290         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62291         Likewise.
62292         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62294         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62295         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62296         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62297         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62298         * m4/servent.m4 (gl_SERVENT): Likewise.
62299         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62300         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62301         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62302         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62303         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62304         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62305         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62306         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62307         * modules/tsearch-tests (configure.ac): Likewise.
62309 2010-08-26  Bruno Haible  <bruno@clisp.org>
62311         Modernize AC_TRY_COMPILE invocations.
62312         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62313         AC_TRY_COMPILE.
62314         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62315         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62316         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62317         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62318         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62319         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62320         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62321         * m4/lock.m4 (gl_LOCK): Likewise.
62322         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62323         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62324         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62326         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62327         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62328         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62330         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62331         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62332         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62333         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62334         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62335         extraneous semicolon.
62337 2010-08-26  Jim Meyering  <meyering@redhat.com>
62339         stat-time: relax license LGPL
62340         * modules/stat-time (License): Change from GPL to LGPL,
62341         with consent from all contributors, for use in libguile.
62342         Requested by Ludovic Courtès.
62344 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62346         poll: return immediately on POLLHUP.
62347         * lib/poll.c (poll): Always set timeout before wait_timeout is
62348         computed.
62350 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62352         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62353         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62354         rmdir ("dir/.//"), unlinkat.
62356 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62358         stdbool: avoid spurious failure with modern xlc
62359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62361 2010-08-24  Bruno Haible  <bruno@clisp.org>
62363         getloadavg: simplify code
62364         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62365         gl_have_func. Update comments.
62367 2010-08-24  Eric Blake  <eblake@redhat.com>
62369         getloadavg: don't define SVR4 on cygwin
62370         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62371         only define SVR4 when -lkvm is required.
62372         Reported by Yaakov Selkowitz.
62374 2010-08-24  Bruno Haible  <bruno@clisp.org>
62376         priv-set: fix comment
62377         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62379 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62381         priv-set: fix comments
62382         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62383         to match code, as suggested by David Bartley in:
62384         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62386 2010-08-23  Eric Blake  <eblake@redhat.com>
62388         stdbool: avoid rejecting clang
62389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62390         * tests/test-stdbool.c: Enable more tests if using the system
62391         <stdbool.h> instead of the gnulib replacement.
62392         (main): Move xlc bug test to a runtime test for all compilers.
62393         Reported by Anders Kaseorg.
62395         argz: fix shell quoting issue
62396         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62397         Reported by Charles Wilson.
62399 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62400             Erik Faye-Lund <kusmabite@gmail.com>
62402         poll, select: handle ERROR_BROKEN_PIPE.
62403         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62404         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62405         * lib/select.c (win32_compute_revents): Do not mark a pipe
62406         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62408 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62410         fts: allow compilation with C++
62411         * lib/fts_.h: Specify extern "C" linkage with C++.
62413 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62415         Fix gnulib-tool sed script de-commentation for AIX sed.
62416         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
62417         sed.
62419 2010-08-17  Eric Blake  <eblake@redhat.com>
62421         test-stddef: test for (some) offsetof bugs
62422         * tests/test-stddef.c: Enhance test to ensure correct type of
62423         offsetof.
62424         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
62425         that we are not fixing at this time.
62427 2010-08-15  Bruno Haible  <bruno@clisp.org>
62429         stpncpy: Allow stpncpy to be defined as a macro.
62430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
62431         if it's already correctly declared.
62432         * lib/string.in.h (stpncpy): Undefine before redefining.
62433         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
62435 2010-08-14  Bruno Haible  <bruno@clisp.org>
62437         Rename module 'memxfrm' to 'amemxfrm'.
62438         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62439         (amemxfrm): Renamed from memxfrm.
62440         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62441         (amemxfrm): Renamed from memxfrm.
62442         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62443         * NEWS: Mention the change.
62444         * MODULES.html.sh (String handling <string.h>): Update.
62445         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62446         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62447         * lib/unicase/u16-casexfrm.c: Likewise.
62448         * lib/unicase/u32-casexfrm.c: Likewise.
62449         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62450         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62451         * lib/uninorm/u16-normxfrm.c: Likewise.
62452         * lib/uninorm/u32-normxfrm.c: Likewise.
62453         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62454         memxfrm.
62455         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62456         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62457         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62458         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62459         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62460         Suggested by Paul Eggert.
62462 2010-08-14  Bruno Haible  <bruno@clisp.org>
62464         Tests for module 'astrxfrm'.
62465         * modules/astrxfrm-tests: New file.
62466         * tests/test-astrxfrm.c: New file.
62468         New module 'astrxfrm'.
62469         * lib/astrxfrm.h: New file.
62470         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62471         * modules/astrxfrm: New file.
62473 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62475         regex: Tweak doc.
62476         * doc/regex.texi (Overview): Don't mention regex.c.
62477         (GNU Regular Expression Compiling): Likewise.
62478         (Match-end-of-line Operator): Mention 'not_eol'.
62480 2010-08-14  Brian Gough  <bjg@gnu.org>
62481             Bruno Haible  <bruno@clisp.org>
62483         git-merge-changelog: add doc relating to use with bzr and hg.
62484         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62486 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62488         pthread: fix pthread.h creation for srcdir != builddir
62489         * modules/pthread (Makefile.am): Fix the rule to work also in a
62490         non-srcdir build.
62492 2010-08-13  Karl Berry  <karl@gnu.org>
62494         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62495         * doc/posix-*/*: force line break before @url of POSIX
62496         specifications.
62497         Suggested by Werner Lemberg.
62499 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62501         strtod: fix const diagnostic
62502         * lib/strtod.c (strtod): Don't assign const char * to char *,
62503         as this elicits a warning from GCC when warnings are enabled.
62505 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62506         and Eric Blake  <eblake@redhat.com>
62508         copy-acl: ignore ENOTSUP on HP-UX
62509         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62510         so that it is available for HP-UX.
62511         * lib/copy-acl.c (qcopy_acl): Use it.
62512         Reported by Patrick M. Callahan.
62514 2010-08-10  Eric Blake  <eblake@redhat.com>
62516         open, chown: relax license
62517         * modules/open (License): Change to LGPLv2+, with consent by all
62518         authors, for use in augeas.
62519         * modules/chown (License): Likewise.
62520         * modules/lchown (Likewise): Likewise.
62521         Requested by Adam Stokes.
62523 2010-08-09  Karl Berry  <karl@gnu.org>
62525         * build-aux/ar-lib: new file, import from Automake.
62526         * config/srclist.txt: autocheck for updates.
62528 2010-08-09  Eric Blake  <eblake@redhat.com>
62530         readlinkat: adjust client modules
62531         * modules/areadlinkat (Depends-on): Use readlinkat, not
62532         symlinkat.
62533         * modules/areadlinkat-with-size (Depends-on): Likewise.
62535         mknod: be more vocal about danger of running tests as root
62536         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62537         root, since that is just asking for problems.
62538         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62540         readlinkat: split into its own module
62541         * modules/symlinkat: Split readlinkat...
62542         * modules/readlinkat: ...into separate module.
62543         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62544         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62545         * lib/symlinkat.c (readlinkat): Move...
62546         * lib/readlinkat.c: ...into new file.
62547         * modules/symlinkat-tests: Split readlinkat test...
62548         * modules/readlinkat-tests: ...into separate module.
62549         * tests/test-symlinkat.c: Split...
62550         * tests/test-readlinkat.c: ...into new file.
62551         * NEWS: Document the split.
62552         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62553         * lib/unistd.in.h (readlinkat): Likewise.
62554         Suggested by Bruno Haible.
62556 2010-08-08  Bruno Haible  <bruno@clisp.org>
62558         memxfrm: Speed up.
62559         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62560         that usually only one call to strxfrm is necessary for each string
62561         part.
62562         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62564 2010-08-07  Karl Berry  <karl@gnu.org>
62566         * doc/posix-headers/limits.texi,
62567         * doc/posix-functions/malloc.texi,
62568         * doc/posix-functions/strsignal.texi: missing @item.
62569         * doc/ld-version-script.texi: spurious leading i.
62570         * doc/regex.texi (Interval Operators): no commas inside @var.
62572 2010-08-01  Bruno Haible  <bruno@clisp.org>
62574         Integrate the regex documentation.
62575         * doc/gnulib.texi: Define 'cn' index.
62576         (Regular expressions): New a chapter that includes regex.texi and
62577         regexprops-generic.texi.
62578         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62579         syntax.
62581         Whitespace cleanup.
62582         * doc/regex.texi: Remove trailing spaces.
62584         Add regex documentation.
62585         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62586         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62587         Written by Kathy A. Hargreaves and Karl Berry.
62589 2010-08-01  Bruno Haible  <bruno@clisp.org>
62591         link: Update documentation.
62592         * doc/posix-functions/link.texi: Update regarding Solaris.
62594 2010-07-31  Bruno Haible  <bruno@clisp.org>
62596         Update modules list.
62597         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62598         (String handling <string.h>): Add memcmp2, memxfrm.
62599         (Container data structures): Add xlist, xsublist, xoset.
62600         (Core language properties): Add alignof, unused-parameter.
62601         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62602         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62603         (Unibyte characters <ctype.h>): New section.
62604         (String handling <string.h>): New section.
62605         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62606         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62607         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62608         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62609         tan, tanh, tanl, y0, y1, yn.
62610         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62611         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62612         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62613         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62614         unlockpt, vdprintf, vdprintf-posix.
62615         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62616         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62617         xconcat-filename.
62618         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62619         getdtablesize, pipe2, pipe2-safer.
62620         (Security): New section.
62621         (Networking functions): Add accept4.
62622         (Signal handling): Add sigpipe.
62623         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62624         mbmemcasecoll.
62625         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62626         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62627         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62628         pipe-filter-ii.
62629         (Misc): Add argp-version-etc, login_tty, parse-duration.
62631 2010-07-31  Bruno Haible  <bruno@clisp.org>
62633         Improve doc in MODULES.html.
62634         * modules/linkat (Description): Add the word "function".
62635         * modules/mkfifo (Description): Likewise.
62636         * modules/mknod (Description): Likewise.
62637         * modules/remove (Description): Likewise.
62638         * modules/renameat (Description): Likewise.
62639         * modules/stat (Description): Likewise.
62640         * modules/symlink (Description): Likewise.
62641         * modules/unlink (Description): Likewise.
62643 2010-07-31  Bruno Haible  <bruno@clisp.org>
62645         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62646         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62647         option --enable/disable-c++ instead of --enable/disable-cxx.
62648         * NEWS: Mention the change.
62650 2010-07-31  Bruno Haible  <bruno@clisp.org>
62652         readlink, areadlink: Relax test a bit.
62653         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62654         alternative to ENOTDIR.
62655         * tests/test-areadlink.h (test_areadlink): Likewise.
62656         Reported by Rainer Tammer.
62658 2010-07-31  Bruno Haible  <bruno@clisp.org>
62660         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62661         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62662         character, perform the search using U_STRCHR.
62663         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62664         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62665         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62666         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62667         Suggested by Paolo Bonzini.
62669 2010-07-31  Bruno Haible  <bruno@clisp.org>
62671         unistr/u*-strstr: Fix dependencies.
62672         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62673         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62674         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62676 2010-07-31  Bruno Haible  <bruno@clisp.org>
62678         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62679         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62680         the beginning of the loop.
62681         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62682         cases in 'switch' statement.
62684         unistr/u8-strchr: Fix several bugs.
62685         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62686         the string. When not found, return NULL, not a pointer near the end.
62688         More tests for unistr/u8-strchr.
62689         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62690         that the function does not read past the first occurrence of the byte
62691         being searched.
62692         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62693         * tests/unistr/test-u16-strchr.c (main): New function.
62694         * tests/unistr/test-u32-strchr.c (main): New function.
62696 2010-07-31  Bruno Haible  <bruno@clisp.org>
62698         posix-modules: Ignore backup files of documentation files.
62699         * posix-modules: grep only through files named *.texi.
62701 2010-07-31  Bruno Haible  <bruno@clisp.org>
62703         symlinkat: Fix documentation.
62704         * doc/posix-functions/readlinkat.texi: Fix module name.
62706 2010-07-31  Bruno Haible  <bruno@clisp.org>
62708         fchownat: Replace also when chown has the trailing slash bug.
62709         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62710         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62711         introduced on 2010-04-10.
62712         Reported by Rainer Tammer.
62714 2010-07-31  Bruno Haible  <bruno@clisp.org>
62716         linkat: Work around AIX 7.1 bug.
62717         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62718         whether linkat handles trailing slash correctly. If not, replace linkat
62719         and define LINKAT_TRAILING_SLASH_BUG.
62720         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62721         check whether (fd1,file1) points to a directory if file1 or file2 ends
62722         in a slash. Code taken from lib/link.c.
62723         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62724         Reported by Rainer Tammer.
62726 2010-07-31  Bruno Haible  <bruno@clisp.org>
62728         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62729         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62730         This disables an xlc optimization that was causing wrong test results.
62731         Reported by Rainer Tammer.
62733 2010-07-31  Bruno Haible  <bruno@clisp.org>
62735         iconv: Work around AIX 6.1..7.1 bug.
62736         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62737         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62738         cross-compiling, guess no on all versions of AIX.
62739         Reported by Rainer Tammer.
62741 2010-07-31  Bruno Haible  <bruno@clisp.org>
62743         readlink: Relax test a bit.
62744         * tests/test-readlink.h (test_readlink): Allow different errno value
62745         when readlink is called with a file name that ends in / and refers to
62746         a file.
62747         Suggested by Eric Blake.
62748         Reported by Rainer Tammer.
62750 2010-07-31  Bruno Haible  <bruno@clisp.org>
62752         copysign: Does not require -lm on glibc systems.
62753         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62754         gl_COMMON_DOUBLE_MATHFUNC.
62755         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62757 2010-07-31  Bruno Haible  <bruno@clisp.org>
62759         duplocale: Work around AIX 7.1 bug.
62760         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62761         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62762         * lib/duplocale.c (rpl_duplocale): Update comment.
62763         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62764         Reported by Rainer Tammer.
62766 2010-07-30  Bruno Haible  <bruno@clisp.org>
62768         dirfd: Avoid link error on AIX 7.1.
62769         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62770         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62771         exist, set REPLACE_DIRFD.
62772         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62773         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62774         * doc/posix-functions/dirfd.texi: Update.
62775         Reported by Rainer Tammer.
62777 2010-07-30  Eric Blake  <eblake@redhat.com>
62779         strtod: next round of AIX fixes
62780         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62781         exponent.
62782         * tests/test-strtod.c (main): Enhance tests.
62783         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62784         Reported by Rainer Tammer.
62786         futimens: fix configure check
62787         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62788         Reported by Bruno Haible.
62790 2010-07-30  Bruno Haible  <bruno@clisp.org>
62792         getline: Update regarding AIX.
62793         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62794         Reported by Rainer Tammer.
62796 2010-07-30  Bruno Haible  <bruno@clisp.org>
62798         wcwidth: Drop replacement on AIX 7.
62799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62800         AIX 7.
62801         Reported by Rainer Tammer.
62803 2010-07-30  Bruno Haible  <bruno@clisp.org>
62805         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62807         a 'char *'.
62808         Reported by Rainer Tammer.
62810 2010-07-30  Bruno Haible  <bruno@clisp.org>
62812         unlink: Update regarding AIX.
62813         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62814         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62815         Reported by Rainer Tammer.
62817 2010-07-30  Bruno Haible  <bruno@clisp.org>
62819         symlink: Update regarding AIX.
62820         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62821         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62822         Reported by Rainer Tammer.
62824 2010-07-30  Bruno Haible  <bruno@clisp.org>
62826         strndup: Update regarding AIX.
62827         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62828         AIX 7.
62829         Reported by Rainer Tammer.
62831 2010-07-30  Bruno Haible  <bruno@clisp.org>
62833         stat: Update regarding AIX.
62834         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62835         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62836         Reported by Rainer Tammer.
62838 2010-07-30  Bruno Haible  <bruno@clisp.org>
62840         truncl: Fix autoconf test.
62841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62842         whether truncl works.
62843         Reported by Rainer Tammer.
62845 2010-07-30  Bruno Haible  <bruno@clisp.org>
62847         round: Update regarding AIX.
62848         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62849         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62850         Reported by Rainer Tammer.
62852 2010-07-30  Bruno Haible  <bruno@clisp.org>
62854         rename: Update regarding AIX.
62855         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62856         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62857         Reported by Rainer Tammer.
62859 2010-07-30  Bruno Haible  <bruno@clisp.org>
62861         printf.m4: Update regarding AIX.
62862         * m4/printf.m4: Update comments regarding AIX.
62863         Reported by Rainer Tammer.
62865 2010-07-30  Bruno Haible  <bruno@clisp.org>
62867         iconv: Update regarding AIX.
62868         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62869         AIX 7.
62870         Reported by Rainer Tammer.
62872 2010-07-30  Bruno Haible  <bruno@clisp.org>
62874         getopt: Update regarding AIX.
62875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62876         no on AIX.
62877         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62878         Reported by Rainer Tammer.
62880 2010-07-30  Bruno Haible  <bruno@clisp.org>
62882         ldexpl; Update regarding AIX.
62883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62884         on AIX 7.
62885         Reported by Rainer Tammer.
62887 2010-07-30  Bruno Haible  <bruno@clisp.org>
62889         frexpl: Update regarding AIX.
62890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62891         on AIX 7.
62892         Reported by Rainer Tammer.
62894 2010-07-30  Bruno Haible  <bruno@clisp.org>
62896         open, fopen: Update regarding AIX.
62897         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62898         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62899         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62900         * doc/posix-functions/fopen.texi: Likewise.
62901         Reported by Rainer Tammer.
62903 2010-07-30  Bruno Haible  <bruno@clisp.org>
62905         chown: Update doc regarding AIX.
62906         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62907         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62908         Reported by Rainer Tammer.
62910 2010-07-30  Eric Blake  <eblake@redhat.com>
62912         strtod: fix bug in replacement function on AIX
62913         * lib/strtod.c (strtod): Special case broken "0x" parse in
62914         underlying strtod.
62915         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62916         * doc/posix-functions/strtod.texi (strtod): Likewise.
62917         Reported by Rainer Tammer.
62919 2010-07-30  Bruno Haible  <bruno@clisp.org>
62921         mbrlen: Fix cross-compilation guess for AIX.
62922         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62923         guess. Leftover from 2008-12-22.
62925 2010-07-30  Bruno Haible  <bruno@clisp.org>
62927         mbrtowc: Fix cross-compilation guess for AIX.
62928         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62929         guess. Leftover from 2008-12-21.
62931 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62933         init.sh: work around trap limitation of some shells
62934         * tests/init.sh (setup_): Move exit trap outside of shell function.
62936 2010-07-29  Eric Blake  <eblake@redhat.com>
62938         strtod: aid debugging
62939         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62940         understanding why strtod is rejected.
62942 2010-07-28  Bruno Haible  <bruno@clisp.org>
62944         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62945         * lib/unistr/u8-chr.c: Include <string.h>.
62946         * tests/unistr/test-u8-chr.c: Likewise.
62947         * tests/unistr/test-u16-chr.c: Likewise.
62948         * tests/unistr/test-u32-chr.c: Likewise.
62949         * tests/unistr/test-u8-strchr.c: Likewise.
62950         * tests/unistr/test-u16-strchr.c: Likewise.
62951         * tests/unistr/test-u32-strchr.c: Likewise.
62952         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62953         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62954         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62955         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62957 2010-07-28  Bruno Haible  <bruno@clisp.org>
62959         Use spaces for indentation, not tabs.
62960         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62962 2010-07-27  Bruno Haible  <bruno@clisp.org>
62964         mbspcasecmp: Fix function specification.
62965         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62966         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62967         Reported by Eric Blake <eblake@redhat.com>.
62969 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62971         timespec: use cast and not conditional, as truncation isn't possible
62972         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62973         instead of a conditional.  Comment about the situation in more detail.
62974         This undoes most of the 2009-10-29 patch.
62976 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62978         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62979         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62980         * lib/unistr/u8-strchr.c: Likewise.
62981         * modules/unistr/u8-chr: Depend on memchr.
62983         unistr/u*-strchr: add tests
62984         * modules/unistr/u8-strchr-tests: New file.
62985         * modules/unistr/u16-strchr-tests: New file.
62986         * modules/unistr/u32-strchr-tests: New file.
62987         * tests/unistr/test-strchr.h: New file.
62988         * tests/unistr/test-u8-strchr.c: New file.
62989         * tests/unistr/test-u16-strchr.c: New file.
62990         * tests/unistr/test-u32-strchr.c: New file.
62992         unistr/u*-chr: test multibyte sequences more
62993         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62994         test vector.
62995         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62996         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62997         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62999         unistr/u*-chr: test multibyte sequences
63000         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63002         unistr/u*-chr: prepare for multibyte tests
63003         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63004         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63005         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63006         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63007         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63008         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63010 2010-07-18  Bruno Haible  <bruno@clisp.org>
63012         unistr/u8-strchr: Optimize non-ASCII argument case.
63013         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63014         because the first byte often matches anyway.
63015         Reported by Pádraig Brady <P@draigbrady.com>.
63017 2010-07-15  Karl Berry  <karl@gnu.org>
63019         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63021 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63023         getcwd: on Solaris, work better if ancestors are inaccessible
63024         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63025         buffer and size, try again with a large buffer.  This works better
63026         on Solaris, since its getcwd succeeds even if the path to the root
63027         is inaccessible, and this is helpful in common cases such as .zfs
63028         hidden directories.  Problem reported by J Chapman Flack in
63029         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63030         Use system getcwd if it's declared, not merely if it's partly
63031         working; use the partly-working test only to avoid needless effort
63032         if the system getcwd fails.
63033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63034         comment that was already obsolete and is now even more obsolete.
63035         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63036         now might call strdup.
63038 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63040         pthread: Add enough so that coreutils/src/sort.c compiles.
63041         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63042         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63043         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63044         Include <sys/types.h>, in case it defines pthread_t.
63045         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63046         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63047         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63048         (pthread_rwlockattr_t, pthread_spinlock_t):
63049         New typedefs, if HAVE_PTHREAD_T is not defined.
63050         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63051         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63052         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63053         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63054         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63055         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63056         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63057         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63058         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63059         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63060         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63061         New macros.
63062         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63063         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63064         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63065         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63066         (pthread_spin_unlock): New dummy functions.
63067         (pthread_create): Return EAGAIN; don't set errno.
63068         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63069         require AC_C_INLINE.
63070         * modules/pthread (Depends-on): Add sched, time.
63071         (pthread.h): Use AM_V_GEN.
63073 2010-07-13  Bruno Haible  <bruno@clisp.org>
63075         striconveh: Don't malloc memory if the result buffer is sufficient.
63076         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63077         buffer if its size is sufficient.
63078         Reported by Ludovic Courtès <ludo@gnu.org>.
63080 2010-07-13  Bruno Haible  <bruno@clisp.org>
63082         strtod: Add safety check.
63083         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63085 2010-07-12  Bruno Haible  <bruno@clisp.org>
63087         Unify tests that set gl_cv_func_ldexpl_no_libm.
63088         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63089         gl_FUNC_LDEXPL.
63090         (gl_FUNC_LDEXPL): Invoke it.
63091         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63093 2010-07-12  Bruno Haible  <bruno@clisp.org>
63095         Unify tests that set gl_cv_func_ldexp_no_libm.
63096         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63097         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63098         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63099         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63100         * modules/strtod (Files): Add m4/ldexp.m4.
63102 2010-07-12  Bruno Haible  <bruno@clisp.org>
63104         Unify tests that set gl_cv_func_frexpl_no_libm.
63105         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63106         gl_FUNC_FREXPL_NO_LIBM.
63107         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63110 2010-07-12  Bruno Haible  <bruno@clisp.org>
63112         Unify tests that set gl_cv_func_frexp_no_libm.
63113         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63114         gl_FUNC_FREXP_NO_LIBM.
63115         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63116         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63118 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63120         memcoll: clarify sizes versus lengths, document better, and tweak perf
63121         * lib/memcoll.c (strcoll_loop, memcoll0):
63122         Improve quality of descriptive comments.  Name variables
63123         consistently as to whether they are lengths (which do not include
63124         terminating null) versus sizes (which do).
63125         * lib/xmemcoll.c (xmemcoll0): Likewise.
63126         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63127         returned when s1size == 0; this is easier to compile and saves
63128         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63130 2010-07-12  Bruno Haible  <bruno@clisp.org>
63132         Tests for module '_Exit'.
63133         * modules/_Exit-tests: New file.
63134         * tests/test-_Exit.sh: New file.
63135         * tests/test-_Exit.c: New file.
63137         New module '_Exit'.
63138         * lib/stdlib.in.h (__attribute__): New macro.
63139         (_Exit): New declaration.
63140         * lib/_Exit.c: New file.
63141         * m4/_Exit.m4: New file.
63142         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63143         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63144         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63145         * modules/_Exit: New file.
63146         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63147         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63149 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63151         strtod: make it more-accurate typically, and don't require libm
63152         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63153         Include limits.h.  Don't include string.h.
63154         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63155         (locale_isspace): New function, so that no casts are needed to
63156         check whether *s is a space.
63157         (ldexp): Provide an unused dummy if not available.
63158         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63159         (strtod): Use them.  This implementation prefers to use the
63160         underlying strtod if available, falling back on our own code
63161         only to fix known bugs.  This is more likely to produce an
63162         accurate result.  Also, it avoids the use of libm functions.
63163         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63164         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63165         was absent, but it caused a test failure with coreutils.
63166         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63167         with libm.
63168         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63169         * modules/strtod-tests (Makefile.am): Likewise.
63171 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63172             Bruno Haible  <bruno@clisp.org>
63174         unistr/u8-strchr: Optimize ASCII argument case.
63175         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63177 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63179         (x)memcoll: minor tweaks
63180         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63181         is after the type that it qualifies.
63182         (memcoll0): Likewise.
63183         * lib/memcoll.h (memcoll0): Likewise.
63184         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63185         * lib/xmemcoll.h (xmemcoll0): Likewise.
63186         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63187         differs from memcoll in that the NUL byte is part of the argument.
63188         Omit the abort-checks, as performance is a real issue here.  Plus,
63189         the checks were wrong anyway (an off-by-one error).  Omit local
63190         variable 'diff', as it's a bit clearer that way.
63191         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63192         no longer needed.
63194 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63196         (x)memcoll: speedup when input is known to be NUL delimited
63197         * lib/memcoll.c: Include stdlib.
63198         (memcoll0): New function.
63199         (strcoll_loop): New function, refactored for use in both memcoll
63200         and memcoll0.
63201         * lib/memcoll.h (memcoll0): Add prototype.
63202         * lib/xmemcoll.c (xmemcoll0): New function.
63203         (collate_error): New function, refactored for use in both xmemcoll
63204         and xmemcoll0.
63205         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63206         * m4/memcoll.m4: add inline invocation.
63208 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63210         * build-aux/bootstrap: Remove any local translations
63211         from the translation project synchronization directory,
63212         so that local only translations are not distributed.
63214 2010-07-04  Bruno Haible  <bruno@clisp.org>
63216         fsusage: Clarify which code applies to which platforms.
63217         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63218         platform.
63219         * lib/fsusage.c (get_fs_usage): Likewise.
63221 2010-07-04  Bruno Haible  <bruno@clisp.org>
63223         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63224         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63225         Reported by Martin Lambers <marlam@marlam.de>.
63227 2010-07-04  Jim Meyering  <meyering@redhat.com>
63229         hash: once again explicitly disallow insertion of NULL
63230         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63231         inserting a NULL pointer cannot work with these functions.
63232         Add a comment with details.
63233         This reverts part of the 2010-07-01 commit, 5bef1a35
63234         "hash: extend module to deal with non-pointer keys".
63236 2010-07-01  Bruno Haible  <bruno@clisp.org>
63238         stdbool: Update doc.
63239         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63240         Info from Christian Weisgerber <naddy@mips.inka.de>.
63242 2010-07-01  Jim Meyering  <meyering@redhat.com>
63244         hash: extend module to deal with non-pointer keys
63245         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63246         but that allows insertion of non-pointer entries.
63247         Do not disallow an ENTRY value of NULL.
63248         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63249         * lib/hash.h (hash_insert0): Declare.
63251 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63253         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63254         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63255         not present (i.e. with autoconf 2.59 and when using gettextize, not
63256         gnulib), require AC_GNU_SOURCE instead.
63258 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63260         idpriv-drop: Fix tests.
63261         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63262         not to the test-idpriv-droptemp program.
63264 2010-06-29  Bruno Haible  <bruno@clisp.org>
63266         string: Fix syntax error with g++ 2.96.
63267         * lib/string.in.h (__pure__): Remove definition.
63268         (_GL_ATTRIBUTE_PURE): New macro.
63269         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63270         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63271         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63273 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63275         unitypes: Fix bug introduced on 2010-05-18.
63276         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63278 2010-06-22  Eric Blake  <eblake@redhat.com>
63280         memmem: slight optimization
63281         * lib/str-two-way.h (critical_factorization): Update comments.
63282         Reduce work during factorization phase.
63283         Reported by Carlos Bueno <carlos@bueno.org>.
63285 2010-06-21  Bruno Haible  <bruno@clisp.org>
63287         Fix HAVE_CALLOC_POSIX misnomer.
63288         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63289         !HAVE_CALLOC_POSIX.
63290         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63291         HAVE_CALLOC_POSIX.
63292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63293         instead of HAVE_CALLOC_POSIX.
63294         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63295         HAVE_CALLOC_POSIX.
63297         Use modern idiom for calloc() replacement.
63298         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63299         AC_FUNC_CALLOC.
63300         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63301         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63302         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63303         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63304         (gl_REPLACE_CALLOC): New macro.
63306 2010-06-21  Bruno Haible  <bruno@clisp.org>
63308         Fix HAVE_REALLOC_POSIX misnomer.
63309         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63310         !HAVE_REALLOC_POSIX.
63311         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63312         HAVE_REALLOC_POSIX.
63313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63314         instead of HAVE_REALLOC_POSIX.
63315         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63316         HAVE_REALLOC_POSIX.
63318         Use modern idiom for realloc() replacement.
63319         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63320         AC_FUNC_REALLOC.
63321         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63322         Autoconf's AC_FUNC_REALLOC.
63323         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63324         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63325         (gl_REPLACE_REALLOC): New macro.
63326         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63328 2010-06-21  Bruno Haible  <bruno@clisp.org>
63330         Fix HAVE_MALLOC_POSIX misnomer.
63331         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63332         !HAVE_MALLOC_POSIX.
63333         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63334         HAVE_MALLOC_POSIX.
63335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63336         instead of HAVE_MALLOC_POSIX.
63337         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63338         HAVE_MALLOC_POSIX.
63340         Use modern idiom for malloc() replacement.
63341         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63342         AC_FUNC_MALLOC.
63343         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63344         Autoconf's AC_FUNC_MALLOC.
63345         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63346         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63347         (gl_REPLACE_MALLOC): New macro.
63348         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63350 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63352         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63353         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63354         This macro takes 3 arguments, not 4.
63356 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63358         ipv6: fix detection under mingw
63359         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63360         in6_addr.
63362 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63364         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63365         that strtod() works when cross-compiling to a glibc version known
63366         to work.
63368 2010-06-15  Bruno Haible  <bruno@clisp.org>
63370         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63372 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63374         select: Correct timeout.
63375         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63377 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63379         git-version-gen: init shell var to avoid env var influence
63380         * build-aux/git-version-gen (v): Init shell var to empty.
63382 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63384         priv-set: Don't assume that priv.h exists merely because getppriv does.
63385         See Jan Andersen's bug report about AIX 5L in
63386         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63387         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63388         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63389         * lib/priv-set.h: Likewise.
63390         * tests/test-priv-set.c: Likewise.
63392 2010-06-13  Bruno Haible  <bruno@clisp.org>
63394         relocatable: Make it easier to test whether to install wrappers.
63395         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63396         RELOCATABLE_VIA_WRAPPER.
63398 2010-06-13  Bruno Haible  <bruno@clisp.org>
63400         gnulib-tool: Display specified modules and dependencies differently.
63401         * gnulib-tool (func_show_module_list): New function.
63402         (func_import, func_create_testdir): Invoke it.
63403         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63405 2010-06-13  Bruno Haible  <bruno@clisp.org>
63407         gnulib-tool: Align code of func_import and func_create_testdir.
63408         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63409         specified_modules.
63411 2010-06-12  Jim Meyering  <meyering@redhat.com>
63413         test-inttostr: avoid spurious failure on Solaris 9
63414         * tests/test-inttostr.c (main): Skip the test when snprintf fails
63415         to accept "%ju".  Reported by Bruno Haible.
63417 2010-06-11  Jim Meyering  <meyering@redhat.com>
63419         test-sys_socket: mark variables as used more readably
63420         * tests/test-sys_socket.c (main): Mark otherwise unused variables
63421         as "used" explicitly via (void) statement casts.  This is more
63422         readable than using them in an artificial return expression.
63423         Suggestion from Bruno Haible.
63425 2010-06-11  Bruno Haible  <bruno@clisp.org>
63427         Avoid some more warnings from "gcc -Wwrite-strings".
63428         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
63429         to 'const char *'.
63430         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
63431         * tests/test-c-strcasestr.c (main): Likewise.
63432         * tests/test-mbscasestr1.c (main): Likewise.
63433         * tests/test-mbscasestr2.c (main): Likewise.
63434         * tests/test-memmem.c (main): Likewise.
63435         * tests/test-strstr.c (main): Likewise.
63436         * tests/test-strcasestr.c (main): Likewise.
63438 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63440         init.sh: change framework_failure_ to fail with status 99, not 1
63441         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63442         automake's parallel-tests rule that this is an unexpected failure,
63443         even if the test is listed in XFAIL_TESTS.
63445 2010-06-11  Jim Meyering  <meyering@redhat.com>
63447         test-inttostr: avoid warnings about 4-6KB literal strings
63448         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63449         Include "macros.h", for its definition of ASSERT.
63450         (CK): s/assert/ASSERT/
63451         * modules/inttostr-tests (Files): Add macros.h.
63453         init.sh: don't use $ME_ or skip_ before they are defined
63454         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63455         their first uses.  Also hoist their companions: warn_, fail_,
63456         framework_failure_, $stderr_fileno.  Prompted by a patch from
63457         Stefano Lattarini.
63459         test-sys_socket: avoid set-but-not-used warnings from gcc
63460         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63461         avoid warning about set-but-not-used variables.
63463         test-xvasprintf: avoid 'const' discard warnings
63464         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63465         "const" when assigning from literal strings.
63466         (test_xasprintf): Add "void" in function argument list to placate
63467         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63469         tests: avoid compilation warnings in argmatch and exclude tests...
63470         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63471         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63472         Since it always exits, declare with the "noreturn" attribute.
63473         * tests/test-argmatch.c: Likewise.
63475         tests: avoid 'const' discard warnings in mbsstr tests
63476         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63477         * tests/test-mbsstr2.c (main): Likewise.
63479         test-verify: avoid warning from gcc's -Wmissing-declarations
63480         * tests/test-verify.c (function): Declare to be static.
63482         test-inttostr.c: include <string.h> for use of strcmp
63483         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63485         test-linkat: avoid failed assertion on "other" architectures
63486         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63487         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63488         sparc: https://bugs.launchpad.net/bugs/591968
63490 2010-06-11  Jim Meyering  <meyering@redhat.com>
63492         printf.m4: avoid autoconf's "Expanded Before Required" warning
63493         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63494         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63495         autoconf warning.
63497 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63499         Replacement header templates are now named with ".in", not "_".
63500         * doc/gnulib-intro.texi: Correct.
63502 2010-06-10  Jim Meyering  <meyering@redhat.com>
63504         inttostr-tests: depend on snprintf, not snprintf-posix
63505         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63506         snprintf-posix, to avoid this aclocal failure:
63507           missing file gnulib-tests/vasnprintf.c
63508           configure.ac:45: error: expected source file, required through \
63509           AC_LIBSOURCES, not found
63511 2010-06-10  Jim Meyering  <meyering@redhat.com>
63513         inttostr: add a new function, inttostr, and tests
63514         The namesake function was not available.  The existence of the
63515         template file, inttostr.c makes its addition nontrivial.
63516         * lib/anytostr.c: Rename from inttostr.c.
63517         (anytostr): Rename from inttostr.
63518         * lib/inttostr.c: New file.
63519         * modules/inttostr (Files): Add anytostr.c.
63520         (Makefile.am): Set lib_SOURCES instead of ...
63521         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63522         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63523         * lib/offtostr.c: Likewise.
63524         * lib/uinttostr.c: Likewise.
63525         * lib/umaxtostr.c: Likewise.
63526         * modules/inttostr-tests: New file.
63527         * tests/test-inttostr.c: New file.  Test these functions.
63529 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63530             Bruno Haible  <bruno@clisp.org>
63532         Add "Extending Gnulib" chapter to manual.
63533         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63534         chapter.
63535         (Extending Gnulib): New chapter.
63536         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63537         chapter.
63539 2010-06-09  Bruno Haible  <bruno@clisp.org>
63541         Avoid relocwrapper link errors due to gnulib replacement functions.
63542         * lib/areadlink.c: Use the system's malloc, realloc functions.
63543         (areadlink): Set errno to ENOMEM explicitly.
63544         * modules/areadlink (Depends-on): Remove malloc-posix.
63545         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63547 2010-06-09  Bruno Haible  <bruno@clisp.org>
63549         Avoid relocwrapper link errors due to gnulib replacement functions.
63550         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63551         * lib/malloca.c: Likewise.
63552         * lib/relocatable.c: Likewise.
63553         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63554         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63555         * lib/setenv.c: Use the system's malloc, realloc functions.
63556         * lib/strerror.c: Use the system's sprintf function.
63557         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63559 2010-06-04  Bruno Haible  <bruno@clisp.org>
63561         Prefer documented low-level autoconf macro names.
63562         * m4/lib-link.m4: Use m4_translit instead of translit.
63563         * m4/environ.m4: Likewise.
63564         * m4/mathfunc.m4: Likewise.
63565         * m4/onceonly.m4: Likewise.
63566         * m4/stdint.m4: Likewise.
63567         Suggested by Eric Blake.
63569 2010-06-04  Martin Lambers  <marlam@marlam.de>
63570             Bruno Haible  <bruno@clisp.org>
63572         havelib: Allow library names with '+' characters.
63573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63574         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63576 2010-06-09  Bruno Haible  <bruno@clisp.org>
63578         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63579         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63580         realloc failed.
63582 2010-06-08  Peter Simons  <simons@cryp.to>
63584         maint.mk: make the news-check rule more configurable
63585         * top/maint.mk (news-check-lines-spec): New variable.
63586         (news-check): Use "sed -n 1,10p" in place of "head".
63588 2010-06-07  Jim Meyering  <meyering@redhat.com>
63590         do-release-commit-and-tag: fix typo in --help
63591         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63593         regex: avoid new dead-code warning with gcc-4.6.0
63594         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63595         if-block containing a while-loop.  It's been unused for at least
63596         5 years.
63598 2010-06-05  Bruno Haible  <bruno@clisp.org>
63600         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63601         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63603 2010-06-04  Bruno Haible  <bruno@clisp.org>
63605         Update to GNU gettext 0.18.1.
63606         * modules/gettext (configure.ac): Require gettext infrastructure from
63607         version 0.18.1.
63609 2010-06-03  Bruno Haible  <bruno@clisp.org>
63611         Don't use AC_LIBOBJ with file names in subdirectories.
63612         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63613         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63614         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63615         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63616         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63617         gl_LIBUNISTRING_LIBSOURCE.
63618         (Makefile.am): Augment lib_SOURCES here, conditionally.
63619         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63621 2010-06-03  Bruno Haible  <bruno@clisp.org>
63623         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63624         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63625         expansion does not end with a newline.
63626         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63627         unnecessary newline.
63629 2010-06-03  Bruno Haible  <bruno@clisp.org>
63631         Reduce dependencies.
63632         * tests/test-quotearg.h: New file, extracted from
63633         tests/test-quotearg.c.
63634         * tests/test-quotearg-simple.c: New file, extracted from
63635         tests/test-quotearg.c.
63636         * tests/test-quotearg.c: Don't include <ctype.h>.
63637         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63638         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63639         use_quote_double_quotes, use_quotearg_colon): Moved to
63640         tests/test-quotearg.h.
63641         (results_g, flag_results, custom_quotes, custom_results): Moved
63642         to tests/test-quotearg-simple.c.
63643         (main): Moved the part that does not depend on gettext to
63644         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63645         performed.
63646         * modules/quotearg-simple: New file.
63647         * modules/quotearg-simple-tests: New file.
63648         * modules/quotearg (Depends-on): Add quotearg-simple.
63649         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63650         (Files): Add tests/test-quotearg.h.
63651         Reported by Paolo Bonzini.
63653 2010-06-03  Bruno Haible  <bruno@clisp.org>
63655         Reduce dependencies.
63656         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63658 2010-06-03  Bruno Haible  <bruno@clisp.org>
63660         time: Undefine more broken macros.
63661         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63662         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63663         Reported by Eric Blake.
63665 2010-06-03  Bruno Haible  <bruno@clisp.org>
63667         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63668         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63669         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63670         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63671         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63672         Reported by Ludovic Courtès <ludo@gnu.org>.
63674 2010-06-02  Eric Blake  <eblake@redhat.com>
63676         time: work with mingw + pthreads-win32 library
63677         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63678         if timespec is defined only in pthread.h.
63679         * modules/time (Makefile.am): Substitute it.
63680         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63681         <pthread.h>, when needed.
63682         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63683         from the library.
63685 2010-05-31  Bruno Haible  <bruno@clisp.org>
63687         Avoid expanding two macros in the wrong order.
63688         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63689         gl_LIBUNISTRING if it is defined.
63690         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63691         autoconf >= 2.64.
63692         Reported by Ludovic Courtès <ludo@gnu.org>.
63694 2010-05-27  Jim Meyering  <meyering@redhat.com>
63696         maint.mk: also prohibit "#undef" of always-defined symbols
63697         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63698         Allow more than one space before the symbol name.
63699         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63700         the regexp uses alternation.
63702 2010-05-26  Eric Blake  <eblake@redhat.com>
63704         maint.mk: avoid echo -e
63705         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63706         Convert all uses of echo -* to printf.
63707         Reported by Matthias Bolte.
63709 2010-05-25  Bruno Haible  <bruno@clisp.org>
63711         Update to GNU gettext 0.18, part 2.
63712         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63713         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63715 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63717         Add missing include in test-pwrite.c.
63718         * tests/test-pwrite.c: Include string.h, for strcmp.
63720 2010-05-24  Bruno Haible  <bruno@clisp.org>
63722         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63724 2010-05-24  Bruno Haible  <bruno@clisp.org>
63726         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63727         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63728         iconveh_error argument.
63729         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63730         U_STRCONV_TO_LOCALE.
63731         * lib/unistr/u16-strcoll.c: Likewise.
63732         * lib/unistr/u32-strcoll.c: Likewise.
63733         * modules/unistr/u8-strcoll (Depends-on): Add
63734         uniconv/u8-strconv-to-enc, localcharset. Remove
63735         uniconv/u8-strconv-to-locale.
63736         (configure.ac): Bump version number.
63737         * modules/unistr/u16-strcoll (Depends-on): Add
63738         uniconv/u16-strconv-to-enc, localcharset. Remove
63739         uniconv/u16-strconv-to-locale.
63740         (configure.ac): Bump version number.
63741         * modules/unistr/u32-strcoll (Depends-on): Add
63742         uniconv/u32-strconv-to-enc, localcharset. Remove
63743         uniconv/u32-strconv-to-locale.
63744         (configure.ac): Bump version number.
63746 2010-05-24  Bruno Haible  <bruno@clisp.org>
63748         Avoid a test failure on NetBSD 5.0.
63749         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63750         an iconv() bug.
63752 2010-05-24  Bruno Haible  <bruno@clisp.org>
63754         Adjust #include directive style.
63755         * modules/regex (Includes): Recommend to write <regex.h>.
63757 2010-05-24  Bruno Haible  <bruno@clisp.org>
63759         regex: Don't require alloca.
63760         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63761         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63762         only inside if (0).
63764 2010-05-23  Jim Meyering  <meyering@redhat.com>
63766         test-renameat.c: include <sys/stat.h>
63767         * tests/test-renameat.c: Include <sys/stat.h>; required for
63768         definition of S_IS* macros.
63770 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63772         Update maintainer documentation for 'relocatable-prog' module.
63773         * doc/relocatable-maint.texi: Update.
63774         Comments by Bruno Haible.
63776 2010-05-23  Bruno Haible  <bruno@clisp.org>
63778         git-merge-changelog: Enable --split-merged-entry by default.
63779         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63780         (usage): Don't mention this option any more.
63781         Reported by Ralf Wildenhues.
63783 2010-05-23  Jim Meyering  <meyering@redhat.com>
63785         test-pwrite: do not leave behind a test file named "out"
63786         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63787         The trivial-looking use of init.sh is really necessary.
63788         It ensures that the temporary file, "out", is created in
63789         a temporary directory, and removed upon termination.
63790         * tests/test-pwrite.sh: Re-add file.
63791         * modules/pwrite-tests: Reference it.
63793 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63795         Fix output redirection buglet in init.sh.
63796         * tests/init.sh: Fix redirection of stderr.
63798 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63800         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63802 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63804         * modules/valgrind-tests: New file.
63805         * m4/valgrind-tests.m4: New file.
63806         * doc/valgrind-tests.texi: New file.
63807         * doc/gnulib.texi (Running self-tests under valgrind): New
63808         section.
63810 2010-05-19  Bruno Haible  <bruno@clisp.org>
63812         Clean up dead code in recent commit.
63813         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63814         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63815         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63816         Suggested by Paolo Bonzini.
63818 2010-05-19  Bruno Haible  <bruno@clisp.org>
63820         Avoid valgrind error reports from libunistring.
63821         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63822         * modules/libunistring (Files): Add it.
63823         * modules/libunistring-optional (Files): Likewise.
63825 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63826             Bruno Haible  <bruno@clisp.org>
63828         New module 'libunistring-optional'.
63829         * modules/libunistring-optional: New file.
63830         * m4/libunistring-base.m4: New file.
63831         * m4/libunistring-optional.m4: New file.
63832         * lib/unicase.in.h: Renamed from lib/unicase.h.
63833         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63834         * lib/unictype.in.h: Renamed from lib/unictype.h.
63835         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63836         * lib/uniname.in.h: Renamed from lib/uniname.h.
63837         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63838         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63839         * lib/unistr.in.h: Renamed from lib/unistr.h.
63840         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63841         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63842         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63843         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63844         gl_LIBUNISTRING. If the library was found, determine the installed
63845         version and set LIBUNISTRING_VERSION.
63846         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63847         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63848         handle a configuration option --with-included-libunistring.
63849         * modules/libunistring (Files): Add m4/absolute-header.m4.
63850         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63851         Add m4/libunistring-base.m4.
63852         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63853         (Makefile.am): Build unicase.h from unicase.in.h.
63854         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63855         Add m4/libunistring-base.m4.
63856         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63857         (Makefile.am): Build uniconv.h from uniconv.in.h.
63858         * modules/unictype/base (Files): Use unictype.in.h instead of
63859         unictype.h. Add m4/libunistring-base.m4.
63860         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63861         (Makefile.am): Build unictype.h from unictype.in.h.
63862         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63863         Add m4/libunistring-base.m4.
63864         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63865         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63866         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63867         Add m4/libunistring-base.m4.
63868         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63869         (Makefile.am): Build uniname.h from uniname.in.h.
63870         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63871         Add m4/libunistring-base.m4.
63872         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63873         (Makefile.am): Build uninorm.h from uninorm.in.h.
63874         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63875         unistdio.h. Add m4/libunistring-base.m4.
63876         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63877         (Makefile.am): Build unistdio.h from unistdio.in.h.
63878         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63879         Add m4/libunistring-base.m4.
63880         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63881         (Makefile.am): Build unistr.h from unistr.in.h.
63882         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63883         Add m4/libunistring-base.m4.
63884         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63885         (Makefile.am): Build unitypes.h from unitypes.in.h.
63886         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63887         Add m4/libunistring-base.m4.
63888         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63889         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63890         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63891         uniwidth.h. Add m4/libunistring-base.m4.
63892         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63893         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63894         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63895         instead of augmenting lib_SOURCES.
63896         * modules/unicase/empty-suffix-context: Likewise.
63897         * modules/unicase/locale-language: Likewise.
63898         * modules/unicase/tolower: Likewise.
63899         * modules/unicase/totitle: Likewise.
63900         * modules/unicase/toupper: Likewise.
63901         * modules/unicase/u8-casecmp: Likewise.
63902         * modules/unicase/u8-casecoll: Likewise.
63903         * modules/unicase/u8-casefold: Likewise.
63904         * modules/unicase/u8-casexfrm: Likewise.
63905         * modules/unicase/u8-ct-casefold: Likewise.
63906         * modules/unicase/u8-ct-tolower: Likewise.
63907         * modules/unicase/u8-ct-totitle: Likewise.
63908         * modules/unicase/u8-ct-toupper: Likewise.
63909         * modules/unicase/u8-is-cased: Likewise.
63910         * modules/unicase/u8-is-casefolded: Likewise.
63911         * modules/unicase/u8-is-lowercase: Likewise.
63912         * modules/unicase/u8-is-titlecase: Likewise.
63913         * modules/unicase/u8-is-uppercase: Likewise.
63914         * modules/unicase/u8-prefix-context: Likewise.
63915         * modules/unicase/u8-suffix-context: Likewise.
63916         * modules/unicase/u8-tolower: Likewise.
63917         * modules/unicase/u8-totitle: Likewise.
63918         * modules/unicase/u8-toupper: Likewise.
63919         * modules/unicase/u16-casecmp: Likewise.
63920         * modules/unicase/u16-casecoll: Likewise.
63921         * modules/unicase/u16-casefold: Likewise.
63922         * modules/unicase/u16-casexfrm: Likewise.
63923         * modules/unicase/u16-ct-casefold: Likewise.
63924         * modules/unicase/u16-ct-tolower: Likewise.
63925         * modules/unicase/u16-ct-totitle: Likewise.
63926         * modules/unicase/u16-ct-toupper: Likewise.
63927         * modules/unicase/u16-is-cased: Likewise.
63928         * modules/unicase/u16-is-casefolded: Likewise.
63929         * modules/unicase/u16-is-lowercase: Likewise.
63930         * modules/unicase/u16-is-titlecase: Likewise.
63931         * modules/unicase/u16-is-uppercase: Likewise.
63932         * modules/unicase/u16-prefix-context: Likewise.
63933         * modules/unicase/u16-suffix-context: Likewise.
63934         * modules/unicase/u16-tolower: Likewise.
63935         * modules/unicase/u16-totitle: Likewise.
63936         * modules/unicase/u16-toupper: Likewise.
63937         * modules/unicase/u32-casecmp: Likewise.
63938         * modules/unicase/u32-casecoll: Likewise.
63939         * modules/unicase/u32-casefold: Likewise.
63940         * modules/unicase/u32-casexfrm: Likewise.
63941         * modules/unicase/u32-ct-casefold: Likewise.
63942         * modules/unicase/u32-ct-tolower: Likewise.
63943         * modules/unicase/u32-ct-totitle: Likewise.
63944         * modules/unicase/u32-ct-toupper: Likewise.
63945         * modules/unicase/u32-is-cased: Likewise.
63946         * modules/unicase/u32-is-casefolded: Likewise.
63947         * modules/unicase/u32-is-lowercase: Likewise.
63948         * modules/unicase/u32-is-titlecase: Likewise.
63949         * modules/unicase/u32-is-uppercase: Likewise.
63950         * modules/unicase/u32-prefix-context: Likewise.
63951         * modules/unicase/u32-suffix-context: Likewise.
63952         * modules/unicase/u32-tolower: Likewise.
63953         * modules/unicase/u32-totitle: Likewise.
63954         * modules/unicase/u32-toupper: Likewise.
63955         * modules/unicase/ulc-casecmp: Likewise.
63956         * modules/unicase/ulc-casecoll: Likewise.
63957         * modules/unicase/ulc-casexfrm: Likewise.
63958         * modules/uniconv/u8-conv-from-enc: Likewise.
63959         * modules/uniconv/u8-conv-to-enc: Likewise.
63960         * modules/uniconv/u8-strconv-from-enc: Likewise.
63961         * modules/uniconv/u8-strconv-from-locale: Likewise.
63962         * modules/uniconv/u8-strconv-to-enc: Likewise.
63963         * modules/uniconv/u8-strconv-to-locale: Likewise.
63964         * modules/uniconv/u16-conv-from-enc: Likewise.
63965         * modules/uniconv/u16-conv-to-enc: Likewise.
63966         * modules/uniconv/u16-strconv-from-enc: Likewise.
63967         * modules/uniconv/u16-strconv-from-locale: Likewise.
63968         * modules/uniconv/u16-strconv-to-enc: Likewise.
63969         * modules/uniconv/u16-strconv-to-locale: Likewise.
63970         * modules/uniconv/u32-conv-from-enc: Likewise.
63971         * modules/uniconv/u32-conv-to-enc: Likewise.
63972         * modules/uniconv/u32-strconv-from-enc: Likewise.
63973         * modules/uniconv/u32-strconv-from-locale: Likewise.
63974         * modules/uniconv/u32-strconv-to-enc: Likewise.
63975         * modules/uniconv/u32-strconv-to-locale: Likewise.
63976         * modules/unictype/bidicategory-byname: Likewise.
63977         * modules/unictype/bidicategory-name: Likewise.
63978         * modules/unictype/bidicategory-of: Likewise.
63979         * modules/unictype/bidicategory-test: Likewise.
63980         * modules/unictype/block-list: Likewise.
63981         * modules/unictype/block-test: Likewise.
63982         * modules/unictype/category-C: Likewise.
63983         * modules/unictype/category-Cc: Likewise.
63984         * modules/unictype/category-Cf: Likewise.
63985         * modules/unictype/category-Cn: Likewise.
63986         * modules/unictype/category-Co: Likewise.
63987         * modules/unictype/category-Cs: Likewise.
63988         * modules/unictype/category-L: Likewise.
63989         * modules/unictype/category-Ll: Likewise.
63990         * modules/unictype/category-Lm: Likewise.
63991         * modules/unictype/category-Lo: Likewise.
63992         * modules/unictype/category-Lt: Likewise.
63993         * modules/unictype/category-Lu: Likewise.
63994         * modules/unictype/category-M: Likewise.
63995         * modules/unictype/category-Mc: Likewise.
63996         * modules/unictype/category-Me: Likewise.
63997         * modules/unictype/category-Mn: Likewise.
63998         * modules/unictype/category-N: Likewise.
63999         * modules/unictype/category-Nd: Likewise.
64000         * modules/unictype/category-Nl: Likewise.
64001         * modules/unictype/category-No: Likewise.
64002         * modules/unictype/category-P: Likewise.
64003         * modules/unictype/category-Pc: Likewise.
64004         * modules/unictype/category-Pd: Likewise.
64005         * modules/unictype/category-Pe: Likewise.
64006         * modules/unictype/category-Pf: Likewise.
64007         * modules/unictype/category-Pi: Likewise.
64008         * modules/unictype/category-Po: Likewise.
64009         * modules/unictype/category-Ps: Likewise.
64010         * modules/unictype/category-S: Likewise.
64011         * modules/unictype/category-Sc: Likewise.
64012         * modules/unictype/category-Sk: Likewise.
64013         * modules/unictype/category-Sm: Likewise.
64014         * modules/unictype/category-So: Likewise.
64015         * modules/unictype/category-Z: Likewise.
64016         * modules/unictype/category-Zl: Likewise.
64017         * modules/unictype/category-Zp: Likewise.
64018         * modules/unictype/category-Zs: Likewise.
64019         * modules/unictype/category-and: Likewise.
64020         * modules/unictype/category-and-not: Likewise.
64021         * modules/unictype/category-byname: Likewise.
64022         * modules/unictype/category-name: Likewise.
64023         * modules/unictype/category-none: Likewise.
64024         * modules/unictype/category-of: Likewise.
64025         * modules/unictype/category-or: Likewise.
64026         * modules/unictype/category-test: Likewise.
64027         * modules/unictype/combining-class: Likewise.
64028         * modules/unictype/ctype-alnum: Likewise.
64029         * modules/unictype/ctype-alpha: Likewise.
64030         * modules/unictype/ctype-blank: Likewise.
64031         * modules/unictype/ctype-cntrl: Likewise.
64032         * modules/unictype/ctype-digit: Likewise.
64033         * modules/unictype/ctype-graph: Likewise.
64034         * modules/unictype/ctype-lower: Likewise.
64035         * modules/unictype/ctype-print: Likewise.
64036         * modules/unictype/ctype-punct: Likewise.
64037         * modules/unictype/ctype-space: Likewise.
64038         * modules/unictype/ctype-upper: Likewise.
64039         * modules/unictype/ctype-xdigit: Likewise.
64040         * modules/unictype/decimal-digit: Likewise.
64041         * modules/unictype/digit: Likewise.
64042         * modules/unictype/mirror: Likewise.
64043         * modules/unictype/numeric: Likewise.
64044         * modules/unictype/property-alphabetic: Likewise.
64045         * modules/unictype/property-ascii-hex-digit: Likewise.
64046         * modules/unictype/property-bidi-arabic-digit: Likewise.
64047         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64048         * modules/unictype/property-bidi-block-separator: Likewise.
64049         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64050         * modules/unictype/property-bidi-common-separator: Likewise.
64051         * modules/unictype/property-bidi-control: Likewise.
64052         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64053         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64054         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64055         * modules/unictype/property-bidi-european-digit: Likewise.
64056         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64057         * modules/unictype/property-bidi-left-to-right: Likewise.
64058         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64059         * modules/unictype/property-bidi-other-neutral: Likewise.
64060         * modules/unictype/property-bidi-pdf: Likewise.
64061         * modules/unictype/property-bidi-segment-separator: Likewise.
64062         * modules/unictype/property-bidi-whitespace: Likewise.
64063         * modules/unictype/property-byname: Likewise.
64064         * modules/unictype/property-combining: Likewise.
64065         * modules/unictype/property-composite: Likewise.
64066         * modules/unictype/property-currency-symbol: Likewise.
64067         * modules/unictype/property-dash: Likewise.
64068         * modules/unictype/property-decimal-digit: Likewise.
64069         * modules/unictype/property-default-ignorable-code-point: Likewise.
64070         * modules/unictype/property-deprecated: Likewise.
64071         * modules/unictype/property-diacritic: Likewise.
64072         * modules/unictype/property-extender: Likewise.
64073         * modules/unictype/property-format-control: Likewise.
64074         * modules/unictype/property-grapheme-base: Likewise.
64075         * modules/unictype/property-grapheme-extend: Likewise.
64076         * modules/unictype/property-grapheme-link: Likewise.
64077         * modules/unictype/property-hex-digit: Likewise.
64078         * modules/unictype/property-hyphen: Likewise.
64079         * modules/unictype/property-id-continue: Likewise.
64080         * modules/unictype/property-id-start: Likewise.
64081         * modules/unictype/property-ideographic: Likewise.
64082         * modules/unictype/property-ids-binary-operator: Likewise.
64083         * modules/unictype/property-ids-trinary-operator: Likewise.
64084         * modules/unictype/property-ignorable-control: Likewise.
64085         * modules/unictype/property-iso-control: Likewise.
64086         * modules/unictype/property-join-control: Likewise.
64087         * modules/unictype/property-left-of-pair: Likewise.
64088         * modules/unictype/property-line-separator: Likewise.
64089         * modules/unictype/property-logical-order-exception: Likewise.
64090         * modules/unictype/property-lowercase: Likewise.
64091         * modules/unictype/property-math: Likewise.
64092         * modules/unictype/property-non-break: Likewise.
64093         * modules/unictype/property-not-a-character: Likewise.
64094         * modules/unictype/property-numeric: Likewise.
64095         * modules/unictype/property-other-alphabetic: Likewise.
64096         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64097         * modules/unictype/property-other-grapheme-extend: Likewise.
64098         * modules/unictype/property-other-id-continue: Likewise.
64099         * modules/unictype/property-other-id-start: Likewise.
64100         * modules/unictype/property-other-lowercase: Likewise.
64101         * modules/unictype/property-other-math: Likewise.
64102         * modules/unictype/property-other-uppercase: Likewise.
64103         * modules/unictype/property-paired-punctuation: Likewise.
64104         * modules/unictype/property-paragraph-separator: Likewise.
64105         * modules/unictype/property-pattern-syntax: Likewise.
64106         * modules/unictype/property-pattern-white-space: Likewise.
64107         * modules/unictype/property-private-use: Likewise.
64108         * modules/unictype/property-punctuation: Likewise.
64109         * modules/unictype/property-quotation-mark: Likewise.
64110         * modules/unictype/property-radical: Likewise.
64111         * modules/unictype/property-sentence-terminal: Likewise.
64112         * modules/unictype/property-soft-dotted: Likewise.
64113         * modules/unictype/property-space: Likewise.
64114         * modules/unictype/property-terminal-punctuation: Likewise.
64115         * modules/unictype/property-test: Likewise.
64116         * modules/unictype/property-titlecase: Likewise.
64117         * modules/unictype/property-unassigned-code-value: Likewise.
64118         * modules/unictype/property-unified-ideograph: Likewise.
64119         * modules/unictype/property-uppercase: Likewise.
64120         * modules/unictype/property-variation-selector: Likewise.
64121         * modules/unictype/property-white-space: Likewise.
64122         * modules/unictype/property-xid-continue: Likewise.
64123         * modules/unictype/property-xid-start: Likewise.
64124         * modules/unictype/property-zero-width: Likewise.
64125         * modules/unictype/scripts: Likewise.
64126         * modules/unictype/syntax-c-ident: Likewise.
64127         * modules/unictype/syntax-c-whitespace: Likewise.
64128         * modules/unictype/syntax-java-ident: Likewise.
64129         * modules/unictype/syntax-java-whitespace: Likewise.
64130         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64131         * modules/unilbrk/u8-width-linebreaks: Likewise.
64132         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64133         * modules/unilbrk/u16-width-linebreaks: Likewise.
64134         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64135         * modules/unilbrk/u32-width-linebreaks: Likewise.
64136         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64137         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64138         * modules/uniname/uniname: Likewise.
64139         * modules/uninorm/canonical-decomposition: Likewise.
64140         * modules/uninorm/composition: Likewise.
64141         * modules/uninorm/decomposing-form: Likewise.
64142         * modules/uninorm/decomposition: Likewise.
64143         * modules/uninorm/filter: Likewise.
64144         * modules/uninorm/nfc: Likewise.
64145         * modules/uninorm/nfd: Likewise.
64146         * modules/uninorm/nfkc: Likewise.
64147         * modules/uninorm/nfkd: Likewise.
64148         * modules/uninorm/u8-normalize: Likewise.
64149         * modules/uninorm/u8-normcmp: Likewise.
64150         * modules/uninorm/u8-normcoll: Likewise.
64151         * modules/uninorm/u8-normxfrm: Likewise.
64152         * modules/uninorm/u16-normalize: Likewise.
64153         * modules/uninorm/u16-normcmp: Likewise.
64154         * modules/uninorm/u16-normcoll: Likewise.
64155         * modules/uninorm/u16-normxfrm: Likewise.
64156         * modules/uninorm/u32-normalize: Likewise.
64157         * modules/uninorm/u32-normcmp: Likewise.
64158         * modules/uninorm/u32-normcoll: Likewise.
64159         * modules/uninorm/u32-normxfrm: Likewise.
64160         * modules/unistdio/u8-asnprintf: Likewise.
64161         * modules/unistdio/u8-asprintf: Likewise.
64162         * modules/unistdio/u8-snprintf: Likewise.
64163         * modules/unistdio/u8-sprintf: Likewise.
64164         * modules/unistdio/u8-u8-asnprintf: Likewise.
64165         * modules/unistdio/u8-u8-asprintf: Likewise.
64166         * modules/unistdio/u8-u8-snprintf: Likewise.
64167         * modules/unistdio/u8-u8-sprintf: Likewise.
64168         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64169         * modules/unistdio/u8-u8-vasprintf: Likewise.
64170         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64171         * modules/unistdio/u8-u8-vsprintf: Likewise.
64172         * modules/unistdio/u8-vasnprintf: Likewise.
64173         * modules/unistdio/u8-vasprintf: Likewise.
64174         * modules/unistdio/u8-vsnprintf: Likewise.
64175         * modules/unistdio/u8-vsprintf: Likewise.
64176         * modules/unistdio/u16-asnprintf: Likewise.
64177         * modules/unistdio/u16-asprintf: Likewise.
64178         * modules/unistdio/u16-snprintf: Likewise.
64179         * modules/unistdio/u16-sprintf: Likewise.
64180         * modules/unistdio/u16-u16-asnprintf: Likewise.
64181         * modules/unistdio/u16-u16-asprintf: Likewise.
64182         * modules/unistdio/u16-u16-snprintf: Likewise.
64183         * modules/unistdio/u16-u16-sprintf: Likewise.
64184         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64185         * modules/unistdio/u16-u16-vasprintf: Likewise.
64186         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64187         * modules/unistdio/u16-u16-vsprintf: Likewise.
64188         * modules/unistdio/u16-vasnprintf: Likewise.
64189         * modules/unistdio/u16-vasprintf: Likewise.
64190         * modules/unistdio/u16-vsnprintf: Likewise.
64191         * modules/unistdio/u16-vsprintf: Likewise.
64192         * modules/unistdio/u32-asnprintf: Likewise.
64193         * modules/unistdio/u32-asprintf: Likewise.
64194         * modules/unistdio/u32-snprintf: Likewise.
64195         * modules/unistdio/u32-sprintf: Likewise.
64196         * modules/unistdio/u32-u32-asnprintf: Likewise.
64197         * modules/unistdio/u32-u32-asprintf: Likewise.
64198         * modules/unistdio/u32-u32-snprintf: Likewise.
64199         * modules/unistdio/u32-u32-sprintf: Likewise.
64200         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64201         * modules/unistdio/u32-u32-vasprintf: Likewise.
64202         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64203         * modules/unistdio/u32-u32-vsprintf: Likewise.
64204         * modules/unistdio/u32-vasnprintf: Likewise.
64205         * modules/unistdio/u32-vasprintf: Likewise.
64206         * modules/unistdio/u32-vsnprintf: Likewise.
64207         * modules/unistdio/u32-vsprintf: Likewise.
64208         * modules/unistdio/ulc-asnprintf: Likewise.
64209         * modules/unistdio/ulc-asprintf: Likewise.
64210         * modules/unistdio/ulc-fprintf: Likewise.
64211         * modules/unistdio/ulc-snprintf: Likewise.
64212         * modules/unistdio/ulc-sprintf: Likewise.
64213         * modules/unistdio/ulc-vasnprintf: Likewise.
64214         * modules/unistdio/ulc-vasprintf: Likewise.
64215         * modules/unistdio/ulc-vfprintf: Likewise.
64216         * modules/unistdio/ulc-vsnprintf: Likewise.
64217         * modules/unistdio/ulc-vsprintf: Likewise.
64218         * modules/unistr/u8-check: Likewise.
64219         * modules/unistr/u8-chr: Likewise.
64220         * modules/unistr/u8-cmp: Likewise.
64221         * modules/unistr/u8-cmp2: Likewise.
64222         * modules/unistr/u8-cpy: Likewise.
64223         * modules/unistr/u8-cpy-alloc: Likewise.
64224         * modules/unistr/u8-endswith: Likewise.
64225         * modules/unistr/u8-mblen: Likewise.
64226         * modules/unistr/u8-mbsnlen: Likewise.
64227         * modules/unistr/u8-mbtouc: Likewise.
64228         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64229         * modules/unistr/u8-mbtoucr: Likewise.
64230         * modules/unistr/u8-move: Likewise.
64231         * modules/unistr/u8-next: Likewise.
64232         * modules/unistr/u8-prev: Likewise.
64233         * modules/unistr/u8-set: Likewise.
64234         * modules/unistr/u8-startswith: Likewise.
64235         * modules/unistr/u8-stpcpy: Likewise.
64236         * modules/unistr/u8-stpncpy: Likewise.
64237         * modules/unistr/u8-strcat: Likewise.
64238         * modules/unistr/u8-strchr: Likewise.
64239         * modules/unistr/u8-strcmp: Likewise.
64240         * modules/unistr/u8-strcoll: Likewise.
64241         * modules/unistr/u8-strcpy: Likewise.
64242         * modules/unistr/u8-strcspn: Likewise.
64243         * modules/unistr/u8-strdup: Likewise.
64244         * modules/unistr/u8-strlen: Likewise.
64245         * modules/unistr/u8-strmblen: Likewise.
64246         * modules/unistr/u8-strmbtouc: Likewise.
64247         * modules/unistr/u8-strncat: Likewise.
64248         * modules/unistr/u8-strncmp: Likewise.
64249         * modules/unistr/u8-strncpy: Likewise.
64250         * modules/unistr/u8-strnlen: Likewise.
64251         * modules/unistr/u8-strpbrk: Likewise.
64252         * modules/unistr/u8-strrchr: Likewise.
64253         * modules/unistr/u8-strspn: Likewise.
64254         * modules/unistr/u8-strstr: Likewise.
64255         * modules/unistr/u8-strtok: Likewise.
64256         * modules/unistr/u8-to-u16: Likewise.
64257         * modules/unistr/u8-to-u32: Likewise.
64258         * modules/unistr/u8-uctomb: Likewise.
64259         * modules/unistr/u16-check: Likewise.
64260         * modules/unistr/u16-chr: Likewise.
64261         * modules/unistr/u16-cmp: Likewise.
64262         * modules/unistr/u16-cmp2: Likewise.
64263         * modules/unistr/u16-cpy: Likewise.
64264         * modules/unistr/u16-cpy-alloc: Likewise.
64265         * modules/unistr/u16-endswith: Likewise.
64266         * modules/unistr/u16-mblen: Likewise.
64267         * modules/unistr/u16-mbsnlen: Likewise.
64268         * modules/unistr/u16-mbtouc: Likewise.
64269         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64270         * modules/unistr/u16-mbtoucr: Likewise.
64271         * modules/unistr/u16-move: Likewise.
64272         * modules/unistr/u16-next: Likewise.
64273         * modules/unistr/u16-prev: Likewise.
64274         * modules/unistr/u16-set: Likewise.
64275         * modules/unistr/u16-startswith: Likewise.
64276         * modules/unistr/u16-stpcpy: Likewise.
64277         * modules/unistr/u16-stpncpy: Likewise.
64278         * modules/unistr/u16-strcat: Likewise.
64279         * modules/unistr/u16-strchr: Likewise.
64280         * modules/unistr/u16-strcmp: Likewise.
64281         * modules/unistr/u16-strcoll: Likewise.
64282         * modules/unistr/u16-strcpy: Likewise.
64283         * modules/unistr/u16-strcspn: Likewise.
64284         * modules/unistr/u16-strdup: Likewise.
64285         * modules/unistr/u16-strlen: Likewise.
64286         * modules/unistr/u16-strmblen: Likewise.
64287         * modules/unistr/u16-strmbtouc: Likewise.
64288         * modules/unistr/u16-strncat: Likewise.
64289         * modules/unistr/u16-strncmp: Likewise.
64290         * modules/unistr/u16-strncpy: Likewise.
64291         * modules/unistr/u16-strnlen: Likewise.
64292         * modules/unistr/u16-strpbrk: Likewise.
64293         * modules/unistr/u16-strrchr: Likewise.
64294         * modules/unistr/u16-strspn: Likewise.
64295         * modules/unistr/u16-strstr: Likewise.
64296         * modules/unistr/u16-strtok: Likewise.
64297         * modules/unistr/u16-to-u32: Likewise.
64298         * modules/unistr/u16-to-u8: Likewise.
64299         * modules/unistr/u16-uctomb: Likewise.
64300         * modules/unistr/u32-check: Likewise.
64301         * modules/unistr/u32-chr: Likewise.
64302         * modules/unistr/u32-cmp: Likewise.
64303         * modules/unistr/u32-cmp2: Likewise.
64304         * modules/unistr/u32-cpy: Likewise.
64305         * modules/unistr/u32-cpy-alloc: Likewise.
64306         * modules/unistr/u32-endswith: Likewise.
64307         * modules/unistr/u32-mblen: Likewise.
64308         * modules/unistr/u32-mbsnlen: Likewise.
64309         * modules/unistr/u32-mbtouc: Likewise.
64310         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64311         * modules/unistr/u32-mbtoucr: Likewise.
64312         * modules/unistr/u32-move: Likewise.
64313         * modules/unistr/u32-next: Likewise.
64314         * modules/unistr/u32-prev: Likewise.
64315         * modules/unistr/u32-set: Likewise.
64316         * modules/unistr/u32-startswith: Likewise.
64317         * modules/unistr/u32-stpcpy: Likewise.
64318         * modules/unistr/u32-stpncpy: Likewise.
64319         * modules/unistr/u32-strcat: Likewise.
64320         * modules/unistr/u32-strchr: Likewise.
64321         * modules/unistr/u32-strcmp: Likewise.
64322         * modules/unistr/u32-strcoll: Likewise.
64323         * modules/unistr/u32-strcpy: Likewise.
64324         * modules/unistr/u32-strcspn: Likewise.
64325         * modules/unistr/u32-strdup: Likewise.
64326         * modules/unistr/u32-strlen: Likewise.
64327         * modules/unistr/u32-strmblen: Likewise.
64328         * modules/unistr/u32-strmbtouc: Likewise.
64329         * modules/unistr/u32-strncat: Likewise.
64330         * modules/unistr/u32-strncmp: Likewise.
64331         * modules/unistr/u32-strncpy: Likewise.
64332         * modules/unistr/u32-strnlen: Likewise.
64333         * modules/unistr/u32-strpbrk: Likewise.
64334         * modules/unistr/u32-strrchr: Likewise.
64335         * modules/unistr/u32-strspn: Likewise.
64336         * modules/unistr/u32-strstr: Likewise.
64337         * modules/unistr/u32-strtok: Likewise.
64338         * modules/unistr/u32-to-u16: Likewise.
64339         * modules/unistr/u32-to-u8: Likewise.
64340         * modules/unistr/u32-uctomb: Likewise.
64341         * modules/uniwbrk/u8-wordbreaks: Likewise.
64342         * modules/uniwbrk/u16-wordbreaks: Likewise.
64343         * modules/uniwbrk/u32-wordbreaks: Likewise.
64344         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64345         * modules/uniwbrk/wordbreak-property: Likewise.
64346         * modules/uniwidth/u8-strwidth: Likewise.
64347         * modules/uniwidth/u8-width: Likewise.
64348         * modules/uniwidth/u16-strwidth: Likewise.
64349         * modules/uniwidth/u16-width: Likewise.
64350         * modules/uniwidth/u32-strwidth: Likewise.
64351         * modules/uniwidth/u32-width: Likewise.
64352         * modules/uniwidth/width: Likewise.
64353         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64354         with $(LIBUNISTRING).
64355         * modules/unicase/ignorable-tests: Likewise.
64356         * modules/unicase/locale-language-tests: Likewise.
64357         * modules/unicase/tolower-tests: Likewise.
64358         * modules/unicase/totitle-tests: Likewise.
64359         * modules/unicase/toupper-tests: Likewise.
64360         * modules/unicase/u8-casecmp-tests: Likewise.
64361         * modules/unicase/u8-casecoll-tests: Likewise.
64362         * modules/unicase/u8-casefold-tests: Likewise.
64363         * modules/unicase/u8-is-cased-tests: Likewise.
64364         * modules/unicase/u8-is-casefolded-tests: Likewise.
64365         * modules/unicase/u8-is-lowercase-tests: Likewise.
64366         * modules/unicase/u8-is-titlecase-tests: Likewise.
64367         * modules/unicase/u8-is-uppercase-tests: Likewise.
64368         * modules/unicase/u8-tolower-tests: Likewise.
64369         * modules/unicase/u8-totitle-tests: Likewise.
64370         * modules/unicase/u8-toupper-tests: Likewise.
64371         * modules/unicase/u16-casecmp-tests: Likewise.
64372         * modules/unicase/u16-casecoll-tests: Likewise.
64373         * modules/unicase/u16-casefold-tests: Likewise.
64374         * modules/unicase/u16-is-cased-tests: Likewise.
64375         * modules/unicase/u16-is-casefolded-tests: Likewise.
64376         * modules/unicase/u16-is-lowercase-tests: Likewise.
64377         * modules/unicase/u16-is-titlecase-tests: Likewise.
64378         * modules/unicase/u16-is-uppercase-tests: Likewise.
64379         * modules/unicase/u16-tolower-tests: Likewise.
64380         * modules/unicase/u16-totitle-tests: Likewise.
64381         * modules/unicase/u16-toupper-tests: Likewise.
64382         * modules/unicase/u32-casecmp-tests: Likewise.
64383         * modules/unicase/u32-casecoll-tests: Likewise.
64384         * modules/unicase/u32-casefold-tests: Likewise.
64385         * modules/unicase/u32-is-cased-tests: Likewise.
64386         * modules/unicase/u32-is-casefolded-tests: Likewise.
64387         * modules/unicase/u32-is-lowercase-tests: Likewise.
64388         * modules/unicase/u32-is-titlecase-tests: Likewise.
64389         * modules/unicase/u32-is-uppercase-tests: Likewise.
64390         * modules/unicase/u32-tolower-tests: Likewise.
64391         * modules/unicase/u32-totitle-tests: Likewise.
64392         * modules/unicase/u32-toupper-tests: Likewise.
64393         * modules/unicase/ulc-casecmp-tests: Likewise.
64394         * modules/unicase/ulc-casecoll-tests: Likewise.
64395         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64396         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64397         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64398         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64399         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64400         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64401         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64402         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64403         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64404         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64405         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64406         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64407         * modules/unictype/bidicategory-byname-tests: Likewise.
64408         * modules/unictype/bidicategory-name-tests: Likewise.
64409         * modules/unictype/bidicategory-of-tests: Likewise.
64410         * modules/unictype/bidicategory-test-tests: Likewise.
64411         * modules/unictype/block-list-tests: Likewise.
64412         * modules/unictype/block-of-tests: Likewise.
64413         * modules/unictype/block-test-tests: Likewise.
64414         * modules/unictype/category-C-tests: Likewise.
64415         * modules/unictype/category-Cc-tests: Likewise.
64416         * modules/unictype/category-Cf-tests: Likewise.
64417         * modules/unictype/category-Cn-tests: Likewise.
64418         * modules/unictype/category-Co-tests: Likewise.
64419         * modules/unictype/category-Cs-tests: Likewise.
64420         * modules/unictype/category-L-tests: Likewise.
64421         * modules/unictype/category-Ll-tests: Likewise.
64422         * modules/unictype/category-Lm-tests: Likewise.
64423         * modules/unictype/category-Lo-tests: Likewise.
64424         * modules/unictype/category-Lt-tests: Likewise.
64425         * modules/unictype/category-Lu-tests: Likewise.
64426         * modules/unictype/category-M-tests: Likewise.
64427         * modules/unictype/category-Mc-tests: Likewise.
64428         * modules/unictype/category-Me-tests: Likewise.
64429         * modules/unictype/category-Mn-tests: Likewise.
64430         * modules/unictype/category-N-tests: Likewise.
64431         * modules/unictype/category-Nd-tests: Likewise.
64432         * modules/unictype/category-Nl-tests: Likewise.
64433         * modules/unictype/category-No-tests: Likewise.
64434         * modules/unictype/category-P-tests: Likewise.
64435         * modules/unictype/category-Pc-tests: Likewise.
64436         * modules/unictype/category-Pd-tests: Likewise.
64437         * modules/unictype/category-Pe-tests: Likewise.
64438         * modules/unictype/category-Pf-tests: Likewise.
64439         * modules/unictype/category-Pi-tests: Likewise.
64440         * modules/unictype/category-Po-tests: Likewise.
64441         * modules/unictype/category-Ps-tests: Likewise.
64442         * modules/unictype/category-S-tests: Likewise.
64443         * modules/unictype/category-Sc-tests: Likewise.
64444         * modules/unictype/category-Sk-tests: Likewise.
64445         * modules/unictype/category-Sm-tests: Likewise.
64446         * modules/unictype/category-So-tests: Likewise.
64447         * modules/unictype/category-Z-tests: Likewise.
64448         * modules/unictype/category-Zl-tests: Likewise.
64449         * modules/unictype/category-Zp-tests: Likewise.
64450         * modules/unictype/category-Zs-tests: Likewise.
64451         * modules/unictype/category-and-not-tests: Likewise.
64452         * modules/unictype/category-and-tests: Likewise.
64453         * modules/unictype/category-byname-tests: Likewise.
64454         * modules/unictype/category-name-tests: Likewise.
64455         * modules/unictype/category-none-tests: Likewise.
64456         * modules/unictype/category-of-tests: Likewise.
64457         * modules/unictype/category-or-tests: Likewise.
64458         * modules/unictype/category-test-withtable-tests: Likewise.
64459         * modules/unictype/combining-class-tests: Likewise.
64460         * modules/unictype/ctype-alnum-tests: Likewise.
64461         * modules/unictype/ctype-alpha-tests: Likewise.
64462         * modules/unictype/ctype-blank-tests: Likewise.
64463         * modules/unictype/ctype-cntrl-tests: Likewise.
64464         * modules/unictype/ctype-digit-tests: Likewise.
64465         * modules/unictype/ctype-graph-tests: Likewise.
64466         * modules/unictype/ctype-lower-tests: Likewise.
64467         * modules/unictype/ctype-print-tests: Likewise.
64468         * modules/unictype/ctype-punct-tests: Likewise.
64469         * modules/unictype/ctype-space-tests: Likewise.
64470         * modules/unictype/ctype-upper-tests: Likewise.
64471         * modules/unictype/ctype-xdigit-tests: Likewise.
64472         * modules/unictype/decimal-digit-tests: Likewise.
64473         * modules/unictype/digit-tests: Likewise.
64474         * modules/unictype/mirror-tests: Likewise.
64475         * modules/unictype/numeric-tests: Likewise.
64476         * modules/unictype/property-alphabetic-tests: Likewise.
64477         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64478         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64479         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64480         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64481         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64482         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64483         * modules/unictype/property-bidi-control-tests: Likewise.
64484         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64485         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64486         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64487         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64488         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64489         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64490         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64491         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64492         * modules/unictype/property-bidi-pdf-tests: Likewise.
64493         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64494         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64495         * modules/unictype/property-byname-tests: Likewise.
64496         * modules/unictype/property-combining-tests: Likewise.
64497         * modules/unictype/property-composite-tests: Likewise.
64498         * modules/unictype/property-currency-symbol-tests: Likewise.
64499         * modules/unictype/property-dash-tests: Likewise.
64500         * modules/unictype/property-decimal-digit-tests: Likewise.
64501         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64502         * modules/unictype/property-deprecated-tests: Likewise.
64503         * modules/unictype/property-diacritic-tests: Likewise.
64504         * modules/unictype/property-extender-tests: Likewise.
64505         * modules/unictype/property-format-control-tests: Likewise.
64506         * modules/unictype/property-grapheme-base-tests: Likewise.
64507         * modules/unictype/property-grapheme-extend-tests: Likewise.
64508         * modules/unictype/property-grapheme-link-tests: Likewise.
64509         * modules/unictype/property-hex-digit-tests: Likewise.
64510         * modules/unictype/property-hyphen-tests: Likewise.
64511         * modules/unictype/property-id-continue-tests: Likewise.
64512         * modules/unictype/property-id-start-tests: Likewise.
64513         * modules/unictype/property-ideographic-tests: Likewise.
64514         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64515         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64516         * modules/unictype/property-ignorable-control-tests: Likewise.
64517         * modules/unictype/property-iso-control-tests: Likewise.
64518         * modules/unictype/property-join-control-tests: Likewise.
64519         * modules/unictype/property-left-of-pair-tests: Likewise.
64520         * modules/unictype/property-line-separator-tests: Likewise.
64521         * modules/unictype/property-logical-order-exception-tests: Likewise.
64522         * modules/unictype/property-lowercase-tests: Likewise.
64523         * modules/unictype/property-math-tests: Likewise.
64524         * modules/unictype/property-non-break-tests: Likewise.
64525         * modules/unictype/property-not-a-character-tests: Likewise.
64526         * modules/unictype/property-numeric-tests: Likewise.
64527         * modules/unictype/property-other-alphabetic-tests: Likewise.
64528         * modules/unictype/property-other-default-ignorable-code-point-tests:
64529         Likewise.
64530         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64531         * modules/unictype/property-other-id-continue-tests: Likewise.
64532         * modules/unictype/property-other-id-start-tests: Likewise.
64533         * modules/unictype/property-other-lowercase-tests: Likewise.
64534         * modules/unictype/property-other-math-tests: Likewise.
64535         * modules/unictype/property-other-uppercase-tests: Likewise.
64536         * modules/unictype/property-paired-punctuation-tests: Likewise.
64537         * modules/unictype/property-paragraph-separator-tests: Likewise.
64538         * modules/unictype/property-pattern-syntax-tests: Likewise.
64539         * modules/unictype/property-pattern-white-space-tests: Likewise.
64540         * modules/unictype/property-private-use-tests: Likewise.
64541         * modules/unictype/property-punctuation-tests: Likewise.
64542         * modules/unictype/property-quotation-mark-tests: Likewise.
64543         * modules/unictype/property-radical-tests: Likewise.
64544         * modules/unictype/property-sentence-terminal-tests: Likewise.
64545         * modules/unictype/property-soft-dotted-tests: Likewise.
64546         * modules/unictype/property-space-tests: Likewise.
64547         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64548         * modules/unictype/property-test-tests: Likewise.
64549         * modules/unictype/property-titlecase-tests: Likewise.
64550         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64551         * modules/unictype/property-unified-ideograph-tests: Likewise.
64552         * modules/unictype/property-uppercase-tests: Likewise.
64553         * modules/unictype/property-variation-selector-tests: Likewise.
64554         * modules/unictype/property-white-space-tests: Likewise.
64555         * modules/unictype/property-xid-continue-tests: Likewise.
64556         * modules/unictype/property-xid-start-tests: Likewise.
64557         * modules/unictype/property-zero-width-tests: Likewise.
64558         * modules/unictype/scripts-tests: Likewise.
64559         * modules/unictype/syntax-c-ident-tests: Likewise.
64560         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64561         * modules/unictype/syntax-java-ident-tests: Likewise.
64562         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64563         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64564         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64565         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64566         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64567         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64568         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64569         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64570         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64571         * modules/uniname/uniname-tests: Likewise.
64572         * modules/uninorm/canonical-decomposition-tests: Likewise.
64573         * modules/uninorm/compat-decomposition-tests: Likewise.
64574         * modules/uninorm/composition-tests: Likewise.
64575         * modules/uninorm/decomposing-form-tests: Likewise.
64576         * modules/uninorm/decomposition-tests: Likewise.
64577         * modules/uninorm/filter-tests: Likewise.
64578         * modules/uninorm/nfc-tests: Likewise.
64579         * modules/uninorm/nfd-tests: Likewise.
64580         * modules/uninorm/nfkc-tests: Likewise.
64581         * modules/uninorm/nfkd-tests: Likewise.
64582         * modules/uninorm/u8-normcmp-tests: Likewise.
64583         * modules/uninorm/u8-normcoll-tests: Likewise.
64584         * modules/uninorm/u16-normcmp-tests: Likewise.
64585         * modules/uninorm/u16-normcoll-tests: Likewise.
64586         * modules/uninorm/u32-normcmp-tests: Likewise.
64587         * modules/uninorm/u32-normcoll-tests: Likewise.
64588         * modules/unistdio/u8-asnprintf-tests: Likewise.
64589         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64590         * modules/unistdio/u8-vasprintf-tests: Likewise.
64591         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64592         * modules/unistdio/u8-vsprintf-tests: Likewise.
64593         * modules/unistdio/u16-asnprintf-tests: Likewise.
64594         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64595         * modules/unistdio/u16-vasprintf-tests: Likewise.
64596         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64597         * modules/unistdio/u16-vsprintf-tests: Likewise.
64598         * modules/unistdio/u32-asnprintf-tests: Likewise.
64599         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64600         * modules/unistdio/u32-vasprintf-tests: Likewise.
64601         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64602         * modules/unistdio/u32-vsprintf-tests: Likewise.
64603         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64604         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64605         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64606         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64607         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64608         * modules/unistr/u8-check-tests: Likewise.
64609         * modules/unistr/u8-chr-tests: Likewise.
64610         * modules/unistr/u8-cmp-tests: Likewise.
64611         * modules/unistr/u8-cmp2-tests: Likewise.
64612         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64613         * modules/unistr/u8-cpy-tests: Likewise.
64614         * modules/unistr/u8-mblen-tests: Likewise.
64615         * modules/unistr/u8-mbsnlen-tests: Likewise.
64616         * modules/unistr/u8-mbtouc-tests: Likewise.
64617         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64618         * modules/unistr/u8-mbtoucr-tests: Likewise.
64619         * modules/unistr/u8-move-tests: Likewise.
64620         * modules/unistr/u8-next-tests: Likewise.
64621         * modules/unistr/u8-prev-tests: Likewise.
64622         * modules/unistr/u8-set-tests: Likewise.
64623         * modules/unistr/u8-stpcpy-tests: Likewise.
64624         * modules/unistr/u8-stpncpy-tests: Likewise.
64625         * modules/unistr/u8-strcat-tests: Likewise.
64626         * modules/unistr/u8-strcmp-tests: Likewise.
64627         * modules/unistr/u8-strcoll-tests: Likewise.
64628         * modules/unistr/u8-strcpy-tests: Likewise.
64629         * modules/unistr/u8-strdup-tests: Likewise.
64630         * modules/unistr/u8-strlen-tests: Likewise.
64631         * modules/unistr/u8-strmblen-tests: Likewise.
64632         * modules/unistr/u8-strmbtouc-tests: Likewise.
64633         * modules/unistr/u8-strncat-tests: Likewise.
64634         * modules/unistr/u8-strncmp-tests: Likewise.
64635         * modules/unistr/u8-strncpy-tests: Likewise.
64636         * modules/unistr/u8-strnlen-tests: Likewise.
64637         * modules/unistr/u8-to-u16-tests: Likewise.
64638         * modules/unistr/u8-to-u32-tests: Likewise.
64639         * modules/unistr/u8-uctomb-tests: Likewise.
64640         * modules/unistr/u16-check-tests: Likewise.
64641         * modules/unistr/u16-chr-tests: Likewise.
64642         * modules/unistr/u16-cmp-tests: Likewise.
64643         * modules/unistr/u16-cmp2-tests: Likewise.
64644         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64645         * modules/unistr/u16-cpy-tests: Likewise.
64646         * modules/unistr/u16-mblen-tests: Likewise.
64647         * modules/unistr/u16-mbsnlen-tests: Likewise.
64648         * modules/unistr/u16-mbtouc-tests: Likewise.
64649         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64650         * modules/unistr/u16-mbtoucr-tests: Likewise.
64651         * modules/unistr/u16-move-tests: Likewise.
64652         * modules/unistr/u16-next-tests: Likewise.
64653         * modules/unistr/u16-prev-tests: Likewise.
64654         * modules/unistr/u16-set-tests: Likewise.
64655         * modules/unistr/u16-stpcpy-tests: Likewise.
64656         * modules/unistr/u16-stpncpy-tests: Likewise.
64657         * modules/unistr/u16-strcat-tests: Likewise.
64658         * modules/unistr/u16-strcmp-tests: Likewise.
64659         * modules/unistr/u16-strcoll-tests: Likewise.
64660         * modules/unistr/u16-strcpy-tests: Likewise.
64661         * modules/unistr/u16-strdup-tests: Likewise.
64662         * modules/unistr/u16-strlen-tests: Likewise.
64663         * modules/unistr/u16-strmblen-tests: Likewise.
64664         * modules/unistr/u16-strmbtouc-tests: Likewise.
64665         * modules/unistr/u16-strncat-tests: Likewise.
64666         * modules/unistr/u16-strncmp-tests: Likewise.
64667         * modules/unistr/u16-strncpy-tests: Likewise.
64668         * modules/unistr/u16-strnlen-tests: Likewise.
64669         * modules/unistr/u16-to-u32-tests: Likewise.
64670         * modules/unistr/u16-to-u8-tests: Likewise.
64671         * modules/unistr/u16-uctomb-tests: Likewise.
64672         * modules/unistr/u32-check-tests: Likewise.
64673         * modules/unistr/u32-chr-tests: Likewise.
64674         * modules/unistr/u32-cmp-tests: Likewise.
64675         * modules/unistr/u32-cmp2-tests: Likewise.
64676         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64677         * modules/unistr/u32-cpy-tests: Likewise.
64678         * modules/unistr/u32-mblen-tests: Likewise.
64679         * modules/unistr/u32-mbsnlen-tests: Likewise.
64680         * modules/unistr/u32-mbtouc-tests: Likewise.
64681         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64682         * modules/unistr/u32-mbtoucr-tests: Likewise.
64683         * modules/unistr/u32-move-tests: Likewise.
64684         * modules/unistr/u32-next-tests: Likewise.
64685         * modules/unistr/u32-prev-tests: Likewise.
64686         * modules/unistr/u32-set-tests: Likewise.
64687         * modules/unistr/u32-stpcpy-tests: Likewise.
64688         * modules/unistr/u32-stpncpy-tests: Likewise.
64689         * modules/unistr/u32-strcat-tests: Likewise.
64690         * modules/unistr/u32-strcmp-tests: Likewise.
64691         * modules/unistr/u32-strcoll-tests: Likewise.
64692         * modules/unistr/u32-strcpy-tests: Likewise.
64693         * modules/unistr/u32-strdup-tests: Likewise.
64694         * modules/unistr/u32-strlen-tests: Likewise.
64695         * modules/unistr/u32-strmblen-tests: Likewise.
64696         * modules/unistr/u32-strmbtouc-tests: Likewise.
64697         * modules/unistr/u32-strncat-tests: Likewise.
64698         * modules/unistr/u32-strncmp-tests: Likewise.
64699         * modules/unistr/u32-strncpy-tests: Likewise.
64700         * modules/unistr/u32-strnlen-tests: Likewise.
64701         * modules/unistr/u32-to-u16-tests: Likewise.
64702         * modules/unistr/u32-to-u8-tests: Likewise.
64703         * modules/unistr/u32-uctomb-tests: Likewise.
64704         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64705         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64706         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64707         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64708         * modules/uniwidth/u8-strwidth-tests: Likewise.
64709         * modules/uniwidth/u8-width-tests: Likewise.
64710         * modules/uniwidth/u16-strwidth-tests: Likewise.
64711         * modules/uniwidth/u16-width-tests: Likewise.
64712         * modules/uniwidth/u32-strwidth-tests: Likewise.
64713         * modules/uniwidth/u32-width-tests: Likewise.
64714         * modules/uniwidth/width-tests: Likewise.
64716 2010-05-18  Richard Jones  <rjones@redhat.com>
64718         doc: users.txt: list hivex
64719         * users.txt: Add hivex.
64721 2010-05-18  Richard Jones  <rjones@redhat.com>
64723         doc: users.txt: list febootstrap
64724         * users.txt: Add febootstrap.
64726 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64728         bootstrap: fix an error when gnulib is not used as a git submodule
64729         * build-aux/bootstrap (gnulib_path): If its length is zero then
64730         assign "gnulib" to it.
64731         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64733 2010-05-16  Bruno Haible  <bruno@clisp.org>
64735         Avoid autoconf warnings about AM_ICONV.
64736         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64737         2.64.
64739 2010-05-16  Bruno Haible  <bruno@clisp.org>
64741         absolute-header: Make the macro usable in more situations.
64742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64743         from gl_ABSOLUTE_HEADER.
64744         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64746 2010-05-16  James Youngman  <jay@gnu.org>
64748         doc: update users.txt
64749         * users.txt: Add CSSC.
64751 2010-05-16  Jim Meyering  <meyering@redhat.com>
64753         init.sh: fix an error in the previous change; add more comments
64754         * tests/init.sh: Compare exit code in loop against 9, not 2.
64755         Patch by Bruno Haible.
64756         Make the two tests more similar by adding an empty "then" clause.
64757         Add comments.
64759         init.sh: avoid unnecessary shell re-exec
64760         * tests/init.sh: Improve the re-exec-required check to first test the
64761         current shell.  If it passes the test, do not search for a shell that
64762         does pass, and do not re-exec.  This test is particularly contorted to
64763         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64764         of $(...) evokes a syntax error and causes immediate shell exit with
64765         status 2.  Bruno Haible reported that the re-exec made it impossible
64766         to single-step through any init.sh-using script.
64768 2010-05-16  Bruno Haible  <bruno@clisp.org>
64770         Fix collision between gnulib's and libintl's printf replacements.
64771         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64772         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64773         (printf): When using GNU C, map the __printf__ function to rpl_printf
64774         via __asm__. When not using GNU C, define rpl_printf instead of
64775         __printf__.
64776         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64777         commit.
64778         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64779         commit.
64780         * m4/asm-underscore.m4: New file.
64781         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64782         * modules/stdio (Files): Add m4/asm-underscore.m4.
64783         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64784         Reported by Ben Pfaff.
64786 2010-05-16  Bruno Haible  <bruno@clisp.org>
64788         verify: Avoid skipping the test on openSUSE 11.0.
64789         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64791 2010-05-13  Bruno Haible  <bruno@clisp.org>
64793         Avoid useless warnings from G++.
64794         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64795         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64796         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64798 2010-05-11  Jim Meyering  <meyering@redhat.com>
64800         maint.mk: tweak preceding change
64801         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64802         regexps tighter by anchoring at EOL, and make the new group "shy"
64803         for slightly decreased overhead.
64805 2010-05-11  Eric Blake  <eblake@redhat.com>
64807         maint.mk: gnulib doesn't guarantee NSIG
64808         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64810 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64812         test-pwrite.c: Remove unused variable declaration.
64813         * tests/test-pwrite.c (main): Remove read_buf declaration.
64815         Remove useless test-pwrite.sh file.
64816         * tests/test-pwrite.sh: Delete file.
64817         * modules/pwrite-tests: Remove references.
64818         Reported by Bruno Haible.
64820 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64822         init.sh: fix a typo
64823         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64825 2010-05-10  Jim Meyering  <meyering@redhat.com>
64827         maint.mk: avoid using a temporary file in the always-defined-macros check
64828         * top/maint.mk (.re-defmac): Remove rule.
64829         (gl_trap_): Remove definition.
64830         (sc_prohibit_always-defined_macros): Rewrite not to create and
64831         depend on a temporary file.  Instead, depend on GNU grep's ability
64832         to read a list of regular expressions from stdin when given "-f -".
64834 2010-05-09  Bruno Haible  <bruno@clisp.org>
64836         Update to GNU gettext 0.18, part 1.
64837         * m4/gettext.m4: Update to GNU gettext 0.18.
64838         * m4/intl.m4: Likewise.
64839         * m4/po.m4: Likewise.
64840         * modules/gettext (Files): Add m4/fcntl-o.m4.
64841         (configure.ac): Require gettext infrastructure from version 0.18.
64843 2010-05-09  Jim Meyering  <meyering@redhat.com>
64845         init.sh: enable MALLOC_PERTURB_
64846         * tests/init.sh: Enable glibc's malloc-perturbing option.
64848         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64849         With my recent change in init.sh from the two-line form:
64850             -#   : ${srcdir=.}
64851             -#   . "$srcdir/init.sh"; path_prepend_ .
64852             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64853         I noticed that using the one-line form would cause this test
64854         to fail with a false-positive, or to stop working altogether,
64855         depending on whether help-version changed or all the tests did.
64856         * top/maint.mk (_hv_regex): Remove this definition.
64857         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64858         (_hv_regex_strong): Use a stronger regex to check for conformance.
64859         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64860         Give a separate diagnostic for lack of conforming use.
64862         maint.mk: prohibit definition of symbols defined by gnulib
64863         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64864         definition of symbols defined by gnulib.
64866 2010-05-09  Bruno Haible  <bruno@clisp.org>
64868         acl: Avoid test failure on Cygwin-hosted mingw.
64869         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64871 2010-05-09  Bruno Haible  <bruno@clisp.org>
64873         error: Use system's fcntl function.
64874         * lib/error.c (fcntl): Undefine.
64876 2010-05-09  Jim Meyering  <meyering@redhat.com>
64878         verify: adjust formatting to be more consistent
64879         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64880         argument-list '('s, and after one comma.
64882 2010-05-09  Bruno Haible  <bruno@clisp.org>
64884         error: More reliable output on mingw.
64885         * lib/error.c: Include <windows.h>.
64886         (is_open): New function.
64887         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64888         defined.
64890 2010-05-09  Bruno Haible  <bruno@clisp.org>
64892         vasnprintf: Fix syntax errors in libintl build on mingw.
64893         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64894         pad_ourselves and prec_ourselves after use.
64896 2010-05-08  Bruno Haible  <bruno@clisp.org>
64898         * lib/config.charset: Update comments for Cygwin 1.7.
64899         * lib/localcharset.c: Likewise.
64901 2010-05-07  Jim Meyering  <meyering@redhat.com>
64903         init.sh: improve comments
64904         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64905         . "${srcdir=.}/init.sh"; path_prepend_ .
64906         Add a note about path_prepend_ and the alternative of using
64907         TESTS_ENVIRONMENT.
64909 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64911         exclude: Unescape hashed patterns in wildcard mode.
64912         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64913         to the hash list.
64914         * tests/test-exclude8.sh: New test case.
64915         * modules/exclude-tests: Add new test.
64917 2010-05-05  Eric Blake  <eblake@redhat.com>
64919         verify: automate tests
64920         * modules/verify-tests: New module.
64921         * tests/test-verify.sh: New file.
64922         * tests/test-verify.c: Guard each negative test with a unique id.
64923         Also avoid warning about unused left hand of comma expressions.
64925 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64927         Further improvements to verify.h, suggested by Eric Blake.
64928         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64929         the GL_* versions, to avoid collision with OpenGL.
64930         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64931         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64932         than testing merely whether it's defined.
64934         Modify verify.h to pacify gcc -Wredundant_decls.
64935         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64936         These use the prefix "GL_" since they're likely to be useful elsewhere.
64937         We may need to break them out into a different .h file.
64938         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64939         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64940         of verify_function__.
64942 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64944         Tests for module pwrite.
64945         * modules/pwrite-tests: New file.
64946         * tests/test-pwrite.sh: New file.
64947         * tests/test-pwrite.c: New file.
64949         New module pwrite.
64950         * lib/unistd.in.h (pwrite): New declaration.
64951         * lib/pwrite.c: New file, from glibc with modifications.
64952         * m4/pwrite.m4: New file.
64953         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64954         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64955         REPLACE_PWRITE.
64956         * modules/pwrite: New file.
64957         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64958         REPLACE_PWRITE.
64959         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64960         * doc/posix-functions/pwrite.texi: Mention the new module.
64962 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64964         pread: Update documentation.
64965         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64967 2010-05-04  Eric Blake  <eblake@redhat.com>
64969         docs: update cygwin progress
64970         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64971         this bug.
64972         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64973         Added in cygwin 1.7.2.
64974         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64975         Likewise.
64976         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64977         Likewise.
64978         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64979         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64980         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64981         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64982         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64983         Mention nproc module.
64984         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64985         bug in cygwin 1.7.5 addition.
64986         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64987         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64988         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64989         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64990         1.7.5.
64991         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64992         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64993         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64994         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64995         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64996         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64997         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64998         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64999         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65000         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65001         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65002         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65003         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65004         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65005         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65006         Likewise.
65007         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65008         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65009         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65010         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65011         Likewise.
65012         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65013         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65014         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65015         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65016         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65017         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65018         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65019         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65020         Likewise.
65021         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65022         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65023         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65024         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65025         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65026         Likewise.
65027         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65028         Likewise.
65029         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65030         Likewise.
65031         * doc/glibc-functions/xdrrec_endofrecord.texi
65032         (xdrrec_endofrecord): Likewise.
65033         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65034         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65035         Likewise.
65036         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65037         Likewise.
65039 2010-05-04  Jim Meyering  <meyering@redhat.com>
65041         gendocs.sh: make its "-s FILE" option more useful
65042         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65043         $PACKAGE to reflect the probably-different basename of "FILE".
65045 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65047         bootstrap: don't ignore download_po_files failure
65048         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65049         failure.
65051 2010-05-03  Jim Meyering  <meyering@redhat.com>
65053         maint.mk: allow to pass options to gendocs.sh
65054         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65055         (gendocs_options_): New overridable variable.
65057         gnu-web-doc-update: don't ignore configure or build failure
65058         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65060         announce-gen: backslash-escape '@'s in --help output
65061         * build-aux/announce-gen: Fix syntax errors.
65063         maint.mk, announce-gen: allow project-specific announcement mail headers
65064         * top/maint.mk (translation_project_): Define default.
65065         (announcement_Cc_, announcement_mail_headers_): Likewise.
65066         (announcement): Invoke announce-gen with new --mail-headers option.
65067         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65069         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65070         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65071         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65072         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65073         line in the "err2" output file when running "make check" in verbose
65074         mode (i.e., with set -x enabled).
65076 2010-05-03  Bruno Haible  <bruno@clisp.org>
65078         wctob: Fix for weird platforms.
65079         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65080         argument value.
65082 2010-05-03  Jim Meyering  <meyering@redhat.com>
65084         maint.mk: prohibit unwarranted use of <strings.h>
65085         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65086         strings.h in a file that does not also use strcasecmp, strncasecmp,
65087         ffs or ffsll.
65089         maint.mk: remove obsolete comments
65090         * top/maint.mk: Remove stale, commented-out rules.
65092 2010-05-02  Bruno Haible  <bruno@clisp.org>
65094         wcwidth: Declare also when it's aliased.
65095         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65096         macro.
65098 2010-05-02  Bruno Haible  <bruno@clisp.org>
65100         Fix regression from 2010-04-25.
65101         * gnulib-tool (func_modules_transitive_closure): Check the status of
65102         all modules, not only of the tests that are of the form foo-tests where
65103         foo is a module.
65105 2010-05-02  Bruno Haible  <bruno@clisp.org>
65107         wctob: Work around nasty Cygwin 1.7.2 bug.
65108         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65109         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65111 2010-05-01  Bruno Haible  <bruno@clisp.org>
65113         fpurge: Sharper test.
65114         * tests/test-fpurge.c (main): Add one more ftell check.
65115         * modules/fpurge-tests (Depends-on): Add ftell.
65116         Suggested by Eric Blake.
65118 2010-05-01  Bruno Haible  <bruno@clisp.org>
65120         ftello: Another test.
65121         * tests/test-ftello3.c: New file.
65122         * modules/ftello-tests (Files): Add it.
65123         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65124         MOSTLYCLEANFILES.
65126         ftell: Another test.
65127         * tests/test-ftell3.c: New file.
65128         * modules/ftell-tests (Files): Add it.
65129         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65130         MOSTLYCLEANFILES.
65132 2010-05-01  Bruno Haible  <bruno@clisp.org>
65134         ftell, ftello: Work around Solaris bug.
65135         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65136         * lib/ftello.c: Include stdio-impl.h.
65137         (ftello): On Solaris, when _IOWRT is set, compute the result without
65138         looking at _IOREAD.
65139         * modules/ftello (Files): Add lib/stdio-impl.h.
65140         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65141         * doc/posix-functions/ftello.texi: Likewise.
65142         Reported by Eric Blake.
65144 2010-05-01  Bruno Haible  <bruno@clisp.org>
65146         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65147         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65148         the _IOWRT flag is also set.
65150 2010-05-01  Bruno Haible  <bruno@clisp.org>
65152         Fix doc about a HP-UX stdio bug.
65153         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65154         * doc/posix-functions/ftello.texi: Likewise.
65156 2010-05-01  Bruno Haible  <bruno@clisp.org>
65158         lseek test: Fix failure on Solaris.
65159         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65160         output.
65162 2010-04-30  Jim Meyering  <meyering@redhat.com>
65164         bootstrap: don't ignore failure to generate po*/Makevars
65165         * build-aux/bootstrap (with_gettext): Don't ignore failure
65166         to create po/Makevars or runtime-po/Makevars.
65168 2010-04-29  Eric Blake  <eblake@redhat.com>
65170         headers: relax license to LGPLv2+
65171         * modules/fcntl-h (License): Relax license.
65172         * modules/getopt-posix (License): Likewise.
65173         * modules/locale (License): Likewise.
65174         * modules/math (License): Likewise.
65175         * modules/pty (License): Likewise.
65176         * modules/sched (License): Likewise.
65177         * modules/search (License): Likewise.
65178         * modules/spawn (License): Likewise.
65179         * modules/stdarg (License): Likewise.
65180         * modules/sysexits (License): Likewise.
65182 2010-04-29  Jim Meyering  <meyering@redhat.com>
65184         inttypes: relax license to LGPLv2+
65185         * modules/inttypes (License): Relax license.
65187 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65189         * top/maint.mk (indent): Run twice to produce idempotent results.
65191 2010-04-28  Bruno Haible  <bruno@clisp.org>
65193         getdate: Generate getdate.c in the source directory.
65194         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65195         MOSTLYCLEANFILES.
65196         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65198 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65200         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65201         is not declared as a const *; avoid warnings in that case.
65203 2010-04-28  Eric Blake  <eblake@redhat.com>
65205         canonicalize-lgpl: avoid compiler warning
65206         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65207         declaration' / 'extraneous semicolon' warning with some compilers.
65208         Reported by Andreas Gruenbacher.
65210 2010-04-28  Jim Meyering  <meyering@redhat.com>
65212         init.sh: ensure a more reliable exit status when exiting via trap
65213         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65214         Inspired by patches from Dmitry V. Levin.
65215         Also trap on signal 3 (SIGQUIT).
65217 2010-04-27  Bruno Haible  <bruno@clisp.org>
65219         Update doc about utimes().
65220         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65221         'utimens' module.
65222         Reported by Andreas Gruenbacher <agruen@suse.de>.
65224 2010-04-27  Eric Blake  <eblake@redhat.com>
65226         full-read, full-write: relax license
65227         * modules/full-read (License): Drop to LGPLv2+.
65228         * modules/full-write (License): Likewise.
65229         * modules/safe-read (License): Likewise.
65230         * modules/safe-write (License): Likewise.
65232         pthread: mention library for linking
65233         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65235 2010-04-27  Jim Meyering  <meyering@redhat.com>
65237         maint.mk: fix a bug introduced in last change
65238         * top/maint.mk (gl_assured_headers_): Now that all names are on
65239         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65240         is not anchored to end of word, it should be adequate.
65242         maint.mk: avoid side-effect in latest syntax-check
65243         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65244         to run commands via $(shell...), and hence to incur cost only when
65245         the new rule is actually run.
65247         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65248         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65249         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65250         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65251         (gl_assured_headers_, az_, AZ_): Define.
65252         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65254 2010-04-26  Jim Meyering  <jim@meyering.net>
65255             Bruno Haible  <bruno@clisp.org>
65257         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65258         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65259         Prompted by an exchange with Gilles Espinasse.
65261 2010-04-26  Jim Meyering  <meyering@redhat.com>
65263         git-version-gen: aesthetic tweak
65264         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65265         so that the command remains on a single line.
65267 2010-04-26  Eric Blake  <eblake@redhat.com>
65269         git-version-gen: allow use on EBCDIC hosts
65270         * build-aux/git-version-gen (dirty): Use literal rather than tying
65271         ourselves to ascii.
65272         Reported by Steve Goetze.
65274 2010-04-25  Bruno Haible  <bruno@clisp.org>
65276         netdb: Add support for GNULIB_POSIXCHECK.
65277         * lib/netdb.in.h: Include warn-on-use.h.
65278         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65279         functions are used when GNULIB_POSIXCHECK is defined and the
65280         getaddrinfo module is not in use.
65281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65282         freeaddrinfo, gai_strerror, getnameinfo are declared.
65283         * modules/netdb (Depends-on): Add warn-on-use.
65284         (Makefile.am): Include warn-on-use.h in netdb.h.
65286 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65288         build: avoid "make check" failure without .git/ directory
65289         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65290         there is no .git/ directory.
65292 2010-04-25  Bruno Haible  <bruno@clisp.org>
65294         ptsname: Fix misuse of ttyname_r.
65295         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65296         of errno.
65298 2010-04-25  Bruno Haible  <bruno@clisp.org>
65300         ttyname_r: Make it work on Solaris 10.
65301         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65302         if the system function has the POSIX declaration. Test whether the
65303         function fails if the buffer is less than 128 bytes large.
65304         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65305         system's ttyname_r function. Provide a reasonably large buffer.
65306         * modules/ttyname_r (Depends-on): Add extensions.
65307         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65309 2010-04-25  Bruno Haible  <bruno@clisp.org>
65311         Use the 'extensions' module for some more functions on Solaris.
65312         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65313         module.
65314         * doc/posix-functions/ctime_r.texi: Likewise.
65315         * doc/posix-functions/getgrgid_r.texi: Likewise.
65316         * doc/posix-functions/getgrnam_r.texi: Likewise.
65317         * doc/posix-functions/getpwnam_r.texi: Likewise.
65318         * doc/posix-functions/getpwuid_r.texi: Likewise.
65319         * doc/posix-functions/readdir_r.texi: Likewise.
65320         * doc/posix-functions/sigwait.texi: Likewise.
65321         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65322         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65324 2010-04-25  Bruno Haible  <bruno@clisp.org>
65326         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65327         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65328         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65329         * lib/ttyname_r.c: Include <limits.h>.
65330         (ttyname_r): Define using the system's ttyname_r function, if it exists
65331         and not on Solaris.
65332         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65333         set.
65334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65335         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65336         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65337         Reported by Simon Josefsson.
65339 2010-04-25  Bruno Haible  <bruno@clisp.org>
65341         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65342         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65343         * doc/posix-functions/ctime_r.texi: Likewise.
65344         * doc/posix-functions/getgrgid_r.texi: Likewise.
65345         * doc/posix-functions/getgrnam_r.texi: Likewise.
65346         * doc/posix-functions/getlogin_r.texi: Likewise.
65347         * doc/posix-functions/getpwnam_r.texi: Likewise.
65348         * doc/posix-functions/getpwuid_r.texi: Likewise.
65349         * doc/posix-functions/readdir_r.texi: Likewise.
65350         * doc/posix-functions/sigwait.texi: Likewise.
65351         * doc/posix-functions/ttyname_r.texi: Likewise.
65352         Reported by Simon Josefsson.
65354 2010-04-25  Bruno Haible  <bruno@clisp.org>
65356         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65357         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65358         also to --create-testdir.
65359         (func_acceptable): Don't consider the status of *-tests modules here.
65360         (func_modules_transitive_closure): Consider it here, before including a
65361         test module.
65362         (func_import, func_create_testdir): Set inc_all_direct_tests,
65363         inc_all_indirect_tests.
65364         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65365         --create-testdir and --create-megatestdir.
65367 2010-04-25  Bruno Haible  <bruno@clisp.org>
65369         gnulib-tool: Add --without-*-tests options.
65370         * gnulib-tool (func_usage): Document the --without-*-tests options.
65371         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65372         excl_unportable_tests): New variables.
65373         Fail if they are specified with --import or --update.
65374         (func_acceptable): Respect the excl_*_tests variables.
65375         (func_import): Set the excl_*_tests variables to empty.
65377 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65378             Bruno Haible  <bruno@clisp.org>
65380         Work around a MacOS X 10.4 bug with openpty.
65381         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65382         * tests/test-openpty.c (main): Close the master side explicitly.
65384 2010-04-25  Bruno Haible  <bruno@clisp.org>
65386         strnlen: Fix a C++ test error on MacOS X and Solaris.
65387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65388         the function is not declared.
65389         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65390         Simon Josefsson.
65392 2010-04-24  Bruno Haible  <bruno@clisp.org>
65394         Avoid a gcc warning.
65395         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65396         of correct type for %08lx directive.
65397         Reported by Eric Blake.
65399 2010-04-24  Bruno Haible  <bruno@clisp.org>
65401         vasnprintf: Correct errno value in case of out-of-memory.
65402         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65403         or sprintf. Use the errno value from SNPRINTF or sprintf.
65404         Reported by Ian Beckwith <ianb@erislabs.net>.
65406 2010-04-24  Bruno Haible  <bruno@clisp.org>
65408         ansi-c++-opt: Find correct compiler when cross-compiling.
65409         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65410         AC_CHECK_PROGS.
65411         Reported by Simon Josefsson.
65413 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
65415         vc-list-files: Add support for subversion
65416         * build-aux/vc-list-files: Use "svn list" to generate the list of
65417         files controlled by subversion.
65419 2010-04-23  Jim Meyering  <meyering@redhat.com>
65421         vc-list-files tests: convert to use init.sh
65422         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
65423         path_prepend_.
65424         Use Exit, not exit.
65425         Use skip_ rather than open coding it.
65426         Remove trap set-up and compare definitions.
65427         * tests/test-vc-list-files-git.sh: Likewise.
65428         * modules/vc-list-files-tests (Files): Add tests/init.sh.
65430 2010-04-22  Simon Josefsson  <simon@josefsson.org>
65432         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
65433         backup files.
65435 2010-04-21  Simon Josefsson  <simon@josefsson.org>
65437         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65439 2010-04-20  Eric Blake  <eblake@redhat.com>
65441         tests: be robust to ignored SIGPIPE
65442         * tests/test-select-in.sh: Consume all output.
65443         * tests/test-lseek.sh: Check correct exit status, while avoiding
65444         EPIPE.
65446 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65447             Bruno Haible  <bruno@clisp.org>
65449         visibility: Don't use -fvisibility if it leads to a warning.
65450         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65451         yes, don't pretend that visibility works if it leads to a warning.
65452         Reported by Mike Gran <spk121@yahoo.com>.
65454 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65456         * build-aux/bootstrap: Use "git -h" for testing for supported options
65457         instead of "git --help".  The short-form option only shows a summary,
65458         and doesn't layout the full man page.  Grep for the full option name
65459         in the summary, too.
65461 2010-04-19  Bruno Haible  <bruno@clisp.org>
65463         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65465         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65466         mention of RELOCATABLE_STRIP.
65467         Reported by Sylvain Beucler <beuc@beuc.net>.
65469 2010-04-19  Bruno Haible  <bruno@clisp.org>
65471         * lib/diffseq.h: Fix typo in comment.
65472         Reported by Eric Blake.
65474 2010-04-19  Bruno Haible  <bruno@clisp.org>
65476         ioctl: Move autoconf macro to a .m4 file.
65477         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65478         * modules/ioctl (Files): Add it.
65479         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65480         Reported by Ian Beckwith <ianb@erislabs.net>.
65482 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65483             Bruno Haible  <bruno@clisp.org>
65485         diffseq: Accommodate use-case with abstract arrays.
65486         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65487         is not defined.
65488         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65489         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65491 2010-04-18  Bruno Haible  <bruno@clisp.org>
65493         * doc/posix-headers/stdbool.texi: More precise wording.
65495 2010-04-17  Jim Meyering  <meyering@redhat.com>
65497         maint.mk: use gnu-style indentation in an embedded perl script
65498         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65499         Rename variable: s/two/last_two_bytes/
65501 2010-04-16  Eric Blake  <eblake@redhat.com>
65503         test-stdbool: skip test that fails with Solaris CC
65504         * tests/test-stdbool.c (f): Skip test that causes compilation
65505         error under buggy C++ compiler.
65506         * lib/stdbool.in.h: Document the limitation.
65507         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65509         setenv: allow compilation with C++
65510         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65511         register keyword.
65513         stdint: allow test to pass with C++
65514         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65516         getopt: allow compilation with C++
65517         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65518         struct.
65519         * lib/getopt.c (_getopt_internal_r): Use correct type.
65520         Reported by Dagobert Michelson, via Joel E. Denny.
65522 2010-04-16  Bruno Haible  <bruno@clisp.org>
65524         Override netdb.h always.
65525         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65527         Reported by Ludovic Courtès <ludo@gnu.org>.
65529 2010-04-15  Bruno Haible  <bruno@clisp.org>
65531         openpty: Fix mistake from 2010-03-21.
65532         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65533         Reported by Simon Josefsson.
65535 2010-04-15  Eric Blake  <eblake@redhat.com>
65537         test-forkpty: fix expected signature
65538         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65539         Reported by Simon Josefsson.
65541 2010-04-15  Jim Meyering  <meyering@redhat.com>
65543         maint.mk: texinfo_suffix_re_: correct the default regexp
65544         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65546         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65547         make it configurable via texinfo_suffix_re_.
65549 2010-04-14  Eric Blake  <eblake@redhat.com>
65551         strtok_r: relax license to LGPLv2+
65552         * modules/strtok_r (License): Relax license.
65553         Reported by Matthias Bolte.
65555 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65557         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65558         version 1.4.4 by default instead of requiring the libgcrypt
65559         version used during build.  This makes it possible to use the
65560         application with older but still binary compatible libgcrypt
65561         versions.
65563 2010-04-13  Eric Blake  <eblake@redhat.com>
65565         getopt-gnu: match recent glibc fixes and posix ruling
65566         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65567         '+' handling, when requesting extensions.
65568         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65569         'W;' handling.
65570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65571         * doc/posix-functions/getopt.texi (getopt): Document this.
65572         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65573         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65574         Likewise.
65576         getopt: merge bug fixes from glibc
65577         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65578         diagnostics.  Honor '+:' correctly.  Reject ';'.
65580         getopt-posix: detect MacOS bug
65581         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65582         optind when missing a required argument.
65583         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65584         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65585         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65586         Likewise.
65588         getopt-posix: avoid spurious failure on Solaris
65589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65590         an indicator that setting optind=1 is sufficient for reset.
65592         getopt-posix: avoid spurious failure on FreeBSD
65593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65594         in POSIX mode, since the m4 test uses it.
65596         gnulib-tool: silence warning on BSD sh
65597         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65599 2010-04-13  Jim Meyering  <meyering@redhat.com>
65601         doc: users.txt: GNU patch now uses gnulib
65602         * users.txt: Add patch.
65604 2010-04-12  Jim Meyering  <meyering@redhat.com>
65606         maint.mk: generate more concise timing data for syntax-check rules
65607         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65608         " done" from each line that reports a syntax-check test duration.
65610 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65612         git-version-gen: use "git update-index..." rather than "git status"
65613         * build-aux/git-version-gen: Use git update-index --refresh, not
65614         "git status".  With some versions of git, "git status" would fail
65615         to update the index and result in an unwarranted "-dirty" suffix.
65617 2010-04-11  Jim Meyering  <meyering@redhat.com>
65619         openat: correct formatting (no semantic change)
65620         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65621         Suggested by Bruno Haible.
65623 2010-04-11  Bruno Haible  <bruno@clisp.org>
65625         Stricter declaration checking in testdirs.
65626         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65627         If for_tests is true, augment AM_CPPFLAGS to define
65628         GNULIB_STRICT_CHECKING.
65629         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65630         GNULIB_STRICT_CHECKING is defined, verify that the function is
65631         declared.
65633 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65634             Bruno Haible  <bruno@clisp.org>
65636         libunistring: Improve configure output.
65637         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65638         Don't say "consider installing GNU libunistring" when checking again
65639         with libiconv.
65641 2010-04-11  Bruno Haible  <bruno@clisp.org>
65643         libunistring: Correct value of $LTLIBUNISTRING.
65644         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65645         correct the value of $LTLIBUNISTRING.
65647 2010-04-11  Bruno Haible  <bruno@clisp.org>
65649         havelib: Add static libraries to LIBS in the right order.
65650         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65651         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65653 2010-04-11  Bruno Haible  <bruno@clisp.org>
65655         libunistring: Detect libunistring also when it depends on libiconv.
65656         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65657         the second AC_LIB_HAVE_LINKFLAGS invocation.
65659 2010-04-11  James Youngman  <jay@gnu.org>
65661         close-stream: declare local scalars to be "const"
65662         * lib/close-stream.c (close_stream): Make boolean variables const
65663         to document the fact that we set but do not change them.
65665 2010-04-11  Bruno Haible  <bruno@clisp.org>
65667         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65669 2010-04-11  Jim Meyering  <meyering@redhat.com>
65671         maint.mk: don't include dist-check.mk
65672         * top/maint.mk: Remove bogus include directive.
65674         maint.mk: improve empty-line-at-EOF check
65675         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65676         solution, rather than tail+Perl-based one.  The latter would read
65677         a few kilobytes from the end of each file, and did not handle empty
65678         files properly.
65680         maint.mk: print the elapsed time for each syntax-check rule
65681         * top/maint.mk (sc_m_rules_): Save start time in a file.
65682         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65683         (local-check): Interpose the .z rules
65685 2010-04-11  Jim Meyering  <meyering@redhat.com>
65687         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65688         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65689         empty file with one that ends in an empty line.
65691 2010-04-10  Bruno Haible  <bruno@clisp.org>
65693         mkdir: Make it work on mingw64.
65694         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65695         * lib/mkdir.c: Update comment.
65696         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65698 2010-04-10  Bruno Haible  <bruno@clisp.org>
65700         Don't override improved macro from newer autoconf.
65701         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65702         autoconf >= 2.62.
65703         Reported by Joel E. Denny <jdenny@clemson.edu>.
65705 2010-04-10  Jim Meyering  <meyering@redhat.com>
65707         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65708         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65710         maint.mk: correct a diagnostic
65711         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65712         in diagnostic; now use $prohibit.
65714 2010-04-10  Bruno Haible  <address@hidden>
65716         fchownat: Fix a C++ test error on Solaris 8.
65717         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65718         the function does not exist.
65720 2010-04-10  Bruno Haible  <bruno@clisp.org>
65722         vasnprintf: Add more tests.
65723         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65724         (test_function): Test converting an invalid wide string.
65726         vasnprintf: Correct handling of unconvertible wide string arguments.
65727         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65728         VASNPRINTF.
65729         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65730         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65731         smaller than the expected maximum need for the directive. Set errno to
65732         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65733         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65735         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65736         * modules/vasnprintf (Files): Add m4/printf.m4.
65737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65739 2010-04-10  Bruno Haible  <bruno@clisp.org>
65741         vasnprintf: Fix crash in %ls directive.
65742         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65743         string is passed as argument to %ls, with no precision and no width.
65744         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65746 2010-04-10  Bruno Haible  <bruno@clisp.org>
65748         vasnprintf: Fix multiple test failures on mingw.
65749         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65750         _snprintf, or snwprintf, not _snwprintf.
65752 2010-04-10  Bruno Haible  <bruno@clisp.org>
65754         write: Fix a C++ test error on mingw.
65755         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65757 2010-04-10  Bruno Haible  <bruno@clisp.org>
65759         vasnprintf test: Reduce code duplication.
65760         * tests/test-vasnprintf.c (test_function): New function, extracted from
65761         test_vasnprintf.
65762         (test_vasnprintf, test_asnprintf): Invoke it.
65764 2010-04-10  Bruno Haible  <bruno@clisp.org>
65766         strnlen: Fix warning in C++ mode on MacOS X.
65767         * lib/string.in.h (strnlen): Use the modern idiom.
65768         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65769         defining strnlen as a macro already in <config.h>.
65770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65771         REPLACE_STRNLEN.
65772         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65775 2010-04-08  James Youngman  <jay@gnu.org>
65777         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65778         the example.
65780 2010-04-09  Jim Meyering  <meyering@redhat.com>
65782         maint.mk: print better diagnostic when there is no $(_hv_file)
65783         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65784         announce that when $(_hv_file) (aka help-version) does not exist.
65786         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65787         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65788         not try to interpret its random input bytes.  Jarno Rajahalme reported
65789         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65790         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65791         (mktempd_): Likewise, just in case.
65793         ftruncate: add two years to projected module removal date: 2012
65794         * m4/ftruncate.m4: Adjust comments.
65796         ftruncate: mark module as obsolete; even MinGW provides it, now
65797         * modules/ftruncate (Status): Obsolete.
65798         (Notice): Say that.
65799         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65800         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65802 2010-04-08  Bruno Haible  <bruno@clisp.org>
65804         Fix side effects from tests-related modules.
65805         * modules/dprintf-posix (Comment): New section.
65806         * modules/fprintf-posix (Comment): Likewise.
65807         * modules/obstack-printf-posix (Comment): Likewise.
65808         * modules/printf-posix (Comment): Likewise.
65809         * modules/snprintf-posix (Comment): Likewise.
65810         * modules/sprintf-posix (Comment): Likewise.
65811         * modules/vasnprintf-posix (Comment): Likewise.
65812         * modules/vasprintf-posix (Comment): Likewise.
65813         * modules/vdprintf-posix (Comment): Likewise.
65814         * modules/vfprintf-posix (Comment): Likewise.
65815         * modules/vprintf-posix (Comment): Likewise.
65816         * modules/vsnprintf-posix (Comment): Likewise.
65817         * modules/vsprintf-posix (Comment): Likewise.
65818         * modules/xprintf-posix (Comment): Likewise.
65819         * modules/xvasprintf-posix (Comment): Likewise.
65820         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65821         * modules/floorf-tests (Depends-on): Likewise.
65822         * modules/round-tests (Depends-on): Likewise.
65823         * modules/roundf-tests (Depends-on): Likewise.
65824         * modules/trunc-tests (Depends-on): Likewise.
65825         * modules/truncf-tests (Depends-on): Likewise.
65826         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65827         'fprintf-posix' module is not present.
65828         * tests/test-floorf2.c (check): Likewise.
65829         * tests/test-trunc2.c (check): Likewise.
65830         * tests/test-truncf2.c (check): Likewise.
65831         * tests/test-round2.c (equal): Likewise.
65832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65834 2010-04-07  Karl Berry  <karl@gnu.org>
65836         * config/srclist.txt,
65837         * config/srclistvars.sh,
65838         * config/srclist-update: doc fixes.
65840 2010-04-07  Jim Meyering  <meyering@redhat.com>
65842         maint.mk: add a PATH crosschecking syntax-check rule
65843         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65844         Useful if you use a test like the one in help-version (coreutils,
65845         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65846         printed by prog --version.
65848 2010-04-06  Bruno Haible  <bruno@clisp.org>
65850         Fix link error on mingw.
65851         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65852         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65854 2010-04-06  Bruno Haible  <bruno@clisp.org>
65856         Assume rmdir exists.
65857         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65859 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65861         doc: update users.txt
65862         * users.txt: Add gcal.
65864 2010-04-06  Jim Meyering  <meyering@redhat.com>
65866         init.sh: simply unset TMPDIR rather than risking env -i
65867         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65868         although it probably works fine on all Unix-based systems, some
65869         systems (Cygwin?) cannot tolerate a totally cleared environment.
65870         Suggestion from Eric Blake.
65872 2010-04-06  Jim Meyering  <meyering@redhat.com>
65874         init.sh: portability fix: use env's POSIX-specified -i option not -u
65875         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65876         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65878 2010-04-05  Bruno Haible  <bruno@clisp.org>
65880         btowc: Work around Cygwin 1.7.2 bug.
65881         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65882         does not map NUL to 0.
65883         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65885 2010-04-05  Bruno Haible  <bruno@clisp.org>
65887         Make the multithread modules work on Cygwin 1.7.2.
65888         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65889         imported symbols can be declared weak, so that it returns "no" on
65890         Cygwin 1.7.2.
65892 2010-04-05  Bruno Haible  <bruno@clisp.org>
65894         Use the module 'strncat'.
65895         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65897         Tests for module 'strncat'.
65898         * modules/strncat-tests: New file.
65899         * tests/test-strncat.c: New file.
65901         New module 'strncat'.
65902         * lib/string.in.h (strncat): New declaration.
65903         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65904         * m4/strncat.m4: New file, based on m4/memchr.m4.
65905         * modules/strncat: New file.
65906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65907         is declared.
65908         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65909         REPLACE_STRNCAT.
65910         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65911         REPLACE_STRNCAT.
65912         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65913         module.
65914         * tests/test-string-c++.cc: Check signature of strncat.
65916 2010-04-05  Jim Meyering  <meyering@redhat.com>
65918         xstrtoumax-tests: convert to use init.sh
65919         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65920         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
65925         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65926         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65927         Use Exit, not exit.
65928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65930 2010-04-05  Bruno Haible  <bruno@clisp.org>
65932         sys_socket: Avoid #define replacements in C++ mode.
65933         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65934         warning to the function if possible, rather than #defining the symbol
65935         to a dysfunctional alias.
65937 2010-04-05  Bruno Haible  <bruno@clisp.org>
65939         fseeko: Fix C++ test error on mingw.
65940         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65941         gl_FUNC_FSEEKO.
65942         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65943         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65945         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65947 2010-04-05  Bruno Haible  <bruno@clisp.org>
65949         duplocale: Improve test output.
65950         * tests/test-duplocale.c (main): Print reason for skipped test.
65952 2010-04-05  Bruno Haible  <bruno@clisp.org>
65954         Assume rmdir exists.
65955         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65956         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65958 2010-04-05  Bruno Haible  <bruno@clisp.org>
65960         Fix link error on Solaris 8 with cc.
65961         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65963 2010-04-05  Bruno Haible  <bruno@clisp.org>
65965         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65966         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65968 2010-04-05  Bruno Haible  <bruno@clisp.org>
65970         vasprintf: Update documentation.
65971         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65973 2010-04-05  Bruno Haible  <bruno@clisp.org>
65975         ptsname: Improve test.
65976         * tests/test-ptsname.c (main): Also try the various master names of BSD
65977         systems.
65979 2010-04-05  Bruno Haible  <bruno@clisp.org>
65981         memchr: Avoid a possible C++ test error.
65982         * lib/string.in.h (memchr): Provide declaration if function is missing.
65983         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65984         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65986         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65988 2010-04-05  Bruno Haible  <bruno@clisp.org>
65990         strtok_r: Improve idiom.
65991         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65992         AC_LIBOBJ is used.
65994 2010-04-05  Bruno Haible  <bruno@clisp.org>
65996         strdup: Improve idiom.
65997         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65998         AC_LIBOBJ is used.
65999         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66000         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66001         when AC_LIBOBJ is used.
66003 2010-04-05  Bruno Haible  <bruno@clisp.org>
66005         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66006         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66007         don't set REPLACE_MBSINIT to 1.
66008         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66009         don't set REPLACE_MBRTOWC to 1.
66010         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66011         exist, don't set REPLACE_MBSRTOWCS to 1.
66012         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66013         exist, don't set REPLACE_MBSNRTOWCS to 1.
66014         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66015         don't set REPLACE_WCRTOMB to 1.
66016         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66017         exist, don't set REPLACE_WCSRTOMBS to 1.
66018         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66019         exist, don't set REPLACE_WCSNRTOMBS to 1.
66021 2010-04-05  Bruno Haible  <bruno@clisp.org>
66023         ldexpl: Improve idiom.
66024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66025         make sure to set HAVE_DECL_LDEXPL to 0.
66027 2010-04-05  Jim Meyering  <meyering@redhat.com>
66029         xstrtol-tests: convert to use init.sh
66030         * modules/xstrtol-tests (Files): Add tests/init.sh.
66031         * tests/test-xstrtol.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         atexit-tests: convert to use init.sh
66036         * modules/atexit-tests (Files): Add tests/init.sh.
66037         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66038         Use Exit, not exit.
66039         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66041         init.sh: fix typo
66042         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66044         init.sh: make it easier for a test script to write to the tty, ...
66045         when using automake's parallel-tests mode.
66046         * tests/init.sh (stderr_fileno_): Define overridable variable.
66047         (warn_): New function, to use it.
66048         (fail_, skip_, framework_failure_): Use warn_.
66050 2010-04-04  Bruno Haible  <bruno@clisp.org>
66052         btowc: Avoid warning.
66053         * lib/btowc.c: Include <stdlib.h>.
66054         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66056 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66057             Bruno Haible  <bruno@clisp.org>
66059         wchar: Port to NetBSD 1.5.
66060         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66061         * lib/wctype.in.h (WEOF): Likewise.
66063 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66064             Bruno Haible  <bruno@clisp.org>
66066         Port extended stdio to NetBSD 1.5.
66067         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66068         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66069         older.
66071 2010-04-04  Bruno Haible  <bruno@clisp.org>
66073         string: Remove unused substitution.
66074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66075         HAVE_DECL_STRERROR.
66076         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66078 2010-04-04  Bruno Haible  <bruno@clisp.org>
66080         strtod: Avoid a possible C++ test error.
66081         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66082         set REPLACE_STRTOD.
66084 2010-04-04  Bruno Haible  <bruno@clisp.org>
66086         strerror: Update documentation.
66087         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66089 2010-04-04  Bruno Haible  <bruno@clisp.org>
66091         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66092         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66093         _GL_CXXALIAS_SYS_CAST.
66095 2010-04-04  Bruno Haible  <bruno@clisp.org>
66097         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66098         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66099         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66100         REPLACE_FREXPL to 1.
66101         * doc/posix-functions/frexpl.texi: Update documentation.
66103 2010-04-04  Bruno Haible  <bruno@clisp.org>
66105         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66106         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66108 2010-04-04  Bruno Haible  <bruno@clisp.org>
66110         Implement nanosleep for native Windows.
66111         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66113 2010-04-04  Bruno Haible  <bruno@clisp.org>
66115         math: Fix some C++ test errors on Solaris 8.
66116         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66118 2010-04-04  Bruno Haible  <bruno@clisp.org>
66120         math: Fix some C++ test errors on Cygwin.
66121         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66122         truncl): Provide declaration if the system does not have it.
66123         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66124         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66125         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66126         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66127         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66128         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66129         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66130         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66131         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66132         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66133         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66134         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66135         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66136         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66137         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66138         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66140         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66141         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66142         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66143         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66144         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66146 2010-04-04  Bruno Haible  <bruno@clisp.org>
66148         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66149         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66150         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66151         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66152         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66153         * m4/isinf.m4 (gl_ISINF): Likewise.
66154         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66156 2010-04-04  Bruno Haible  <bruno@clisp.org>
66158         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66159         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66161 2010-04-04  Bruno Haible  <bruno@clisp.org>
66163         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66164         * modules/tmpfile (configure.ac): Update.
66166         tmpfile: Fix C++ test error on mingw.
66167         * lib/stdio.in.h (tmpfile): New declaration.
66168         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66169         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66170         * modules/tmpfile (Depends-on): Add stdio.
66171         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66172         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66173         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66174         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66175         REPLACE_TMPFILE.
66176         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66178 2010-04-04  Bruno Haible  <bruno@clisp.org>
66180         ioctl: Fix C++ test error on mingw.
66181         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66182         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66183         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66185 2010-04-03  Bruno Haible  <bruno@clisp.org>
66187         wcwidth: Fix C++ test error on mingw.
66188         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66190         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66192 2010-04-03  Bruno Haible  <bruno@clisp.org>
66194         nanosleep: Fix C++ test error on mingw.
66195         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66196         * lib/time.in.h (nanosleep): Use modern idiom.
66197         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66198         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66199         REPLACE_NANOSLEEP to 1.
66200         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66201         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66203 2010-04-03  Bruno Haible  <bruno@clisp.org>
66205         strptime: Fix C++ test error on mingw.
66206         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66207         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66208         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66209         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66210         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66211         not REPLACE_STRPTIME.
66212         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66213         REPLACE_STRPTIME.
66215 2010-04-03  Bruno Haible  <bruno@clisp.org>
66217         timegm: Fix C++ test error on mingw.
66218         * lib/time.in.h (timegm): Use modern idiom.
66219         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66220         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66222         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66224 2010-04-03  Bruno Haible  <bruno@clisp.org>
66226         timegm: Assume declaration if function exists.
66227         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66228         if it exists. Don't clobber ac_cv_func_timegm.
66230 2010-04-03  Bruno Haible  <bruno@clisp.org>
66232         time_r: Fix C++ test error on mingw.
66233         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66234         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66235         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66236         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66237         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66239 2010-04-03  Bruno Haible  <bruno@clisp.org>
66241         time_r: Minor updates.
66242         * modules/time_r (Description): Mention the provided functions.
66243         * lib/time_r.c: Don't include <string.h>.
66244         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66245         * doc/posix-functions/localtime_r.texi: Likewise.
66247 2010-04-03  Bruno Haible  <bruno@clisp.org>
66249         time: Fix regression introduced on 2010-03-08.
66250         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66251         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66253 2010-04-03  Jim Meyering  <meyering@redhat.com>
66255         maint.mk: don't silently disable project-specific syntax-check rules
66256         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66257         that they need to convert their project-specific syntax-check rules
66258         to use the new _sc_search_regexp.
66260 2010-04-03  Bruno Haible  <bruno@clisp.org>
66262         fchdir: Fix regression introduced on 2010-03-08.
66263         * lib/unistd.in.h (fchdir): Fix declaration.
66264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66266         REPLACE_FCHDIR.
66267         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66268         REPLACE_FCHDIR.
66270 2010-04-03  Bruno Haible  <bruno@clisp.org>
66272         getpagesize: Fix C++ test error on mingw.
66273         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66274         system does not declare the function.
66275         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66276         declared.
66277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66278         HAVE_DECL_GETPAGESIZE.
66279         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66281 2010-04-03  Bruno Haible  <bruno@clisp.org>
66283         stdio: Make C++ tests work on mingw.
66284         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66285         does not declare the function.
66287 2010-04-03  Bruno Haible  <bruno@clisp.org>
66289         ftello: Fix C++ test error on mingw.
66290         * lib/stdio.in.h (ftello): Use modern idiom.
66291         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66292         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66293         is missing and that it needs to be replaced.
66294         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66296         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66298 2010-04-03  Bruno Haible  <bruno@clisp.org>
66300         fseeko: Fix C++ test error on mingw.
66301         * lib/stdio.in.h (fseeko): Use modern idiom.
66302         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66303         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66304         is missing and that it needs to be replaced.
66305         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66307         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66309 2010-04-03  Bruno Haible  <bruno@clisp.org>
66311         mkstemp: Fix C++ test error on mingw.
66312         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66314         function is missing and that it needs to be replaced.
66315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66316         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66318 2010-04-03  Bruno Haible  <bruno@clisp.org>
66320         stpncpy: Fix C++ test error on mingw.
66321         * lib/string.in.h (stpncpy): Use modern idiom.
66322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66323         function is missing and that it needs to be replaced.
66324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66325         REPLACE_STPNCPY.
66326         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66328 2010-04-03  Bruno Haible  <bruno@clisp.org>
66330         sys_stat: Fix C++ test error on mingw.
66331         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66332         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66334 2010-04-03  Bruno Haible  <bruno@clisp.org>
66336         pty: Update doc.
66337         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66339 2010-04-03  Bruno Haible  <bruno@clisp.org>
66341         unistd: Fix C++ test error on mingw.
66342         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66344 2010-04-03  Bruno Haible  <bruno@clisp.org>
66346         Update doc regarding mingw.
66347         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66348         * doc/glibc-functions/login_tty.texi: Likewise.
66349         * doc/glibc-functions/forkpty.texi: Likewise.
66351 2010-04-03  Bruno Haible  <bruno@clisp.org>
66353         stdlib: Avoid compilation failure of c-strtold on mingw.
66354         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66356 2010-04-03  Bruno Haible  <bruno@clisp.org>
66358         locale: Make C++ tests work on Cygwin and mingw.
66359         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66360         cannot provide the function.
66361         Reported by Simon Josefsson.
66363 2010-04-03  Bruno Haible  <bruno@clisp.org>
66365         localename: Port to MacOS X 10.6.
66366         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66367         memory layout of the locales in MacOS X 10.6 as well.
66368         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66370 2010-04-02  Bruno Haible  <bruno@clisp.org>
66372         gnulib-tool: Ensure that long-running tests are executed last.
66373         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66374         running tests after the one for the other tests.
66376 2010-04-02  Bruno Haible  <bruno@clisp.org>
66378         gnulib-tool: Ensure the tests in the main directory are executed first.
66379         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66380         start with the current directory.
66382 2010-04-02  Bruno Haible  <bruno@clisp.org>
66384         Tests for module 'havelib', moved here from GNU gettext.
66385         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66386         modifications.
66387         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66388         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66389         with modifications.
66390         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66391         modifications.
66392         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66393         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66394         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66395         with modifications.
66396         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66397         with modifications.
66398         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66399         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66400         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66401         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66402         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66403         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66404         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66405         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66406         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66407         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66408         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66409         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66410         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66411         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66412         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
66413         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
66414         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
66415         with modifications.
66416         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
66417         with modifications.
66418         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
66419         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
66420         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
66421         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
66422         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
66423         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
66424         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
66425         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
66426         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
66427         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66428         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
66429         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
66430         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
66431         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
66432         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
66433         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
66434         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
66435         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
66436         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
66437         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66438         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66439         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66440         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66441         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66442         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66443         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66444         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66445         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66446         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66447         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66448         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66449         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66450         * tests/havelib/rpathx/rpathx.c: New file, from
66451         gettext/autoconf-lib-link.
66452         * tests/havelib/rpathx/Makefile.am: New file, from
66453         gettext/autoconf-lib-link.
66454         * tests/havelib/rpathx/configure.ac: New file, from
66455         gettext/autoconf-lib-link with modifications.
66456         * tests/havelib/rpathy/rpathy.c: New file, from
66457         gettext/autoconf-lib-link.
66458         * tests/havelib/rpathy/Makefile.am: New file, from
66459         gettext/autoconf-lib-link.
66460         * tests/havelib/rpathy/configure.ac: New file, from
66461         gettext/autoconf-lib-link with modifications.
66462         * tests/havelib/rpathz/rpathz.c: New file, from
66463         gettext/autoconf-lib-link.
66464         * tests/havelib/rpathz/Makefile.am: New file, from
66465         gettext/autoconf-lib-link.
66466         * tests/havelib/rpathz/configure.ac: New file, from
66467         gettext/autoconf-lib-link with modifications.
66468         * tests/havelib/rpathlx/usex.c: New file, from
66469         gettext/autoconf-lib-link.
66470         * tests/havelib/rpathlx/Makefile.am: New file, from
66471         gettext/autoconf-lib-link.
66472         * tests/havelib/rpathlx/configure.ac: New file, from
66473         gettext/autoconf-lib-link with modifications.
66474         * tests/havelib/rpathly/usey.c: New file, from
66475         gettext/autoconf-lib-link.
66476         * tests/havelib/rpathly/Makefile.am: New file, from
66477         gettext/autoconf-lib-link.
66478         * tests/havelib/rpathly/configure.ac: New file, from
66479         gettext/autoconf-lib-link with modifications.
66480         * tests/havelib/rpathlz/usez.c: New file, from
66481         gettext/autoconf-lib-link.
66482         * tests/havelib/rpathlz/Makefile.am: New file, from
66483         gettext/autoconf-lib-link.
66484         * tests/havelib/rpathlz/configure.ac: New file, from
66485         gettext/autoconf-lib-link with modifications.
66486         * tests/havelib/rpathlyx/usey.c: New file, from
66487         gettext/autoconf-lib-link.
66488         * tests/havelib/rpathlyx/Makefile.am: New file, from
66489         gettext/autoconf-lib-link.
66490         * tests/havelib/rpathlyx/configure.ac: New file, from
66491         gettext/autoconf-lib-link with modifications.
66492         * tests/havelib/rpathlzyx/usez.c: New file, from
66493         gettext/autoconf-lib-link.
66494         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66495         gettext/autoconf-lib-link.
66496         * tests/havelib/rpathlzyx/configure.ac: New file, from
66497         gettext/autoconf-lib-link with modifications.
66498         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66499         with modifications.
66501 2010-04-02  Bruno Haible  <bruno@clisp.org>
66503         gnulib-tool: Create distributed built sources also for the tests.
66504         * gnulib-tool (func_create_testdir): Also generate distributed built
66505         sources in the tests directory.
66507 2010-04-02  Bruno Haible  <bruno@clisp.org>
66509         gnulib-tool: Obey user's environment variables.
66510         * gnulib-tool (func_create_testdir): When creating built sources,
66511         respect the environment variables for autoconf, automake, etc. given by
66512         the user.
66514 2010-04-02  Bruno Haible  <bruno@clisp.org>
66516         gnulib-tool: Provide the value of --m4-base to modules.
66517         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66518         of gl_m4_base.
66520 2010-04-02  Eric Blake  <eblake@redhat.com>
66522         maint.mk: fix some fallout
66523         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66524         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66526 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66528         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66529         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66530         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66531         (sc_cast_of_x_alloc_return_value): Likewise.
66532         (sc_cast_of_alloca_return_value): Likewise.
66533         (sc_space_tab): Likewise.
66534         (sc_prohibit_atoi_atof): Likewise.
66535         (sc_prohibit_magic_number_exit): Likewise.
66536         (sc_error_exit_success): Likewise.
66537         (sc_file_system): Likewise.
66538         (sc_prohibit_have_config_h): Likewise.
66539         (sc_require_config_h): Likewise.
66540         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66541         (sc_obsolete_symbols): Likewise.
66542         (sc_changelog): Likewise.
66543         (sc_program_name): Likewise.
66544         (sc_the_the): Likewise.
66545         (sc_trailing_blank): Likewise.
66546         (sc_two_space_separator_in_usage): Likewise.
66547         (sc_useless_cpp_parens): Likewise.
66548         (sc_GPL_version): Likewise.
66549         (sc_GFDL_version): Likewise.
66550         (sc_texinfo_acronym): Likewise.
66551         (sc_prohibit_cvs_keyword): Likewise.
66552         (sc_prohibit_stat_st_blocks): Likewise.
66553         (sc_prohibit_S_IS_definition): Likewise.
66554         (sc_redundant_const): Likewise.
66555         (sc_makefile_TAB_only_indentation): Likewise.
66556         (sc_m4_quote_check): Likewise.
66557         (sc_makefile_path_separator_check): Likewise.
66558         (sc_copyright_check): Likewise.
66559         (sc_Wundef_boolean): Likewise.
66560         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66562         maint.mk: match 0 or more whitespace-before-function-call '('
66563         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66564         that have zero or two-and-more spaces between the function name
66565         and the open parenthesis.
66566         (sc_error_message_warn_fatal): Likewise.
66567         (sc_error_message_uppercase): Likewise.
66568         (sc_error_message_period): Likewise.
66570 2010-03-31  Eric Blake  <eblake@redhat.com>
66572         maint.mk: check for [ as well as test
66573         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66574         Based on a libvirt report by Matthias Bolte.
66576         gnumakefile: don't squelch _version output
66577         * top/GNUmakefile (_version): Create one-shot dependency rather
66578         than using $(shell) when version must be regenerated.
66579         (_autoreconf): Run verbosely, by default.
66581         sys_time: avoid compiler warnings
66582         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66583         unconditional, fixing regression from 2010-03-29.
66584         Reported by Simon Josefsson.
66586 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66588         maint.mk: s/_header_without_use/_sc_header_without_use/
66589         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66590         (sc_prohibit_assert_without_use): Use the new name.
66591         (sc_prohibit_close_stream_without_use): Likewise.
66592         (sc_prohibit_getopt_without_use): Likewise.
66593         (sc_prohibit_quotearg_without_use): Likewise.
66594         (sc_prohibit_quote_without_use): Likewise.
66595         (sc_prohibit_long_options_without_use): Likewise.
66596         (sc_prohibit_inttostr_without_use): Likewise.
66597         (sc_prohibit_ignore_value_without_use): Likewise.
66598         (sc_prohibit_error_without_use): Likewise.
66599         (sc_prohibit_xalloc_without_use): Likewise.
66600         (sc_prohibit_hash_without_use): Likewise.
66601         (sc_prohibit_hash_pjw_without_use): Likewise.
66602         (sc_prohibit_safe_read_without_use): Likewise.
66603         (sc_prohibit_argmatch_without_use): Likewise.
66604         (sc_prohibit_canonicalize_without_use): Likewise.
66605         (sc_prohibit_root_dev_ino_without_use): Likewise.
66606         (sc_prohibit_openat_without_use): Likewise.
66607         (sc_prohibit_c_ctype_without_use): Likewise.
66608         (sc_prohibit_signal_without_use): Likewise.
66609         (sc_prohibit_intprops_without_use): Likewise.
66611 2010-03-30  Eric Blake  <eblake@redhat.com>
66613         maint: improve module indicators
66614         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66615         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66616         columns, and avoid extra macro expansion.
66618         fdopendir: work around FreeBSD bug
66619         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66620         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66621         * modules/dirent (Makefile.am): Substitute it.
66622         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66623         declaration.
66624         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66625         fix.
66626         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66628 2010-03-29  Bruno Haible  <bruno@clisp.org>
66630         Emit #pragma system_header after the inclusion guard, not before.
66631         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66632         guard that spans the entire file, not before. This enables an
66633         optimization in GCC's preprocessor.
66634         * lib/ctype.in.h: Likewise.
66635         * lib/dirent.in.h: Likewise.
66636         * lib/errno.in.h: Likewise.
66637         * lib/float.in.h: Likewise.
66638         * lib/getopt.in.h: Likewise.
66639         * lib/iconv.in.h: Likewise.
66640         * lib/langinfo.in.h: Likewise.
66641         * lib/locale.in.h: Likewise.
66642         * lib/math.in.h: Likewise.
66643         * lib/netdb.in.h: Likewise.
66644         * lib/netinet_in.in.h: Likewise.
66645         * lib/pty.in.h: Likewise.
66646         * lib/sched.in.h: Likewise.
66647         * lib/se-selinux.in.h: Likewise.
66648         * lib/search.in.h: Likewise.
66649         * lib/spawn.in.h: Likewise.
66650         * lib/stdarg.in.h: Likewise.
66651         * lib/stdint.in.h: Likewise.
66652         * lib/string.in.h: Likewise.
66653         * lib/strings.in.h: Likewise.
66654         * lib/sys_file.in.h: Likewise.
66655         * lib/sys_ioctl.in.h: Likewise.
66656         * lib/sys_time.in.h: Likewise.
66657         * lib/sys_times.in.h: Likewise.
66658         * lib/sys_utsname.in.h: Likewise.
66659         * lib/sys_wait.in.h: Likewise.
66660         * lib/sysexits.in.h: Likewise.
66661         * lib/wctype.in.h: Likewise.
66663 2010-03-28  James Youngman  <jay@gnu.org>
66665         save-cwd: don't leak a file descriptor when the caller execs.
66666         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66667         saved file descriptor.
66668         * modules/save-cwd (Depends-on): Depend on cloexec.
66670 2010-03-29  Bruno Haible  <bruno@clisp.org>
66672         Remove vestiges of fts-lgpl module.
66673         * lib/fts_.h: Assume GNULIB_FTS is 1.
66674         * lib/fts.c: Likewise.
66675         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66677 2010-03-28  Bruno Haible  <bruno@clisp.org>
66679         Fix definition of tests witness macro.
66680         * gnulib-tool (func_import): Fix definition of witness macro.
66682 2010-03-28  Bruno Haible  <bruno@clisp.org>
66684         Fix ioctl's protoype on glibc systems.
66685         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66686         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66687         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66688         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66689         signature. If not, arrange to replace the ioctl function.
66690         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66691         REPLACE_IOCTL.
66692         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66693         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66694         Reported by Ludovic Courtès <ludo@gnu.org>.
66696 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66698         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66699         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66700         made it so grep -r --include=GLOB* ... did not work.
66702 2010-03-26  Jim Meyering  <meyering@redhat.com>
66703             Eric Blake  <eblake@redhat.com>
66705         maint.mk: prohibit use of test's -o and -a operators
66706         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66708 2010-03-28  Bruno Haible  <bruno@clisp.org>
66710         Remove unused GNULIB_XYZ macro definitions.
66711         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66712         invocation.
66714 2010-03-28  Bruno Haible  <bruno@clisp.org>
66716         Mark privileged tests modules.
66717         * modules/idpriv-drop-tests (Status): New section.
66718         * modules/idpriv-droptemp-tests (Status): New section.
66720 2010-03-28  Bruno Haible  <bruno@clisp.org>
66722         Split C++ tests into separate tests modules.
66723         * modules/dirent-c++-tests: New file, extracted from
66724         modules/dirent-tests.
66725         * modules/dirent-tests: Depend on it.
66726         * modules/fcntl-h-c++-tests: New file, extracted from
66727         modules/fcntl-h-tests.
66728         * modules/fcntl-h-tests: Depend on it.
66729         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66730         * modules/glob-tests: Depend on it.
66731         * modules/iconv-h-c++-tests: New file, extracted from
66732         modules/iconv-h-tests.
66733         * modules/iconv-h-tests: Depend on it.
66734         * modules/langinfo-c++-tests: New file, extracted from
66735         modules/langinfo-tests.
66736         * modules/langinfo-tests: Depend on it.
66737         * modules/locale-c++-tests: New file, extracted from
66738         modules/locale-tests.
66739         * modules/locale-tests: Depend on it.
66740         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66741         * modules/math-tests: Depend on it.
66742         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66743         * modules/pty-tests: Depend on it.
66744         * modules/search-c++-tests: New file, extracted from
66745         modules/search-tests.
66746         * modules/search-tests: Depend on it.
66747         * modules/signal-c++-tests: New file, extracted from
66748         modules/signal-tests.
66749         * modules/signal-tests: Depend on it.
66750         * modules/spawn-c++-tests: New file, extracted from
66751         modules/spawn-tests.
66752         * modules/spawn-tests: Depend on it.
66753         * modules/stdio-c++-tests: New file, extracted from
66754         modules/stdio-tests.
66755         * modules/stdio-tests: Depend on it.
66756         * modules/stdlib-c++-tests: New file, extracted from
66757         modules/stdlib-tests.
66758         * modules/stdlib-tests: Depend on it.
66759         * modules/string-c++-tests: New file, extracted from
66760         modules/string-tests.
66761         * modules/string-tests: Depend on it.
66762         * modules/sys_ioctl-c++-tests: New file, extracted from
66763         modules/sys_ioctl-tests.
66764         * modules/sys_ioctl-tests: Depend on it.
66765         * modules/sys_select-c++-tests: New file, extracted from
66766         modules/sys_select-tests.
66767         * modules/sys_select-tests: Depend on it.
66768         * modules/sys_socket-c++-tests: New file, extracted from
66769         modules/sys_socket-tests.
66770         * modules/sys_socket-tests: Depend on it.
66771         * modules/sys_stat-c++-tests: New file, extracted from
66772         modules/sys_stat-tests.
66773         * modules/sys_stat-tests: Depend on it.
66774         * modules/sys_time-c++-tests: New file, extracted from
66775         modules/sys_time-tests.
66776         * modules/sys_time-tests: Depend on it.
66777         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66778         * modules/time-tests: Depend on it.
66779         * modules/unistd-c++-tests: New file, extracted from
66780         modules/unistd-tests.
66781         * modules/unistd-tests: Depend on it.
66782         * modules/wchar-c++-tests: New file, extracted from
66783         modules/wchar-tests.
66784         * modules/wchar-tests: Depend on it.
66785         * modules/wctype-c++-tests: New file, extracted from
66786         modules/wctype-tests.
66787         * modules/wctype-tests: Depend on it.
66788         Reported by Simon Josefsson.
66790 2010-03-28  Bruno Haible  <bruno@clisp.org>
66792         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66793         * gnulib-tool (func_exists_module): New function, extracted from
66794         func_verify_module.
66795         (func_verify_module): Use it.
66796         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66797         'foo' only if 'foo' exists.
66798         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66799         module.
66801 2010-03-28  Bruno Haible  <bruno@clisp.org>
66803         gnulib-tool: Add support for special categories of tests.
66804         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66805         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66806         (func_usage): Document them.
66807         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66808         inc_unportable_tests, inc_all_tests): New variables.
66809         (func_acceptable): Consider these variables.
66810         (func_modules_transitive_closure): Make it work when the 'Status' field
66811         consists of multiple words.
66812         (func_import): Store and restore the values of inc_cxx_tests,
66813         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66814         inc_all_tests in gnulib-comp.m4.
66815         (func_create_testdir): Set inc_all_tests to true.
66816         * doc/gnulib.texi (Extra tests modules): New section.
66817         Suggested by Jim Meyering.
66819 2010-03-28  Bruno Haible  <bruno@clisp.org>
66821         ansi-c++-opt: Allow turning off the C++ build by default.
66822         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66823         gl_CXX_CHOICE_DEFAULT_NO is defined.
66824         Requested by Eric Blake.
66826 2010-03-28  Bruno Haible  <bruno@clisp.org>
66828         unistd: Avoid #define replacements in C++ mode.
66829         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66830         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66831         setsockopt, shutdown, select): In C++, attach a warning to the function
66832         if possible, rather than #defining the symbol to a dysfunctional alias.
66833         Reported by John W. Eaton <jwe@gnu.org>.
66835 2010-03-28  Bruno Haible  <bruno@clisp.org>
66837         Fix link errors on mingw.
66838         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66839         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66840         $(LIBSOCKET).
66841         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66842         $(LIBSOCKET).
66844 2010-03-28  Bruno Haible  <bruno@clisp.org>
66845             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66847         lib-ignore: Determine different options for different compilers.
66848         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66849         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66850         Add comments.
66851         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66852         * NEWS: Mention the change.
66854 2010-03-27  Bruno Haible  <bruno@clisp.org>
66856         Remove unused GNULIB_XYZ macro definitions.
66857         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66858         * modules/fseek (configure.ac): Likewise.
66859         * modules/ioctl (configure.ac): Likewise.
66860         * modules/open (configure.ac): Likewise.
66861         * modules/stdlib-safer (configure.ac): Likewise.
66863 2010-03-27  Bruno Haible  <bruno@clisp.org>
66865         Add a remark about certain modules.
66866         * modules/malloc (Comment): New section.
66867         * modules/realloc (Comment): Likewise.
66868         * modules/sigpipe (Comment): Likewise.
66870 2010-03-27  Bruno Haible  <bruno@clisp.org>
66872         Resolve conflict between the two kinds of module indicators.
66873         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66874         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66875         * modules/canonicalize (configure.ac): Invoke
66876         gl_MODULE_INDICATOR_FOR_TESTS.
66877         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66878         GNULIB_XYZ.
66879         * tests/test-dirent-c++.cc: Likewise.
66880         * tests/test-dirent-safer.c: Likewise.
66881         * tests/test-dup2.c: Likewise.
66882         * tests/test-fchdir.c: Likewise.
66883         * tests/test-fcntl-h-c++.cc: Likewise.
66884         * tests/test-getopt.c: Likewise.
66885         * tests/test-getopt.h: Likewise.
66886         * tests/test-langinfo-c++.cc: Likewise.
66887         * tests/test-locale-c++.cc: Likewise.
66888         * tests/test-math-c++.cc: Likewise.
66889         * tests/test-pty-c++.cc: Likewise.
66890         * tests/test-search-c++.cc: Likewise.
66891         * tests/test-signal-c++.cc: Likewise.
66892         * tests/test-spawn-c++.cc: Likewise.
66893         * tests/test-stdio-c++.cc: Likewise.
66894         * tests/test-stdlib-c++.cc: Likewise.
66895         * tests/test-string-c++.cc: Likewise.
66896         * tests/test-sys_ioctl-c++.cc: Likewise.
66897         * tests/test-sys_select-c++.cc: Likewise.
66898         * tests/test-sys_socket-c++.cc: Likewise.
66899         * tests/test-sys_stat-c++.cc: Likewise.
66900         * tests/test-sys_time-c++.cc: Likewise.
66901         * tests/test-time-c++.cc: Likewise.
66902         * tests/test-unistd-c++.cc: Likewise.
66903         * tests/test-wchar-c++.cc: Likewise.
66904         * tests/uninorm/test-u8-nfc.c: Likewise.
66905         * tests/uninorm/test-u8-nfd.c: Likewise.
66906         * tests/uninorm/test-u8-nfkc.c: Likewise.
66907         * tests/uninorm/test-u8-nfkd.c: Likewise.
66908         * tests/uninorm/test-u16-nfc.c: Likewise.
66909         * tests/uninorm/test-u16-nfd.c: Likewise.
66910         * tests/uninorm/test-u16-nfkc.c: Likewise.
66911         * tests/uninorm/test-u16-nfkd.c: Likewise.
66912         * tests/uninorm/test-u32-nfc.c: Likewise.
66913         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66914         * tests/uninorm/test-u32-nfd.c: Likewise.
66915         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66916         * tests/uninorm/test-u32-nfkc.c: Likewise.
66917         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66918         * tests/uninorm/test-u32-nfkd.c: Likewise.
66919         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66920         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66922 2010-03-27  Bruno Haible  <bruno@clisp.org>
66924         Distinguish two kinds of module indicators.
66925         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66926         gl_MODULE_INDICATOR.
66927         (gl_MODULE_INDICATOR): New macro.
66928         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66929         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66930         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66931         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66932         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66933         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66934         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66935         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66936         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66937         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66938         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66939         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66942         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66943         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66944         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66945         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66946         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66947         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66948         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66949         * modules/cloexec (configure.ac): Likewise.
66950         * modules/getopt-gnu (configure.ac): Likewise.
66951         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66952         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66953         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66954         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66956 2010-03-27  Bruno Haible  <bruno@clisp.org>
66958         New module description field 'Comment'.
66959         * gnulib-tool: New option --extract-comment.
66960         (func_usage): Document it.
66961         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66962         (func_get_comment): New function.
66963         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66965 2010-03-27  Bruno Haible  <bruno@clisp.org>
66967         Addendum to 2010-02-07 commit.
66968         * gnulib-tool (func_usage): Document --extract-applicability option.
66970 2010-03-27  Bruno Haible  <bruno@clisp.org>
66972         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66973         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66974         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66975         rather than link errors.
66977 2010-03-27  Bruno Haible  <bruno@clisp.org>
66979         Avoid side effects from tests-related modules on the compilation of lib.
66980         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66981         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66982         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66983         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66984         macro.
66985         (func_import): Define a witness macro. Assign it a value that depends
66986         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66987         tests-related modules.
66988         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66989         Reported by Jim Meyering.
66991 2010-03-27  Bruno Haible  <bruno@clisp.org>
66993         Factorize common .m4 code.
66994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66995         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66996         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66997         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66998         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66999         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67000         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67001         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67002         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67003         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67004         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67005         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67006         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67007         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67008         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67009         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67010         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67011         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67013         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67014         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67015         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67016         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67017         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67018         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67019         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67020         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67021         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67022         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67023         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67024         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67025         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67027 2010-03-27  Bruno Haible  <bruno@clisp.org>
67029         Fix a compilation error on Cygwin with g++ >= 4.3.
67030         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67031         if it is undefined or if we alias it to chmod.
67032         (lstat): Don't warn about the use of this function if it is undefined
67033         or if we alias it to stat.
67034         Reported by Simon Josefsson.
67036 2010-03-27  Bruno Haible  <bruno@clisp.org>
67038         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67039         * modules/getlogin (configure.ac): Update.
67041         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67042         * modules/getlogin_r (configure.ac): Update.
67044         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67046         * modules/inet_ntop (configure.ac): Update.
67048         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67049         * modules/inet_pton (configure.ac): Update.
67051         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67052         * modules/mbslen (configure.ac): Update.
67054         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67055         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67056         * modules/forkpty (configure.ac): Update.
67057         * modules/openpty (configure.ac): Update.
67059 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67061         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67062         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67064 2010-03-25  Eric Blake  <eblake@redhat.com>
67066         maint: use pragma consistently across replacement headers
67067         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67068         * lib/dirent.in.h (system_header): Likewise.
67069         * lib/errno.in.h (system_header): Likewise.
67070         * lib/float.in.h (system_header): Likewise.
67071         * lib/getopt.in.h (system_header): Likewise.
67072         * lib/iconv.in.h (system_header): Likewise.
67073         * lib/inttypes.in.h (system_header): Likewise.
67074         * lib/langinfo.in.h (system_header): Likewise.
67075         * lib/locale.in.h (system_header): Likewise.
67076         * lib/math.in.h (system_header): Likewise.
67077         * lib/netdb.in.h (system_header): Likewise.
67078         * lib/netinet_in.in.h (system_header): Likewise.
67079         * lib/pty.in.h (system_header): Likewise.
67080         * lib/sched.in.h (system_header): Likewise.
67081         * lib/se-selinux.in.h (system_header): Likewise.
67082         * lib/search.in.h (system_header): Likewise.
67083         * lib/spawn.in.h (system_header): Likewise.
67084         * lib/stdarg.in.h (system_header): Likewise.
67085         * lib/stdint.in.h (system_header): Likewise.
67086         * lib/string.in.h (system_header): Likewise.
67087         * lib/strings.in.h (system_header): Likewise.
67088         * lib/sys_file.in.h (system_header): Likewise.
67089         * lib/sys_ioctl.in.h (system_header): Likewise.
67090         * lib/sys_socket.in.h (system_header): Likewise.
67091         * lib/sys_times.in.h (system_header): Likewise.
67092         * lib/sys_utsname.in.h (system_header): Likewise.
67093         * lib/sys_wait.in.h (system_header): Likewise.
67094         * lib/sysexits.in.h (system_header): Likewise.
67095         * lib/unistd.in.h (system_header): Likewise.
67096         * lib/wctype.in.h (system_header): Likewise.
67098         arpa/inet: fix mingw compilation warning
67099         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67100         Reported by Matthew Bolte.
67102 2010-03-25  Bruno Haible  <bruno@clisp.org>
67104         Avoid collision between gnulib wrapper and libintl wrapper.
67105         * lib/printf.c (printf): Don't define if a printf wrapper is already
67106         defined in intl/printf.c.
67107         Reported by Michel Boaventura <michel@michelboaventura.com>.
67109 2010-03-25  Bruno Haible  <bruno@clisp.org>
67111         Use ANSI C.
67112         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67114 2010-03-25  Bruno Haible  <bruno@clisp.org>
67116         Minor formatting changes.
67117         * lib/acosl.c: Insert space before function argument list.
67118         * lib/argz.c: Likewise.
67119         * lib/asinl.c: Likewise.
67120         * lib/expl.c: Likewise.
67121         * lib/gen-uni-tables.c: Likewise.
67122         * lib/gettext.h: Likewise.
67123         * lib/glthread/lock.h: Likewise.
67124         * lib/tanl.c: Likewise.
67125         * lib/uniname/uniname.c: Likewise.
67126         * tests/test-idpriv-drop.c: Likewise.
67127         * tests/test-idpriv-droptemp.c: Likewise.
67128         * tests/test-lock.c: Likewise.
67129         * tests/test-tls.c: Likewise.
67130         * lib/argp-help.c: Insert space before function-like macro argument
67131         list.
67132         * lib/memcmp.c: Likewise.
67133         * tests/test-base64.c: Likewise.
67134         * lib/localename.c: Insert space before sizeof's argument list.
67135         * lib/safe-alloc.h: Likewise.
67136         * lib/file-set.h: Insert space before macro argument list.
67137         * tests/test-argp.c: Likewise.
67138         * lib/argp-namefrob.h: Insert space before function parameter list.
67139         * lib/getaddrinfo.c: Likewise.
67140         * lib/netdb.in.h: Likewise.
67141         * lib/parse-duration.h: Likewise.
67142         * lib/parse-duration.c: Likewise.
67143         * lib/poll.c: Likewise.
67144         * lib/select.c: Likewise.
67145         * lib/trim.h: Likewise.
67146         * tests/test-usleep.c: Likewise.
67147         * lib/ldexpl.c: Insert space before function parameter list and before
67148         function argument list.
67149         * lib/logl.c: Likewise.
67150         * lib/sqrtl.c: Likewise.
67151         * lib/trim.c: Likewise.
67152         * lib/cosl.c: Use GNU style indentation. Insert space before function
67153         argument list.
67154         * lib/sinl.c: Likewise.
67155         * lib/tsearch.c: Insert space after 'for'.
67156         Reported by Jim Meyering.
67158 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67160         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67161         config header before grepping, as it's not present before
67162         autoreconf/configure are run.  Reported by Simon Josefsson.
67164 2010-03-23  Bruno Haible  <bruno@clisp.org>
67166         pt_chown: Make it work with automake < 1.11.
67167         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67168         Reported by Simon Josefsson.
67170 2010-03-23  Bruno Haible  <bruno@clisp.org>
67172         pt_chown: Don't depend on GPLed modules.
67173         * lib/pt_chown.c: Don't include idpriv.h.
67174         (main): Don't drop privileges.
67175         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67176         Reported by Simon Josefsson.
67178 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67180         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67181         suggestions from karl@freefriends.org (Karl Berry).
67183 2010-03-22  Eric Blake  <eblake@redhat.com>
67185         gethostname: further tweaks
67186         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67187         are overriding gethostname.
67188         Suggested by Bruno Haible.
67190 2010-03-21  Bruno Haible  <bruno@clisp.org>
67192         Fix comments.
67193         * lib/forkpty.c (rpl_forkpty): Fix comment.
67194         * lib/openpty.c (rpl_openpty): Likewise.
67195         Reported by Eric Blake.
67197 2010-03-22  Eric Blake  <eblake@redhat.com>
67199         gethostname: fix build on mingw
67200         * lib/unistd.in.h (includes): Work around fact that mingw
67201         <winsock2.h> re-includes <unistd.h>, by avoiding any
67202         redeclarations if we are being included by <winsock2.h>.
67203         Reported by Matthias Bolte.
67205 2010-03-21  Bruno Haible  <bruno@clisp.org>
67207         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67208         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67209         modifications.
67210         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67211         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67212         provide the replacement.
67213         * modules/forkpty (Depends-on): Add openpty, login_tty.
67214         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67215         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67216         * doc/glibc-functions/forkpty.texi: More supported platforms.
67217         * config/srclist.txt: Add forkpty.c (commented).
67219 2010-03-21  Bruno Haible  <bruno@clisp.org>
67221         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67222         (Makefile.am): Verify that PTY_LIB is defined.
67224         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67226 2010-03-21  Bruno Haible  <bruno@clisp.org>
67228         Tests for module 'login_tty'.
67229         * modules/login_tty-tests: New file.
67230         * tests/test-login_tty.c: New file.
67232         New module 'login_tty'.
67233         * lib/login_tty.c: New file.
67234         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67235         * modules/login_tty: New file.
67236         * doc/glibc-functions/login_tty.texi: Mention the new module.
67238 2010-03-21  Bruno Haible  <bruno@clisp.org>
67240         login_tty: Documentation.
67241         * doc/glibc-functions/login_tty.texi: New file.
67242         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67244 2010-03-21  Bruno Haible  <bruno@clisp.org>
67246         pty: Consistent macro naming.
67247         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67248         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67249         * modules/pty (configure.ac): Update.
67251 2010-03-21  Bruno Haible  <bruno@clisp.org>
67253         Tests for openpty: Make stricter.
67254         * tests/test-openpty.c (main): Add test of canonical processing and
67255         erase.
67256         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67258         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67259         * lib/openpty.c (openpty): New replacement function.
67260         * lib/pty.in.h: Include <termios.h>.
67261         (openpty): Update declaration. Add comments.
67262         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67263         is not declared, arrange to provide the replacement. Check for _getpty
67264         and posix_openpt.
67265         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67266         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67267         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67268         * modules/pty-tests (test_pty_c___LDADD): New variable.
67269         * doc/glibc-functions/openpty.texi: More supported platforms.
67271 2010-03-21  Bruno Haible  <bruno@clisp.org>
67273         setenv: Tweaks.
67274         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67275         the test program.
67276         * doc/posix-functions/setenv.texi: Update platforms list.
67278 2010-03-21  Bruno Haible  <bruno@clisp.org>
67280         New module 'unlockpt'.
67281         * lib/unlockpt.c: New file, from glibc with modifications.
67282         * m4/unlockpt.m4: New file.
67283         * modules/unlockpt: New file.
67284         * lib/stdlib.in.h (unlockpt): New declaration.
67285         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67286         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67287         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67288         HAVE_UNLOCKPT.
67289         * doc/posix-functions/unlockpt.texi: Mention the new module.
67290         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67291         * config/srclist.txt: Add unlockpt.c (commented).
67293 2010-03-21  Jim Meyering  <meyering@redhat.com>
67295         maint.mk: prohibit inclusion of "intprops.h" without use
67296         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67298 2010-03-21  Bruno Haible  <bruno@clisp.org>
67300         New module 'grantpt'.
67301         * lib/grantpt.c: New file, from glibc with modifications.
67302         * m4/grantpt.m4: New file.
67303         * modules/grantpt: New file.
67304         * lib/stdlib.in.h (grantpt): New declaration.
67305         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67306         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67307         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67308         HAVE_GRANTPT.
67309         * doc/posix-functions/grantpt.texi: Mention the new module.
67310         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67311         * config/srclist.txt: Add grantpt.c (commented).
67313 2010-03-21  Bruno Haible  <bruno@clisp.org>
67315         New module 'pt_chown'.
67316         * lib/pt_chown.c: New file, from glibc with modifications.
67317         * lib/pty-private.h: New file, from glibc with modifications.
67318         * modules/pt_chown: New file.
67319         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67321 2010-03-21  Bruno Haible  <bruno@clisp.org>
67323         Tests for module 'ptsname'.
67324         * modules/ptsname-tests: New file.
67325         * tests/test-ptsname.c: New file.
67327         New module 'ptsname'.
67328         * lib/ptsname.c: New file, from glibc with modifications.
67329         * m4/ptsname.m4: New file.
67330         * modules/ptsname: New file.
67331         * lib/stdlib.in.h (ptsname): New declaration.
67332         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67333         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67334         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67335         HAVE_PTSNAME.
67336         * doc/posix-functions/ptsname.texi: Mention the new module.
67337         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67338         * config/srclist.txt: Add ptsname.c (commented).
67340 2010-03-21  Bruno Haible  <bruno@clisp.org>
67342         Tests for module 'ttyname_r'.
67343         * modules/ttyname_r-tests: New file.
67344         * tests/test-ttyname_r.c: New file.
67346         New module 'ttyname_r'.
67347         * lib/ttyname_r.c: New file.
67348         * m4/ttyname_r.m4: New file.
67349         * modules/ttyname_r: New file.
67350         * lib/unistd.in.h (ttyname_r): New declaration.
67351         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67352         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67353         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67354         HAVE_TTYNAME_R.
67355         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67356         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67358 2010-03-20  Bruno Haible  <bruno@clisp.org>
67360         signal: Undefine macro definitions in C++ mode.
67361         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67362         sigfillset): Undefine macro definitions from the system header in C++
67363         mode.
67364         Reported by John W. Eaton <jwe@gnu.org>.
67366 2010-03-20  Bruno Haible  <bruno@clisp.org>
67368         Ensure no #include statements inside extern "C" { ... }.
67369         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67370         contain #include statements.
67371         * lib/time.in.h: Likewise.
67373 2010-03-20  Bruno Haible  <bruno@clisp.org>
67375         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67376         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67377         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67378         Reported by John W. Eaton <jwe@gnu.org>.
67380 2010-03-20  Bruno Haible  <bruno@clisp.org>
67382         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67383         Reported by Jim Meyering.
67385 2010-03-20  Bruno Haible  <bruno@clisp.org>
67387         pipe: Set errno upon failure.
67388         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67389         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67390         errno value in error message.
67392 2010-03-20  Bruno Haible  <bruno@clisp.org>
67393             Jim Meyering  <meyering@redhat.com>
67395         lchown: Avoid "unused variable" warning.
67396         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67398 2010-03-20  Bruno Haible  <bruno@clisp.org>
67400         Work around unlink() bug on MacOS X 10.5.6.
67401         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67402         attempting to unlink a parent directory.
67403         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67404         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67405         activate for the replacement function.
67406         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67408 2010-03-20  Bruno Haible  <bruno@clisp.org>
67410         Fix link errors on Solaris 8.
67411         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67412         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
67414 2010-03-19  Jim Meyering  <meyering@redhat.com>
67416         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
67417         The _LIBC implementation of build_range_exp correctly honors the
67418         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
67419         However, the non-_LIBC implementation would ignore that syntax-bit
67420         flag and return REG_ERANGE unconditionally.
67421         This change makes it honor that flag.
67422         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
67423         Make two pointer parameters "const".
67424         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
67425         (parse_bracket_exp): Update caller.
67427         regex.m4: correct the reversed range endpoint ([b-a]) test
67428         * m4/regex.m4: When requiring that [b-a] evoke failure,
67429         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
67430         test pass once again for x86-based systems.
67432 2010-03-19  Bruno Haible  <bruno@clisp.org>
67434         scandir: Fix link error on Solaris 8.
67435         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
67436         macros.
67438 2010-03-19  Bruno Haible  <bruno@clisp.org>
67440         getusershell: Fix documentation.
67441         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67442         module.
67443         * doc/glibc-functions/setusershell.texi: Likewise.
67445         getusershell: Provide declaration, missing on Solaris 9.
67446         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67447         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67448         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67449         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67451         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67452         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67453         HAVE_GETUSERSHELL.
67454         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67456 2010-03-19  Bruno Haible  <bruno@clisp.org>
67458         wctype: Provide iswblank function.
67459         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67460         exists and is fine.
67461         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67462         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67463         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67464         * doc/posix-functions/iswblank.texi: Update.
67466 2010-03-19  Bruno Haible  <bruno@clisp.org>
67468         Tests of module 'pty' in C++ mode.
67469         * modules/pty-tests: New file.
67470         * tests/test-pty-c++.cc: New file.
67471         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67473 2010-03-19  Eric Blake  <eblake@redhat.com>
67475         logb: fix documentation
67476         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67477         1.5 declaration bug.
67479         forkpty, openpty: prefer glibc's const-safe prototype
67480         * lib/forkpty.c (rpl_forkpty): New file.
67481         * lib/openpty.c (rpl_openpty): Likewise.
67482         * modules/forkpty (Files): Distribute it.
67483         * modules/openpty (Files): Likewise.
67484         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67485         check...
67486         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67487         replacement for non-const BSD signature.
67488         * modules/pty (Makefile.am): Substitute witnesses.
67489         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67490         * tests/test-forkpty.c: Update signature check.
67491         * tests/test-openpty.c: Likewise.
67492         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67493         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67495         forkpty, openpty: split functions into new modules
67496         * modules/pty (Makefile.am): Substitute new witnesses.
67497         (Libraries): Move library detection...
67498         * modules/forkpty: ...into new module.
67499         * modules/openpty: Another new module.
67500         * modules/pty-tests: Rename and split...
67501         * modules/forkpty-tests: ...to this...
67502         * modules/openpty-tests: ...and this.
67503         * tests/test-pty.c: Rename and split...
67504         * tests/test-forkpty.c: ...to this...
67505         * tests/test-openpty.c: ...and this.
67506         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67507         (gl_PTY): Split library searching...
67508         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67509         (gl_FORKPTY, gl_OPENPTY): New macros.
67510         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67511         * NEWS: Mention the split.
67512         * MODULES.html.sh (Misc): Document the modules.
67513         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67514         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67516         pty: improve replacement header
67517         * lib/pty.in.h: New file.
67518         * modules/pty (Files): Ship it.
67519         (Makefile.am): Always build replacement.
67520         * m4/pty.m4: Rename...
67521         * m4/pty_h.m4: ...to this.
67522         (gl_PTY): Modernize setting of witness macros; update check of
67523         forkpty to take proper advantage of cache.
67524         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67526         getopt: avoid compiler warning
67527         * lib/getopt.c (attribute_hidden): Remove unused macro.
67529 2010-03-18  Bruno Haible  <bruno@clisp.org>
67531         Fix link errors on Solaris 8.
67532         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67533         * modules/search-tests (test_search_c___LDADD): Likewise.
67534         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67535         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67536         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67537         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67538         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67539         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67540         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67542 2010-03-18  Bruno Haible  <bruno@clisp.org>
67544         Fix bug introduced on 2010-03-14.
67545         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67546         (gl_SPAWN_H): Require it.
67547         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67548         Reported by Simon Josefsson.
67550 2010-03-18  Bruno Haible  <bruno@clisp.org>
67552         Fix typo introduced on 2009-12-31.
67553         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67554         posix_spawn_file_actions_adddup2.
67556 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67557         and Eric Blake  <eblake@redhat.com>
67559         test-vc-list-files-git: make more robust
67560         * tests/test-vc-list-files-git.sh: Unset problematic environment
67561         variables.  Chain commands together.
67563 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67565         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67566         `AC_CHECK_DECL' invocation.
67568 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67570         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67571         appears before executable statements. Suggested by Petr Sumbera
67572         <Petr.Sumbera@Sun.COM>.
67574 2010-03-14  Bruno Haible  <bruno@clisp.org>
67576         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67577         portability problems. Instead use a simpler test.
67578         (main): Check that invalid arguments are rejected only on Linux.
67580 2010-03-14  Bruno Haible  <bruno@clisp.org>
67582         Fix bug introduced on 2009-12-31.
67583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67584         gl_PREREQ_SYS_H_WINSOCK2 always.
67585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67586         SYS_SOCKET_H variable.
67587         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67588         Update comments.
67589         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67590         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67591         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67592         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67593         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67595 2010-03-14  Bruno Haible  <bruno@clisp.org>
67597         Fix values returned by sinl, cosl.
67598         * lib/trigl.h: Add specification comments.
67599         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67600         that combines the values from the precomputed table with the values of
67601         the Chebyshev polynomials.
67603 2010-03-14  Bruno Haible  <bruno@clisp.org>
67605         Fix compilation error when modules 'posix_spawn[p]' are not used.
67606         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67607         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67609 2010-03-14  Bruno Haible  <bruno@clisp.org>
67611         Fix compilation error on mingw when module 'time_r' is not used.
67612         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67613         is 1.
67614         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67615         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67616         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67617         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67619 2010-03-14  Bruno Haible  <bruno@clisp.org>
67621         Fix compilation error with Sun C.
67622         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67623         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67624         instead of GCC specific ULONG_LONG_MAX.
67625         * lib/xstrtoll.c: Likewise.
67626         * lib/xstrtoull.c: Likewise.
67628 2010-03-13  Bruno Haible  <bruno@clisp.org>
67630         Allow the user to disable C++ code and tests.
67631         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67632         (gl_PROG_ANSI_CXX): Require it.
67634 2010-03-13  Bruno Haible  <bruno@clisp.org>
67636         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67637         cases.
67639 2010-03-13  Bruno Haible  <bruno@clisp.org>
67641         Test that gnulib does not break the standard C++ headers.
67642         * tests/test-locale-c++2.cc: New file.
67643         * modules/locale-tests (Files): Add it.
67644         (Makefile.am): Compile it for test-locale-c++.
67645         * tests/test-math-c++2.cc: New file.
67646         * modules/math-tests (Files): Add it.
67647         (Makefile.am): Compile it for test-math-c++.
67648         * tests/test-signal-c++2.cc: New file.
67649         * modules/signal-tests (Files): Add it.
67650         (Makefile.am): Compile it for test-signal-c++.
67651         * tests/test-stdio-c++2.cc: New file.
67652         * modules/stdio-tests (Files): Add it.
67653         (Makefile.am): Compile it for test-stdio-c++.
67654         * tests/test-stdlib-c++2.cc: New file.
67655         * modules/stdlib-tests (Files): Add it.
67656         (Makefile.am): Compile it for test-stdlib-c++.
67657         * tests/test-string-c++2.cc: New file.
67658         * modules/string-tests (Files): Add it.
67659         (Makefile.am): Compile it for test-string-c++.
67660         * tests/test-time-c++2.cc: New file.
67661         * modules/time-tests (Files): Add it.
67662         (Makefile.am): Compile it for test-time-c++.
67663         Reported by John W. Eaton <jwe@gnu.org>.
67665 2010-03-13  Bruno Haible  <bruno@clisp.org>
67667         * gnulib-tool (func_usage): Clarify which options are available for
67668         --create-testdir and --create-megatestdir.
67670 2010-03-13  Bruno Haible  <bruno@clisp.org>
67672         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67673         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67674         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67675         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67676         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67677         when appropriate.
67678         Reported by Jim Meyering.
67680 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67682         * gnulib-tool (func_import): Explain origin of code.
67684 2010-03-12  Bruno Haible  <bruno@clisp.org>
67686         Fix problem with automake's definition of CXXLINK.
67687         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67688         Reported by Simon Josefsson and Ludovic Courtès.
67690 2010-03-12  Bruno Haible  <bruno@clisp.org>
67692         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67693         stable releases.
67695 2010-03-11  Bruno Haible  <bruno@clisp.org>
67697         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67698         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67699         whether the system provides one variant or multiple variants of the
67700         function.
67701         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67702         C++ compilers.
67703         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67704         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67705         Reported by Jim Meyering.
67707 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67709         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67711 2010-03-08  Bruno Haible  <bruno@clisp.org>
67713         gnulib-tool: Add support for --libtool in --create-testdir.
67714         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67715         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67717 2010-03-08  Eric Blake  <eblake@redhat.com>
67719         gnulib-tool.texi: mention possibility of git submodule
67720         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67721         submodules.
67722         * doc/.gitignore: Ignore another generated file.
67724 2010-03-08  Karl Berry  <karl@gnu.org>
67726         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67727         of committing gnulib files while skipping others.
67729 2010-03-07  Bruno Haible  <bruno@clisp.org>
67731         Tests of module 'wctype' in C++ mode.
67732         * tests/test-wctype-c++.cc: New file.
67733         * modules/wctype-tests (Files): Add it and tests/signature.h.
67734         (Depends-on): Add ansi-c++-opt.
67735         (Makefile.am): Arrange to compile and run test-wctype-c++.
67737         Tests of module 'wchar' in C++ mode.
67738         * tests/test-wchar-c++.cc: New file.
67739         * modules/wchar-tests (Files): Add it and tests/signature.h.
67740         (Depends-on): Add ansi-c++-opt.
67741         (Makefile.am): Arrange to compile and run test-wchar-c++.
67742         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67743         gl_MODULE_INDICATOR.
67745         Tests of module 'unistd' in C++ mode.
67746         * tests/test-unistd-c++.cc: New file.
67747         * modules/unistd-tests (Files): Add it and tests/signature.h.
67748         (Depends-on): Add ansi-c++-opt.
67749         (Makefile.am): Arrange to compile and run test-unistd-c++.
67750         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67751         gl_MODULE_INDICATOR.
67753         Tests of module 'time' in C++ mode.
67754         * tests/test-time-c++.cc: New file.
67755         * modules/time-tests (Files): Add it and tests/signature.h.
67756         (Depends-on): Add ansi-c++-opt.
67757         (Makefile.am): Arrange to compile and run test-time-c++.
67758         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67760         Tests of module 'sys_time' in C++ mode.
67761         * tests/test-sys_time-c++.cc: New file.
67762         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67763         (Depends-on): Add ansi-c++-opt.
67764         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67765         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67766         gl_MODULE_INDICATOR.
67768         Tests of module 'sys_stat' in C++ mode.
67769         * tests/test-sys_stat-c++.cc: New file.
67770         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67771         (Depends-on): Add ansi-c++-opt.
67772         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67773         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67774         gl_MODULE_INDICATOR.
67776         Tests of module 'sys_socket' in C++ mode.
67777         * tests/test-sys_socket-c++.cc: New file.
67778         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67779         (Depends-on): Add ansi-c++-opt.
67780         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67781         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67782         gl_MODULE_INDICATOR.
67784         Tests of module 'sys_select' in C++ mode.
67785         * tests/test-sys_select-c++.cc: New file.
67786         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67787         (Depends-on): Add ansi-c++-opt.
67788         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67789         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67790         gl_MODULE_INDICATOR.
67792         Tests of module 'sys_ioctl' in C++ mode.
67793         * tests/test-sys_ioctl-c++.cc: New file.
67794         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67795         (Depends-on): Add ansi-c++-opt.
67796         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67797         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67798         gl_MODULE_INDICATOR.
67800         Tests of module 'string' in C++ mode.
67801         * tests/test-string-c++.cc: New file.
67802         * modules/string-tests (Files): Add it and tests/signature.h.
67803         (Depends-on): Add ansi-c++-opt.
67804         (Makefile.am): Arrange to compile and run test-string-c++.
67805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67806         gl_MODULE_INDICATOR.
67808         Tests of module 'stdlib' in C++ mode.
67809         * tests/test-stdlib-c++.cc: New file.
67810         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67811         (Depends-on): Add ansi-c++-opt.
67812         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67813         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67814         gl_MODULE_INDICATOR.
67816         Tests of module 'stdio' in C++ mode.
67817         * tests/test-stdio-c++.cc: New file.
67818         * modules/stdio-tests (Files): Add it and tests/signature.h.
67819         (Depends-on): Add ansi-c++-opt.
67820         (Makefile.am): Arrange to compile and run test-stdio-c++.
67821         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67822         gl_MODULE_INDICATOR.
67824         Tests of module 'spawn' in C++ mode.
67825         * tests/test-spawn-c++.cc: New file.
67826         * modules/spawn-tests (Files): Add it and tests/signature.h.
67827         (Depends-on): Add ansi-c++-opt.
67828         (Makefile.am): Arrange to compile and run test-spawn-c++.
67829         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67830         gl_MODULE_INDICATOR.
67832         Tests of module 'signal' in C++ mode.
67833         * tests/test-signal-c++.cc: New file.
67834         * modules/signal-tests (Files): Add it and tests/signature.h.
67835         (Depends-on): Add ansi-c++-opt.
67836         (Makefile.am): Arrange to compile and run test-signal-c++.
67837         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67838         gl_MODULE_INDICATOR.
67840         Tests of module 'search' in C++ mode.
67841         * tests/test-search-c++.cc: New file.
67842         * modules/search-tests (Files): Add it and tests/signature.h.
67843         (Depends-on): Add ansi-c++-opt.
67844         (Makefile.am): Arrange to compile and run test-search-c++.
67845         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67846         gl_MODULE_INDICATOR.
67848         Tests of module 'math' in C++ mode.
67849         * tests/test-math-c++.cc: New file.
67850         * modules/math-tests (Files): Add it and tests/signature.h.
67851         (Depends-on): Add ansi-c++-opt.
67852         (Makefile.am): Arrange to compile and run test-math-c++.
67853         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67855         Tests of module 'locale' in C++ mode.
67856         * tests/test-locale-c++.cc: New file.
67857         * modules/locale-tests (Files): Add it and tests/signature.h.
67858         (Depends-on): Add ansi-c++-opt.
67859         (Makefile.am): Arrange to compile and run test-locale-c++.
67860         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67861         gl_MODULE_INDICATOR.
67863         Tests of module 'langinfo' in C++ mode.
67864         * tests/test-langinfo-c++.cc: New file.
67865         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67866         (Depends-on): Add ansi-c++-opt.
67867         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67868         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67869         gl_MODULE_INDICATOR.
67871         Tests of module 'iconv-h' in C++ mode.
67872         * tests/test-iconv-h-c++.cc: New file.
67873         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67874         (Depends-on): Add ansi-c++-opt.
67875         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67877         Tests of module 'glob' in C++ mode.
67878         * tests/test-glob-c++.cc: New file.
67879         * modules/glob-tests (Files): Add it.
67880         (Depends-on): Add ansi-c++-opt.
67881         (Makefile.am): Arrange to compile and run test-glob-c++.
67883         Tests of module 'fcntl-h' in C++ mode.
67884         * tests/test-fcntl-h-c++.cc: New file.
67885         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67886         (Depends-on): Add ansi-c++-opt.
67887         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67888         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67889         gl_MODULE_INDICATOR.
67891         Tests of module 'dirent' in C++ mode.
67892         * tests/test-dirent-c++.cc: New file.
67893         * modules/dirent-tests (Files): Add it and tests/signature.h.
67894         (Depends-on): Add ansi-c++-opt.
67895         (Makefile.am): Arrange to compile and run test-dirent-c++.
67896         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67897         gl_MODULE_INDICATOR.
67899         New module 'ansi-c++-opt'.
67900         * modules/ansi-c++-opt: New file.
67901         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67903         Document C++ namespace mode.
67904         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67906         wctype: Avoid #define replacements in C++ mode.
67907         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67908         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67909         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67910         In C++, define a namespaced alias symbol.
67911         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67912         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67913         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67914         rule.
67916         wchar: Avoid #define replacements in C++ mode.
67917         * lib/wchar.in.h: Include c++defs.h.
67918         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67919         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67920         symbol.
67921         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67922         * modules/wchar (Depends-on): Add c++defs.
67923         (Makefile.am): Update wchar.h rule.
67925         unistd: Avoid #define replacements in C++ mode.
67926         * lib/unistd.in.h: Include c++defs.h.
67927         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67928         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67929         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67930         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67931         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67932         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67933         symbol.
67934         (environ): Update.
67935         * modules/unistd (Depends-on): Add c++defs.
67936         (Makefile.am): Update unistd.h rule.
67938         time: Avoid #define replacements in C++ mode.
67939         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67940         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67941         define a namespaced alias symbol.
67942         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67943         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67944         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67945         * modules/time (Depends-on): Add c++defs, warn-on-use.
67946         (Makefile.am): Update time.h rule.
67947         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67948         * modules/nanosleep (configure.ac): Likewise.
67949         * modules/strptime (configure.ac): Likewise.
67950         * modules/timegm (configure.ac): Likewise.
67952         sys_time: Avoid #define replacements in C++ mode.
67953         * lib/sys_time.in.h: Include c++defs.h.
67954         (gettimeofday): In C++, define a namespaced alias symbol.
67955         * modules/sys_time (Depends-on): Add c++defs.
67956         (Makefile.am): Update sys/time.h rule.
67958         sys_stat: Avoid #define replacements in C++ mode.
67959         * lib/sys_stat.in.h: Include c++defs.h.
67960         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67961         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67962         namespaced alias symbol.
67963         In C++, define a namespaced alias symbol.
67964         * modules/sys_stat (Depends-on): Add c++defs.
67965         (Makefile.am): Update sys/stat.h rule.
67967         sys_socket: Avoid #define replacements in C++ mode.
67968         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67969         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67970         definitions also when the system has a <sys/socket.h>.
67971         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67972         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67973         In C++, define a namespaced alias symbol.
67974         * modules/sys_socket (Depends-on): Add c++defs.
67975         (Makefile.am): Update sys/socket.h rule.
67977         sys_select: Avoid #define replacements in C++ mode.
67978         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67979         definitions also when the system has a <sys/select.h>.
67980         (select): In C++, define a namespaced alias symbol.
67981         * modules/sys_select (Depends-on): Add c++defs.
67982         (Makefile.am): Update sys/select.h rule.
67984         sys_ioctl: Avoid #define replacements in C++ mode.
67985         * lib/sys_ioctl.in.h: Include c++defs.h.
67986         (ioctl): In C++, define a namespaced alias symbol.
67987         * modules/sys_ioctl (Depends-on): Add c++defs.
67988         (Makefile.am): Update sys/ioctl.h rule.
67990         string: Avoid #define replacements in C++ mode.
67991         * lib/string.in.h: Include c++defs.h.
67992         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67993         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67994         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67995         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67996         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67997         * modules/string (Depends-on): Add c++defs.
67998         (Makefile.am): Update string.h rule.
68000         stdlib: Avoid #define replacements in C++ mode.
68001         * lib/stdlib.in.h: Include c++defs.h.
68002         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68003         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68004         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68005         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68006         symbol.
68007         * modules/stdlib (Depends-on): Add c++defs.
68008         (Makefile.am): Update stdlib.h rule.
68010         stdio: Avoid #define replacements in C++ mode.
68011         * lib/stdio.in.h: Include c++defs.h.
68012         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68013         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68014         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68015         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68016         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68017         namespaced alias symbol.
68018         * modules/stdio (Depends-on): Add c++defs.
68019         (Makefile.am): Update stdio.h rule.
68021         spawn: Avoid #define replacements in C++ mode.
68022         * lib/spawn.in.h: Include c++defs.h.
68023         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68024         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68025         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68026         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68027         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68028         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68029         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68030         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68031         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68032         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68033         In C++, define a namespaced alias symbol.
68034         * modules/spawn (Depends-on): Add c++defs.
68035         (Makefile.am): Update spawn.h rule.
68037         signal: Avoid #define replacements in C++ mode.
68038         * lib/signal.in.h: Include c++defs.h.
68039         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68040         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68041         namespaced alias symbol.
68042         * modules/signal (Depends-on): Add c++defs.
68043         (Makefile.am): Update signal.h rule.
68045         search: Avoid #define replacements in C++ mode.
68046         * lib/search.in.h: Include c++defs.h.
68047         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68048         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68049         symbol.
68050         * modules/search (Depends-on): Add c++defs.
68051         (Makefile.am): Update search.h rule.
68053         math: Avoid #define replacements in C++ mode.
68054         * lib/math.in.h: Include c++defs.h.
68055         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68056         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68057         trunc, truncl): In C++, define a namespaced alias symbol.
68058         * modules/math (Depends-on): Add c++defs.
68059         (Makefile.am): Update math.h rule.
68061         locale: Avoid #define replacements in C++ mode.
68062         * lib/locale.in.h: Include c++defs.h.
68063         (duplocale): In C++, define a namespaced alias symbol.
68064         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68065         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68066         * modules/locale (Depends-on): Add c++defs.
68067         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68069         langinfo: Avoid #define replacements in C++ mode.
68070         * lib/langinfo.in.h: Include c++defs.h.
68071         (nl_langinfo): In C++, define a namespaced alias symbol.
68072         * modules/langinfo (Depends-on): Add c++defs.
68073         (Makefile.am): Update langinfo.h rule.
68075         iconv-h: Avoid #define replacements in C++ mode.
68076         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68077         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68078         symbol.
68079         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68080         whenever iconv is present.
68081         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68082         (Makefile.am): Update iconv.h rule.
68084         glob: Avoid #define replacements in C++ mode.
68085         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68086         (_gl_glob_errfunc_fn): New type.
68087         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68088         symbol.
68089         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68090         (Makefile.am): Update glob.h rule.
68092         fcntl-h: Avoid #define replacements in C++ mode.
68093         * lib/fcntl.in.h: Include c++defs.h.
68094         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68095         * modules/fcntl-h (Depends-on): Add c++defs.
68096         (Makefile.am): Update fcntl.h rule.
68098         dirent: Avoid #define replacements in C++ mode.
68099         * lib/dirent.in.h: Include c++defs.h.
68100         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68101         namespaced alias symbol.
68102         (dirfd): Update declaration.
68103         * modules/dirent (Depends-on): Add c++defs.
68104         (Makefile.am): Update dirent.h rule.
68106         ctype: Make it usable in C++ code.
68107         * lib/ctype.in.h: Include c++defs.h.
68108         (isblank): Declare as extern "C".
68109         * modules/ctype (Depends-on): Add c++defs.
68110         (Makefile.am): Update ctype.h rule.
68112         New module 'c++defs'.
68113         * modules/c++defs: New file.
68114         * build-aux/c++defs.h: New file.
68115         Reported by John W. Eaton <jwe@gnu.org>.
68117 2010-03-07  Bruno Haible  <bruno@clisp.org>
68119         logb: Provide missing declaration for Cygwin.
68120         * lib/math.in.h (logb): New declaration.
68121         * m4/logb.m4: New file.
68122         * modules/logb (Files): Add m4/logb.m4.
68123         (Depends-on): Add math.
68124         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68125         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68127         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68128         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68130 2010-03-07  Bruno Haible  <bruno@clisp.org>
68132         Fix test-cond link error.
68133         * tests/test-cond.c: Include <stdio.h>.
68135 2010-03-07  Bruno Haible  <bruno@clisp.org>
68137         Fix test-dirent-safer link error.
68138         * modules/dirent-safer-tests (Makefile.am): Define
68139         test_dirent_safer_LDADD.
68141 2010-03-07  Bruno Haible  <bruno@clisp.org>
68143         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68144         among default module list.
68146 2010-03-07  Bruno Haible  <bruno@clisp.org>
68148         Fix link error on platforms with GNU libiconv.
68149         * modules/unistr/u8-strcoll-tests (Makefile): Define
68150         test_u8_strcoll_LDADD.
68151         * modules/unistr/u16-strcoll-tests (Makefile): Define
68152         test_u16_strcoll_LDADD.
68153         * modules/unistr/u32-strcoll-tests (Makefile): Define
68154         test_u32_strcoll_LDADD.
68156 2010-03-07  Bruno Haible  <bruno@clisp.org>
68158         Use POSIX declarations for socket functions.
68159         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68160         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68161         rpl_sendto): Change declaration to match POSIX.
68162         * lib/connect.c (rpl_connect): Likewise.
68163         * lib/accept.c (rpl_accept): Likewise.
68164         * lib/bind.c (rpl_bind): Likewise.
68165         * lib/getpeername.c (rpl_getpeername): Likewise.
68166         * lib/getsockname.c (rpl_getsockname): Likewise.
68167         * lib/recv.c (rpl_recv): Likewise.
68168         * lib/send.c (rpl_send): Likewise.
68169         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68170         * lib/sendto.c (rpl_sendto): Likewise.
68172 2010-03-06  Bruno Haible  <bruno@clisp.org>
68174         Clarify access, euidaccess, faccessat.
68175         * doc/posix-functions/faccessat.texi: Mention security problem under
68176         "Other problems", not "Portability problems".
68177         * doc/posix-functions/access.texi: Likewise. Mention a related security
68178         problem.
68179         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68180         * lib/euidaccess.c: Add comments about platforms.
68181         * lib/unistd.in.h (access, euidaccess): Add warnings.
68183 2010-03-07  Bruno Haible  <bruno@clisp.org>
68185         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68186         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68187         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68188         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68189         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68190         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68191         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68192         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68193         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68195         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68196         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68197         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68198         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68199         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68200         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68201         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68202         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68203         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68204         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68205         Likewise.
68206         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68207         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68208         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68209         Likewise.
68210         * tests/test-spawn.c (main): Make it work when
68211         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68213 2010-03-07  Bruno Haible  <bruno@clisp.org>
68215         Fix incorrect Makefile.am generation in German locale.
68216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68217         Execute sed command with character range in C locale.
68219 2010-03-06  Bruno Haible  <bruno@clisp.org>
68221         Tests for module 'iconv-h'.
68222         * modules/iconv-h-tests: New file.
68223         * tests/test-iconv-h.c: New file.
68225         New module 'iconv-h'.
68226         * modules/iconv-h: New file.
68227         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68228         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68229         (configure.ac): Remove gl_ICONV_H.
68230         (Makefile.am): Remove rule for iconv.h.
68232 2010-03-06  Bruno Haible  <bruno@clisp.org>
68234         More consistent naming of *.m4 files.
68235         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68236         * modules/wctype (Files): Update.
68238         More consistent naming of *.m4 files.
68239         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68240         * modules/wchar (Files): Update.
68242 2010-03-06  Jim Meyering  <meyering@redhat.com>
68244         euidaccess: relax license to LGPLv2+
68245         * modules/euidaccess (License): Relax to LGPLv2+.
68247 2010-03-06  Bruno Haible  <bruno@clisp.org>
68249         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68250         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68251         (Makefile.am): Augment lib_SOURCES instead.
68253 2010-03-04  Jim Meyering  <meyering@redhat.com>
68255         utime: remove obsolete module
68256         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68257         unnecessary for years, and has been marked as obsolete for 10 months.
68258         * modules/utime: Remove file.
68259         * lib/utime.c: Remove file.
68260         * m4/utime.m4: Remove file.
68261         * m4/utimes-null.m4: Remove file.
68262         * doc/posix-functions/utime.texi (utime): Remove reference to
68263         the module.  Move the sole "fixed by gnulib" item into the
68264         "problems not fixed by Gnulib" list.
68265         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68267 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68269         * modules/exit (License): Relax license to LGPLv2+.
68270         (Status): Mark as obsolete.
68271         * NEWS: Mention deprecated 'exit' module.
68272         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68273         of now obsolete 'exit'.
68275 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68277         fts-lgpl: remove unused module
68278         * modules/fts-lgpl: Remove.
68279         * MODULES.html.sh (func_all_modules): Adjust.
68280         * check-module (find_included_lib_files): Adjust.
68281         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68283 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68285         copy-acl: enhance Solaris ACL error handling
68286         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68287         * lib/set-mode-acl.c (qset_acl): Likewise.
68289 2010-03-02  Bruno Haible  <bruno@clisp.org>
68291         spawn: Don't override the system defined values on FreeBSD 8.
68292         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68293         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68294         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68295         if HAVE_POSIX_SPAWN is 1.
68296         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68298 2010-03-01  Bruno Haible  <bruno@clisp.org>
68300         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68301         regarding Automake.
68303 2010-02-25  Bruno Haible  <bruno@clisp.org>
68305         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68306         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68307         setting, not afterwards.
68308         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68310 2010-02-24  Eric Blake  <eblake@redhat.com>
68312         bootstrap, git-version-gen: use timestamp
68313         * build-aux/git-version-gen (scriptversion): Force UTC.
68314         * build-aux/bootstrap (scriptversion): New variable.
68316         bootstrap: allow older git
68317         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68318         older than 1.6.4.  Requested by the libvirt project.
68320 2010-02-23  Eric Blake  <eblake@redhat.com>
68322         warn-on-use: work with old autoconf
68323         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68324         AS_VAR semantics of autoconf 2.60.
68325         Reported by Bruno Haible.
68327         bootstrap: improve some comments
68328         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68329         clarification comments.
68331         gettimeofday: provide correct function
68332         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68333         when replacement is declared, otherwise provide gettimeofday.
68334         Reported by Michael Goffioul.
68336 2010-02-23  Jim Meyering  <meyering@redhat.com>
68338         lib-ignore: relax license to "unlimited", not LGPLv2+
68339         * modules/lib-ignore (License): Relax to "unlimited".
68341 2010-02-23  Jim Meyering  <meyering@redhat.com>
68343         lib-ignore: relax license to LGPLv2+
68344         * modules/lib-ignore (License): Relax to LGPLv2+.
68346 2010-02-22  Eric Blake  <eblake@redhat.com>
68348         lseek: avoid bash 3.2 broken pipe bug
68349         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68350         warning from bash 3.2.
68351         Reported by Ben Pfaff, with analysis from Bruno Haible.
68353         bootstrap: support non-FSF copyright holder
68354         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68355         bootstrap.conf override of COPYRIGHT_HOLDER.
68356         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68358         bootstrap: interoperate with gettext 0.14.1
68359         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68361         bootstrap: allow for alternate submodule location
68362         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68363         hardcoding submodule location.
68364         (gnulib_mk): Allow direct use of Makefile.am.
68366         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68367         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68368         rather than reconfiguring where the submodule points.
68370         gettimeofday: restore support for platforms that lack function
68371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68372         replacement if function is missing.
68373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68374         * modules/sys_time (Makefile.am): Substitute it.
68375         * lib/sys_time.in.h (gettimeofday): Check it.
68376         Reported by Michael Goffioul.
68378 2010-02-21  Bruno Haible  <bruno@clisp.org>
68380         * lib/stdio.in.h (obstack_printf): Fix typo.
68382 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68384         vc-list-files: use bzr ls's -R option
68385         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68386         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68388 2010-02-21  Jim Meyering  <meyering@redhat.com>
68390         init.sh: fix EXEEXT shims to work also for names like test-prog
68391         * tests/init.sh: Re-exec a better shell, when needed.
68392         If the current shell lacks support for posix $(...), an init.sh-using
68393         test will now try to find a shell that supports that.  If EXEEXT is
68394         nonempty, we also require support for hyphen-in-alias-name and shell
68395         substitutions like ${var#glob}.  Failure to find such a shell results
68396         in a skipped test.
68398 2010-02-21  Bruno Haible  <bruno@clisp.org>
68400         Really work around "broken pipe" error message from bash 3.2.
68401         * gnulib-tool (func_reset_sigpipe): Remove function.
68402         (echo): In bash 3.2, define to a function that uses printf.
68403         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68405 2010-02-20  Bruno Haible  <bruno@clisp.org>
68407         Restore support for automake 1.9.6 with autoconf 2.61.
68408         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68409         Reported by James Youngman <jay@gnu.org>.
68411 2010-02-20  Bruno Haible  <bruno@clisp.org>
68413         Improve *printf warning condition.
68414         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
68415         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
68416         and the function is overridden due to SIGPIPE emulation.
68418 2010-02-20  Bruno Haible  <bruno@clisp.org>
68420         * lib/stdio.in.h: Tweak comments.
68422 2010-02-19  Bruno Haible  <bruno@clisp.org>
68424         Make it easier to find modules. New gnulib-tool option '--find'.
68425         * gnulib-tool: New option --find.
68426         (func_usage): Document it.
68427         (func_sanitize_modulelist): New function, extracted from
68428         func_all_modules.
68429         (func_all_modules): Invoke it.
68430         * doc/gnulib-tool.texi (Which modules?): New node.
68432 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
68434         * lib/sys_select.in.h: Provide select replacement even if
68435         sys/select.h exists on a system, for Interix.
68437 2010-02-18  Jim Meyering  <meyering@redhat.com>
68439         init.sh: don't use $(...) just yet
68440         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68441         to accommodate e.g., Solaris' /bin/sh.
68443 2010-02-17  Bruno Haible  <bruno@clisp.org>
68445         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68446         Reported by Ludovic Courtès <ludo@gnu.org>.
68448 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68450         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68451         linking with -lintl.
68453 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68455         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68456         if not provided by the system's netdb.h.  Reported by
68457         ludo@gnu.org (Ludovic Courtès).
68459 2010-02-15  Jim Meyering  <meyering@redhat.com>
68461         init.sh: improve portability and efficiency
68462         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68463         "dummy" in a for loop.
68464         Use '!', not '^' to select the complement of a character set used
68465         in a "case" statement.
68466         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68467         Suggestions from Eric Blake.
68469         init.sh: automatically accommodate programs with the .exe suffix
68470         Automatically arrange for an invocation of "prog" to execute the
68471         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68472         may use the simpler "prog", yet still work when built on a system
68473         that requires specifying the added suffix.
68474         Do this by constructing a function named "prog" that invokes
68475         "prog.exe" for each .exe file in selected directories.
68476         * tests/init.sh (find_exe_basenames_): New function.
68477         (create_exe_shim_functions_): New function.
68478         (path_prepend_): Use it.
68480         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68481         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68482         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68484 2010-02-14  Jim Meyering  <meyering@redhat.com>
68486         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68487         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68488         (sc_prohibit_hash_pjw_without_use): New rule.
68490         maint.mk: allow the default upload destination dir to be overridden
68491         * top/maint.mk (upload_dest_dir_): Define with a default that
68492         preserves the status quo.
68493         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68494         Reported by Peter Simons.
68496         maint.mk: prohibit inclusion of "hash.h" without_use
68497         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68499 2010-02-10  Jim Meyering  <meyering@redhat.com>
68501         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68502         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68504 2010-02-09  Eric Blake  <ebb9@byu.net>
68505         and Bruno Haible  <bruno@clisp.org>
68507         obstack-printf-posix: ensure declaration
68508         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68509         extracted from gl_FUNC_OBSTACK_PRINTF.
68510         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68511         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68512         Likewise.
68513         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68514         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68515         0.
68517 2010-02-08  Bruno Haible  <bruno@clisp.org>
68519         gnulib-tool: Fix typo in 2010-02-07 commit.
68520         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68521         Reported by Eric Blake.
68523 2010-02-07  Bruno Haible  <bruno@clisp.org>
68525         gnulib-tool: Fix up caching patches.
68526         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68527         option --no-cache. Use associative arrays when supported by the shell.
68528         (sed_comments): New variable.
68529         (modcache): Renamed from do_cache.
68530         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68531         abbreviate unnecessarily.
68532         (have_associative): New variable.
68533         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68534         way also for ksh and zsh.
68535         (func_init_sed_convert_to_cache_statements): New function, extracted
68536         from func_cache_lookup_module. Add support for associative arrays.
68537         Don't set the c_MODULE_cached variable here. Ignore all lines before
68538         the first field header. Remove only the final newline, not all trailing
68539         newlines. Support empty fields correctly. Limit the use of 'eval' to
68540         assignments.
68541         (func_get_description, func_get_status, func_get_notice,
68542         func_get_applicability, func_get_filelist, func_get_dependencies,
68543         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68544         func_get_automake_snippet, func_get_include_directive,
68545         func_get_link_directive, func_get_license, func_get_maintainer):
68546         Update documentation. List the unoptimized code first. Add support for
68547         associative arrays. Limit the use of 'eval' to assignments.
68548         (func_get_applicability): Undo stylistic pessimisations.
68549         (func_get_automake_snippet, func_get_include_directive): Reduce code
68550         duplication.
68551         (func_modules_transitive_closure, func_modules_add_dummy,
68552         func_modules_notice, func_modules_to_filelist, func_add_file,
68553         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68554         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68555         func_create_testdir, func_create_megatestdir): Update documentation.
68557 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68559         * gnulib-tool (func_cache_lookup_module): Store the module name
68560         belonging to the cache variable; error out if two different
68561         module names map to the same cache variable name.
68563 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68565         gnulib-tool: Make caching optional.
68566         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68567         Update matching short versions of --no-changelog.
68568         (func_usage): Update.
68569         (sed_extract_cache_prog): Renamed from ...
68570         (sed_extract_prog): ... this; revert to old extraction script.
68571         (func_get_description, func_get_status)
68572         (func_get_notice, func_get_applicability, func_get_filelist)
68573         (func_get_dependencies, func_get_autoconf_early_snippet)
68574         (func_get_autoconf_snippet, func_get_automake_snippet)
68575         (func_get_include_directive, func_get_link_directive)
68576         (func_get_license, func_get_maintainer): If $do_cache is false,
68577         use old, non-caching extraction scripts.
68578         Suggestion by Bruno Haible.
68580 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68582         gnulib-tool: cache module metainformation.
68583         * gnulib-tool (sed_extract_prog): Match newline before each
68584         header, and rewrite header to a shell variable suffix.
68585         (func_cache_var, func_cache_lookup_module): New functions,
68586         to turn a module name into a cache variable prefix, and to
68587         look up and cache module metainformation.
68588         (func_get_description, func_get_status)
68589         (func_get_notice, func_get_applicability, func_get_filelist)
68590         (func_get_dependencies, func_get_autoconf_early_snippet)
68591         (func_get_autoconf_snippet, func_get_automake_snippet)
68592         (func_get_include_directive, func_get_link_directive)
68593         (func_get_license, func_get_maintainer): Use
68594         func_cache_lookup_module.
68596 2010-02-07  Bruno Haible  <bruno@clisp.org>
68598         fnctl: Fix missing dependency.
68599         * modules/fcntl (Depends-on): Add getdtablesize.
68600         Reported by John W. Eaton <jwe@gnu.org>.
68602 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68604         Argp: fix recognition of short alias options.
68606         * lib/argp-parse.c (convert_options): Fix improper use of
68607         `|' between character values.
68608         * tests/test-argp.c (group1_option): New alias option
68609         --read (-r).
68610         (group1_parser): Special handling for 'r'.
68611         (test15): New test case.
68612         (test_fun): Add test15.
68613         * tests/test-argp-2.sh: Update expected --help and --usage
68614         outputs.
68616 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68618         * tests/test-argp.c: Fix indentation.
68620 2010-02-04  Eric Blake  <ebb9@byu.net>
68622         gettimeofday: expose type of second argument
68623         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68624         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68625         * tests/test-gettimeofday.c: Use it to silence warning.
68626         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68627         the issue.
68629 2010-02-03  Jim Meyering  <meyering@redhat.com>
68631         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68632         * lib/regcomp.c (TYPE_SIGNED): Define.
68633         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68635         regcomp.c: avoid a new -Wshadow warning
68636         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68638 2010-02-01  Jim Meyering  <meyering@redhat.com>
68640         removing useless parentheses in cpp #define directives
68641         For motivation, see commit c0221df4, "define STREQ(a,b)
68642         consistently, removing useless parentheses"
68643         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68644         * lib/mountlist.c (MNT_IGNORE): Likewise.
68645         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68647 2010-02-01  Eric Blake  <ebb9@byu.net>
68649         sys_time: use link-warning
68650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68651         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68652         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68653         * modules/sys_time (Depends-on): Add warn-on-use.
68654         (Makefile.am): Always build replacement.
68655         (configure.ac): Update substitutions.
68656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68657         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68658         bother with SYS_TIME_H.
68659         * modules/gettimeofday (configure.ac): Declare indicator.
68660         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68661         in use.
68663         closein-tests: silence compiler warning
68664         * tests/test-closein.c (main): Ignore fread result.
68665         * modules/closein-tests (Depends-on): Add ignore-value.
68667         tests: silence warning about system return
68668         * tests/test-areadlink-with-size.c (main): Ignore system result.
68669         * tests/test-areadlink.c (main): Likewise.
68670         * tests/test-areadlinkat-with-size.c (main): Likewise.
68671         * tests/test-areadlinkat.c (main): Likewise.
68672         * tests/test-canonicalize-lgpl.c (main): Likewise.
68673         * tests/test-canonicalize.c (main): Likewise.
68674         * tests/test-chown.c (main): Likewise.
68675         * tests/test-fchownat.c (main): Likewise.
68676         * tests/test-fdutimensat.c (main): Likewise.
68677         * tests/test-fstatat.c (main): Likewise.
68678         * tests/test-futimens.c (main): Likewise.
68679         * tests/test-lchown.c (main): Likewise.
68680         * tests/test-link.c (main): Likewise.
68681         * tests/test-linkat.c (main): Likewise.
68682         * tests/test-lstat.c (main): Likewise.
68683         * tests/test-mkdir.c (main): Likewise.
68684         * tests/test-mkdirat.c (main): Likewise.
68685         * tests/test-mkfifo.c (main): Likewise.
68686         * tests/test-mkfifoat.c (main): Likewise.
68687         * tests/test-mknod.c (main): Likewise.
68688         * tests/test-readlink.c (main): Likewise.
68689         * tests/test-remove.c (main): Likewise.
68690         * tests/test-rename.c (main): Likewise.
68691         * tests/test-renameat.c (main): Likewise.
68692         * tests/test-rmdir.c (main): Likewise.
68693         * tests/test-symlink.c (main): Likewise.
68694         * tests/test-symlinkat.c (main): Likewise.
68695         * tests/test-unlink.c (main): Likewise.
68696         * tests/test-unlinkat.c (main): Likewise.
68697         * tests/test-utimens.c (main): Likewise.
68698         * tests/test-utimensat.c (main): Likewise.
68699         * modules/areadlink-tests (Depends-on): Add ignore-value.
68700         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68701         * modules/areadlinkat-tests (Depends-on): Likewise.
68702         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68703         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68704         * modules/canonicalize-tests (Depends-on): Likewise.
68705         * modules/chown-tests (Depends-on): Likewise.
68706         * modules/fdutimensat-tests (Depends-on): Likewise.
68707         * modules/futimens-tests (Depends-on): Likewise.
68708         * modules/lchown-tests (Depends-on): Likewise.
68709         * modules/link-tests (Depends-on): Likewise.
68710         * modules/linkat-tests (Depends-on): Likewise.
68711         * modules/lstat-tests (Depends-on): Likewise.
68712         * modules/mkdir-tests (Depends-on): Likewise.
68713         * modules/mkfifo-tests (Depends-on): Likewise.
68714         * modules/mkfifoat-tests (Depends-on): Likewise.
68715         * modules/mknod-tests (Depends-on): Likewise.
68716         * modules/openat-tests (Depends-on): Likewise.
68717         * modules/readlink-tests (Depends-on): Likewise.
68718         * modules/remove-tests (Depends-on): Likewise.
68719         * modules/rename-tests (Depends-on): Likewise.
68720         * modules/renameat-tests (Depends-on): Likewise.
68721         * modules/rmdir-tests (Depends-on): Likewise.
68722         * modules/symlink-tests (Depends-on): Likewise.
68723         * modules/symlinkat-tests (Depends-on): Likewise.
68724         * modules/unlink-tests (Depends-on): Likewise.
68725         * modules/utimens-tests (Depends-on): Likewise.
68726         * modules/utimensat-tests (Depends-on): Likewise.
68728 2010-01-31  Bruno Haible  <bruno@clisp.org>
68730         Perform the same test for many <math.h> functions.
68731         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68732         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68733         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68734         of gl_MATHFUNC.
68735         * modules/acos (configure.ac): Likewise.
68736         * modules/asin (configure.ac): Likewise.
68737         * modules/atan (configure.ac): Likewise.
68738         * modules/atan2 (configure.ac): Likewise.
68739         * modules/cbrt (configure.ac): Likewise.
68740         * modules/copysign (configure.ac): Likewise.
68741         * modules/cos (configure.ac): Likewise.
68742         * modules/cosh (configure.ac): Likewise.
68743         * modules/erf (configure.ac): Likewise.
68744         * modules/erfc (configure.ac): Likewise.
68745         * modules/exp (configure.ac): Likewise.
68746         * modules/fmod (configure.ac): Likewise.
68747         * modules/hypot (configure.ac): Likewise.
68748         * modules/j0 (configure.ac): Likewise.
68749         * modules/j1 (configure.ac): Likewise.
68750         * modules/jn (configure.ac): Likewise.
68751         * modules/lgamma (configure.ac): Likewise.
68752         * modules/log (configure.ac): Likewise.
68753         * modules/log10 (configure.ac): Likewise.
68754         * modules/log1p (configure.ac): Likewise.
68755         * modules/pow (configure.ac): Likewise.
68756         * modules/remainder (configure.ac): Likewise.
68757         * modules/sin (configure.ac): Likewise.
68758         * modules/sinh (configure.ac): Likewise.
68759         * modules/tan (configure.ac): Likewise.
68760         * modules/tanh (configure.ac): Likewise.
68761         * modules/y0 (configure.ac): Likewise.
68762         * modules/y1 (configure.ac): Likewise.
68763         * modules/yn (configure.ac): Likewise.
68764         Suggested by Paolo Bonzini.
68766 2010-01-31  Bruno Haible  <bruno@clisp.org>
68768         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68770 2010-01-31  Bruno Haible  <bruno@clisp.org>
68772         Work around getdelim() bug on FreeBSD 8.0.
68773         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68774         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68775         not work.
68776         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68777         is 1.
68778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68779         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68780         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68781         a non-zero size.
68782         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68784 2010-01-31  Bruno Haible  <bruno@clisp.org>
68786         Work around getline() bug on FreeBSD 8.0.
68787         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68788         and a non-zero size.
68789         * tests/test-getline.c (main): Likewise.
68790         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68791         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68793 2010-01-28  Eric Blake  <ebb9@byu.net>
68795         regex: fix build failure
68796         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68797         platforms.
68799 2010-01-28  Jim Meyering  <meyering@redhat.com>
68801         regex: do not ignore memory allocation failure
68802         * lib/regex_internal.c (create_cd_newstate): Detect
68803         re_node_set_init_copy failure.   Extracted from glibc commit
68804         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68806         regex: sync more white-space changes from libc
68807         * lib/regex_internal.c: White-space only changes.
68808         * lib/regexec.c: Likewise.
68810         regex: add many uses of __attribute_warn_unused_result__
68811         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68812         * lib/regexec.c: Likewise.
68813         Extracted from a messy glibc commit.
68815         regcomp.c: spelling and merge-artifact from glibc
68816         * lib/regcomp.c: Merge remainder of glibc's
68817         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68819         regcomp.c: sync white-space changes from glibc
68820         * lib/regcomp.c: Merge to accommodate white space
68821         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68823         regcomp.c: do not ignore internal return values
68824         * lib/regcomp.c: Do not ignore internal return values.
68825         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68826         but without its white-space changes and spelling fixes.
68828         regex_internal.h: define __attribute_warn_unused_result__
68829         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68831         maint: add a syntax-check rule to check for vulnerable Makefile.in
68832         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68834 2010-01-27  Jim Meyering  <meyering@redhat.com>
68836         ncftpput-ftp: clean up spaces
68837         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68838         Remove trailing blanks.
68840 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68842         * build-aux/git-version-gen: Fix copyright statement.
68843         * build-aux/gnupload: Likewise.
68844         * tests/test-arcfour.c: Likewise.
68845         * tests/test-arctwo.c: Likewise.
68846         * tests/test-count-one-bits.c: Likewise.
68847         * tests/test-crc.c: Likewise.
68848         * tests/test-des.c: Likewise.
68849         * tests/test-gc-arcfour.c: Likewise.
68850         * tests/test-gc-arctwo.c: Likewise.
68851         * tests/test-gc-des.c: Likewise.
68852         * tests/test-gc-hmac-md5.c: Likewise.
68853         * tests/test-gc-hmac-sha1.c: Likewise.
68854         * tests/test-gc-md2.c: Likewise.
68855         * tests/test-gc-md4.c: Likewise.
68856         * tests/test-gc-md5.c: Likewise.
68857         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68858         * tests/test-gc-rijndael.c: Likewise.
68859         * tests/test-gc-sha1.c: Likewise.
68860         * tests/test-gc.c: Likewise.
68861         * tests/test-gethostname.c: Likewise.
68862         * tests/test-gettimeofday.c: Likewise.
68863         * tests/test-hash.c: Likewise.
68864         * tests/test-hmac-md5.c: Likewise.
68865         * tests/test-hmac-sha1.c: Likewise.
68866         * tests/test-md2.c: Likewise.
68867         * tests/test-md4.c: Likewise.
68868         * tests/test-md5.c: Likewise.
68869         * tests/test-memchr.c: Likewise.
68870         * tests/test-memchr2.c: Likewise.
68871         * tests/test-memcmp.c: Likewise.
68872         * tests/test-memmem.c: Likewise.
68873         * tests/test-memrchr.c: Likewise.
68874         * tests/test-rawmemchr.c: Likewise.
68875         * tests/test-read-file.c: Likewise.
68876         * tests/test-rijndael.c: Likewise.
68877         * tests/test-sockets.c: Likewise.
68878         * tests/test-strchrnul.c: Likewise.
68879         * tests/test-strstr.c: Likewise.
68880         * tests/test-strtod.c: Likewise.
68881         * build-aux/ncftpput-ftp: Likewise.
68883 2010-01-26  Eric Blake  <ebb9@byu.net>
68885         ignore-value: update recommended header name
68886         * modules/ignore-value (Include): Only use <> for headers that
68887         exist in glibc.
68889 2010-01-26  Jim Meyering  <meyering@redhat.com>
68891         test-userspec.c: avoid compiler warnings
68892         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68893         and "initialization discards qualifiers..." warnings.
68894         Put the first "uid" in its own scope, and make char* members "const".
68896 2010-01-25  Bruno Haible  <bruno@clisp.org>
68898         gnulib-tool: Make warning diagnostics consistent.
68899         * gnulib-tool (func_warning): New function.
68900         Use it everywhere where gnulib-tool produces output to stderr and it is
68901         not a fatal error.
68903 2010-01-25  Bruno Haible  <bruno@clisp.org>
68905         Fix test dependencies.
68906         * modules/xstrtol-tests (Depends-on): Add inttypes.
68907         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68909 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68911         syntax-check: detect incorrect boolean macro values in config.h
68912         * modules/maintainer-makefile (configure.ac): Parameterize the location
68913         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68914         The logic is from Eric Blake and the location indicated by Jim Meyering.
68915         Note the more natural CONFIG_HEADER name is prohibited by automake
68916         for backwards compatibility reasons.
68917         * top/maint.mk (sc_Wundef_boolean): New rule.
68919 2010-01-25  Jim Meyering  <meyering@redhat.com>
68921         bootstrap: detect MacOS 10.6's shasum, too
68922         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68923         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68925 2010-01-23  Jim Meyering  <meyering@redhat.com>
68927         xstrtoll: new module
68928         * modules/xstrtoll: New file.
68929         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68930         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68931         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68932         ./configure fails if you use this module and lack "long long".
68933         * modules/xstrtoll-tests: New module.
68934         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68935         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68936         new init.sh-based test framework.
68938 2010-01-24  Bruno Haible  <bruno@clisp.org>
68940         Tests for module 'yn'.
68941         * modules/yn-tests: New file.
68942         * tests/test-yn.c: New file.
68944         Tests for module 'y1'.
68945         * modules/y1-tests: New file.
68946         * tests/test-y1.c: New file.
68948         Tests for module 'y0'.
68949         * modules/y0-tests: New file.
68950         * tests/test-y0.c: New file.
68952         Tests for module 'tanh'.
68953         * modules/tanh-tests: New file.
68954         * tests/test-tanh.c: New file.
68956         Tests for module 'tan'.
68957         * modules/tan-tests: New file.
68958         * tests/test-tan.c: New file.
68960         Tests for module 'sqrt'.
68961         * modules/sqrt-tests: New file.
68962         * tests/test-sqrt.c: New file.
68964         Tests for module 'sinh'.
68965         * modules/sinh-tests: New file.
68966         * tests/test-sinh.c: New file.
68968         Tests for module 'sin'.
68969         * modules/sin-tests: New file.
68970         * tests/test-sin.c: New file.
68972         Tests for module 'rint'.
68973         * modules/rint-tests: New file.
68974         * tests/test-rint.c: New file.
68976         Tests for module 'remainder'.
68977         * modules/remainder-tests: New file.
68978         * tests/test-remainder.c: New file.
68980         Tests for module 'pow'.
68981         * modules/pow-tests: New file.
68982         * tests/test-pow.c: New file.
68984         Tests for module 'nextafter'.
68985         * modules/nextafter-tests: New file.
68986         * tests/test-nextafter.c: New file.
68988         Tests for module 'modf'.
68989         * modules/modf-tests: New file.
68990         * tests/test-modf.c: New file.
68992         Tests for module 'logb'.
68993         * modules/logb-tests: New file.
68994         * tests/test-logb.c: New file.
68996         Tests for module 'log1p'.
68997         * modules/log1p-tests: New file.
68998         * tests/test-log1p.c: New file.
69000         Tests for module 'log10'.
69001         * modules/log10-tests: New file.
69002         * tests/test-log10.c: New file.
69004         Tests for module 'log'.
69005         * modules/log-tests: New file.
69006         * tests/test-log.c: New file.
69008         Tests for module 'lgamma'.
69009         * modules/lgamma-tests: New file.
69010         * tests/test-lgamma.c: New file.
69012         Tests for module 'ldexp'.
69013         * modules/ldexp-tests: New file.
69014         * tests/test-ldexp.c: New file.
69016         Tests for module 'jn'.
69017         * modules/jn-tests: New file.
69018         * tests/test-jn.c: New file.
69020         Tests for module 'j1'.
69021         * modules/j1-tests: New file.
69022         * tests/test-j1.c: New file.
69024         Tests for module 'j0'.
69025         * modules/j0-tests: New file.
69026         * tests/test-j0.c: New file.
69028         Tests for module 'hypot'.
69029         * modules/hypot-tests: New file.
69030         * tests/test-hypot.c: New file.
69032         Tests for module 'fmod'.
69033         * modules/fmod-tests: New file.
69034         * tests/test-fmod.c: New file.
69036         Tests for module 'fabs'.
69037         * modules/fabs-tests: New file.
69038         * tests/test-fabs.c: New file.
69040         Tests for module 'exp'.
69041         * modules/exp-tests: New file.
69042         * tests/test-exp.c: New file.
69044         Tests for module 'erfc'.
69045         * modules/erfc-tests: New file.
69046         * tests/test-erfc.c: New file.
69048         Tests for module 'erf'.
69049         * modules/erf-tests: New file.
69050         * tests/test-erf.c: New file.
69052         Tests for module 'cosh'.
69053         * modules/cosh-tests: New file.
69054         * tests/test-cosh.c: New file.
69056         Tests for module 'cos'.
69057         * modules/cos-tests: New file.
69058         * tests/test-cos.c: New file.
69060         Tests for module 'copysign'.
69061         * modules/copysign-tests: New file.
69062         * tests/test-copysign.c: New file.
69064         Tests for module 'cbrt'.
69065         * modules/cbrt-tests: New file.
69066         * tests/test-cbrt.c: New file.
69068         Tests for module 'atan2'.
69069         * modules/atan2-tests: New file.
69070         * tests/test-atan2.c: New file.
69072         Tests for module 'atan'.
69073         * modules/atan-tests: New file.
69074         * tests/test-atan.c: New file.
69076         Tests for module 'asin'.
69077         * modules/asin-tests: New file.
69078         * tests/test-asin.c: New file.
69080         Tests for module 'acos'.
69081         * modules/acos-tests: New file.
69082         * tests/test-acos.c: New file.
69084 2010-01-24  Bruno Haible  <bruno@clisp.org>
69086         Fix tests for common <math.h> functions.
69087         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69088         code snippet that references the function pointer, rather than merely
69089         calling the function. Substitute the FUNC_LIBM variable.
69090         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69091         * modules/acos (configure.ac): Likewise.
69092         * modules/asin (configure.ac): Likewise.
69093         * modules/atan (configure.ac): Likewise.
69094         * modules/atan2 (configure.ac): Likewise.
69095         * modules/cbrt (configure.ac): Likewise.
69096         * modules/copysign (configure.ac): Likewise.
69097         * modules/cos (configure.ac): Likewise.
69098         * modules/cosh (configure.ac): Likewise.
69099         * modules/erf (configure.ac): Likewise.
69100         * modules/erfc (configure.ac): Likewise.
69101         * modules/exp (configure.ac): Likewise.
69102         * modules/fabs (configure.ac): Likewise.
69103         * modules/fmod (configure.ac): Likewise.
69104         * modules/hypot (configure.ac): Likewise.
69105         * modules/j0 (configure.ac): Likewise.
69106         * modules/j1 (configure.ac): Likewise.
69107         * modules/jn (configure.ac): Likewise.
69108         * modules/ldexp (configure.ac): Likewise.
69109         * modules/lgamma (configure.ac): Likewise.
69110         * modules/log (configure.ac): Likewise.
69111         * modules/log10 (configure.ac): Likewise.
69112         * modules/log1p (configure.ac): Likewise.
69113         * modules/logb (configure.ac): Likewise.
69114         * modules/modf (configure.ac): Likewise.
69115         * modules/nextafter (configure.ac): Likewise.
69116         * modules/pow (configure.ac): Likewise.
69117         * modules/remainder (configure.ac): Likewise.
69118         * modules/rint (configure.ac): Likewise.
69119         * modules/sin (configure.ac): Likewise.
69120         * modules/sinh (configure.ac): Likewise.
69121         * modules/tan (configure.ac): Likewise.
69122         * modules/tanh (configure.ac): Likewise.
69123         * modules/y0 (configure.ac): Likewise.
69124         * modules/y1 (configure.ac): Likewise.
69125         * modules/yn (configure.ac): Likewise.
69127 2010-01-24  Bruno Haible  <bruno@clisp.org>
69129         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69130         * tests/test-acosl.c (x): New variable.
69131         (main): Store argument in x and fetch it from x.
69132         * tests/test-asinl.c (x): New variable.
69133         (main): Store argument in x and fetch it from x.
69134         * tests/test-atanl.c (x): New variable.
69135         (main): Store argument in x and fetch it from x.
69136         * tests/test-cosl.c (x): New variable.
69137         (main): Store argument in x and fetch it from x.
69138         * tests/test-expl.c (x): New variable.
69139         (main): Store argument in x and fetch it from x.
69140         * tests/test-logl.c (x): New variable.
69141         (main): Store argument in x and fetch it from x.
69142         * tests/test-sinl.c (x): New variable.
69143         (main): Store argument in x and fetch it from x.
69144         * tests/test-sqrtl.c (x): New variable.
69145         (main): Store argument in x and fetch it from x.
69146         * tests/test-tanl.c (x): New variable.
69147         (main): Store argument in x and fetch it from x.
69149 2010-01-24  Bruno Haible  <bruno@clisp.org>
69151         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69152         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69153         assignments to the initial TESTS_ENVIRONMENT.
69154         * doc/gnulib.texi (Unit test modules): Document it.
69155         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69156         TESTS_ENVIRONMENT.
69157         * modules/btowc-tests (Makefile.am): Likewise.
69158         * modules/c-stack-tests (Makefile.am): Likewise.
69159         * modules/c-strcase-tests (Makefile.am): Likewise.
69160         * modules/copy-file-tests (Makefile.am): Likewise.
69161         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69162         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69163         * modules/mbrtowc-tests (Makefile.am): Likewise.
69164         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69165         * modules/mbscasestr-tests (Makefile.am): Likewise.
69166         * modules/mbschr-tests (Makefile.am): Likewise.
69167         * modules/mbscspn-tests (Makefile.am): Likewise.
69168         * modules/mbsinit-tests (Makefile.am): Likewise.
69169         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69170         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69171         * modules/mbspbrk-tests (Makefile.am): Likewise.
69172         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69173         * modules/mbsrchr-tests (Makefile.am): Likewise.
69174         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69175         * modules/mbsspn-tests (Makefile.am): Likewise.
69176         * modules/mbsstr-tests (Makefile.am): Likewise.
69177         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69178         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69179         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69180         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69181         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69182         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69183         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69184         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69185         * modules/wcrtomb-tests (Makefile.am): Likewise.
69186         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69187         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69188         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69189         assignments from TESTS_ENVIRONMENT.
69190         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69191         augmentation.
69192         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69193         * modules/atexit-tests (Makefile.am): Likewise.
69194         * modules/binary-io-tests (Makefile.am): Likewise.
69195         * modules/closein-tests (Makefile.am): Likewise.
69196         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69197         * modules/exclude-tests (Makefile.am): Likewise.
69198         * modules/fflush-tests (Makefile.am): Likewise.
69199         * modules/fpending-tests (Makefile.am): Likewise.
69200         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69201         * modules/freadahead-tests (Makefile.am): Likewise.
69202         * modules/freadptr-tests (Makefile.am): Likewise.
69203         * modules/freadseek-tests (Makefile.am): Likewise.
69204         * modules/fseek-tests (Makefile.am): Likewise.
69205         * modules/fseeko-tests (Makefile.am): Likewise.
69206         * modules/ftell-tests (Makefile.am): Likewise.
69207         * modules/ftello-tests (Makefile.am): Likewise.
69208         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69209         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69210         * modules/lseek-tests (Makefile.am): Likewise.
69211         * modules/parse-duration-tests (Makefile.am): Likewise.
69212         * modules/perror-tests (Makefile.am): Likewise.
69213         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69214         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69215         * modules/pipe-tests (Makefile.am): Likewise.
69216         * modules/pread-tests (Makefile.am): Likewise.
69217         * modules/printf-posix-tests (Makefile.am): Likewise.
69218         * modules/select-tests (Makefile.am): Likewise.
69219         * modules/sigpipe-tests (Makefile.am): Likewise.
69220         * modules/tsearch-tests (Makefile.am): Likewise.
69221         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69222         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69223         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69224         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69225         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69226         * modules/version-etc-tests (Makefile.am): Likewise.
69227         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69228         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69229         * modules/xalloc-die-tests (Makefile.am): Likewise.
69230         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69231         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69232         * modules/xstrtol-tests (Makefile.am): Likewise.
69233         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69234         * modules/yesno-tests (Makefile.am): Likewise.
69235         Suggested by Jim Meyering.
69237 2010-01-24  Bruno Haible  <bruno@clisp.org>
69239         More documentation.
69240         * doc/gnulib.texi (Writing modules): New chapter.
69241         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69242         the new chapter.
69244 2010-01-24  Jim Meyering  <meyering@redhat.com>
69246         maint.mk: do not prepend "./" after filtering
69247         * top/maint.mk (_prepend_srcdir_prefix): New variable
69248         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69249         "./" when $(srcdir) is ".".
69251         define STREQ(a,b) consistently, removing useless parentheses
69252         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69253         since the only risk is that "a" or "b" contains an unparenthesized
69254         comma, but if either did that, STREQ would have 3 or more arguments.
69255         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69256         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69257         * lib/hash-triple.c (STREQ): Likewise.
69258         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69259         * lib/getugroups.c (STREQ): Likewise.
69261 2010-01-23  Jim Meyering  <meyering@redhat.com>
69263         maint.mk: fix syntax-check in a non-srcdir build directory
69264         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69265         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69267 2010-01-22  Jim Meyering  <meyering@redhat.com>
69269         userspec: add unit tests
69270         * tests/test-userspec.c: New file.
69271         * modules/userspec-tests: Likewise.
69273 2010-01-21  Jim Meyering  <meyering@redhat.com>
69275         maint.mk: handle source file names containing "." robustly
69276         * top/maint.mk (_dot_escaped_srcdir): Define.
69277         (VC_LIST): Use it in LHS of sed substitution.
69279 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69281         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69282         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69283         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69284         from a non-srcdir build.
69286 2010-01-20  Eric Blake  <ebb9@byu.net>
69288         warn-on-use: use instead of link-warning
69289         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69290         * modules/unistd (Depends-on, Makefile.am): Likewise.
69291         * modules/arpa_inet (Depends-on): Replace link-warning with
69292         warn-on-use.
69293         (Makefile.am): Update rules accordingly.
69294         * modules/ctype (Depends-on, Makefile.am): Likewise.
69295         * modules/dirent (Depends-on, Makefile.am): Likewise.
69296         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69297         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69298         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69299         * modules/locale (Depends-on, Makefile.am): Likewise.
69300         * modules/math (Depends-on, Makefile.am): Likewise.
69301         * modules/search (Depends-on, Makefile.am): Likewise.
69302         * modules/signal (Depends-on, Makefile.am): Likewise.
69303         * modules/spawn (Depends-on, Makefile.am): Likewise.
69304         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69305         * modules/string (Depends-on, Makefile.am): Likewise.
69306         * modules/strings (Depends-on, Makefile.am): Likewise.
69307         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69308         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69309         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69310         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69311         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69312         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69313         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69314         * modules/wchar (Depends-on, Makefile.am): Likewise.
69315         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69316         should be poisoned.
69317         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69318         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69319         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69320         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69321         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69322         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69323         * m4/math_h.m4 (gl_MATH_H): Likewise.
69324         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69325         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69326         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69327         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69328         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69329         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69330         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69331         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69332         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69334         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69337         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69339         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69340         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69341         GL_LINK_WARNING.
69342         * lib/ctype.in.h: Likewise.
69343         * lib/dirent.in.h: Likewise.
69344         * lib/fcntl.in.h: Likewise.
69345         * lib/inttypes.in.h: Likewise.
69346         * lib/langinfo.in.h: Likewise.
69347         * lib/locale.in.h: Likewise.
69348         * lib/math.in.h: Likewise.
69349         * lib/search.in.h: Likewise.
69350         * lib/signal.in.h: Likewise.
69351         * lib/spawn.in.h: Likewise.
69352         * lib/stdio.in.h: Likewise.
69353         * lib/stdlib.in.h: Likewise.
69354         * lib/string.in.h: Likewise.
69355         * lib/strings.in.h: Likewise.
69356         * lib/sys_file.in.h: Likewise.
69357         * lib/sys_ioctl.in.h: Likewise.
69358         * lib/sys_select.in.h: Likewise.
69359         * lib/sys_socket.in.h: Likewise.
69360         * lib/sys_stat.in.h: Likewise.
69361         * lib/sys_times.in.h: Likewise.
69362         * lib/sys_utsname.in.h: Likewise.
69363         * lib/unistd.in.h: Likewise.
69364         * lib/wchar.in.h: Likewise.
69366 2010-01-20  Bruno Haible  <bruno@clisp.org>
69368         Avoid duplicate -lm.
69369         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69370         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69371         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69373         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69374         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69375         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69376         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69377         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69378         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69379         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69380         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69381         Reported by Paolo Bonzini.
69383 2010-01-19  Bruno Haible  <bruno@clisp.org>
69385         langinfo, nl_langinfo: Relicense under LGPLv2+.
69386         * modules/langinfo (License): Change to LGPLv2+.
69387         * modules/nl_langinfo (License): Likewise.
69388         Patch by David Lutterkort <lutter@redhat.com>.
69390 2010-01-19  Bruno Haible  <bruno@clisp.org>
69392         Avoid compilation error with cc on OSF/1 5.1.
69393         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69394         statement, not before.
69395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69397 2010-01-18  Bruno Haible  <bruno@clisp.org>
69399         Avoid a link error due to the __printf__ symbol.
69400         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69401         and 2.6.x.
69402         (__format__, __printf__): Remove definitions.
69403         * lib/argp-fmtstream.h: Likewise.
69404         * lib/argp.h: Likewise.
69405         * lib/error.h: Likewise.
69406         * lib/vasnprintf.h: Likewise.
69407         * lib/xprintf.h: Likewise.
69408         * lib/xvasprintf.h: Likewise.
69409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69411 2010-01-18  Bruno Haible  <bruno@clisp.org>
69413         Tests for module 'tanl'.
69414         * modules/tanl-tests: New file.
69415         * tests/test-tanl.c: New file.
69417         Tests for module 'sqrtl'.
69418         * modules/sqrtl-tests: New file.
69419         * tests/test-sqrtl.c: New file.
69421         Tests for module 'sinl'.
69422         * modules/sinl-tests: New file.
69423         * tests/test-sinl.c: New file.
69425         Tests for module 'logl'.
69426         * modules/logl-tests: New file.
69427         * tests/test-logl.c: New file.
69429         Tests for module 'expl'.
69430         * modules/expl-tests: New file.
69431         * tests/test-expl.c: New file.
69433         Tests for module 'cosl'.
69434         * modules/cosl-tests: New file.
69435         * tests/test-cosl.c: New file.
69437         Tests for module 'atanl'.
69438         * modules/atanl-tests: New file.
69439         * tests/test-atanl.c: New file.
69441         Tests for module 'asinl'.
69442         * modules/asinl-tests: New file.
69443         * tests/test-asinl.c: New file.
69445         Tests for module 'acosl'.
69446         * modules/acosl-tests: New file.
69447         * tests/test-acosl.c: New file.
69449         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69450         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69451         tanl): Use the standard gnulib idiom.
69452         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69453         * lib/sinl.c: Likewise.
69454         * lib/tanl.c: Don't include trigl.c.
69455         (kernel_tanl): Make static.
69456         * lib/sincosl.c: Include trigl.h first.
69457         * lib/trigl.c: Likewise.
69458         * m4/acosl.m4: New file.
69459         * m4/asinl.m4: New file.
69460         * m4/atanl.m4: New file.
69461         * m4/cosl.m4: New file.
69462         * m4/expl.m4: New file.
69463         * m4/logl.m4: New file.
69464         * m4/sinl.m4: New file.
69465         * m4/sqrtl.m4: New file.
69466         * m4/tanl.m4: New file.
69467         * m4/mathl.m4: Remove file.
69468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69469         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69470         Don't initialize GNULIB_MATHL.
69471         * modules/acosl: New file.
69472         * modules/asinl: New file.
69473         * modules/atanl: New file.
69474         * modules/cosl: New file.
69475         * modules/expl: New file.
69476         * modules/logl: New file.
69477         * modules/sinl: New file.
69478         * modules/sqrtl: New file.
69479         * modules/tanl: New file.
69480         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69481         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69482         substitute GNULIB_MATHL.
69483         * modules/mathl: Rewritten.
69484         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69485         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69486         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69487         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69488         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69489         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69490         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69491         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69492         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69494 2010-01-18  Bruno Haible  <bruno@clisp.org>
69496         sqrt: Make gl_FUNC_SQRT requirable.
69497         * m4/sqrt.m4: New file.
69498         * modules/sqrt (Files): Add it.
69499         (configure.ac): Invoke gl_FUNC_SQRT.
69501 2010-01-18  Bruno Haible  <bruno@clisp.org>
69503         New modules for common <math.h> functions.
69504         * m4/mathfunc.m4: New file.
69505         * modules/acos: New file.
69506         * modules/asin: New file.
69507         * modules/atan: New file.
69508         * modules/atan2: New file.
69509         * modules/cbrt: New file.
69510         * modules/copysign: New file.
69511         * modules/cos: New file.
69512         * modules/cosh: New file.
69513         * modules/erf: New file.
69514         * modules/erfc: New file.
69515         * modules/exp: New file.
69516         * modules/fabs: New file.
69517         * modules/fmod: New file.
69518         * modules/hypot: New file.
69519         * modules/j0: New file.
69520         * modules/j1: New file.
69521         * modules/jn: New file.
69522         * modules/ldexp: New file.
69523         * modules/lgamma: New file.
69524         * modules/log: New file.
69525         * modules/log10: New file.
69526         * modules/log1p: New file.
69527         * modules/logb: New file.
69528         * modules/modf: New file.
69529         * modules/nextafter: New file.
69530         * modules/pow: New file.
69531         * modules/remainder: New file.
69532         * modules/rint: New file.
69533         * modules/sin: New file.
69534         * modules/sinh: New file.
69535         * modules/sqrt: New file.
69536         * modules/tan: New file.
69537         * modules/tanh: New file.
69538         * modules/y0: New file.
69539         * modules/y1: New file.
69540         * modules/yn: New file.
69541         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69542         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69543         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69544         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69545         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69546         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69547         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69548         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69549         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69550         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69551         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69552         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69553         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69554         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69555         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69556         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69557         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69558         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69559         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69560         * doc/posix-functions/log.texi: Mention the 'log' module.
69561         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69562         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69563         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69564         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69565         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69566         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69567         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69568         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69569         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69570         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69571         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69572         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69573         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69574         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69575         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69576         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69578 2010-01-18  Jim Meyering  <meyering@redhat.com>
69580         ignore-value: relax license to LGPLv2+
69581         * modules/ignore-value (License): Relax to LGPLv2+.
69583         getdate: don't leak when TZ contains two or more '"'s
69584         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69585         double quote in TZ after the first one.
69587         readtokens: do not leak internal token_lengths buffer
69588         * lib/readtokens.c (readtokens): Free the local, lengths,
69589         when the supplied "token_lengths" parameter is NULL.
69591 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69593         Fix a couple of missing LIBTHREAD link failures on AIX.
69594         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69595         $(LIBTHREAD).
69596         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69598         Link test-poll against INET_PTON_LIB.
69599         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69600         for inet_pton on Solaris 10.
69602 2010-01-17  Bruno Haible  <bruno@clisp.org>
69604         unistdio/*-sprintf: Fix typo in module description.
69605         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69606         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69607         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69608         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69609         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69610         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69611         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69614 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69616         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69617         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69618         variables in shell case patterns, for AIX and HP-UX ksh.
69620         Split large sed scripts, for HP-UX sed.
69621         * modules/stdio: Split sed scripts around 50 sed commands,
69622         to avoid HP-UX limit of 99 commands, in the near future.
69623         * modules/string: Likewise.
69624         * modules/unistd: Likewise.
69626         gnulib-tool: avoid writing in the current directory.
69627         * gnulib-tool (func_emit_lib_Makefile_am)
69628         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69629         not in the current directory, so concurrent gnulib-tool
69630         instances do not interfere.
69632 2010-01-16  Jim Meyering  <meyering@redhat.com>
69634         doc: update users.txt
69635         * users.txt: Add grep.
69636         (diffutils, gzip): Update URLs.
69638 2010-01-12  Bruno Haible  <bruno@clisp.org>
69640         posix_spawn: Avoid test failure on Cygwin.
69641         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69642         characters.
69643         Reported by Simon Josefsson.
69645 2010-01-12  Bruno Haible  <bruno@clisp.org>
69647         * tests/test-cond.c (main): When skipping the test, show the reason.
69649 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69651         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69653 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69655         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69656         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69658 2010-01-12  Eric Blake  <ebb9@byu.net>
69660         build: guarantee AS_VAR_IF
69661         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69662         (gl_AS_VAR_IF): Move...
69663         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69664         Reported by Simon Josefsson.
69666 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69668         * lib/stdio.in.h: Fix typo.
69670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69672         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69673         libgpg-error.
69675 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69677         * tests/test-xalloc-die.sh: Use $EXEEXT.
69679 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69680             Bruno Haible  <bruno@clisp.org>
69682         getlogin, getlogin_r: Avoid test failure.
69683         * tests/test-getlogin.c: Include <stdio.h>.
69684         (main): Skip the test when the function fails because stdin is not a
69685         tty.
69686         * tests/test-getlogin_r.c: Include <stdio.h>.
69687         (main): Skip the test when the function fails because stdin is not a
69688         tty.
69690 2010-01-11  Eric Blake  <ebb9@byu.net>
69692         tests: avoid more large file warnings
69693         * tests/test-fflush.c: Avoid warning about ftell use.
69694         * tests/test-fseek.c: Avoid warning about fseek use.
69696 2010-01-10  Bruno Haible  <bruno@clisp.org>
69698         nproc: Work better on Linux when /proc and /sys are not mounted.
69699         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69700         as lower bound when, on glibc/Linux systems,
69701         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69702         Suggested by Pádraig Brady <P@draigbrady.com>.
69703         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69705         nproc: Refactor.
69706         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69707         extracted from num_processors.
69708         (num_processors): Call it.
69710 2010-01-11  Jim Meyering  <meyering@redhat.com>
69712         utimecmp: avoid new warning from upcoming gcc-4.5.0
69713         * lib/utimecmp.c (BILLION): Define using #define rather than an
69714         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69716 2010-01-11  Eric Blake  <ebb9@byu.net>
69718         math: add portability warnings for classification macros
69719         * modules/math (Depends-on): Add warn-on-use.
69720         (Makefile.am): Provide new substitutions.
69721         * m4/math_h.m4 (gl_MATH_H): Require inline.
69722         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69723         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69724         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69725         implement warnings.
69727         unistd: warn on use of environ without module
69728         * modules/unistd (Depends-on): Add warn-on-use.
69729         (Makefile.am): Provide new substitutions.
69730         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69731         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69733         stdio: warn on suspicious uses
69734         * modules/stdio (Depends-on): Add warn-on-use.
69735         (Makefile.am): Provide new substitutions.
69736         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69737         fseeko.
69738         * lib/stdio.in.h (gets): Always warn on use.
69739         (fseek, ftell): Adjust when warnings are issued, and honor
69740         _GL_NO_LARGE_FILES as a way to silence the warning.
69741         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69742         any warning about large file offsets.
69743         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69744         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69745         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69746         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69747         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69748         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69749         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69750         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69752         warn-on-use: new module
69753         * modules/warn-on-use: New file.
69754         * build-aux/warn-on-use.h: Likewise.
69755         * m4/warn-on-use.m4: Likewise.
69756         * MODULES.html.sh (Support for building): Mention it.
69758 2010-01-10  Bruno Haible  <bruno@clisp.org>
69760         Tests for module 'unistr/u32-strdup'.
69761         * modules/unistr/u32-strdup-tests: New file.
69762         * tests/unistr/test-u32-strdup.c: New file.
69764         Tests for module 'unistr/u16-strdup'.
69765         * modules/unistr/u16-strdup-tests: New file.
69766         * tests/unistr/test-u16-strdup.c: New file.
69768         Tests for module 'unistr/u8-strdup'.
69769         * modules/unistr/u8-strdup-tests: New file.
69770         * tests/unistr/test-u8-strdup.c: New file.
69771         * tests/unistr/test-strdup.h: New file.
69773         Tests for module 'unistr/u32-strncmp'.
69774         * modules/unistr/u32-strncmp-tests: New file.
69775         * tests/unistr/test-u32-strncmp.c: New file.
69777         Tests for module 'unistr/u16-strncmp'.
69778         * modules/unistr/u16-strncmp-tests: New file.
69779         * tests/unistr/test-u16-strncmp.c: New file.
69781         Tests for module 'unistr/u8-strncmp'.
69782         * modules/unistr/u8-strncmp-tests: New file.
69783         * tests/unistr/test-u8-strncmp.c: New file.
69784         * tests/unistr/test-strncmp.h: New file.
69786         Tests for module 'unistr/u32-strcoll'.
69787         * modules/unistr/u32-strcoll-tests: New file.
69788         * tests/unistr/test-u32-strcoll.c: New file.
69790         Tests for module 'unistr/u16-strcoll'.
69791         * modules/unistr/u16-strcoll-tests: New file.
69792         * tests/unistr/test-u16-strcoll.c: New file.
69794         Tests for module 'unistr/u8-strcoll'.
69795         * modules/unistr/u8-strcoll-tests: New file.
69796         * tests/unistr/test-u8-strcoll.c: New file.
69798         Tests for module 'unistr/u32-strcmp'.
69799         * modules/unistr/u32-strcmp-tests: New file.
69800         * tests/unistr/test-u32-strcmp.c: New file.
69801         * tests/unistr/test-u32-strcmp.h: New file.
69803         Tests for module 'unistr/u16-strcmp'.
69804         * modules/unistr/u16-strcmp-tests: New file.
69805         * tests/unistr/test-u16-strcmp.c: New file.
69806         * tests/unistr/test-u16-strcmp.h: New file.
69808         Tests for module 'unistr/u8-strcmp'.
69809         * modules/unistr/u8-strcmp-tests: New file.
69810         * tests/unistr/test-u8-strcmp.c: New file.
69811         * tests/unistr/test-u8-strcmp.h: New file.
69812         * tests/unistr/test-strcmp.h: New file.
69814         Tests for module 'unistr/u32-strncat'.
69815         * modules/unistr/u32-strncat-tests: New file.
69816         * tests/unistr/test-u32-strncat.c: New file.
69818         Tests for module 'unistr/u16-strncat'.
69819         * modules/unistr/u16-strncat-tests: New file.
69820         * tests/unistr/test-u16-strncat.c: New file.
69822         Tests for module 'unistr/u8-strncat'.
69823         * modules/unistr/u8-strncat-tests: New file.
69824         * tests/unistr/test-u8-strncat.c: New file.
69825         * tests/unistr/test-strncat.h: New file.
69827         Tests for module 'unistr/u32-strcat'.
69828         * modules/unistr/u32-strcat-tests: New file.
69829         * tests/unistr/test-u32-strcat.c: New file.
69831         Tests for module 'unistr/u16-strcat'.
69832         * modules/unistr/u16-strcat-tests: New file.
69833         * tests/unistr/test-u16-strcat.c: New file.
69835         Tests for module 'unistr/u8-strcat'.
69836         * modules/unistr/u8-strcat-tests: New file.
69837         * tests/unistr/test-u8-strcat.c: New file.
69838         * tests/unistr/test-strcat.h: New file.
69840         Tests for module 'unistr/u32-stpncpy'.
69841         * modules/unistr/u32-stpncpy-tests: New file.
69842         * tests/unistr/test-u32-stpncpy.c: New file.
69844         Tests for module 'unistr/u16-stpncpy'.
69845         * modules/unistr/u16-stpncpy-tests: New file.
69846         * tests/unistr/test-u16-stpncpy.c: New file.
69848         Tests for module 'unistr/u8-stpncpy'.
69849         * modules/unistr/u8-stpncpy-tests: New file.
69850         * tests/unistr/test-u8-stpncpy.c: New file.
69851         * tests/unistr/test-stpncpy.h: New file.
69853         Tests for module 'unistr/u32-strncpy'.
69854         * modules/unistr/u32-strncpy-tests: New file.
69855         * tests/unistr/test-u32-strncpy.c: New file.
69857         Tests for module 'unistr/u16-strncpy'.
69858         * modules/unistr/u16-strncpy-tests: New file.
69859         * tests/unistr/test-u16-strncpy.c: New file.
69861         Tests for module 'unistr/u8-strncpy'.
69862         * modules/unistr/u8-strncpy-tests: New file.
69863         * tests/unistr/test-u8-strncpy.c: New file.
69864         * tests/unistr/test-strncpy.h: New file.
69866         Tests for module 'unistr/u32-stpcpy'.
69867         * modules/unistr/u32-stpcpy-tests: New file.
69868         * tests/unistr/test-u32-stpcpy.c: New file.
69870         Tests for module 'unistr/u16-stpcpy'.
69871         * modules/unistr/u16-stpcpy-tests: New file.
69872         * tests/unistr/test-u16-stpcpy.c: New file.
69874         Tests for module 'unistr/u8-stpcpy'.
69875         * modules/unistr/u8-stpcpy-tests: New file.
69876         * tests/unistr/test-u8-stpcpy.c: New file.
69877         * tests/unistr/test-stpcpy.h: New file.
69879         Tests for module 'unistr/u32-strcpy'.
69880         * modules/unistr/u32-strcpy-tests: New file.
69881         * tests/unistr/test-u32-strcpy.c: New file.
69883         Tests for module 'unistr/u16-strcpy'.
69884         * modules/unistr/u16-strcpy-tests: New file.
69885         * tests/unistr/test-u16-strcpy.c: New file.
69887         Tests for module 'unistr/u8-strcpy'.
69888         * modules/unistr/u8-strcpy-tests: New file.
69889         * tests/unistr/test-u8-strcpy.c: New file.
69890         * tests/unistr/test-strcpy.h: New file.
69892         Tests for module 'unistr/u32-strnlen'.
69893         * modules/unistr/u32-strnlen-tests: New file.
69894         * tests/unistr/test-u32-strnlen.c: New file.
69896         Tests for module 'unistr/u16-strnlen'.
69897         * modules/unistr/u16-strnlen-tests: New file.
69898         * tests/unistr/test-u16-strnlen.c: New file.
69900         Tests for module 'unistr/u8-strnlen'.
69901         * modules/unistr/u8-strnlen-tests: New file.
69902         * tests/unistr/test-u8-strnlen.c: New file.
69903         * tests/unistr/test-strnlen.h: New file.
69905         Tests for module 'unistr/u32-strlen'.
69906         * modules/unistr/u32-strlen-tests: New file.
69907         * tests/unistr/test-u32-strlen.c: New file.
69909         Tests for module 'unistr/u16-strlen'.
69910         * modules/unistr/u16-strlen-tests: New file.
69911         * tests/unistr/test-u16-strlen.c: New file.
69913         Tests for module 'unistr/u8-strlen'.
69914         * modules/unistr/u8-strlen-tests: New file.
69915         * tests/unistr/test-u8-strlen.c: New file.
69917         Tests for module 'unistr/u32-prev'.
69918         * modules/unistr/u32-prev-tests: New file.
69919         * tests/unistr/test-u32-prev.c: New file.
69921         Tests for module 'unistr/u16-prev'.
69922         * modules/unistr/u16-prev-tests: New file.
69923         * tests/unistr/test-u16-prev.c: New file.
69925         Tests for module 'unistr/u8-prev'.
69926         * modules/unistr/u8-prev-tests: New file.
69927         * tests/unistr/test-u8-prev.c: New file.
69929         Tests for module 'unistr/u32-next'.
69930         * modules/unistr/u32-next-tests: New file.
69931         * tests/unistr/test-u32-next.c: New file.
69933         Tests for module 'unistr/u16-next'.
69934         * modules/unistr/u16-next-tests: New file.
69935         * tests/unistr/test-u16-next.c: New file.
69937         Tests for module 'unistr/u8-next'.
69938         * modules/unistr/u8-next-tests: New file.
69939         * tests/unistr/test-u8-next.c: New file.
69941         Tests for module 'unistr/u32-strmbtouc'.
69942         * modules/unistr/u32-strmbtouc-tests: New file.
69943         * tests/unistr/test-u32-strmbtouc.c: New file.
69945         Tests for module 'unistr/u16-strmbtouc'.
69946         * modules/unistr/u16-strmbtouc-tests: New file.
69947         * tests/unistr/test-u16-strmbtouc.c: New file.
69949         Tests for module 'unistr/u8-strmbtouc'.
69950         * modules/unistr/u8-strmbtouc-tests: New file.
69951         * tests/unistr/test-u8-strmbtouc.c: New file.
69953         Tests for module 'unistr/u32-strmblen'.
69954         * modules/unistr/u32-strmblen-tests: New file.
69955         * tests/unistr/test-u32-strmblen.c: New file.
69957         Tests for module 'unistr/u16-strmblen'.
69958         * modules/unistr/u16-strmblen-tests: New file.
69959         * tests/unistr/test-u16-strmblen.c: New file.
69961         Tests for module 'unistr/u8-strmblen'.
69962         * modules/unistr/u8-strmblen-tests: New file.
69963         * tests/unistr/test-u8-strmblen.c: New file.
69965         Tests for module 'unistr/u32-cpy-alloc'.
69966         * modules/unistr/u32-cpy-alloc-tests: New file.
69967         * tests/unistr/test-u32-cpy-alloc.c: New file.
69969         Tests for module 'unistr/u16-cpy-alloc'.
69970         * modules/unistr/u16-cpy-alloc-tests: New file.
69971         * tests/unistr/test-u16-cpy-alloc.c: New file.
69973         Tests for module 'unistr/u8-cpy-alloc'.
69974         * modules/unistr/u8-cpy-alloc-tests: New file.
69975         * tests/unistr/test-u8-cpy-alloc.c: New file.
69976         * tests/unistr/test-cpy-alloc.h: New file.
69978         Tests for module 'unistr/u32-mbsnlen'.
69979         * modules/unistr/u32-mbsnlen-tests: New file.
69980         * tests/unistr/test-u32-mbsnlen.c: New file.
69982         Tests for module 'unistr/u16-mbsnlen'.
69983         * modules/unistr/u16-mbsnlen-tests: New file.
69984         * tests/unistr/test-u16-mbsnlen.c: New file.
69986         Tests for module 'unistr/u8-mbsnlen'.
69987         * modules/unistr/u8-mbsnlen-tests: New file.
69988         * tests/unistr/test-u8-mbsnlen.c: New file.
69990         Tests for module 'unistr/u32-chr'.
69991         * modules/unistr/u32-chr-tests: New file.
69992         * tests/unistr/test-u32-chr.c: New file.
69994         Tests for module 'unistr/u16-chr'.
69995         * modules/unistr/u16-chr-tests: New file.
69996         * tests/unistr/test-u16-chr.c: New file.
69998         Tests for module 'unistr/u8-chr'.
69999         * modules/unistr/u8-chr-tests: New file.
70000         * tests/unistr/test-u8-chr.c: New file.
70001         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70003         Tests for module 'unistr/u32-cmp2'.
70004         * modules/unistr/u32-cmp2-tests: New file.
70005         * tests/unistr/test-u32-cmp2.c: New file.
70007         Tests for module 'unistr/u16-cmp2'.
70008         * modules/unistr/u16-cmp2-tests: New file.
70009         * tests/unistr/test-u16-cmp2.c: New file.
70011         Tests for module 'unistr/u8-cmp2'.
70012         * modules/unistr/u8-cmp2-tests: New file.
70013         * tests/unistr/test-u8-cmp2.c: New file.
70014         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70016         Tests for module 'unistr/u32-cmp'.
70017         * modules/unistr/u32-cmp-tests: New file.
70018         * tests/unistr/test-u32-cmp.c: New file.
70020         Tests for module 'unistr/u16-cmp'.
70021         * modules/unistr/u16-cmp-tests: New file.
70022         * tests/unistr/test-u16-cmp.c: New file.
70024         Tests for module 'unistr/u8-cmp'.
70025         * modules/unistr/u8-cmp-tests: New file.
70026         * tests/unistr/test-u8-cmp.c: New file.
70027         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70029         Tests for module 'unistr/u32-set'.
70030         * modules/unistr/u32-set-tests: New file.
70031         * tests/unistr/test-u32-set.c: New file.
70033         Tests for module 'unistr/u16-set'.
70034         * modules/unistr/u16-set-tests: New file.
70035         * tests/unistr/test-u16-set.c: New file.
70037         Tests for module 'unistr/u8-set'.
70038         * modules/unistr/u8-set-tests: New file.
70039         * tests/unistr/test-u8-set.c: New file.
70040         * tests/unistr/test-set.h: New file.
70042         Tests for module 'unistr/u32-move'.
70043         * modules/unistr/u32-move-tests: New file.
70044         * tests/unistr/test-u32-move.c: New file.
70046         Tests for module 'unistr/u16-move'.
70047         * modules/unistr/u16-move-tests: New file.
70048         * tests/unistr/test-u16-move.c: New file.
70050         Tests for module 'unistr/u8-move'.
70051         * modules/unistr/u8-move-tests: New file.
70052         * tests/unistr/test-u8-move.c: New file.
70053         * tests/unistr/test-move.h: New file.
70055         Tests for module 'unistr/u32-cpy'.
70056         * modules/unistr/u32-cpy-tests: New file.
70057         * tests/unistr/test-u32-cpy.c: New file.
70059         Tests for module 'unistr/u16-cpy'.
70060         * modules/unistr/u16-cpy-tests: New file.
70061         * tests/unistr/test-u16-cpy.c: New file.
70063         Tests for module 'unistr/u8-cpy'.
70064         * modules/unistr/u8-cpy-tests: New file.
70065         * tests/unistr/test-u8-cpy.c: New file.
70066         * tests/unistr/test-cpy.h: New file.
70068 2010-01-09  Bruno Haible  <bruno@clisp.org>
70070         Tests for module 'unistr/u32-uctomb'.
70071         * modules/unistr/u32-uctomb-tests: New file.
70072         * tests/unistr/test-u32-uctomb.c: New file.
70074         Tests for module 'unistr/u16-uctomb'.
70075         * modules/unistr/u16-uctomb-tests: New file.
70076         * tests/unistr/test-u16-uctomb.c: New file.
70078         Tests for module 'unistr/u8-uctomb'.
70079         * modules/unistr/u8-uctomb-tests: New file.
70080         * tests/unistr/test-u8-uctomb.c: New file.
70082         Tests for module 'unistr/u32-mbtoucr'.
70083         * modules/unistr/u32-mbtoucr-tests: New file.
70084         * tests/unistr/test-u32-mbtoucr.c: New file.
70086         Tests for module 'unistr/u16-mbtoucr'.
70087         * modules/unistr/u16-mbtoucr-tests: New file.
70088         * tests/unistr/test-u16-mbtoucr.c: New file.
70090         Tests for module 'unistr/u8-mbtoucr'.
70091         * modules/unistr/u8-mbtoucr-tests: New file.
70092         * tests/unistr/test-u8-mbtoucr.c: New file.
70094         Tests for module 'unistr/u32-mbtouc'.
70095         * modules/unistr/u32-mbtouc-tests: New file.
70096         * tests/unistr/test-u32-mbtouc.c: New file.
70098         Tests for module 'unistr/u16-mbtouc'.
70099         * modules/unistr/u16-mbtouc-tests: New file.
70100         * tests/unistr/test-u16-mbtouc.c: New file.
70102         Tests for module 'unistr/u8-mbtouc'.
70103         * modules/unistr/u8-mbtouc-tests: New file.
70104         * tests/unistr/test-u8-mbtouc.c: New file.
70106         Tests for module 'unistr/u32-mbtouc-unsafe'.
70107         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70108         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70109         * tests/unistr/test-u32-mbtouc.h: New file.
70111         Tests for module 'unistr/u16-mbtouc-unsafe'.
70112         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70113         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70114         * tests/unistr/test-u16-mbtouc.h: New file.
70116         Tests for module 'unistr/u8-mbtouc-unsafe'.
70117         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70118         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70119         * tests/unistr/test-u8-mbtouc.h: New file.
70121         Tests for module 'unistr/u32-mblen'.
70122         * modules/unistr/u32-mblen-tests: New file.
70123         * tests/unistr/test-u32-mblen.c: New file.
70125         Tests for module 'unistr/u16-mblen'.
70126         * modules/unistr/u16-mblen-tests: New file.
70127         * tests/unistr/test-u16-mblen.c: New file.
70129         Tests for module 'unistr/u8-mblen'.
70130         * modules/unistr/u8-mblen-tests: New file.
70131         * tests/unistr/test-u8-mblen.c: New file.
70133         Tests for module 'unistr/u32-to-u16'.
70134         * modules/unistr/u32-to-u16-tests: New file.
70135         * tests/unistr/test-u32-to-u16.c: New file.
70137         Tests for module 'unistr/u32-to-u8'.
70138         * modules/unistr/u32-to-u8-tests: New file.
70139         * tests/unistr/test-u32-to-u8.c: New file.
70141         Tests for module 'unistr/u16-to-u32'.
70142         * modules/unistr/u16-to-u32-tests: New file.
70143         * tests/unistr/test-u16-to-u32.c: New file.
70145         Tests for module 'unistr/u16-to-u8'.
70146         * modules/unistr/u16-to-u8-tests: New file.
70147         * tests/unistr/test-u16-to-u8.c: New file.
70149         Tests for module 'unistr/u8-to-u32'.
70150         * modules/unistr/u8-to-u32-tests: New file.
70151         * tests/unistr/test-u8-to-u32.c: New file.
70153         Tests for module 'unistr/u8-to-u16'.
70154         * modules/unistr/u8-to-u16-tests: New file.
70155         * tests/unistr/test-u8-to-u16.c: New file.
70157         Tests for module 'unistr/u32-check'.
70158         * modules/unistr/u32-check-tests: New file.
70159         * tests/unistr/test-u32-check.c: New file.
70161         Tests for module 'unistr/u16-check'.
70162         * modules/unistr/u16-check-tests: New file.
70163         * tests/unistr/test-u16-check.c: New file.
70165         Tests for module 'unistr/u8-check'.
70166         * modules/unistr/u8-check-tests: New file.
70167         * tests/unistr/test-u8-check.c: New file.
70169         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70170         (category_equals): New function.
70171         (main): Add more tests.
70172         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70174         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70176 2010-01-10  Bruno Haible  <bruno@clisp.org>
70178         unistr/u*-strcoll: Try harder to distinguish different strings.
70179         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70180         compare s1 and s2 to see if they are different.
70182 2010-01-10  Bruno Haible  <bruno@clisp.org>
70184         unistr/u*-stpncpy: Fix the return value.
70185         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70186         description of the return value consistent with stpncpy in glibc.
70187         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70188         written non-NUL unit.
70190 2010-01-10  Bruno Haible  <bruno@clisp.org>
70192         unistr/u*-next: Add missing dependencies.
70193         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70194         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70195         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70197 2010-01-10  Bruno Haible  <bruno@clisp.org>
70199         unistr/u8-mbsnlen: Fix return value for incomplete character.
70200         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70201         u8_mblen.
70202         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70203         Remove unistr/u8-mblen.
70204         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70205         u16_mblen.
70206         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70207         Remove unistr/u16-mblen.
70209 2010-01-10  Bruno Haible  <bruno@clisp.org>
70211         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70212         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70213         Reported by Brian Gough <bjg@gnu.org> and
70214         Chris Clayton <chris2553@googlemail.com> via
70215         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70217 2010-01-09  Bruno Haible  <bruno@clisp.org>
70219         unistr/u16-to-u32: Reject invalid input.
70220         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70221         u16_mbtouc.
70222         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70223         Remove unistr/u16-mbtouc.
70225         unistr/u16-to-u8: Reject invalid input.
70226         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70227         u16_mbtouc.
70228         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70229         Remove unistr/u16-mbtouc.
70231         unistr/u8-to-u32: Reject invalid input.
70232         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70233         u8_mbtouc.
70234         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70235         Remove unistr/u8-mbtouc.
70237         unistr/u8-to-u16: Reject invalid input.
70238         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70239         u8_mbtouc.
70240         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70241         Remove unistr/u8-mbtouc.
70243 2010-01-09  Bruno Haible  <bruno@clisp.org>
70245         Tests for module 'getlogin'.
70246         * modules/getlogin-tests: New file.
70247         * tests/test-getlogin.c: New file.
70249         New module 'getlogin'.
70250         * lib/unistd.in.h (getlogin): New declaration.
70251         * lib/getlogin.c: New file.
70252         * m4/getlogin.m4: New file.
70253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70254         HAVE_GETLOGIN.
70255         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70256         HAVE_GETLOGIN.
70257         * modules/getlogin: New file.
70258         * doc/posix-functions/getlogin.texi: Mention the new module.
70259         Reported by John W. Eaton <jwe@gnu.org>.
70261 2010-01-09  Bruno Haible  <bruno@clisp.org>
70263         getlogin_r: Support for native Windows.
70264         * lib/getlogin_r.c: Include <windows.h>
70265         (getlogin_r): Implement for native Windows.
70266         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70267         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70268         via John W. Eaton <jwe@gnu.org>.
70270 2010-01-09  Bruno Haible  <bruno@clisp.org>
70272         getlogin_r: Small fixes.
70273         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70274         succeeds.
70275         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70276         before testing whether getlogin_r is declared. No need to set
70277         HAVE_DECL_GETLOGIN_R to 1.
70278         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70280 2010-01-09  Bruno Haible  <bruno@clisp.org>
70282         * lib/unistd.in.h (getlogin_r): Add comment.
70284 2010-01-09  Bruno Haible  <bruno@clisp.org>
70286         Tests for module 'getlogin_r'.
70287         * modules/getlogin_r-tests: New file.
70288         * tests/test-getlogin_r.c: New file.
70290 2010-01-09  Jim Meyering  <meyering@redhat.com>
70292         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70293         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70294         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70296 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70298         * lib/dup2.c (rpl_dup2): Improve comment.
70300 2010-01-08  Eric Blake  <ebb9@byu.net>
70302         maint.mk: allow packages to add makefile @@ exceptions
70303         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70304         (sc_makefile_check): Rename...
70305         (sc_makefile_at_at_check): ...to this, and use hook.
70307         dup2: work around mingw bug
70308         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70309         Reported by Simon Josefsson.
70311 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70313         glob: Fix C++ compilation.
70314         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70315         C++.
70317 2010-01-07  Bruno Haible  <bruno@clisp.org>
70319         Fix indentation of wctype.in.h, broken since 2007-01-06.
70320         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70322 2010-01-07  Bruno Haible  <bruno@clisp.org>
70324         mbslen: Avoid collision with system function.
70325         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70326         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70327         * m4/mbslen.m4: New file.
70328         * modules/mbslen (Files): Add it.
70329         (configure.ac): Invoke gl_MBSLEN.
70330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70331         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70332         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70333         via Ian Beckwith <ianb@erislabs.net>.
70335 2010-01-07  Bruno Haible  <bruno@clisp.org>
70337         dirent: Document the last fix.
70338         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70340 2010-01-07  Bruno Haible  <bruno@clisp.org>
70342         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70343         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70344         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70345         va_list are defined.
70346         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70347         Reported by Eric Blake.
70349 2010-01-07  Bruno Haible  <bruno@clisp.org>
70351         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70352         * modules/xlist (Depends-on): Add 'list',
70353         * modules/xoset (Depends-on): Add 'oset'.
70354         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70356 2010-01-07  Bruno Haible  <bruno@clisp.org>
70358         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70359         * doc/posix-functions/strncasecmp.texi: Likewise.
70361 2010-01-07  Bruno Haible  <bruno@clisp.org>
70363         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70365 2010-01-07  John W. Eaton  <jwe@octave.org>
70367         wctype: allow C++ use
70368         * lib/wctype.in.h: Add extern "C" block for C++.
70370 2010-01-06  Eric Blake  <ebb9@byu.net>
70372         maint.mk: detect incorrect GFDL usage
70373         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70375 2010-01-06  Jim Meyering  <meyering@redhat.com>
70376         and Eric Blake  <ebb9@byu.net>
70378         maint.mk: ignore multi-line copyright in NEWS
70379         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70381 2010-01-06  Eric Blake  <ebb9@byu.net>
70383         select: add missing dependency
70384         * modules/select-tests (Depends-on): Move sockets dependency...
70385         * modules/select (Depends-on): ...here.
70386         Reported by Ian Beckwith.
70388         doc: regenerate INSTALL
70389         * doc/INSTALL: Reflect recent autoconf update.
70390         * doc/INSTALL.ISO: Likewise.
70391         * doc/INSTALL.UTF-8: Likewise.
70393         pread: fix compilation on glibc
70394         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70395         Reported by Ralf Wildenhues.
70397         dirent: fix test failure
70398         * lib/dirent.in.h (includes): Guarantee ino_t.
70399         Reported by Ralf Wildenhues.
70401 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70403         linkat, renameat: avoid bad free
70404         * lib/at-func2.c (at_func2): Fix typo.
70405         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70407 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70409         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70410         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70411         to avoid failure of symlink test later.
70413 2010-01-06  Eric Blake  <ebb9@byu.net>
70415         stdio, unistd: guarantee ssize_t
70416         * lib/unistd.in.h (includes): Ensure that types required by POSIX
70417         2008 are exposed when needed.
70418         * lib/stdio.in.h (includes): Likewise.
70419         Reported by Ralf Wildenhues.
70421 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
70423         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
70424         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
70425         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
70427 2010-01-06  Jim Meyering  <meyering@redhat.com>
70429         readtokens: this module *does* require xalloc.h
70430         It uses only functions that were omitted by the old syntax-check rule.
70431         * lib/readtokens.c: Include "xalloc.h" once again.
70432         * modules/readtokens (Depends-on): Add xalloc.
70433         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
70435 2010-01-05  Eric Blake  <ebb9@byu.net>
70437         maint: support 'make announcement' from a VPATH build
70438         * top/maint.mk (announcement): Look for correct NEWS file.
70440 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70442         utimens (fdutimens): ignore a negative FD, per contract
70443         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70444         when we have a valid file descriptor.  Otherwise, using a brand
70445         new glibc (with just-patched futimens that now fails with EBADF)
70446         would cause this function to fail with ENOSYS.
70447         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70448         See also http://bugzilla.redhat.com/552320.
70450 2010-01-05  Eric Blake  <ebb9@byu.net>
70452         strcase: document what it provides
70453         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70454         gnulib module.
70455         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70456         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70458 2010-01-05  Jim Meyering  <meyering@redhat.com>
70460         maint: remove useless inclusions of "xalloc.h"
70461         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70462         * lib/readtokens.c: Likewise.
70463         * lib/same.c: Likewise.
70464         * modules/getloadavg (Depends-on): Remove xalloc.
70465         * modules/readtokens: Likewise.
70466         * modules/same: Likewise.
70468         maint.mk: include 4 more function names in alloca.h-checking regexp
70469         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70470         regexp.  Before, we would give a false-positive (saying alloca.h
70471         is included unnecessarily) when the only uses involved omitted symbols.
70473         xalloc.h: use consistent formatting
70474         * lib/xalloc.h: Move declarations to start in the first column.
70476 2010-01-05  Eric Blake  <ebb9@byu.net>
70478         mkdir: avoid xalloc
70479         * lib/mkdir.c (includes): Drop unused header.
70480         Reported by John W. Eaton.
70482 2010-01-04  Jim Meyering  <meyering@redhat.com>
70484         nl_langinfo: avoid configure-time syntax error
70485         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70486         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70487         the empty string.  Don't let that provoke a shell syntax error.
70489         regcomp, regexec, fnmatch: avoid array bounds read error
70490         * lib/regcomp.c (build_equiv_class): From glibc:
70491         Use only the low 24 bits of a findidx return value as an index
70492         into the weights array.  Patch by Ulrich Drepper:
70493         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70494         * lib/regexec.c (check_node_accept_bytes): Likewise.
70495         * lib/fnmatch_loop.c (FCT): Likewise.
70497         regcomp: skip collseq lookup when there are no rules
70498         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70499         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70501         regcomp: recognize ill-formed { } expressions
70502         * lib/regcomp.c (parse_dup_op): From glibc:
70503         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70505         regcomp: fix typo in comment
70506         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70507         s/satisfy/satisfies/.
70509         regcomp: sync from glibc: remove dead store
70510         * lib/regcomp.c (duplicate_node_closure): Remove useless
70511         search_duplicated_node call and dead store.
70513         regcomp: sync from glibc; always use nl_langinfo
70514         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70515         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70516         * modules/regex (Depends-on): Add nl_langinfo.
70518 2010-01-04  Eric Blake  <ebb9@byu.net>
70520         fdopendir: fix configure test
70521         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70523 2010-01-01  Bruno Haible  <bruno@clisp.org>
70525         wchar: Remove unused configure check.
70526         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70528 2010-01-01  Eric Blake  <ebb9@byu.net>
70530         headers: make check of system header explicit
70531         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70532         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70533         ourselves.
70534         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70536         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70537         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70538         internals.
70539         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70540         missing.
70541         Suggested by Bruno Haible.
70543 2010-01-01  Jim Meyering  <meyering@redhat.com>
70545         ChangeLog: tweak to eliminate unnecessary copyright line
70546         * ChangeLog: Remove a copyright line that was mistakenly updated
70547         by today's update-copyright run.  Reported by Eric Blake.
70549         test-update-copyright: don't let envvar setting cause test failure
70550         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70552 2010-01-01  Bruno Haible  <bruno@clisp.org>
70554         localename: Avoid gcc warning.
70555         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70556         function if it is not used.
70558 2010-01-01  Jim Meyering  <meyering@redhat.com>
70560         update nearly all FSF copyright year lists to include 2010
70561         Use the same procedure as for 2009, outlined in
70562         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70564         version-etc: set COPYRIGHT_YEAR to 2010
70565         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70567 2009-12-31  Eric Blake  <ebb9@byu.net>
70569         doc: correct availability of cygwin 1.5.x getopt
70570         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70571         variables.
70572         * doc/posix-functions/opterr.texi (opterr): Likewise.
70573         * doc/posix-functions/optind.texi (optind): Likewise.
70574         * doc/posix-functions/optopt.texi (optopt): Likewise.
70575         * doc/posix-functions/tzname.texi (tzname): Likewise.
70577         openat: update maintainer
70578         * modules/openat (Maintainer): Add myself.
70580         utimens: avoid shadowing warning
70581         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70582         buffers into one, to avoid shadowing, as well as avoiding a
70583         redundant stat.
70584         Reported by Jim Meyering.
70586         test-dup2: avoid compiler warning
70587         * tests/test-dup2.c (is_inheritable): Only define if used.
70589 2010-01-01  Bruno Haible  <bruno@clisp.org>
70591         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70592         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70593         defined, use wctomb instead of wcrtomb.
70595 2010-01-01  Bruno Haible  <bruno@clisp.org>
70597         iconv: Reject native Solaris iconv.
70598         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70599         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70601 2009-12-31  Bruno Haible  <bruno@clisp.org>
70603         * tests/test-signal.c (main): Remove test of 'SIG'.
70605 2009-12-31  Bruno Haible  <bruno@clisp.org>
70607         spawn: Fix incomplete fix.
70608         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70609         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70610         warnings for GNULIB_POSIXCHECK again.
70611         Reported by Eric Blake.
70613 2009-12-31  Bruno Haible  <bruno@clisp.org>
70615         Avoid namespace pollution on glibc systems.
70616         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70617         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70618         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70619         glibc systems.
70621 2009-12-31  Bruno Haible  <bruno@clisp.org>
70623         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70624         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70625         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70626         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70627         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70628         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70629         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70631 2009-12-31  Bruno Haible  <bruno@clisp.org>
70633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70634         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70635         afterwards.
70637 2009-12-31  Bruno Haible  <bruno@clisp.org>
70639         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70640         SYS_UTSNAME_H.
70642 2009-12-31  Bruno Haible  <bruno@clisp.org>
70644         spawn: Fix misapplied patch.
70645         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70646         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70647         warnings for GNULIB_POSIXCHECK.
70649 2009-12-31  Bruno Haible  <bruno@clisp.org>
70651         times: Update after sys_times changed.
70652         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70653         * modules/times (Files): Add it.
70654         (configure.ac): Invoke gl_FUNC_TIMES.
70656 2009-12-31  Bruno Haible  <bruno@clisp.org>
70658         Use AC_C_INLINE where necessary.
70659         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70660         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70662         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70663         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70664         * m4/mbiter.m4 (gl_MBITER): Likewise.
70665         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70666         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70667         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70668         * modules/u64 (configure.ac): Likewise.
70670 2009-12-31  Bruno Haible  <bruno@clisp.org>
70672         Use AC_C_INLINE instead of module 'inline' where possible.
70673         * modules/inline (Description): Clarify purpose.
70674         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70675         * modules/count-one-bits (Depends-on): Remove inline.
70676         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70677         * modules/openat (Depends-on): Remove inline.
70678         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70679         instead of depending on module 'inline'.
70680         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70681         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70682         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70683         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70684         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70685         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70686         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70687         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70688         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70689         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70690         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70691         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70692         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70693         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70694         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70695         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70696         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70697         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70698         Likewise.
70699         * modules/unictype/property-ascii-hex-digit (Depends-on,
70700         configure.ac): Likewise.
70701         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70702         configure.ac): Likewise.
70703         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70704         configure.ac): Likewise.
70705         * modules/unictype/property-bidi-block-separator (Depends-on,
70706         configure.ac): Likewise.
70707         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70708         configure.ac): Likewise.
70709         * modules/unictype/property-bidi-common-separator (Depends-on,
70710         configure.ac): Likewise.
70711         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70712         Likewise.
70713         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70714         configure.ac): Likewise.
70715         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70716         configure.ac): Likewise.
70717         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70718         configure.ac): Likewise.
70719         * modules/unictype/property-bidi-european-digit (Depends-on,
70720         configure.ac): Likewise.
70721         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70722         configure.ac): Likewise.
70723         * modules/unictype/property-bidi-left-to-right (Depends-on,
70724         configure.ac): Likewise.
70725         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70726         configure.ac): Likewise.
70727         * modules/unictype/property-bidi-other-neutral (Depends-on,
70728         configure.ac): Likewise.
70729         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70730         Likewise.
70731         * modules/unictype/property-bidi-segment-separator (Depends-on,
70732         configure.ac): Likewise.
70733         * modules/unictype/property-bidi-whitespace (Depends-on,
70734         configure.ac): Likewise.
70735         * modules/unictype/property-combining (Depends-on, configure.ac):
70736         Likewise.
70737         * modules/unictype/property-composite (Depends-on, configure.ac):
70738         Likewise.
70739         * modules/unictype/property-currency-symbol (Depends-on,
70740         configure.ac): Likewise.
70741         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70742         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70743         Likewise.
70744         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70745         configure.ac): Likewise.
70746         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70747         Likewise.
70748         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70749         Likewise.
70750         * modules/unictype/property-extender (Depends-on, configure.ac):
70751         Likewise.
70752         * modules/unictype/property-format-control (Depends-on, configure.ac):
70753         Likewise.
70754         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70755         Likewise.
70756         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70757         Likewise.
70758         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70759         Likewise.
70760         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70761         Likewise.
70762         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70763         Likewise.
70764         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70765         Likewise.
70766         * modules/unictype/property-id-start (Depends-on, configure.ac):
70767         Likewise.
70768         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70769         Likewise.
70770         * modules/unictype/property-ids-binary-operator (Depends-on,
70771         configure.ac): Likewise.
70772         * modules/unictype/property-ids-trinary-operator (Depends-on,
70773         configure.ac): Likewise.
70774         * modules/unictype/property-ignorable-control (Depends-on,
70775         configure.ac): Likewise.
70776         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70777         Likewise.
70778         * modules/unictype/property-join-control (Depends-on, configure.ac):
70779         Likewise.
70780         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70781         Likewise.
70782         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70783         Likewise.
70784         * modules/unictype/property-logical-order-exception (Depends-on,
70785         configure.ac): Likewise.
70786         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70787         Likewise.
70788         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70789         * modules/unictype/property-non-break (Depends-on, configure.ac):
70790         Likewise.
70791         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70792         Likewise.
70793         * modules/unictype/property-numeric (Depends-on, configure.ac):
70794         Likewise.
70795         * modules/unictype/property-other-alphabetic (Depends-on,
70796         configure.ac): Likewise.
70797         * modules/unictype/property-other-default-ignorable-code-point
70798         (Depends-on, configure.ac): Likewise.
70799         * modules/unictype/property-other-grapheme-extend (Depends-on,
70800         configure.ac): Likewise.
70801         * modules/unictype/property-other-id-continue (Depends-on,
70802         configure.ac): Likewise.
70803         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70804         Likewise.
70805         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70806         Likewise.
70807         * modules/unictype/property-other-math (Depends-on, configure.ac):
70808         Likewise.
70809         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70810         Likewise.
70811         * modules/unictype/property-paired-punctuation (Depends-on,
70812         configure.ac): Likewise.
70813         * modules/unictype/property-paragraph-separator (Depends-on,
70814         configure.ac): Likewise.
70815         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70816         Likewise.
70817         * modules/unictype/property-pattern-white-space (Depends-on,
70818         configure.ac): Likewise.
70819         * modules/unictype/property-private-use (Depends-on, configure.ac):
70820         Likewise.
70821         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70822         Likewise.
70823         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70824         Likewise.
70825         * modules/unictype/property-radical (Depends-on, configure.ac):
70826         Likewise.
70827         * modules/unictype/property-sentence-terminal (Depends-on,
70828         configure.ac): Likewise.
70829         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70830         Likewise.
70831         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70832         * modules/unictype/property-terminal-punctuation (Depends-on,
70833         configure.ac): Likewise.
70834         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70835         Likewise.
70836         * modules/unictype/property-unassigned-code-value (Depends-on,
70837         configure.ac): Likewise.
70838         * modules/unictype/property-unified-ideograph (Depends-on,
70839         configure.ac): Likewise.
70840         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70841         Likewise.
70842         * modules/unictype/property-variation-selector (Depends-on,
70843         configure.ac): Likewise.
70844         * modules/unictype/property-white-space (Depends-on, configure.ac):
70845         Likewise.
70846         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70847         Likewise.
70848         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70849         Likewise.
70850         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70851         Likewise.
70852         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70853         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70854         Likewise.
70856 2009-12-31  Bruno Haible  <bruno@clisp.org>
70858         Remove unnecessary AC_C_INLINE invocation.
70859         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70860         since 2009-08-21.
70862 2009-12-31  Jim Meyering  <meyering@redhat.com>
70864         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70865         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70866         With this change, we can all remove the gpg_key_ID = ... definition
70867         from our respective cfg.mk files.
70869         maint.mk: create announcement template in ~/, not in /tmp
70870         * top/maint.mk (emit_upload_commands): Adjust.
70871         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70872         Remove temporary file, .ci-msg.
70874 2009-12-31  Eric Blake  <ebb9@byu.net>
70876         link-warning: always build headers with link warnings
70877         * modules/arpa_inet (Makefile.am): Always build replacement
70878         header.
70879         * modules/ctype (Makefile.am): Likewise.
70880         * modules/dirent (Makefile.am): Likewise.
70881         * modules/inttypes (Makefile.am): Likewise.
70882         * modules/langinfo (Makefile.am): Likewise.
70883         * modules/locale (Makefile.am): Likewise.
70884         * modules/spawn (Makefile.am): Likewise.
70885         * modules/sys_file (Makefile.am): Likewise.
70886         * modules/sys_ioctl (Makefile.am): Likewise.
70887         * modules/sys_select (Makefile.am): Likewise.
70888         * modules/sys_socket (Makefile.am): Likewise.
70889         * modules/sys_times (Makefile.am): Likewise.
70890         * modules/sys_utsname (Makefile.am): Likewise.
70891         * modules/sys_wait (Makefile.am): Likewise.
70892         * modules/wchar (Makefile.am): Likewise.
70893         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70894         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70895         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70896         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70897         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70898         Likewise.
70899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70901         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70902         Likewise.
70903         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70904         Likewise.
70905         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70906         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70907         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70909         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70910         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70911         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70912         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70913         (gl_WCHAR_H_DEFAULTS): Likewise.
70915 2009-12-31  Eric Blake  <ebb9@byu.net>
70917         signal, spawn: use link warnings
70918         * lib/signal.in.h (sigset_t): Make unconditional.
70919         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70920         (sigpending, sigprocmask, sigaction): Add link warnings.
70921         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70922         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70923         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70924         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70925         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70926         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70927         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70928         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70929         (posix_spawn_file_actions_destroy)
70930         (posix_spawn_file_actions_addopen)
70931         (posix_spawn_file_actions_addclose)
70932         (posix_spawn_file_actions_adddup2): Likewise.
70933         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70934         * tests/test-signal.c (main): Enhance test.
70936         spawn: improve wrapper support
70937         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70938         (gl_SPAWN_H_DEFAULTS): New defaults.
70939         * modules/spawn (Makefile.am): Substitute them.
70940         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70941         Only declare if missing or broken.
70943         sys_times, sys_utsname: use include_next
70944         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70945         header.
70946         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70947         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70948         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70949         * modules/sys_times (Depends-on): Add include_next.
70950         (Makefile.am): Substitute additional values.
70951         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70952         * lib/sys_times.in.h (includes): Include native header, if
70953         available.
70954         * lib/sys_utsname.in.h (includes): Likewise.
70955         * tests/test-sys_times.c (main): Enhance test.
70957         fdutimensat: revert prior patch
70958         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70959         utimens.h.
70960         Reported by Bruno Haible.
70962 2009-12-30  Eric Blake  <ebb9@byu.net>
70964         sys_wait: drop link-warning dependency
70965         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70966         link-warning efforts.
70967         * lib/sys_wait.in.h: Likewise.
70969         fdutimensat: remove bogus dependency
70970         * modules/fdutimensat (Depends-on): Drop inline.
70972         unistd: fix typo
70973         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70975 2009-12-30  Bruno Haible  <bruno@clisp.org>
70977         Fix compilation error with Solaris cc.
70978         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70979         * lib/unicase/u16-is-invariant.c: Likewise.
70980         * lib/unicase/u32-is-invariant.c: Likewise.
70981         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70983 2009-12-30  Bruno Haible  <bruno@clisp.org>
70985         Fix test crash.
70986         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70987         locales.
70988         Reported by Simon Josefsson <simon@josefsson.org>.
70990 2009-12-30  Bruno Haible  <bruno@clisp.org>
70992         Fix compilation error on most platforms.
70993         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70994         Reported by Simon Josefsson <simon@josefsson.org>
70995         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70997 2009-12-30  Eric Blake  <ebb9@byu.net>
70999         futimens, utimensat: work around ntfs-3g bug
71000         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71001         a ctime bug is present, and expand workaround to cover ntfs-3g.
71002         * lib/utimens.c (fdutimens, lutimens): Likewise.
71003         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71004         (validate_timespec): Adjust return value.
71005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71006         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71007         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71009 2009-12-29  Eric Blake  <ebb9@byu.net>
71011         link-warning: make usage consistent
71012         * modules/ctype (Depends-on): Add link-warning.
71013         (Makefile.am): Update rules accordingly.
71014         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71015         * modules/locale (Depends-on, Makefile.am): Likewise.
71016         * modules/sys_file (Makefile.am): Likewise.
71017         * modules/getopt-posix (Makefile.am): Delete unused link warning
71018         efforts.
71019         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71020         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71021         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71022         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71024         stdio: remove unused variables
71025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71026         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71027         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71029         tests: test more substitute headers
71030         * modules/ctype-tests: New file.
71031         * modules/dirent-tests: Likewise.
71032         * modules/spawn-tests: Likewise.
71033         * modules/sys_file-tests: Likewise.
71034         * modules/sys_ioctl-tests: Likewise.
71035         * modules/sys_wait-tests: Likewise.
71036         * tests/test-ctype.c: Likewise.
71037         * tests/test-dirent.c: Likewise.
71038         * tests/test-spawn.c: Likewise.
71039         * tests/test-sys_file.c: Likewise.
71040         * tests/test-sys_ioctl.c: Likewise.
71041         * tests/test-sys_wait.c: Likewise.
71042         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71043         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71044         whether or not flock is in use.
71046         tests: remove License section from module
71047         * modules/arpa_inet-tests: Remove unneeded section.
71048         * modules/byteswap-tests: Likewise.
71049         * modules/ceilf-tests: Likewise.
71050         * modules/ceill-tests: Likewise.
71051         * modules/crypto/des-tests: Likewise.
71052         * modules/crypto/gc-arcfour-tests: Likewise.
71053         * modules/crypto/gc-arctwo-tests: Likewise.
71054         * modules/crypto/gc-des-tests: Likewise.
71055         * modules/crypto/gc-hmac-md5-tests: Likewise.
71056         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71057         * modules/crypto/gc-md2-tests: Likewise.
71058         * modules/crypto/gc-md4-tests: Likewise.
71059         * modules/crypto/gc-md5-tests: Likewise.
71060         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71061         * modules/crypto/gc-rijndael-tests: Likewise.
71062         * modules/crypto/gc-sha1-tests: Likewise.
71063         * modules/crypto/gc-tests: Likewise.
71064         * modules/crypto/md2-tests: Likewise.
71065         * modules/crypto/md4-tests: Likewise.
71066         * modules/fcntl-h-tests: Likewise.
71067         * modules/floorf-tests: Likewise.
71068         * modules/floorl-tests: Likewise.
71069         * modules/frexp-nolibm-tests: Likewise.
71070         * modules/frexp-tests: Likewise.
71071         * modules/frexpl-nolibm-tests: Likewise.
71072         * modules/frexpl-tests: Likewise.
71073         * modules/getaddrinfo-tests: Likewise.
71074         * modules/inttypes-tests: Likewise.
71075         * modules/isfinite-tests: Likewise.
71076         * modules/isinf-tests: Likewise.
71077         * modules/ldexpl-tests: Likewise.
71078         * modules/locale-tests: Likewise.
71079         * modules/math-tests: Likewise.
71080         * modules/netdb-tests: Likewise.
71081         * modules/netinet_in-tests: Likewise.
71082         * modules/printf-frexp-tests: Likewise.
71083         * modules/printf-frexpl-tests: Likewise.
71084         * modules/priv-set-tests: Likewise.
71085         * modules/random_r-tests: Likewise.
71086         * modules/round-tests: Likewise.
71087         * modules/roundf-tests: Likewise.
71088         * modules/roundl-tests: Likewise.
71089         * modules/search-tests: Likewise.
71090         * modules/select-tests: Likewise.
71091         * modules/signal-tests: Likewise.
71092         * modules/stdbool-tests: Likewise.
71093         * modules/stddef-tests: Likewise.
71094         * modules/stdint-tests: Likewise.
71095         * modules/stdio-tests: Likewise.
71096         * modules/stdlib-tests: Likewise.
71097         * modules/string-tests: Likewise.
71098         * modules/strings-tests: Likewise.
71099         * modules/sys_select-tests: Likewise.
71100         * modules/sys_socket-tests: Likewise.
71101         * modules/sys_stat-tests: Likewise.
71102         * modules/sys_time-tests: Likewise.
71103         * modules/sys_utsname-tests: Likewise.
71104         * modules/sysexits-tests: Likewise.
71105         * modules/time-tests: Likewise.
71106         * modules/trunc-tests: Likewise.
71107         * modules/truncf-tests: Likewise.
71108         * modules/truncl-tests: Likewise.
71109         * modules/tsearch-tests: Likewise.
71110         * modules/unistd-tests: Likewise.
71111         * modules/wchar-tests: Likewise.
71112         * modules/wctype-tests: Likewise.
71114         tests: fix license on several tests
71115         * tests/test-des.c: Update to GPLv3+.
71116         * tests/test-flock.c: Likewise.
71117         * tests/test-fsync.c: Likewise.
71118         * tests/test-futimens.h: Likewise.
71119         * tests/test-gc-arcfour.c: Likewise.
71120         * tests/test-gc-arctwo.c: Likewise.
71121         * tests/test-gc-des.c: Likewise.
71122         * tests/test-gc-hmac-md5.c: Likewise.
71123         * tests/test-gc-hmac-sha1.c: Likewise.
71124         * tests/test-gc-md2.c: Likewise.
71125         * tests/test-gc-md4.c: Likewise.
71126         * tests/test-gc-md5.c: Likewise.
71127         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71128         * tests/test-gc-rijndael.c: Likewise.
71129         * tests/test-gc-sha1.c: Likewise.
71130         * tests/test-gc.c: Likewise.
71131         * tests/test-getcwd.c: Likewise.
71132         * tests/test-link.c: Likewise.
71133         * tests/test-link.h: Likewise.
71134         * tests/test-lutimens.h: Likewise.
71135         * tests/test-md2.c: Likewise.
71136         * tests/test-md4.c: Likewise.
71137         * tests/test-mkdir.h: Likewise.
71138         * tests/test-rename.c: Likewise.
71139         * tests/test-rename.h: Likewise.
71140         * tests/test-safe-alloc.c: Likewise.
71141         * tests/test-utimens-common.h: Likewise.
71142         * tests/test-utimens.h: Likewise.
71144         maint: sync license texts
71145         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71146         * doc/gpl-3.0.texi: Revert copyright year update.
71147         * doc/lgpl-3.0.texi: Likewise.
71149 2009-12-29  Jim Meyering  <meyering@redhat.com>
71151         update nearly all FSF copyright year lists to include 2009
71152         The files named by the following are exempted:
71153             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71154               test -f "$dst" && { echo "$dst"; continue; }
71155               test -d "$dst" || continue
71156               echo "$dst"/$(basename "$src")
71157             done > exempt
71158             git ls-files tests/unictype >> exempt
71159         In the remaining files, convert to all-interval notation if
71160         - there is already at least one year interval like 2000-2003
71161         - the file is maintained by me
71162         - the file is in lib/uni*/, where that style already prevails
71163         Otherwise, use update-copyright's default.
71165 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71166         and Eric Blake  <ebb9@byu.net>
71168         tests: don't require debug system() to pass
71169         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71170         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71171         * tests/test-unlink.h (test_unlink_func): Likewise.
71172         * tests/test-fstatat.c (main): ...into callers.
71173         * tests/test-lstat.c (main): Likewise.
71174         * tests/test-rmdir.c (main): Likewise.
71175         * tests/test-unlink.c (main): Likewise.
71176         * tests/test-unlinkat.c (main): Likewise.
71177         * tests/test-areadlink-with-size.c (main): Don't require a
71178         debug-only system call to pass, aiding cross-testing to mingw.
71179         * tests/test-areadlink.c (main): Likewise.
71180         * tests/test-areadlinkat-with-size.c (main): Likewise.
71181         * tests/test-areadlinkat.c (main): Likewise.
71182         * tests/test-canonicalize-lgpl.c (main): Likewise.
71183         * tests/test-canonicalize.c (main): Likewise.
71184         * tests/test-chown.c (main): Likewise.
71185         * tests/test-fchownat.c (main): Likewise.
71186         * tests/test-lchown.c (main): Likewise.
71187         * tests/test-fdutimensat.c (main): Likewise.
71188         * tests/test-futimens.c (main): Likewise.
71189         * tests/test-link.c (main): Likewise.
71190         * tests/test-linkat.c (main): Likewise.
71191         * tests/test-mkdir.c (main): Likewise.
71192         * tests/test-mkdirat.c (main): Likewise.
71193         * tests/test-mkfifo.c (main): Likewise.
71194         * tests/test-mkfifoat.c (main): Likewise.
71195         * tests/test-mknod.c (main): Likewise.
71196         * tests/test-readlink.c (main): Likewise.
71197         * tests/test-remove.c (main): Likewise.
71198         * tests/test-rename.c (main): Likewise.
71199         * tests/test-renameat.c (main): Likewise.
71200         * tests/test-symlink.c (main): Likewise.
71201         * tests/test-symlinkat.c (main): Likewise.
71202         * tests/test-utimens.c (main): Likewise.
71203         * tests/test-utimensat.c (main): Likewise.
71205 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71207         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71208         on $(UNUSED_PARAMETER_H) to avoid build failure.
71210 2009-12-28  Jim Meyering  <meyering@redhat.com>
71212         update-copyright: you may specify a max. line length other than 72
71213         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71215         maint: use consistent FSF copyright line syntax
71216         * lib/posixtm.c: Add missing comma in FSF copyright line.
71217         * lib/posixtm.h: Likewise.
71218         * lib/getugroups.c: Add missing ", Inc.".
71220         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71221         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71222         FSF copyright line.  Remove trailing blanks.
71224 2009-12-28  Eric Blake  <ebb9@byu.net>
71226         test-dup2: reduce dependencies
71227         * modules/cloexec (Configure.ac): Set witness.
71228         * modules/dup2-tests (Depends-on): Drop cloexec.
71229         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71230         not present.
71231         Suggested by Bruno Haible.
71233 2009-12-26  Bruno Haible  <bruno@clisp.org>
71235         Remove an unneeded dependency.
71236         * modules/fseterr (Depends-on): Remove dup2.
71238 2009-12-26  Eric Blake  <ebb9@byu.net>
71240         tests: use macros.h in more places
71241         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71242         (ASSERT_STREAM): Provide default of stderr.
71243         * tests/test-dirent-safer.c: Include macros.h, using alternate
71244         stream for assertions.
71245         * tests/test-dup-safer.c: Likewise.
71246         * tests/test-freopen-safer.c: Likewise.
71247         * tests/test-getopt.c: Likewise.
71248         * tests/test-openat-safer.c: Likewise.
71249         * tests/test-pipe.c: Likewise.
71250         * tests/test-popen-safer.c: Likewise.
71251         * modules/dirent-safer-tests (Files): Include macros.h.
71252         * modules/unistd-safer-tests (Files): Likewise.
71253         * modules/freopen-safer-tests (Files): Likewise.
71254         * modules/getopt-posix-tests (Files): Likewise.
71255         * modules/openat-safer-tests (Files): Likewise.
71256         * modules/pipe-tests (Files): Likewise.
71258 2009-12-26  Bruno Haible  <bruno@clisp.org>
71260         javacomp-script: Portability fix.
71261         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71262         that it also works on Solaris.
71264 2009-12-26  Bruno Haible  <bruno@clisp.org>
71266         localename: Fix storage allocation of gl_locale_name_thread's result.
71267         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71268         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71269         all platforms that have 'uselocale'.
71270         (gl_locale_name_thread_unsafe): New function, extracted from
71271         gl_locale_name_thread.
71272         (gl_locale_name_thread): Call struniq on all platforms that have
71273         'uselocale'.
71274         * tests/test-localename.c (test_locale_name_thread): Check that the
71275         resulting strings are permanently allocated.
71276         * modules/localename-tests (Depends-on): Add strdup.
71278 2009-12-26  Bruno Haible  <bruno@clisp.org>
71280         * tests/test-localename.c (categories): Fill in the strings.
71282 2009-12-26  Jim Meyering  <meyering@redhat.com>
71284         isdir: complete the removal of m4/isdir.m4
71285         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71287         isdir: clean up, since at least grep still uses it
71288         * lib/isdir.c: Include "isdir.h".
71289         (S_ISDIR): Remove now-unneeded definition.
71290         * modules/isdir (Files): Add lib/isdir.h.
71291         * lib/isdir.h: New file, with declaration.
71292         * m4/isdir.m4: Remove file -- unneeded.
71294 2009-12-25  Bruno Haible  <bruno@clisp.org>
71296         selinux-h: Make generated .h files standalone.
71297         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71298         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71299         * lib/se-selinux.in.h: Likewise.
71300         * modules/selinux-h (Depends-on): Add unused-parameter.
71301         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71302         selinux/selinux.h and selinux/context.h.
71303         Suggested by Eric Blake.
71305 2009-12-25  Bruno Haible  <bruno@clisp.org>
71307         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71308         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71309         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71310         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71311         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71313 2009-12-24  Bruno Haible  <bruno@clisp.org>
71315         openat: Fix warning.
71316         * lib/openat-proc.c: Include <unistd.h>.
71318 2009-12-24  Bruno Haible  <bruno@clisp.org>
71320         New module 'unused-parameter'.
71321         * build-aux/unused-parameter.h: New file, extracted from earlier
71322         gnulib-common.m4.
71323         * modules/unused-parameter: New file.
71324         * lib/unistr.h: Include unused-parameter.h.
71325         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71326         _GL_UNUSED.
71327         * modules/unistr/base (Depends-on): Add unused-parameter.
71329 2009-12-24  Bruno Haible  <bruno@clisp.org>
71331         Add missing dependencies to 'extensions' module.
71332         * m4/extensions.m4: Add comment.
71333         * modules/accept4 (Depends-on): Add extensions.
71334         * modules/dup3 (Depends-on): Likewise.
71335         * modules/fcntl (Depends-on): Likewise.
71336         * modules/futimens (Depends-on): Likewise.
71337         * modules/mknod (Depends-on): Likewise.
71338         * modules/pipe2 (Depends-on): Likewise.
71339         * modules/stat-time (Depends-on): Likewise.
71340         * modules/strcasestr-simple (Depends-on): Likewise.
71341         * modules/strsignal (Depends-on): Likewise.
71342         * modules/utimensat (Depends-on): Likewise.
71343         * modules/localcharset (Depends-on): Likewise. Needed because of
71344         gl_FCNTL_O_FLAGS.
71345         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71346         AC_TYPE_MBSTATE_T.
71347         * modules/wcsnrtombs (Depends-on): Likewise.
71348         * modules/wcsrtombs (Depends-on): Likewise.
71350 2009-12-24  Bruno Haible  <bruno@clisp.org>
71352         binary-io: Avoid gcc warning due to SET_BINARY.
71353         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71354         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71356 2009-12-24  Bruno Haible  <bruno@clisp.org>
71358         Avoid future namespace pollution on glibc systems.
71359         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71360         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71361         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71362         glibc systems.
71364 2009-12-24  Bruno Haible  <bruno@clisp.org>
71366         Refactor common macros used in tests.
71367         * tests/macros.h: New file.
71368         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71369         and/or <stdlib.h>, if appropriate.
71370         (ASSERT, SIZEOF): Remove macros.
71371         * tests/test-areadlink-with-size.c: Likewise.
71372         * tests/test-areadlinkat.c: Likewise.
71373         * tests/test-areadlinkat-with-size.c: Likewise.
71374         * tests/test-argmatch.c: Likewise.
71375         * tests/test-argv-iter.c: Likewise.
71376         * tests/test-array-mergesort.c: Likewise.
71377         * tests/test-array_list.c: Likewise.
71378         * tests/test-array_oset.c: Likewise.
71379         * tests/test-avltree_list.c: Likewise.
71380         * tests/test-avltree_oset.c: Likewise.
71381         * tests/test-avltreehash_list.c: Likewise.
71382         * tests/test-base64.c: Likewise.
71383         * tests/test-binary-io.c: Likewise.
71384         * tests/test-bitrotate.c: Likewise.
71385         * tests/test-btowc.c: Likewise.
71386         * tests/test-byteswap.c: Likewise.
71387         * tests/test-c-ctype.c: Likewise.
71388         * tests/test-c-stack.c: Likewise.
71389         * tests/test-c-strcasecmp.c: Likewise.
71390         * tests/test-c-strcasestr.c: Likewise.
71391         * tests/test-c-strncasecmp.c: Likewise.
71392         * tests/test-c-strstr.c: Likewise.
71393         * tests/test-canonicalize-lgpl.c: Likewise.
71394         * tests/test-canonicalize.c: Likewise.
71395         * tests/test-carray_list.c: Likewise.
71396         * tests/test-ceilf1.c: Likewise.
71397         * tests/test-ceilf2.c: Likewise.
71398         * tests/test-ceill.c: Likewise.
71399         * tests/test-chown.c: Likewise.
71400         * tests/test-cloexec.c: Likewise.
71401         * tests/test-copy-acl.c: Likewise.
71402         * tests/test-copy-file.c: Likewise.
71403         * tests/test-count-one-bits.c: Likewise.
71404         * tests/test-dprintf-posix.c: Likewise.
71405         * tests/test-dup2.c: Likewise.
71406         * tests/test-dup3.c: Likewise.
71407         * tests/test-duplocale.c: Likewise.
71408         * tests/test-fbufmode.c: Likewise.
71409         * tests/test-fchdir.c: Likewise.
71410         * tests/test-fchownat.c: Likewise.
71411         * tests/test-fcntl-safer.c: Likewise.
71412         * tests/test-fcntl.c: Likewise.
71413         * tests/test-fdopendir.c: Likewise.
71414         * tests/test-fdutimensat.c: Likewise.
71415         * tests/test-fflush2.c: Likewise.
71416         * tests/test-file-has-acl.c: Likewise.
71417         * tests/test-filevercmp.c: Likewise.
71418         * tests/test-flock.c: Likewise.
71419         * tests/test-floorf1.c: Likewise.
71420         * tests/test-floorf2.c: Likewise.
71421         * tests/test-floorl.c: Likewise.
71422         * tests/test-fnmatch.c: Likewise.
71423         * tests/test-fopen.h: Likewise.
71424         * tests/test-fpending.c: Likewise.
71425         * tests/test-fprintf-posix.c: Likewise.
71426         * tests/test-fpurge.c: Likewise.
71427         * tests/test-freadable.c: Likewise.
71428         * tests/test-freadahead.c: Likewise.
71429         * tests/test-freading.c: Likewise.
71430         * tests/test-freadptr.c: Likewise.
71431         * tests/test-freadptr2.c: Likewise.
71432         * tests/test-freadseek.c: Likewise.
71433         * tests/test-freopen.c: Likewise.
71434         * tests/test-frexp.c: Likewise.
71435         * tests/test-frexpl.c: Likewise.
71436         * tests/test-fseek.c: Likewise.
71437         * tests/test-fseeko.c: Likewise.
71438         * tests/test-fstatat.c: Likewise.
71439         * tests/test-fstrcmp.c: Likewise.
71440         * tests/test-fsync.c: Likewise.
71441         * tests/test-ftell.c: Likewise.
71442         * tests/test-ftello.c: Likewise.
71443         * tests/test-func.c: Likewise.
71444         * tests/test-futimens.c: Likewise.
71445         * tests/test-fwritable.c: Likewise.
71446         * tests/test-fwriting.c: Likewise.
71447         * tests/test-getcwd.c: Likewise.
71448         * tests/test-getdate.c: Likewise.
71449         * tests/test-getdelim.c: Likewise.
71450         * tests/test-getdtablesize.c: Likewise.
71451         * tests/test-getgroups.c: Likewise.
71452         * tests/test-getline.c: Likewise.
71453         * tests/test-getndelim2.c: Likewise.
71454         * tests/test-glob.c: Likewise.
71455         * tests/test-hash.c: Likewise.
71456         * tests/test-i-ring.c: Likewise.
71457         * tests/test-iconv-utf.c: Likewise.
71458         * tests/test-iconv.c: Likewise.
71459         * tests/test-idpriv-drop.c: Likewise.
71460         * tests/test-idpriv-droptemp.c: Likewise.
71461         * tests/test-inet_ntop.c: Likewise.
71462         * tests/test-inet_pton.c: Likewise.
71463         * tests/test-isblank.c: Likewise.
71464         * tests/test-isfinite.c: Likewise.
71465         * tests/test-isinf.c: Likewise.
71466         * tests/test-isnan.c: Likewise.
71467         * tests/test-isnand.h: Likewise.
71468         * tests/test-isnanf.h: Likewise.
71469         * tests/test-isnanl.h: Likewise.
71470         * tests/test-lchown.c: Likewise.
71471         * tests/test-ldexpl.c: Likewise.
71472         * tests/test-link.c: Likewise.
71473         * tests/test-linkat.c: Likewise.
71474         * tests/test-linked_list.c: Likewise.
71475         * tests/test-linkedhash_list.c: Likewise.
71476         * tests/test-localename.c: Likewise.
71477         * tests/test-lseek.c: Likewise.
71478         * tests/test-lstat.c: Likewise.
71479         * tests/test-mbmemcasecmp.c: Likewise.
71480         * tests/test-mbmemcasecoll.c: Likewise.
71481         * tests/test-mbrtowc.c: Likewise.
71482         * tests/test-mbscasecmp.c: Likewise.
71483         * tests/test-mbscasestr1.c: Likewise.
71484         * tests/test-mbscasestr2.c: Likewise.
71485         * tests/test-mbscasestr3.c: Likewise.
71486         * tests/test-mbscasestr4.c: Likewise.
71487         * tests/test-mbschr.c: Likewise.
71488         * tests/test-mbscspn.c: Likewise.
71489         * tests/test-mbsinit.c: Likewise.
71490         * tests/test-mbsncasecmp.c: Likewise.
71491         * tests/test-mbsnrtowcs.c: Likewise.
71492         * tests/test-mbspbrk.c: Likewise.
71493         * tests/test-mbspcasecmp.c: Likewise.
71494         * tests/test-mbsrchr.c: Likewise.
71495         * tests/test-mbsrtowcs.c: Likewise.
71496         * tests/test-mbsspn.c: Likewise.
71497         * tests/test-mbsstr1.c: Likewise.
71498         * tests/test-mbsstr2.c: Likewise.
71499         * tests/test-mbsstr3.c: Likewise.
71500         * tests/test-memchr.c: Likewise.
71501         * tests/test-memchr2.c: Likewise.
71502         * tests/test-memcmp.c: Likewise.
71503         * tests/test-memmem.c: Likewise.
71504         * tests/test-memrchr.c: Likewise.
71505         * tests/test-mkdir.c: Likewise.
71506         * tests/test-mkdirat.c: Likewise.
71507         * tests/test-mkfifo.c: Likewise.
71508         * tests/test-mkfifoat.c: Likewise.
71509         * tests/test-mknod.c: Likewise.
71510         * tests/test-nanosleep.c: Likewise.
71511         * tests/test-nl_langinfo.c: Likewise.
71512         * tests/test-obstack-printf.c: Likewise.
71513         * tests/test-open.c: Likewise.
71514         * tests/test-openat.c: Likewise.
71515         * tests/test-pipe-filter-gi1.c: Likewise.
71516         * tests/test-pipe-filter-gi2-main.c: Likewise.
71517         * tests/test-pipe-filter-ii1.c: Likewise.
71518         * tests/test-pipe-filter-ii2-main.c: Likewise.
71519         * tests/test-pipe2.c: Likewise.
71520         * tests/test-popen.h: Likewise.
71521         * tests/test-posixtm.c: Likewise.
71522         * tests/test-pread.c: Likewise.
71523         * tests/test-printf-frexp.c: Likewise.
71524         * tests/test-printf-frexpl.c: Likewise.
71525         * tests/test-printf-posix.c: Likewise.
71526         * tests/test-priv-set.c: Likewise.
71527         * tests/test-quotearg.c: Likewise.
71528         * tests/test-random_r.c: Likewise.
71529         * tests/test-rawmemchr.c: Likewise.
71530         * tests/test-rbtree_list.c: Likewise.
71531         * tests/test-rbtree_oset.c: Likewise.
71532         * tests/test-rbtreehash_list.c: Likewise.
71533         * tests/test-readlink.c: Likewise.
71534         * tests/test-remove.c: Likewise.
71535         * tests/test-rename.c: Likewise.
71536         * tests/test-renameat.c: Likewise.
71537         * tests/test-rmdir.c: Likewise.
71538         * tests/test-round1.c: Likewise.
71539         * tests/test-roundf1.c: Likewise.
71540         * tests/test-roundl.c: Likewise.
71541         * tests/test-safe-alloc.c: Likewise.
71542         * tests/test-sameacls.c: Likewise.
71543         * tests/test-set-mode-acl.c: Likewise.
71544         * tests/test-setenv.c: Likewise.
71545         * tests/test-sigaction.c: Likewise.
71546         * tests/test-signbit.c: Likewise.
71547         * tests/test-sleep.c: Likewise.
71548         * tests/test-snprintf-posix.c: Likewise.
71549         * tests/test-snprintf.c: Likewise.
71550         * tests/test-sprintf-posix.c: Likewise.
71551         * tests/test-stat-time.c: Likewise.
71552         * tests/test-stat.c: Likewise.
71553         * tests/test-strcasestr.c: Likewise.
71554         * tests/test-strchrnul.c: Likewise.
71555         * tests/test-strerror.c: Likewise.
71556         * tests/test-striconv.c: Likewise.
71557         * tests/test-striconveh.c: Likewise.
71558         * tests/test-striconveha.c: Likewise.
71559         * tests/test-strsignal.c: Likewise.
71560         * tests/test-strstr.c: Likewise.
71561         * tests/test-strtod.c: Likewise.
71562         * tests/test-strverscmp.c: Likewise.
71563         * tests/test-symlink.c: Likewise.
71564         * tests/test-symlinkat.c: Likewise.
71565         * tests/test-trunc1.c: Likewise.
71566         * tests/test-trunc2.c: Likewise.
71567         * tests/test-truncf1.c: Likewise.
71568         * tests/test-truncf2.c: Likewise.
71569         * tests/test-truncl.c: Likewise.
71570         * tests/test-uname.c: Likewise.
71571         * tests/test-unlink.c: Likewise.
71572         * tests/test-unlinkat.c: Likewise.
71573         * tests/test-unsetenv.c: Likewise.
71574         * tests/test-usleep.c: Likewise.
71575         * tests/test-utimens.c: Likewise.
71576         * tests/test-utimensat.c: Likewise.
71577         * tests/test-vasnprintf-posix.c: Likewise.
71578         * tests/test-vasnprintf-posix2.c: Likewise.
71579         * tests/test-vasnprintf.c: Likewise.
71580         * tests/test-vasprintf-posix.c: Likewise.
71581         * tests/test-vasprintf.c: Likewise.
71582         * tests/test-vdprintf-posix.c: Likewise.
71583         * tests/test-vfprintf-posix.c: Likewise.
71584         * tests/test-vprintf-posix.c: Likewise.
71585         * tests/test-vsnprintf-posix.c: Likewise.
71586         * tests/test-vsnprintf.c: Likewise.
71587         * tests/test-vsprintf-posix.c: Likewise.
71588         * tests/test-wcrtomb.c: Likewise.
71589         * tests/test-wcsnrtombs.c: Likewise.
71590         * tests/test-wcsrtombs.c: Likewise.
71591         * tests/test-wctype.c: Likewise.
71592         * tests/test-wcwidth.c: Likewise.
71593         * tests/test-xfprintf-posix.c: Likewise.
71594         * tests/test-xmemdup0.c: Likewise.
71595         * tests/test-xprintf-posix.c: Likewise.
71596         * tests/test-xvasprintf.c: Likewise.
71597         * tests/unicase/test-locale-language.c: Likewise.
71598         * tests/unicase/test-mapping-part1.h: Likewise.
71599         * tests/unicase/test-predicate-part1.h: Likewise.
71600         * tests/unicase/test-u8-casecmp.c: Likewise.
71601         * tests/unicase/test-u8-casecoll.c: Likewise.
71602         * tests/unicase/test-u8-casefold.c: Likewise.
71603         * tests/unicase/test-u8-is-cased.c: Likewise.
71604         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71605         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71606         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71607         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71608         * tests/unicase/test-u8-tolower.c: Likewise.
71609         * tests/unicase/test-u8-totitle.c: Likewise.
71610         * tests/unicase/test-u8-toupper.c: Likewise.
71611         * tests/unicase/test-u16-casecmp.c: Likewise.
71612         * tests/unicase/test-u16-casecoll.c: Likewise.
71613         * tests/unicase/test-u16-casefold.c: Likewise.
71614         * tests/unicase/test-u16-is-cased.c: Likewise.
71615         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71616         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71617         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71618         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71619         * tests/unicase/test-u16-tolower.c: Likewise.
71620         * tests/unicase/test-u16-totitle.c: Likewise.
71621         * tests/unicase/test-u16-toupper.c: Likewise.
71622         * tests/unicase/test-u32-casecmp.c: Likewise.
71623         * tests/unicase/test-u32-casecoll.c: Likewise.
71624         * tests/unicase/test-u32-casefold.c: Likewise.
71625         * tests/unicase/test-u32-is-cased.c: Likewise.
71626         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71627         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71628         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71629         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71630         * tests/unicase/test-u32-tolower.c: Likewise.
71631         * tests/unicase/test-u32-totitle.c: Likewise.
71632         * tests/unicase/test-u32-toupper.c: Likewise.
71633         * tests/unicase/test-ulc-casecmp.c: Likewise.
71634         * tests/unicase/test-ulc-casecoll.c: Likewise.
71635         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71636         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71637         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71638         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71639         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71640         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71641         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71642         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71643         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71644         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71645         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71646         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71647         * tests/unictype/test-bidi_byname.c: Likewise.
71648         * tests/unictype/test-bidi_name.c: Likewise.
71649         * tests/unictype/test-bidi_of.c: Likewise.
71650         * tests/unictype/test-bidi_test.c: Likewise.
71651         * tests/unictype/test-block_list.c: Likewise.
71652         * tests/unictype/test-block_of.c: Likewise.
71653         * tests/unictype/test-block_test.c: Likewise.
71654         * tests/unictype/test-categ_and.c: Likewise.
71655         * tests/unictype/test-categ_and_not.c: Likewise.
71656         * tests/unictype/test-categ_byname.c: Likewise.
71657         * tests/unictype/test-categ_name.c: Likewise.
71658         * tests/unictype/test-categ_none.c: Likewise.
71659         * tests/unictype/test-categ_of.c: Likewise.
71660         * tests/unictype/test-categ_or.c: Likewise.
71661         * tests/unictype/test-categ_test_withtable.c: Likewise.
71662         * tests/unictype/test-combining.c: Likewise.
71663         * tests/unictype/test-decdigit.c: Likewise.
71664         * tests/unictype/test-digit.c: Likewise.
71665         * tests/unictype/test-mirror.c: Likewise.
71666         * tests/unictype/test-numeric.c: Likewise.
71667         * tests/unictype/test-pr_byname.c: Likewise.
71668         * tests/unictype/test-pr_test.c: Likewise.
71669         * tests/unictype/test-predicate-part1.h: Likewise.
71670         * tests/unictype/test-scripts.c: Likewise.
71671         * tests/unictype/test-sy_c_ident.c: Likewise.
71672         * tests/unictype/test-sy_java_ident.c: Likewise.
71673         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71674         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71675         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71676         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71677         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71678         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71679         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71680         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71681         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71682         * tests/uninorm/test-compat-decomposition.c: Likewise.
71683         * tests/uninorm/test-composition.c: Likewise.
71684         * tests/uninorm/test-decomposing-form.c: Likewise.
71685         * tests/uninorm/test-decomposition.c: Likewise.
71686         * tests/uninorm/test-u8-nfc.c: Likewise.
71687         * tests/uninorm/test-u8-nfd.c: Likewise.
71688         * tests/uninorm/test-u8-nfkc.c: Likewise.
71689         * tests/uninorm/test-u8-nfkd.c: Likewise.
71690         * tests/uninorm/test-u8-normcmp.c: Likewise.
71691         * tests/uninorm/test-u8-normcoll.c: Likewise.
71692         * tests/uninorm/test-u16-nfc.c: Likewise.
71693         * tests/uninorm/test-u16-nfd.c: Likewise.
71694         * tests/uninorm/test-u16-nfkc.c: Likewise.
71695         * tests/uninorm/test-u16-nfkd.c: Likewise.
71696         * tests/uninorm/test-u16-normcmp.c: Likewise.
71697         * tests/uninorm/test-u16-normcoll.c: Likewise.
71698         * tests/uninorm/test-u32-nfc.c: Likewise.
71699         * tests/uninorm/test-u32-nfd.c: Likewise.
71700         * tests/uninorm/test-u32-nfkc.c: Likewise.
71701         * tests/uninorm/test-u32-nfkd.c: Likewise.
71702         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71703         * tests/uninorm/test-u32-normcmp.c: Likewise.
71704         * tests/uninorm/test-u32-normcoll.c: Likewise.
71705         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71706         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71707         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71708         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71709         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71710         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71711         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71712         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71713         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71714         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71715         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71716         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71717         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71718         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71719         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71720         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71721         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71722         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71723         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71724         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71725         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71726         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71727         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71728         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71729         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71730         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71731         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71732         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71733         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71734         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71735         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71736         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71737         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71738         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71739         * tests/uniwidth/test-u8-width.c: Likewise.
71740         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71741         * tests/uniwidth/test-u16-width.c: Likewise.
71742         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71743         * tests/uniwidth/test-u32-width.c: Likewise.
71744         * tests/uniwidth/test-uc_width.c: Likewise.
71745         * tests/uniwidth/test-uc_width2.c: Likewise.
71746         * modules/acl-tests (Files): Add tests/macros.h.
71747         * modules/areadlink-tests (Files): Likewise.
71748         * modules/areadlink-with-size-tests (Files): Likewise.
71749         * modules/areadlinkat-tests (Files): Likewise.
71750         * modules/areadlinkat-with-size-tests (Files): Likewise.
71751         * modules/argmatch-tests (Files): Likewise.
71752         * modules/argv-iter-tests (Files): Likewise.
71753         * modules/array-list-tests (Files): Likewise.
71754         * modules/array-mergesort-tests (Files): Likewise.
71755         * modules/array-oset-tests (Files): Likewise.
71756         * modules/avltree-list-tests (Files): Likewise.
71757         * modules/avltree-oset-tests (Files): Likewise.
71758         * modules/avltreehash-list-tests (Files): Likewise.
71759         * modules/base64-tests (Files): Likewise.
71760         * modules/binary-io-tests (Files): Likewise.
71761         * modules/bitrotate-tests (Files): Likewise.
71762         * modules/btowc-tests (Files): Likewise.
71763         * modules/byteswap-tests (Files): Likewise.
71764         * modules/c-ctype-tests (Files): Likewise.
71765         * modules/c-stack-tests (Files): Likewise.
71766         * modules/c-strcase-tests (Files): Likewise.
71767         * modules/c-strcasestr-tests (Files): Likewise.
71768         * modules/c-strstr-tests (Files): Likewise.
71769         * modules/canonicalize-lgpl-tests (Files): Likewise.
71770         * modules/canonicalize-tests (Files): Likewise.
71771         * modules/carray-list-tests (Files): Likewise.
71772         * modules/ceilf-tests (Files): Likewise.
71773         * modules/ceill-tests (Files): Likewise.
71774         * modules/chown-tests (Files): Likewise.
71775         * modules/cloexec-tests (Files): Likewise.
71776         * modules/copy-file-tests (Files): Likewise.
71777         * modules/count-one-bits-tests (Files): Likewise.
71778         * modules/dprintf-posix-tests (Files): Likewise.
71779         * modules/dup2-tests (Files): Likewise.
71780         * modules/dup3-tests (Files): Likewise.
71781         * modules/duplocale-tests (Files): Likewise.
71782         * modules/fbufmode-tests (Files): Likewise.
71783         * modules/fchdir-tests (Files): Likewise.
71784         * modules/fcntl-safer-tests (Files): Likewise.
71785         * modules/fcntl-tests (Files): Likewise.
71786         * modules/fdopendir-tests (Files): Likewise.
71787         * modules/fdutimensat-tests (Files): Likewise.
71788         * modules/fflush-tests (Files): Likewise.
71789         * modules/filevercmp-tests (Files): Likewise.
71790         * modules/flock-tests (Files): Likewise.
71791         * modules/floorf-tests (Files): Likewise.
71792         * modules/floorl-tests (Files): Likewise.
71793         * modules/fnmatch-tests (Files): Likewise.
71794         * modules/fopen-safer-tests (Files): Likewise.
71795         * modules/fopen-tests (Files): Likewise.
71796         * modules/fpending-tests (Files): Likewise.
71797         * modules/fprintf-posix-tests (Files): Likewise.
71798         * modules/fpurge-tests (Files): Likewise.
71799         * modules/freadable-tests (Files): Likewise.
71800         * modules/freadahead-tests (Files): Likewise.
71801         * modules/freading-tests (Files): Likewise.
71802         * modules/freadptr-tests (Files): Likewise.
71803         * modules/freadseek-tests (Files): Likewise.
71804         * modules/freopen-tests (Files): Likewise.
71805         * modules/frexp-nolibm-tests (Files): Likewise.
71806         * modules/frexp-tests (Files): Likewise.
71807         * modules/frexpl-nolibm-tests (Files): Likewise.
71808         * modules/frexpl-tests (Files): Likewise.
71809         * modules/fseek-tests (Files): Likewise.
71810         * modules/fseeko-tests (Files): Likewise.
71811         * modules/fstrcmp-tests (Files): Likewise.
71812         * modules/fsync-tests (Files): Likewise.
71813         * modules/ftell-tests (Files): Likewise.
71814         * modules/ftello-tests (Files): Likewise.
71815         * modules/func-tests (Files): Likewise.
71816         * modules/futimens-tests (Files): Likewise.
71817         * modules/fwritable-tests (Files): Likewise.
71818         * modules/fwriting-tests (Files): Likewise.
71819         * modules/getcwd-tests (Files): Likewise.
71820         * modules/getdate-tests (Files): Likewise.
71821         * modules/getdelim-tests (Files): Likewise.
71822         * modules/getdtablesize-tests (Files): Likewise.
71823         * modules/getgroups-tests (Files): Likewise.
71824         * modules/getline-tests (Files): Likewise.
71825         * modules/getndelim2-tests (Files): Likewise.
71826         * modules/glob-tests (Files): Likewise.
71827         * modules/hash-tests (Files): Likewise.
71828         * modules/i-ring-tests (Files): Likewise.
71829         * modules/iconv-tests (Files): Likewise.
71830         * modules/iconv_open-utf-tests (Files): Likewise.
71831         * modules/idpriv-drop-tests (Files): Likewise.
71832         * modules/idpriv-droptemp-tests (Files): Likewise.
71833         * modules/inet_ntop-tests (Files): Likewise.
71834         * modules/inet_pton-tests (Files): Likewise.
71835         * modules/isblank-tests (Files): Likewise.
71836         * modules/isfinite-tests (Files): Likewise.
71837         * modules/isinf-tests (Files): Likewise.
71838         * modules/isnan-tests (Files): Likewise.
71839         * modules/isnand-nolibm-tests (Files): Likewise.
71840         * modules/isnand-tests (Files): Likewise.
71841         * modules/isnanf-nolibm-tests (Files): Likewise.
71842         * modules/isnanf-tests (Files): Likewise.
71843         * modules/isnanl-nolibm-tests (Files): Likewise.
71844         * modules/isnanl-tests (Files): Likewise.
71845         * modules/lchown-tests (Files): Likewise.
71846         * modules/ldexpl-tests (Files): Likewise.
71847         * modules/link-tests (Files): Likewise.
71848         * modules/linkat-tests (Files): Likewise.
71849         * modules/linked-list-tests (Files): Likewise.
71850         * modules/linkedhash-list-tests (Files): Likewise.
71851         * modules/localename-tests (Files): Likewise.
71852         * modules/lseek-tests (Files): Likewise.
71853         * modules/lstat-tests (Files): Likewise.
71854         * modules/mbmemcasecmp-tests (Files): Likewise.
71855         * modules/mbmemcasecoll-tests (Files): Likewise.
71856         * modules/mbrtowc-tests (Files): Likewise.
71857         * modules/mbscasecmp-tests (Files): Likewise.
71858         * modules/mbscasestr-tests (Files): Likewise.
71859         * modules/mbschr-tests (Files): Likewise.
71860         * modules/mbscspn-tests (Files): Likewise.
71861         * modules/mbsinit-tests (Files): Likewise.
71862         * modules/mbsncasecmp-tests (Files): Likewise.
71863         * modules/mbsnrtowcs-tests (Files): Likewise.
71864         * modules/mbspbrk-tests (Files): Likewise.
71865         * modules/mbspcasecmp-tests (Files): Likewise.
71866         * modules/mbsrchr-tests (Files): Likewise.
71867         * modules/mbsrtowcs-tests (Files): Likewise.
71868         * modules/mbsspn-tests (Files): Likewise.
71869         * modules/mbsstr-tests (Files): Likewise.
71870         * modules/memchr-tests (Files): Likewise.
71871         * modules/memchr2-tests (Files): Likewise.
71872         * modules/memcmp-tests (Files): Likewise.
71873         * modules/memmem-tests (Files): Likewise.
71874         * modules/memrchr-tests (Files): Likewise.
71875         * modules/mkdir-tests (Files): Likewise.
71876         * modules/mkfifo-tests (Files): Likewise.
71877         * modules/mkfifoat-tests (Files): Likewise.
71878         * modules/mknod-tests (Files): Likewise.
71879         * modules/nanosleep-tests (Files): Likewise.
71880         * modules/nl_langinfo-tests (Files): Likewise.
71881         * modules/obstack-printf-tests (Files): Likewise.
71882         * modules/open-tests (Files): Likewise.
71883         * modules/openat-tests (Files): Likewise.
71884         * modules/pipe-filter-gi-tests (Files): Likewise.
71885         * modules/pipe-filter-ii-tests (Files): Likewise.
71886         * modules/pipe2-tests (Files): Likewise.
71887         * modules/popen-safer-tests (Files): Likewise.
71888         * modules/popen-tests (Files): Likewise.
71889         * modules/posixtm-tests (Files): Likewise.
71890         * modules/pread-tests (Files): Likewise.
71891         * modules/printf-frexp-tests (Files): Likewise.
71892         * modules/printf-frexpl-tests (Files): Likewise.
71893         * modules/printf-posix-tests (Files): Likewise.
71894         * modules/priv-set-tests (Files): Likewise.
71895         * modules/quotearg-tests (Files): Likewise.
71896         * modules/random_r-tests (Files): Likewise.
71897         * modules/rawmemchr-tests (Files): Likewise.
71898         * modules/rbtree-list-tests (Files): Likewise.
71899         * modules/rbtree-oset-tests (Files): Likewise.
71900         * modules/rbtreehash-list-tests (Files): Likewise.
71901         * modules/readlink-tests (Files): Likewise.
71902         * modules/remove-tests (Files): Likewise.
71903         * modules/rename-tests (Files): Likewise.
71904         * modules/renameat-tests (Files): Likewise.
71905         * modules/rmdir-tests (Files): Likewise.
71906         * modules/round-tests (Files): Likewise.
71907         * modules/roundf-tests (Files): Likewise.
71908         * modules/roundl-tests (Files): Likewise.
71909         * modules/safe-alloc-tests (Files): Likewise.
71910         * modules/setenv-tests (Files): Likewise.
71911         * modules/sigaction-tests (Files): Likewise.
71912         * modules/signbit-tests (Files): Likewise.
71913         * modules/sleep-tests (Files): Likewise.
71914         * modules/snprintf-posix-tests (Files): Likewise.
71915         * modules/snprintf-tests (Files): Likewise.
71916         * modules/sprintf-posix-tests (Files): Likewise.
71917         * modules/stat-tests (Files): Likewise.
71918         * modules/stat-time-tests (Files): Likewise.
71919         * modules/strcasestr-tests (Files): Likewise.
71920         * modules/strchrnul-tests (Files): Likewise.
71921         * modules/strerror-tests (Files): Likewise.
71922         * modules/striconv-tests (Files): Likewise.
71923         * modules/striconveh-tests (Files): Likewise.
71924         * modules/striconveha-tests (Files): Likewise.
71925         * modules/strsignal-tests (Files): Likewise.
71926         * modules/strstr-tests (Files): Likewise.
71927         * modules/strtod-tests (Files): Likewise.
71928         * modules/strverscmp-tests (Files): Likewise.
71929         * modules/symlink-tests (Files): Likewise.
71930         * modules/symlinkat-tests (Files): Likewise.
71931         * modules/trunc-tests (Files): Likewise.
71932         * modules/truncf-tests (Files): Likewise.
71933         * modules/truncl-tests (Files): Likewise.
71934         * modules/uname-tests (Files): Likewise.
71935         * modules/unicase/cased-tests (Files): Likewise.
71936         * modules/unicase/ignorable-tests (Files): Likewise.
71937         * modules/unicase/locale-language-tests (Files): Likewise.
71938         * modules/unicase/tolower-tests (Files): Likewise.
71939         * modules/unicase/totitle-tests (Files): Likewise.
71940         * modules/unicase/toupper-tests (Files): Likewise.
71941         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71942         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71943         * modules/unicase/u8-casefold-tests (Files): Likewise.
71944         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71945         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71946         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71947         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71948         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71949         * modules/unicase/u8-tolower-tests (Files): Likewise.
71950         * modules/unicase/u8-totitle-tests (Files): Likewise.
71951         * modules/unicase/u8-toupper-tests (Files): Likewise.
71952         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71953         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71954         * modules/unicase/u16-casefold-tests (Files): Likewise.
71955         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71956         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71957         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71958         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71959         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71960         * modules/unicase/u16-tolower-tests (Files): Likewise.
71961         * modules/unicase/u16-totitle-tests (Files): Likewise.
71962         * modules/unicase/u16-toupper-tests (Files): Likewise.
71963         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71964         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71965         * modules/unicase/u32-casefold-tests (Files): Likewise.
71966         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71967         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71968         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71969         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71970         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71971         * modules/unicase/u32-tolower-tests (Files): Likewise.
71972         * modules/unicase/u32-totitle-tests (Files): Likewise.
71973         * modules/unicase/u32-toupper-tests (Files): Likewise.
71974         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71975         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71976         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71977         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71978         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71979         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71980         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71981         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71982         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71983         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71984         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71985         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71986         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71987         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71988         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71989         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71990         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71991         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71992         * modules/unictype/block-list-tests (Files): Likewise.
71993         * modules/unictype/block-of-tests (Files): Likewise.
71994         * modules/unictype/block-test-tests (Files): Likewise.
71995         * modules/unictype/category-C-tests (Files): Likewise.
71996         * modules/unictype/category-Cc-tests (Files): Likewise.
71997         * modules/unictype/category-Cf-tests (Files): Likewise.
71998         * modules/unictype/category-Cn-tests (Files): Likewise.
71999         * modules/unictype/category-Co-tests (Files): Likewise.
72000         * modules/unictype/category-Cs-tests (Files): Likewise.
72001         * modules/unictype/category-L-tests (Files): Likewise.
72002         * modules/unictype/category-Ll-tests (Files): Likewise.
72003         * modules/unictype/category-Lm-tests (Files): Likewise.
72004         * modules/unictype/category-Lo-tests (Files): Likewise.
72005         * modules/unictype/category-Lt-tests (Files): Likewise.
72006         * modules/unictype/category-Lu-tests (Files): Likewise.
72007         * modules/unictype/category-M-tests (Files): Likewise.
72008         * modules/unictype/category-Mc-tests (Files): Likewise.
72009         * modules/unictype/category-Me-tests (Files): Likewise.
72010         * modules/unictype/category-Mn-tests (Files): Likewise.
72011         * modules/unictype/category-N-tests (Files): Likewise.
72012         * modules/unictype/category-Nd-tests (Files): Likewise.
72013         * modules/unictype/category-Nl-tests (Files): Likewise.
72014         * modules/unictype/category-No-tests (Files): Likewise.
72015         * modules/unictype/category-P-tests (Files): Likewise.
72016         * modules/unictype/category-Pc-tests (Files): Likewise.
72017         * modules/unictype/category-Pd-tests (Files): Likewise.
72018         * modules/unictype/category-Pe-tests (Files): Likewise.
72019         * modules/unictype/category-Pf-tests (Files): Likewise.
72020         * modules/unictype/category-Pi-tests (Files): Likewise.
72021         * modules/unictype/category-Po-tests (Files): Likewise.
72022         * modules/unictype/category-Ps-tests (Files): Likewise.
72023         * modules/unictype/category-S-tests (Files): Likewise.
72024         * modules/unictype/category-Sc-tests (Files): Likewise.
72025         * modules/unictype/category-Sk-tests (Files): Likewise.
72026         * modules/unictype/category-Sm-tests (Files): Likewise.
72027         * modules/unictype/category-So-tests (Files): Likewise.
72028         * modules/unictype/category-Z-tests (Files): Likewise.
72029         * modules/unictype/category-Zl-tests (Files): Likewise.
72030         * modules/unictype/category-Zp-tests (Files): Likewise.
72031         * modules/unictype/category-Zs-tests (Files): Likewise.
72032         * modules/unictype/category-and-not-tests (Files): Likewise.
72033         * modules/unictype/category-and-tests (Files): Likewise.
72034         * modules/unictype/category-byname-tests (Files): Likewise.
72035         * modules/unictype/category-name-tests (Files): Likewise.
72036         * modules/unictype/category-none-tests (Files): Likewise.
72037         * modules/unictype/category-of-tests (Files): Likewise.
72038         * modules/unictype/category-or-tests (Files): Likewise.
72039         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72040         * modules/unictype/combining-class-tests (Files): Likewise.
72041         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72042         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72043         * modules/unictype/ctype-blank-tests (Files): Likewise.
72044         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72045         * modules/unictype/ctype-digit-tests (Files): Likewise.
72046         * modules/unictype/ctype-graph-tests (Files): Likewise.
72047         * modules/unictype/ctype-lower-tests (Files): Likewise.
72048         * modules/unictype/ctype-print-tests (Files): Likewise.
72049         * modules/unictype/ctype-punct-tests (Files): Likewise.
72050         * modules/unictype/ctype-space-tests (Files): Likewise.
72051         * modules/unictype/ctype-upper-tests (Files): Likewise.
72052         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72053         * modules/unictype/decimal-digit-tests (Files): Likewise.
72054         * modules/unictype/digit-tests (Files): Likewise.
72055         * modules/unictype/mirror-tests (Files): Likewise.
72056         * modules/unictype/numeric-tests (Files): Likewise.
72057         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72058         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72059         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72060         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72061         Likewise.
72062         * modules/unictype/property-bidi-block-separator-tests (Files):
72063         Likewise.
72064         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72065         Likewise.
72066         * modules/unictype/property-bidi-common-separator-tests (Files):
72067         Likewise.
72068         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72069         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72070         Likewise.
72071         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72072         Likewise.
72073         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72074         Likewise.
72075         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72076         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72077         Likewise.
72078         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72079         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72080         Likewise.
72081         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72082         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72083         * modules/unictype/property-bidi-segment-separator-tests (Files):
72084         Likewise.
72085         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72086         * modules/unictype/property-byname-tests (Files): Likewise.
72087         * modules/unictype/property-combining-tests (Files): Likewise.
72088         * modules/unictype/property-composite-tests (Files): Likewise.
72089         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72090         * modules/unictype/property-dash-tests (Files): Likewise.
72091         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72092         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72093         Likewise.
72094         * modules/unictype/property-deprecated-tests (Files): Likewise.
72095         * modules/unictype/property-diacritic-tests (Files): Likewise.
72096         * modules/unictype/property-extender-tests (Files): Likewise.
72097         * modules/unictype/property-format-control-tests (Files): Likewise.
72098         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72099         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72100         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72101         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72102         * modules/unictype/property-hyphen-tests (Files): Likewise.
72103         * modules/unictype/property-id-continue-tests (Files): Likewise.
72104         * modules/unictype/property-id-start-tests (Files): Likewise.
72105         * modules/unictype/property-ideographic-tests (Files): Likewise.
72106         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72107         * modules/unictype/property-ids-trinary-operator-tests (Files):
72108         Likewise.
72109         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72110         * modules/unictype/property-iso-control-tests (Files): Likewise.
72111         * modules/unictype/property-join-control-tests (Files): Likewise.
72112         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72113         * modules/unictype/property-line-separator-tests (Files): Likewise.
72114         * modules/unictype/property-logical-order-exception-tests (Files):
72115         Likewise.
72116         * modules/unictype/property-lowercase-tests (Files): Likewise.
72117         * modules/unictype/property-math-tests (Files): Likewise.
72118         * modules/unictype/property-non-break-tests (Files): Likewise.
72119         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72120         * modules/unictype/property-numeric-tests (Files): Likewise.
72121         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72122         * modules/unictype/property-other-default-ignorable-code-point-tests
72123         (Files): Likewise.
72124         * modules/unictype/property-other-grapheme-extend-tests (Files):
72125         Likewise.
72126         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72127         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72128         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72129         * modules/unictype/property-other-math-tests (Files): Likewise.
72130         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72131         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72132         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72133         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72134         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72135         * modules/unictype/property-private-use-tests (Files): Likewise.
72136         * modules/unictype/property-punctuation-tests (Files): Likewise.
72137         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72138         * modules/unictype/property-radical-tests (Files): Likewise.
72139         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72140         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72141         * modules/unictype/property-space-tests (Files): Likewise.
72142         * modules/unictype/property-terminal-punctuation-tests (Files):
72143         Likewise.
72144         * modules/unictype/property-test-tests (Files): Likewise.
72145         * modules/unictype/property-titlecase-tests (Files): Likewise.
72146         * modules/unictype/property-unassigned-code-value-tests (Files):
72147         Likewise.
72148         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72149         * modules/unictype/property-uppercase-tests (Files): Likewise.
72150         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72151         * modules/unictype/property-white-space-tests (Files): Likewise.
72152         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72153         * modules/unictype/property-xid-start-tests (Files): Likewise.
72154         * modules/unictype/property-zero-width-tests (Files): Likewise.
72155         * modules/unictype/scripts-tests (Files): Likewise.
72156         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72157         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72158         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72159         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72160         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72161         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72162         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72163         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72164         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72165         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72166         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72167         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72168         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72169         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72170         * modules/uninorm/composition-tests (Files): Likewise.
72171         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72172         * modules/uninorm/decomposition-tests (Files): Likewise.
72173         * modules/uninorm/filter-tests (Files): Likewise.
72174         * modules/uninorm/nfc-tests (Files): Likewise.
72175         * modules/uninorm/nfd-tests (Files): Likewise.
72176         * modules/uninorm/nfkc-tests (Files): Likewise.
72177         * modules/uninorm/nfkd-tests (Files): Likewise.
72178         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72179         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72180         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72181         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72182         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72183         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72184         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72185         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72186         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72187         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72188         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72189         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72190         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72191         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72192         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72193         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72194         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72195         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72196         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72197         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72198         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72199         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72200         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72201         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72202         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72203         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72204         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72205         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72206         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72207         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72208         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72209         * modules/uniwidth/u8-width-tests (Files): Likewise.
72210         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72211         * modules/uniwidth/u16-width-tests (Files): Likewise.
72212         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72213         * modules/uniwidth/u32-width-tests (Files): Likewise.
72214         * modules/uniwidth/width-tests (Files): Likewise.
72215         * modules/unlink-tests (Files): Likewise.
72216         * modules/unsetenv-tests (Files): Likewise.
72217         * modules/usleep-tests (Files): Likewise.
72218         * modules/utimens-tests (Files): Likewise.
72219         * modules/utimensat-tests (Files): Likewise.
72220         * modules/vasnprintf-posix-tests (Files): Likewise.
72221         * modules/vasnprintf-tests (Files): Likewise.
72222         * modules/vasprintf-posix-tests (Files): Likewise.
72223         * modules/vasprintf-tests (Files): Likewise.
72224         * modules/vdprintf-posix-tests (Files): Likewise.
72225         * modules/vfprintf-posix-tests (Files): Likewise.
72226         * modules/vprintf-posix-tests (Files): Likewise.
72227         * modules/vsnprintf-posix-tests (Files): Likewise.
72228         * modules/vsnprintf-tests (Files): Likewise.
72229         * modules/vsprintf-posix-tests (Files): Likewise.
72230         * modules/wcrtomb-tests (Files): Likewise.
72231         * modules/wcsnrtombs-tests (Files): Likewise.
72232         * modules/wcsrtombs-tests (Files): Likewise.
72233         * modules/wctype-tests (Files): Likewise.
72234         * modules/wcwidth-tests (Files): Likewise.
72235         * modules/xmemdup0-tests (Files): Likewise.
72236         * modules/xprintf-posix-tests (Files): Likewise.
72237         * modules/xvasprintf-tests (Files): Likewise.
72239 2009-12-24  Eric Blake  <ebb9@byu.net>
72241         test-nanosleep: fix typo
72242         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72243         patch.
72244         Reported by Bruno Haible.
72246 2009-12-24  Bruno Haible  <bruno@clisp.org>
72248         Reduce namespace pollution on glibc systems.
72249         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72250         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72251         systems.
72252         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72253         <getopt.h> on glibc systems.
72254         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72255         systems.
72256         * lib/fcntl.c: Include <unistd.h> here instead.
72258 2009-12-24  Bruno Haible  <bruno@clisp.org>
72260         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72262 2009-12-24  Eric Blake  <ebb9@byu.net>
72264         tests: add signature checks
72265         * tests/signature.h (SIGNATURE_CHECK): New file.
72266         * modules/atexit-tests (Files): Use it.
72267         * modules/btowc-tests (Files): Likewise.
72268         * modules/canonicalize-lgpl-tests (Files): Likewise.
72269         * modules/ceilf-tests (Files): Likewise.
72270         * modules/ceill-tests (Files): Likewise.
72271         * modules/chown-tests (Files): Likewise.
72272         * modules/dprintf-posix-tests (Files): Likewise.
72273         * modules/dup2-tests (Files): Likewise.
72274         * modules/dup3-tests (Files): Likewise.
72275         * modules/duplocale-tests (Files): Likewise.
72276         * modules/fchdir-tests (Files): Likewise.
72277         * modules/fcntl-tests (Files): Likewise.
72278         * modules/fdopendir-tests (Files): Likewise.
72279         * modules/fflush-tests (Files): Likewise.
72280         * modules/flock-tests (Files): Likewise.
72281         * modules/floorf-tests (Files): Likewise.
72282         * modules/floorl-tests (Files): Likewise.
72283         * modules/fnmatch-tests (Files): Likewise.
72284         * modules/fopen-tests (Files): Likewise.
72285         * modules/fprintf-posix-tests (Files): Likewise.
72286         * modules/freopen-tests (Files): Likewise.
72287         * modules/frexp-nolibm-tests (Files): Likewise.
72288         * modules/frexp-tests (Files): Likewise.
72289         * modules/frexpl-nolibm-tests (Files): Likewise.
72290         * modules/frexpl-tests (Files): Likewise.
72291         * modules/fseek-tests (Files): Likewise.
72292         * modules/fseeko-tests (Files): Likewise.
72293         * modules/fsync-tests (Files): Likewise.
72294         * modules/ftell-tests (Files): Likewise.
72295         * modules/ftello-tests (Files): Likewise.
72296         * modules/futimens-tests (Files): Likewise.
72297         * modules/getaddrinfo-tests (Files): Likewise.
72298         * modules/getcwd-tests (Files): Likewise.
72299         * modules/getdelim-tests (Files): Likewise.
72300         * modules/getdtablesize-tests (Files): Likewise.
72301         * modules/getgroups-tests (Files): Likewise.
72302         * modules/gethostname-tests (Files): Likewise.
72303         * modules/getline-tests (Files): Likewise.
72304         * modules/getopt-posix-tests (Files): Likewise.
72305         * modules/gettimeofday-tests (Files): Likewise.
72306         * modules/glob-tests (Files): Likewise.
72307         * modules/iconv-tests (Files): Likewise.
72308         * modules/inet_ntop-tests (Files): Likewise.
72309         * modules/inet_pton-tests (Files): Likewise.
72310         * modules/isblank-tests (Files): Likewise.
72311         * modules/lchown-tests (Files): Likewise.
72312         * modules/ldexpl-tests (Files): Likewise.
72313         * modules/link-tests (Files): Likewise.
72314         * modules/linkat-tests (Files): Likewise.
72315         * modules/lseek-tests (Files): Likewise.
72316         * modules/lstat-tests (Files): Likewise.
72317         * modules/mbrtowc-tests (Files): Likewise.
72318         * modules/mbsinit-tests (Files): Likewise.
72319         * modules/mbsnrtowcs-tests (Files): Likewise.
72320         * modules/mbsrtowcs-tests (Files): Likewise.
72321         * modules/memchr-tests (Files): Likewise.
72322         * modules/memcmp-tests (Files): Likewise.
72323         * modules/memmem-tests (Files): Likewise.
72324         * modules/memrchr-tests (Files): Likewise.
72325         * modules/mkdir-tests (Files): Likewise.
72326         * modules/mkfifo-tests (Files): Likewise.
72327         * modules/mkfifoat-tests (Files): Likewise.
72328         * modules/mknod-tests (Files): Likewise.
72329         * modules/nanosleep-tests (Files): Likewise.
72330         * modules/nl_langinfo-tests (Files): Likewise.
72331         * modules/obstack-printf-tests (Files): Likewise.
72332         * modules/open-tests (Files): Likewise.
72333         * modules/openat-tests (Files): Likewise.
72334         * modules/perror-tests (Files): Likewise.
72335         * modules/pipe2-tests (Files): Likewise.
72336         * modules/poll-tests (Files): Likewise.
72337         * modules/popen-tests (Files): Likewise.
72338         * modules/posix_spawn-tests (Files): Likewise.
72339         * modules/posix_spawnp-tests (Files): Likewise.
72340         * modules/pread-tests (Files): Likewise.
72341         * modules/printf-posix-tests (Files): Likewise.
72342         * modules/pty-tests (Files): Likewise.
72343         * modules/random_r-tests (Files): Likewise.
72344         * modules/rawmemchr-tests (Files): Likewise.
72345         * modules/readlink-tests (Files): Likewise.
72346         * modules/remove-tests (Files): Likewise.
72347         * modules/rename-tests (Files): Likewise.
72348         * modules/renameat-tests (Files): Likewise.
72349         * modules/rmdir-tests (Files): Likewise.
72350         * modules/round-tests (Files): Likewise.
72351         * modules/roundf-tests (Files): Likewise.
72352         * modules/roundl-tests (Files): Likewise.
72353         * modules/select-tests (Files): Likewise.
72354         * modules/setenv-tests (Files): Likewise.
72355         * modules/sigaction-tests (Files): Likewise.
72356         * modules/sleep-tests (Files): Likewise.
72357         * modules/snprintf-posix-tests (Files): Likewise.
72358         * modules/snprintf-tests (Files): Likewise.
72359         * modules/sprintf-posix-tests (Files): Likewise.
72360         * modules/stat-tests (Files): Likewise.
72361         * modules/strcasestr-tests (Files): Likewise.
72362         * modules/strchrnul-tests (Files): Likewise.
72363         * modules/strerror-tests (Files): Likewise.
72364         * modules/strsignal-tests (Files): Likewise.
72365         * modules/strstr-tests (Files): Likewise.
72366         * modules/strtod-tests (Files): Likewise.
72367         * modules/strverscmp-tests (Files): Likewise.
72368         * modules/symlink-tests (Files): Likewise.
72369         * modules/symlinkat-tests (Files): Likewise.
72370         * modules/times-tests (Files): Likewise.
72371         * modules/trunc-tests (Files): Likewise.
72372         * modules/truncf-tests (Files): Likewise.
72373         * modules/truncl-tests (Files): Likewise.
72374         * modules/tsearch-tests (Files): Likewise.
72375         * modules/uname-tests (Files): Likewise.
72376         * modules/unlink-tests (Files): Likewise.
72377         * modules/unsetenv-tests (Files): Likewise.
72378         * modules/usleep-tests (Files): Likewise.
72379         * modules/utimensat-tests (Files): Likewise.
72380         * modules/vasprintf-tests (Files): Likewise.
72381         * modules/vdprintf-posix-tests (Files): Likewise.
72382         * modules/vfprintf-posix-tests (Files): Likewise.
72383         * modules/vprintf-posix-tests (Files): Likewise.
72384         * modules/vsnprintf-posix-tests (Files): Likewise.
72385         * modules/vsnprintf-tests (Files): Likewise.
72386         * modules/vsprintf-posix-tests (Files): Likewise.
72387         * modules/wcrtomb-tests (Files): Likewise.
72388         * modules/wcsnrtombs-tests (Files): Likewise.
72389         * modules/wcsrtombs-tests (Files): Likewise.
72390         * modules/wcwidth-tests (Files): Likewise.
72391         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72392         * tests/test-isinf.c (isinf): Likewise.
72393         * tests/test-isnan.c (isnan): Likewise.
72394         * tests/test-signbit.c (signbit): Likewise.
72395         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72396         declaration, either as macro or with correct signature.
72397         (select): Ensure function under test is declared with correct
72398         signature in correct header.
72399         * tests/test-atexit.c (atexit): Likewise.
72400         * tests/test-btowc.c (btowc): Likewise.
72401         * tests/test-canonicalize-lgpl.c (realpath)
72402         (canonicalize_file_name): Likewise.
72403         * tests/test-ceilf1.c (ceilf): Likewise.
72404         * tests/test-ceill.c (ceill): Likewise.
72405         * tests/test-chown.c (chown): Likewise.
72406         * tests/test-dprintf-posix.c (dprintf): Likewise.
72407         * tests/test-dup2.c (dup2): Likewise.
72408         * tests/test-dup3.c (dup3): Likewise.
72409         * tests/test-duplocale.c (duplocale): Likewise.
72410         * tests/test-fchdir.c (fchdir): Likewise.
72411         * tests/test-fchownat.c (fchownat): Likewise.
72412         * tests/test-fcntl.c (fcntl): Likewise.
72413         * tests/test-fdopendir.c (fdopendir): Likewise.
72414         * tests/test-fflush.c (fflush): Likewise.
72415         * tests/test-flock.c (flock): Likewise.
72416         * tests/test-floorf1.c (floorf): Likewise.
72417         * tests/test-floorl.c (floorl): Likewise.
72418         * tests/test-fnmatch.c (fnmatch): Likewise.
72419         * tests/test-fopen.c (fopen): Likewise.
72420         * tests/test-fprintf-posix.c (fprintf): Likewise.
72421         * tests/test-freopen.c (freopen): Likewise.
72422         * tests/test-frexp.c (frexp): Likewise.
72423         * tests/test-frexpl.c (frexpl): Likewise.
72424         * tests/test-fseek.c (fseek): Likewise.
72425         * tests/test-fseeko.c (fseeko): Likewise.
72426         * tests/test-fstatat.c (fstatat): Likewise.
72427         * tests/test-fsync.c (fsync): Likewise.
72428         * tests/test-ftell.c (ftell): Likewise.
72429         * tests/test-ftello.c (ftello): Likewise.
72430         * tests/test-futimens.c (futimens): Likewise.
72431         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
72432         (gai_strerror): Likewise.
72433         * tests/test-getcwd.c (getcwd): Likewise.
72434         * tests/test-getdelim.c (getdelim): Likewise.
72435         * tests/test-getdtablesize.c (getdtablesize): Likewise.
72436         * tests/test-getgroups.c (getgroups): Likewise.
72437         * tests/test-gethostname.c (gethostname): Likewise.
72438         * tests/test-getline.c (getline): Likewise.
72439         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72440         Likewise.
72441         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72442         * tests/test-glob.c (glob, globfree): Likewise.
72443         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72444         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72445         * tests/test-inet_pton.c (inet_pton): Likewise.
72446         * tests/test-isblank.c (isblank): Likewise.
72447         * tests/test-lchown.c (lchown): Likewise.
72448         * tests/test-ldexpl.c (ldexpl): Likewise.
72449         * tests/test-link.c (link): Likewise.
72450         * tests/test-linkat.c (linkat): Likewise.
72451         * tests/test-lseek.c (lseek): Likewise.
72452         * tests/test-lstat.c (lstat): Likewise.
72453         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72454         * tests/test-mbsinit.c (mbsinit): Likewise.
72455         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72456         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72457         * tests/test-memchr.c (memchr): Likewise.
72458         * tests/test-memcmp.c (memcmp): Likewise.
72459         * tests/test-memmem.c (memmem): Likewise.
72460         * tests/test-memrchr.c (memrchr): Likewise.
72461         * tests/test-mkdir.c (mkdir): Likewise.
72462         * tests/test-mkdirat.c (mkdirat): Likewise.
72463         * tests/test-mkfifo.c (mkfifo): Likewise.
72464         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72465         * tests/test-mknod.c (mknod): Likewise.
72466         * tests/test-nanosleep.c (nanosleep): Likewise.
72467         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72468         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72469         Likewise.
72470         * tests/test-open.c (open): Likewise.
72471         * tests/test-openat.c (openat): Likewise.
72472         * tests/test-perror.c (perror): Likewise.
72473         * tests/test-pipe2.c (pipe2): Likewise.
72474         * tests/test-poll.c (poll): Likewise.
72475         * tests/test-popen.c (popen, pclose): Likewise.
72476         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72477         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72478         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72479         (posix_spawn_file_actions_destroy)
72480         (posix_spawn_file_actions_addclose)
72481         (posix_spawn_file_actions_addopen)
72482         (posix_spawn_file_actions_adddup2): Likewise.
72483         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72484         * tests/test-pread.c (pread): Likewise.
72485         * tests/test-printf-posix.c (printf): Likewise.
72486         * tests/test-pty.c (openpty, forkpty): Likewise.
72487         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72488         (random_r): Likewise.
72489         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72490         * tests/test-readlink.c (readlink): Likewise.
72491         * tests/test-remove.c (remove): Likewise.
72492         * tests/test-rename.c (rename): Likewise.
72493         * tests/test-renameat.c (renameat): Likewise.
72494         * tests/test-rmdir.c (rmdir): Likewise.
72495         * tests/test-round1.c (round): Likewise.
72496         * tests/test-roundf1.c (roundf): Likewise.
72497         * tests/test-roundl.c (roundl): Likewise.
72498         * tests/test-setenv.c (setenv): Likewise.
72499         * tests/test-sigaction.c (sigaction): Likewise.
72500         * tests/test-sleep.c (sleep): Likewise.
72501         * tests/test-snprintf.c (snprintf): Likewise.
72502         * tests/test-sprintf-posix.c (sprintf): Likewise.
72503         * tests/test-stat.c (stat): Likewise.
72504         * tests/test-stpncpy.c (stpncpy): Likewise.
72505         * tests/test-strcasestr.c (strcasestr): Likewise.
72506         * tests/test-strchrnul.c (strchrnul): Likewise.
72507         * tests/test-strerror.c (strerror): Likewise.
72508         * tests/test-strsignal.c (strsignal): Likewise.
72509         * tests/test-strstr.c (strstr): Likewise.
72510         * tests/test-strtod.c (strtod): Likewise.
72511         * tests/test-strverscmp.c (strverscmp): Likewise.
72512         * tests/test-symlink.c (symlink): Likewise.
72513         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72514         * tests/test-times.c (times): Likewise.
72515         * tests/test-trunc1.c (trunc): Likewise.
72516         * tests/test-truncf1.c (truncf): Likewise.
72517         * tests/test-truncl.c (truncl): Likewise.
72518         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72519         Likewise.
72520         * tests/test-uname.c (uname): Likewise.
72521         * tests/test-unlink.c (unlink): Likewise.
72522         * tests/test-unlinkat.c (unlinkat): Likewise.
72523         * tests/test-unsetenv.c (unsetenv): Likewise.
72524         * tests/test-usleep.c (usleep): Likewise.
72525         * tests/test-utimensat.c (utimensat): Likewise.
72526         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72527         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72528         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72529         * tests/test-vprintf-posix.c (vprintf): Likewise.
72530         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72531         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72532         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72533         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72534         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72535         * tests/test-wcwidth.c (wcwidth): Likewise.
72537         build: pull in conditional headers during GNULIB_POSIXCHECK
72538         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72539         definitions from any conditionally-included headers.
72540         * lib/stdlib.in.h (includes): Likewise.
72541         * lib/unistd.in.h (includes): Likewise.
72543 2009-12-24  Bruno Haible  <bruno@clisp.org>
72545         * tests/test-argv-iter.c: Include header file being tested immediately
72546         after config.h.
72547         * tests/test-base64.c: Likewise.
72548         * tests/test-flock.c: Likewise.
72549         * tests/test-fsync.c: Likewise.
72550         * tests/test-getdate.c: Likewise.
72551         * tests/test-getndelim2.c: Likewise.
72552         * tests/test-isfinite.c: Likewise.
72553         * tests/test-isinf.c: Likewise.
72554         * tests/test-strerror.c: Likewise.
72555         * tests/test-strsignal.c: Likewise.
72557 2009-12-23  Eric Blake  <ebb9@byu.net>
72559         unistd: work around cygwin bug
72560         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72561         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72562         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72564 2009-12-23  Bruno Haible  <bruno@clisp.org>
72566         localename: More tests.
72567         * tests/test-localename.c (SIZEOF): New macro.
72568         (categories): New variable.
72569         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72570         test_locale_name_default): Add test w.r.t. thread locale.
72571         (test_locale_name_thread): New function.
72572         (main): Invoke it.
72574         localename: Make aware of thread locale.
72575         * lib/localename.h (gl_locale_name_thread): New declaration.
72576         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72577         behaviour with respect to thread locale.
72578         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72579         <langinfo.h>, glthread/lock.h.
72580         (SIZE_BITS): New macro.
72581         (string_hash): New function.
72582         (struct hash_node): New type.
72583         (HASH_TABLE_SIZE): New macro.
72584         (struniq_hash_table, struniq_lock): New variables.
72585         (struniq): New function.
72586         (gl_locale_name_thread): New function.
72587         (gl_locale_name): Invoke it.
72588         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72589         * modules/localename (Depends-on): Add lock.
72590         Reported by Mike Gran <spk121@yahoo.com>.
72592 2009-12-23  Eric Blake  <ebb9@byu.net>
72594         va-args: new module
72595         * modules/va-args: New file.
72596         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72597         * MODULES.html.sh (Core language properties): Mention it.
72599         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72600         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72601         named alias for __attribute__((__unused__)).
72602         * lib/chown.c: Update client.
72603         * lib/fchmodat.c: Likewise.
72604         * lib/fts.c: Likewise.
72605         * lib/getdate.y: Likewise.
72606         * lib/getgroups.c: Likewise.
72607         * lib/getopt.c: Likewise.
72608         * lib/getugroups.c: Likewise.
72609         * lib/mkdir.c: Likewise.
72610         * lib/mkfifo.c: Likewise.
72611         * lib/mkfifoat.c: Likewise.
72612         * lib/mknod.c: Likewise.
72613         * lib/mknodat.c: Likewise.
72614         * lib/readlink.c: Likewise.
72615         * lib/se-context.in.h: Likewise.
72616         * lib/se-selinux.in.h: Likewise.
72617         * lib/sockets.c: Likewise.
72618         * lib/symlink.c: Likewise.
72619         * lib/symlinkat.c: Likewise.
72620         * lib/unicodeio.c: Likewise.
72621         * lib/unistr.h: Likewise.
72622         * tests/test-areadlink.c: Likewise.
72623         * tests/test-areadlinkat.c: Likewise.
72624         * tests/test-filenamecat.c: Likewise.
72625         * tests/test-fseeko.c: Likewise.
72626         * tests/test-ftello.c: Likewise.
72627         * tests/test-getdate.c: Likewise.
72628         * tests/test-getgroups.c: Likewise.
72629         * tests/test-gethostname.c: Likewise.
72630         * tests/test-quotearg.c: Likewise.
72631         * tests/test-version-etc.c: Likewise.
72632         * tests/test-xalloc-die.c: Likewise.
72633         * tests/test-xfprintf-posix.c: Likewise.
72634         * tests/test-xprintf-posix.c: Likewise.
72635         * tests/test-xvasprintf.c: Likewise.
72637         tests: avoid compiler warnings
72638         * tests/test-fcntl.c (main): Delete unused parameters.
72639         * tests/test-freopen-safer.c (main): Likewise.
72640         * tests/test-xalloc-die.c (main): Mark unused parameters.
72641         * tests/test-fseeko.c (main): Likewise.
72642         * tests/test-ftello.c (main): Likewise.
72643         * tests/test-nanosleep.c (main): Avoid declaration warning.
72644         * tests/test-sleep.c (main): Likewise.
72645         * tests/test-unsetenv.c (main): Silence warning about string
72646         literal.
72647         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72649 2009-12-23  Bruno Haible  <bruno@clisp.org>
72651         * tests/test-localename.c (test_locale_name): New function, extracted
72652         from main. Also test mixed situations.
72653         (test_locale_name_posix, test_locale_name_environ,
72654         test_locale_name_default): New functions.
72655         (main): Invoke them all.
72656         * modules/localename-tests (configure.ac): Test for newlocale.
72658 2009-12-23  Bruno Haible  <bruno@clisp.org>
72660         unistd: Ensure getcwd gets declared before being overridden.
72661         * lib/unistd.in.h: Conditionally include <io.h>.
72663 2009-12-22  Bruno Haible  <bruno@clisp.org>
72665         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72666         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72667         (gl_WCHAR_H): Invoke it.
72668         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72669         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72670         Reported by Karl Berry <karl@freefriends.org>.
72672 2009-12-22  Eric Blake  <ebb9@byu.net>
72674         math, unistd: avoid redundant includes
72675         * lib/math.in.h (isnan): No need to re-include <math.h>.
72676         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72678         getsubopt: work around cygwin bug
72679         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72680         avoid conflicting with system getsubopt.
72681         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72682         bug.
72684         getopt: synchronize from glibc
72685         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72686         parameter order.  Adjust all callers.
72687         (_getopt_internal_r, main): Adjust quoting in error messages.
72688         Drop considerations for outdated POSIX 1003.2 error message.
72689         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72690         callers.
72691         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72693         test-getopt: test stderr behavior
72694         * modules/getopt-posix-tests (Depends-on): Add dup2.
72695         * tests/test-getopt.c (ASSERT): Avoid stderr.
72696         (main): Move stderr to a temporary file.
72697         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72698         Instead, add parameter to inform caller if output occurred.
72699         (test_getopt): Adjust all existing tests to expect silence, and
72700         add new tests of leading ":".
72701         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72702         glibc shortcomings with leading "-:" or "+:" in optstring.
72703         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72704         Likewise.
72705         * doc/posix-functions/getopt.texi (getopt): Likewise.
72707         test-getopt: enhance test
72708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72709         supports optind=0.
72710         * tests/test-getopt.c (OPTIND_MIN): Move...
72711         * tests/test-getopt.h (OPTIND_MIN): ...here.
72712         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72713         Require that optind=0 works, since modern BSD supports it in
72714         addition to optreset, and since coreutils expects it.
72715         (test_getopt_long_only): New test.
72716         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72717         glibc shortcomings with 'W;', and enforcement of optind=0.
72718         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72719         Likewise.
72721 2009-12-21  Bruno Haible  <bruno@clisp.org>
72723         localename: Improvements for MacOS X and Cygwin.
72724         * lib/localename.h (gl_locale_name_environ): New declaration.
72725         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72726         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72727         (gl_locale_name_posix): Invoke it.
72728         (gl_locale_name_default): Add comments. Use Windows native API also on
72729         Cygwin.
72731 2009-12-21  Bruno Haible  <bruno@clisp.org>
72733         Update list of Win32 locale ids.
72734         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72735         (LANG_SAMI): Renamed from LANG_SAAMI.
72736         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72737         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72738         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72739         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72740         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72741         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72742         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72743         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72744         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72745         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72746         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72747         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72748         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72749         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72750         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72751         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72752         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72753         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72754         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72755         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72756         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72757         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72758         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72759         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72760         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72761         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72762         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72763         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72764         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72765         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72766         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72767         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72768         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72769         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72770         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72771         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72772         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72773         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72774         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72775         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72776         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72777         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72778         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72779         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72780         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72781         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72782         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72783         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72784         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72785         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72786         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72787         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72788         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72789         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72790         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72791         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72792         Add more languages and countries for Sami, Sorbian. Add more countries
72793         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72794         for Pashto. Change country for Syriac, Tswana.
72796 2009-12-21  Eric Blake  <ebb9@byu.net>
72798         test-utimens: avoid spurious failure
72799         * tests/test-chown.h (nap): Factor...
72800         * tests/nap.h: ...into new file.
72801         * tests/test-lchown.h (nap): Avoid duplication.
72802         * tests/test-utimens-common.h (nap): Use shared implementation,
72803         necessary on file systems with 1-second resolution.
72804         * modules/chown-tests (Files): Include new file.
72805         * modules/fdutimensat-tests (Files): Likewise.
72806         * modules/futimens-tests (Files): Likewise.
72807         * modules/lchown-tests (Files): Likewise.
72808         * modules/openat-tests (Files): Likewise.
72809         * modules/utimens-tests (Files): Likewise.
72810         * modules/utimensat-tests (Files): Likewise.
72812 2009-12-19  Eric Blake  <ebb9@byu.net>
72814         futimens, utimensat: work around Linux bug
72815         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72816         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72817         * lib/utimensat.c (rpl_utimensat): Work around it.
72818         * lib/futimens.c (rpl_futimens): Adjust comment.
72820         utimens: work around Linux ctime bug
72821         * lib/utimens.c (detect_ctime_bug): New helper function.
72822         (update_timespec): Differentiate between workaround needed for
72823         this bug vs. what is needed for systems that lack utimensat.
72824         (fdutimens, lutimens): Work around bug.
72826         utimens: check for ctime update
72827         * tests/test-utimens-common.h (check_ctime): Define.
72828         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72829         * tests/test-futimens.h (test_futimens): Likewise.
72830         * tests/test-lutimens.h (test_lutimens): Likewise.
72831         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72832         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72834 2009-12-19  Bruno Haible  <bruno@clisp.org>
72836         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72837         * tests/test-dprintf-posix2.sh: New file.
72838         * tests/test-dprintf-posix2.c: New file.
72839         * modules/dprintf-posix-tests (Files): Add them.
72840         (configure.ac): Check for getrlimit and setrlimit.
72841         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72843 2009-12-19  Bruno Haible  <bruno@clisp.org>
72845         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72846         * tests/test-fprintf-posix3.sh: New file.
72847         * tests/test-fprintf-posix3.c: New file.
72848         * modules/fprintf-posix-tests (Files): Add them.
72849         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72851 2009-12-19  Eric Blake  <ebb9@byu.net>
72853         dirfd: fix prototype
72854         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72855         * lib/dirfd.c (dirfd): Likewise.
72857         canonicalize: reduce memory usage
72858         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72859         allocation to size.
72860         Reported by Solar Designer <solar@openwall.com>.
72862 2009-12-19  Bruno Haible  <bruno@clisp.org>
72864         New module attribute 'Applicability'.
72865         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72866         * gnulib-tool: New option --extract-applicability.
72867         (func_usage): Document it.
72868         (sed_extract_prog): Recognize it.
72869         (func_get_applicability): New function.
72870         (func_import): Generalize handling of 'link-warning' module.
72871         * modules/link-warning (Applicability): New section.
72872         * modules/arg-nonnull (Applicability): New section.
72873         Repoted by Simon Josefsson <simon@josefsson.org>.
72875 2009-12-19  Bruno Haible  <bruno@clisp.org>
72877         fflush: tweak
72878         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72879         * lib/fseeko.c (rpl_fseeko): Likewise.
72881 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72883         * lib/gl_list.h: Fix typo in comment.
72885 2009-12-16  Eric Blake  <ebb9@byu.net>
72887         fcntl: use to simplify other modules
72888         * modules/cloexec (Depends-on): Add fcntl.
72889         * modules/fchdir (Depends-on): Likewise.
72890         * modules/fd-safer-flag (Depends-on): Likewise.
72891         * modules/unistd-safer (Depends-on): Likewise.
72892         * modules/dup3 (configure.ac): Set module indicator.
72893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72894         missing.
72895         * lib/fchdir.c (_gl_register_dup): Fix comment.
72896         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72897         * lib/dup-safer.c (dup_safer): Likewise.
72898         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72899         * lib/dup3.c (dup3): Likewise.
72900         * tests/test-fchdir.c (main): Enhance test.
72901         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72903         fcntl: port portions of fcntl to mingw
72904         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72905         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72906         replacement for mingw.
72907         * modules/fcntl (Description): Update.
72908         (Depends-on): Add dup2.
72909         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72910         * modules/fcntl-h (Makefile.am): Substitute it.
72911         * lib/fcntl.in.h (fcntl): Update declaration.
72912         (F_DUPFD, F_GETFD): New macros, when needed.
72913         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72914         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72915         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72916         we now guarantee.
72918         fcntl: work around cygwin bug in F_DUPFD
72919         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72920         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72921         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72922         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72923         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72925         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72926         * modules/fcntl (Files): List new files.
72927         (configure.ac): Run a test.
72928         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72929         * lib/fcntl.c (rpl_fcntl): Likewise.
72930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72931         (gl_FCNTL_H): Always replace fcntl.h.
72932         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72933         * lib/fcntl.in.h (fcntl): Declare replacement.
72934         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72935         needed, plus a witness.
72936         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72937         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72938         * tests/test-fcntl.c: New file.
72939         * modules/fcntl-tests: Likewise.
72941         binary-io: avoid potential compilation warning
72942         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72943         directives.
72945         fflush: avoid compilation error on NetBSD
72946         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72947         between off_t and fpos_t, since the latter is sometimes a struct.
72948         * lib/fseeko.c (rpl_fseeko): Likewise.
72949         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72951 2009-12-15  Eric Blake  <ebb9@byu.net>
72953         fcntl-h, stdio, sys_ioctl: fix declarations
72954         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72955         function must not take arguments.
72956         * lib/sys_ioctl.in.h (ioctl): Likewise.
72957         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72958         (open): Add a link warning.
72960 2009-12-15  Jim Meyering  <meyering@redhat.com>
72962         areadlink, areadlink-with-size: relax license to LGPLv2+
72963         * modules/areadlink (License): Relax to LGPLv2+.
72964         * modules/areadlink-with-size (License): Likewise.
72966 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72967             Bruno Haible  <bruno@clisp.org>
72969         *printf: Fix memory leak.
72970         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72971         * lib/vfprintf.c (vfprintf): Likewise.
72972         * lib/dprintf.c (dprintf): Likewise.
72973         * lib/vdprintf.c (vdprintf): Likewise.
72975 2009-12-14  Eric Blake  <ebb9@byu.net>
72977         accept4: adjust module dependencies
72978         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72980         utimens: one more try at avoiding compiler warning
72981         * lib/utimens.c (lutimens): Lower scope of result.
72983 2009-12-13  Bruno Haible  <bruno@clisp.org>
72985         Move the malloc checking from module 'list' to new module 'xlist'.
72986         * modules/xlist: New file.
72987         * lib/gl_xlist.h: New file.
72988         * lib/gl_xlist.c: New file.
72989         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72990         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72991         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72992         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72993         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72994         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72995         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72996         gl_sortedlist_nx_add): New declarations.
72997         (struct gl_list_implementation): Rename and change methods accordingly.
72998         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72999         (gl_list_nx_create): Renamed from gl_list_create.
73000         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73001         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73002         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73003         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73004         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73005         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73006         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73007         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73008         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73009         gl_list_create_empty.
73010         (gl_list_nx_create): Renamed from gl_list_create.
73011         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73012         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73013         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73014         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73015         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73016         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73017         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73018         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73019         * lib/gl_array_list.c: Don't include xalloc.h.
73020         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73021         NULL upon out-of-memory.
73022         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73023         out-of-memory.
73024         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73025         Change return type to 'int'.
73026         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73027         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73028         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73029         upon out-of-memory.
73030         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73031         upon out-of-memory.
73032         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73033         upon out-of-memory.
73034         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73035         upon out-of-memory.
73036         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73037         out-of-memory.
73038         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73039         Update.
73040         (gl_array_list_implementation): Update.
73041         * lib/gl_carray_list.c: Don't include xalloc.h.
73042         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73043         Return NULL upon out-of-memory.
73044         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73045         out-of-memory.
73046         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73047         Change return type to 'int'.
73048         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73049         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73050         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73051         upon out-of-memory.
73052         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73053         upon out-of-memory.
73054         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73055         out-of-memory.
73056         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73057         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73058         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73059         Update.
73060         (gl_carray_list_implementation): Update.
73061         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73062         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73063         gl_linked_create_empty. Return NULL upon out-of-memory.
73064         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73065         out-of-memory.
73066         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73067         Change return type to 'int'. Return -1 upon out-of-memory.
73068         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73069         out-of-memory.
73070         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73071         upon out-of-memory.
73072         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73073         upon out-of-memory.
73074         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73075         NULL upon out-of-memory.
73076         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73077         upon out-of-memory.
73078         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73079         out-of-memory.
73080         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73081         Update.
73082         * lib/gl_linked_list.c: Don't include xalloc.h.
73083         (gl_linked_list_implementation): Update.
73084         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73085         (add_to_bucket): Change return type to 'int'.
73086         (gl_linkedhash_list_implementation): Update.
73087         * lib/gl_anytree_list1.h (free_subtree): New function.
73088         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73089         gl_tree_create_empty. Return NULL upon out-of-memory.
73090         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73091         Change return type to 'int'. Return -1 upon out-of-memory.
73092         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73093         out-of-memory.
73094         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73095         (gl_tree_remove_node): New function, moved here from
73096         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73097         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73098         Update.
73099         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73100         malloc, not xmalloc. Return NULL upon out-of-memory.
73101         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73102         out-of-memory.
73103         (gl_tree_remove_node_from_tree): New function, extracted from
73104         gl_tree_remove_node.
73105         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73106         upon out-of-memory.
73107         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73108         out-of-memory.
73109         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73110         upon out-of-memory.
73111         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73112         upon out-of-memory.
73113         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73114         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73115         not xmalloc. Return NULL upon out-of-memory.
73116         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73117         out-of-memory.
73118         (gl_tree_remove_node_from_tree): New function, extracted from
73119         gl_tree_remove_node.
73120         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73121         upon out-of-memory.
73122         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73123         out-of-memory.
73124         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73125         upon out-of-memory.
73126         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73127         upon out-of-memory.
73128         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73129         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73130         gl_anytree_list1.h before gl_anyavltree_list2.h.
73131         (gl_avltree_list_implementation): Update.
73132         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73133         gl_anytree_list1.h before gl_anyavltree_list2.h.
73134         (gl_rbtree_list_implementation): Update.
73135         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73136         Change return type to 'int'. Return -1 upon out-of-memory. Use
73137         __builtin_expect.
73138         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73139         (gl_avltreehash_list_implementation): Update.
73140         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73141         (gl_rbtreehash_list_implementation): Update.
73142         * modules/array-list (Depends-on): Remove xalloc.
73143         * modules/carray-list (Depends-on): Likewise.
73144         * modules/linked-list (Depends-on): Likewise.
73145         * modules/linkedhash-list (Depends-on): Likewise.
73146         * modules/avltree-list (Depends-on): Likewise.
73147         * modules/rbtree-list (Depends-on): Likewise.
73148         * modules/avltreehash-list (Depends-on): Likewise.
73149         * modules/rbtreehash-list (Depends-on): Likewise.
73151         * modules/xsublist: New file.
73152         * lib/gl_xsublist.h: New file.
73153         * lib/gl_xsublist.c: New file.
73154         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73155         (gl_sublist_nx_create): New declaration.
73156         * lib/gl_sublist.c: Don't include xalloc.h.
73157         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73158         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73159         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73160         Change return type to 'int'. Return -1 upon out-of-memory.
73161         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73162         upon out-of-memory.
73163         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73164         NULL upon out-of-memory.
73165         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73166         upon out-of-memory.
73167         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73168         NULL upon out-of-memory.
73169         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73170         NULL upon out-of-memory.
73171         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73172         upon out-of-memory.
73173         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73174         (gl_sublist_list_implementation): Update.
73175         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73176         upon out-of-memory.
73177         * modules/sublist (Depends-on): Remove xalloc.
73179         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73180         * tests/test-carray_list.c: Likewise.
73181         * tests/test-linked_list.c: Likewise.
73182         * tests/test-linkedhash_list.c: Likewise.
73183         * tests/test-avltree_list.c: Likewise.
73184         * tests/test-rbtree_list.c: Likewise.
73185         * tests/test-avltreehash_list.c: Likewise.
73186         * tests/test-rbtreehash_list.c: Likewise.
73187         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73188         * modules/carray-list-tests (Makefile.am): Likewise.
73189         * modules/linked-list-tests (Makefile.am): Likewise.
73190         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73191         * modules/avltree-list-tests (Makefile.am): Likewise.
73192         * modules/rbtree-list-tests (Makefile.am): Likewise.
73193         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73194         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73196         * NEWS: Mention the changes.
73198         * lib/clean-temp.c: Include gl_xlist.h.
73199         * modules/clean-temp (Depends-on): Add xlist.
73201         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73202         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73204         * tests/test-array_oset.c: Include gl_xlist.h.
73205         * modules/array-oset-tests (Depends-on): Add xlist.
73207         Reported by José E. Marchesi <jemarch@gnu.org>.
73209 2009-12-13  Bruno Haible  <bruno@clisp.org>
73211         Move the malloc checking from module 'oset' to new module 'xoset'.
73212         * modules/xoset: New file.
73213         * lib/gl_xoset.h: New file.
73214         * lib/gl_xoset.c: New file.
73215         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73216         declarations.
73217         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73218         (struct gl_oset_implementation): Rename and change methods accordingly.
73219         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73220         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73221         'int'. Mark as __warn_unused_result__.
73222         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73223         gl_oset_create_empty.
73224         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73225         'int'.
73226         * lib/gl_array_oset.c: Don't include xalloc.h.
73227         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73228         malloc, not xmalloc.
73229         (grow): Change return type to 'int'. Don't call xalloc_die.
73230         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73231         to 'int'.
73232         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73233         'int'.
73234         (gl_array_oset_implementation): Update.
73235         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73236         gl_tree_create_empty.
73237         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73238         'int'.
73239         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73240         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73241         xmalloc.
73242         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73243         not xmalloc.
73244         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73245         xmalloc.
73246         (gl_avltree_oset_implementation): Update.
73247         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73248         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73249         xmalloc.
73250         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73251         not xmalloc.
73252         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73253         xmalloc.
73254         (gl_rbtree_oset_implementation): Update.
73255         * modules/array-oset (Depends-on): Remove xalloc.
73256         * modules/avltree-oset (Depends-on): Likewise.
73257         * modules/rbtree-oset (Depends-on): Likewise.
73258         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73259         * tests/test-avltree_oset.c: Likewise.
73260         * tests/test-rbtree_oset.c: Likewise.
73261         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73262         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73263         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73264         * NEWS: Mention the change.
73266 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73268         maint.mk: allow a project to override release-prep commands
73269         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73270         commands into a new rule.
73271         (release-prep): New rule.
73272         (release-prep-hook): New overridable variable.
73274 2009-12-13  Bruno Haible  <bruno@clisp.org>
73276         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73278 2009-12-13  Jim Meyering  <meyering@redhat.com>
73280         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73281         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73283 2009-12-12  Bruno Haible  <bruno@clisp.org>
73285         duplocale: Tweak.
73286         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73288 2009-12-12  Karl Berry  <karl@gnu.org>
73290         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73292 2009-12-12  Bruno Haible  <bruno@clisp.org>
73294         * m4/po.m4: Undo incorrect untabification.
73296 2009-12-12  Bruno Haible  <bruno@clisp.org>
73298         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73299         * modules/c-strtod (Depends-on): Add locale.
73300         * modules/c-strtold (Depends-on): Likewise.
73302 2009-12-12  Bruno Haible  <bruno@clisp.org>
73304         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73306 2009-12-11  Eric Blake  <ebb9@byu.net>
73308         setenv: relax requirement in light of POSIX ruling
73309         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73310         not NULL.
73311         * tests/test-setenv.c (main): Relax test.
73312         * tests/test-unsetenv.c (main): Likewise.
73313         * doc/posix-functions/setenv.texi (setenv): Document this.
73314         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73316 2009-12-11  Bruno Haible  <bruno@clisp.org>
73318         New module 'fd-safer-flag'.
73319         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73320         * lib/dup-safer.c (dup_safer_flag): Remove function.
73321         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73322         * lib/fd-safer.c (fd_safer_flag): Remove function.
73323         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73324         * modules/cloexec (configure.ac): Drop indicator macro.
73325         * modules/fd-safer-flag: New file.
73326         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73327         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73328         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73330 2009-12-11  Bruno Haible  <bruno@clisp.org>
73332         Tests for module 'nl_langinfo'.
73333         * modules/nl_langinfo-tests: New file.
73334         * tests/test-nl_langinfo.sh: New file.
73335         * tests/test-nl_langinfo.c: New file.
73337         New module 'nl_langinfo'.
73338         * lib/nl_langinfo.c: New file.
73339         * m4/nl_langinfo.m4: New file.
73340         * modules/nl_langinfo: New file.
73341         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73343 2009-12-11  Bruno Haible  <bruno@clisp.org>
73345         Tests for module 'langinfo'.
73346         * modules/langinfo-tests: New file.
73347         * tests/test-langinfo.c: New file.
73349         New module 'langinfo'.
73350         * lib/langinfo.in.h: New file.
73351         * m4/langinfo_h.m4: New file.
73352         * modules/langinfo: New file.
73353         * doc/posix-headers/langinfo.texi: Mention the new module.
73355 2009-12-11  Bruno Haible  <bruno@clisp.org>
73357         * lib/config.charset: Untabify.
73359 2009-12-11  Bruno Haible  <bruno@clisp.org>
73361         * modules/unistd-safer (configure.ac): Drop indicator macro.
73363 2009-12-11  Bruno Haible  <bruno@clisp.org>
73365         Move pipe2-safer code to its own file.
73366         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73367         * lib/pipe-safer.c (pipe2_safer): Remove function.
73368         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73369         (Makefile.am): Add it to lib_SOURCES.
73371 2009-12-10  Bruno Haible  <bruno@clisp.org>
73373         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73375 2009-12-10  Bruno Haible  <bruno@clisp.org>
73377         Declare which arguments expect non-NULL values, for GCC and clang.
73378         * build-aux/arg-nonnull.h: New file.
73379         * modules/arg-nonnull: New file.
73380         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73381         (inet_ntop, inet_pton): Use it.
73382         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73383         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73384         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73385         (open, openat): Use it.
73386         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73387         (fnmatch): Use it.
73388         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73389         (getopt, getopt_long, getopt_long_only): Use it.
73390         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73391         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73392         Use it.
73393         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73394         (iconv_open): Use it.
73395         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73396         (strtoimax, strtoumax): Use it.
73397         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73398         (duplocale): Use it.
73399         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73400         (frexp, frexpl): Use it.
73401         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73402         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73403         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73404         (tsearch, tfind, tdelete, twalk): Use it.
73405         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73406         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73407         sigpending): Use it.
73408         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73409         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73410         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73411         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73412         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
73413         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
73414         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
73415         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
73416         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
73417         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
73418         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
73419         Use it.
73420         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
73421         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
73422         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
73423         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
73424         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
73425         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
73426         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
73427         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
73428         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
73429         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
73430         strtoull, unsetenv): Use it.
73431         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
73432         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
73433         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
73434         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
73435         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
73436         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
73437         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73438         (strcasecmp, strncasecmp): Use it.
73439         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73440         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73441         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73442         rpl_setsockopt): Use it.
73443         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73444         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73445         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73446         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73447         (gettimeofday): Use it.
73448         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73449         (times): Use it.
73450         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73451         (uname): Use it.
73452         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73453         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73454         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73455         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73456         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73457         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73458         unlinkat, write): Use it.
73459         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73460         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73461         * lib/argv-iter.h: Include arg-nonnull.h.
73462         (_ATTRIBUTE_NONNULL_): Remove macro.
73463         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73464         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73465         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73466         optimization.
73467         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73468         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73469         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73470         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73471         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73472         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73473         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73474         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73475         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73476         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73477         * modules/dirent (Depends-on): Add arg-nonnull.
73478         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73479         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73480         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73481         * modules/fnmatch (Depends-on): Add arg-nonnull.
73482         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73483         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73484         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73485         * modules/glob (Depends-on): Add arg-nonnull.
73486         (Makefile.am): Insert arg-nonnull.h into glob.h.
73487         * modules/iconv_open (Depends-on): Add arg-nonnull.
73488         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73489         * modules/inttypes (Depends-on): Add arg-nonnull.
73490         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73491         * modules/locale (Depends-on): Add arg-nonnull.
73492         (Makefile.am): Insert arg-nonnull.h into locale.h.
73493         * modules/math (Depends-on): Add arg-nonnull.
73494         (Makefile.am): Insert arg-nonnull.h into math.h.
73495         * modules/netdb (Depends-on): Add arg-nonnull.
73496         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73497         * modules/search (Depends-on): Add arg-nonnull.
73498         (Makefile.am): Insert arg-nonnull.h into search.h.
73499         * modules/signal (Depends-on): Add arg-nonnull.
73500         (Makefile.am): Insert arg-nonnull.h into signal.h.
73501         * modules/spawn (Depends-on): Add arg-nonnull.
73502         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73503         * modules/stdio (Depends-on): Add arg-nonnull.
73504         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73505         * modules/stdlib (Depends-on): Add arg-nonnull.
73506         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73507         * modules/string (Depends-on): Add arg-nonnull.
73508         (Makefile.am): Insert arg-nonnull.h into string.h.
73509         * modules/strings (Depends-on): Add arg-nonnull.
73510         (Makefile.am): Insert arg-nonnull.h into strings.h.
73511         * modules/sys_socket (Depends-on): Add arg-nonnull.
73512         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73513         * modules/sys_stat (Depends-on): Add arg-nonnull.
73514         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73515         * modules/sys_time (Depends-on): Add arg-nonnull.
73516         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73517         * modules/sys_times (Depends-on): Add arg-nonnull.
73518         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73519         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73520         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73521         * modules/time (Depends-on): Add arg-nonnull.
73522         (Makefile.am): Insert arg-nonnull.h into time.h.
73523         * modules/unistd (Depends-on): Add arg-nonnull.
73524         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73525         * modules/wchar (Depends-on): Add arg-nonnull.
73526         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73527         * modules/argv-iter (Depends-on): Add arg-nonnull.
73528         * tests/test-canonicalize.c (null_ptr): New function.
73529         (main): Use it.
73530         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73531         (main): Use it.
73532         * tests/test-memmem.c (null_ptr): New function.
73533         (main): Use it.
73534         Reported by Jim Meyering.
73536 2009-12-10  Bruno Haible  <bruno@clisp.org>
73538         Use spaces for indentation, not tabs.
73539         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73540         * m4/*.m4: Untabify.
73541         * build-aux/*.h: Untabify.
73542         * tests/**/*.[hc]: Untabify.
73543         * README: New section "Indent with spaces, not TABs", based on
73544         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73545         * NEWS: Mention the change.
73547 2009-12-10  Bruno Haible  <bruno@clisp.org>
73549         pty test: Fix link error.
73550         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73551         test_pty_LDADD.
73553 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73555         * modules/pty: New file.
73556         * modules/pty-tests: New file.
73557         * m4/pty.m4: New file.
73558         * tests/test-pty.c: New file.
73559         * doc/glibc-headers/pty.texi: Modified.
73560         * doc/glibc-functions/forkpty.texi: Modified.
73561         * doc/glibc-functions/openpty.texi: Modified.
73563 2009-12-10  Bruno Haible  <bruno@clisp.org>
73565         Avoid syntax error in C++ mode.
73566         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73568 2009-12-10  Bruno Haible  <bruno@clisp.org>
73570         Use sed with option -e.
73571         * gnulib-tool (func_version, func_emit_copyright_notice,
73572         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73573         option -e to sed.
73574         * modules/link-warning (Makefile.am): Likewise.
73576 2009-12-10  Jim Meyering  <meyering@redhat.com>
73578         mgetgroups: do not write bytes beyond end of malloc'd buffer
73579         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73580         username, we call getgroups with a one-element-shorter buffer,
73581         but still told it the length was original, max_n_groups.
73583 2009-12-09  Eric Blake  <ebb9@byu.net>
73585         cloexec: relax license
73586         * modules/cloexec (Maintainer): Add myself.
73587         (License): Use LGPL, not GPL.
73589         link-warning: optimize generation
73590         * modules/link-warning (Makefile.am): Reduce process usage.
73592 2009-12-09  Bruno Haible  <bruno@clisp.org>
73594         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73595         workaround was added on 2009-11-17.
73597 2009-12-09  Jim Meyering  <meyering@redhat.com>
73598             Bruno Haible  <bruno@clisp.org>
73600         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73601         * modules/link-warning (Makefile.am): Make the comment-removing sed
73602         command more robust in the face of bootstrap-prepended comment lines.
73604 2009-12-09  Bruno Haible  <bruno@clisp.org>
73606         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73607         most one group.
73609 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73610             Bruno Haible  <bruno@clisp.org>
73612         * build-aux/link-warning.h: Add copyright notice.
73613         * modules/link-warning (Makefile.am): Generate link-warning.h from
73614         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73615         * NEWS: Mention change in link-warning module.
73616         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73617         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73618         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73619         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73620         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73621         * modules/math (Makefile.am): Add dependency to math.h.
73622         * modules/search (Makefile.am): Add dependency to search.h.
73623         * modules/signal (Makefile.am): Add dependency to signal.h.
73624         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73625         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73626         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73627         * modules/string (Makefile.am): Add dependency to string.h.
73628         * modules/strings (Makefile.am): Add dependency to strings.h.
73629         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73630         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73631         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73632         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73633         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73634         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73635         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73636         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73637         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73639 2009-12-09  Bruno Haible  <bruno@clisp.org>
73641         fchdir: Optimize away rpl_fstat when possible.
73642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73643         REPLACE_OPEN_DIRECTORY.
73644         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73646 2009-12-09  Bruno Haible  <bruno@clisp.org>
73648         * lib/fchdir.c: Update comment.
73650 2009-12-09  Bruno Haible  <bruno@clisp.org>
73652         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73654 2009-12-08  Eric Blake  <ebb9@byu.net>
73656         fchdir: avoid memory leak on re-registration.
73657         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73659 2009-12-08  Jim Meyering  <meyering@redhat.com>
73661         init.sh: avoid Solaris 10 /bin/sh portability problem
73662         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73663         sourced script:
73664           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73665           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73666           bar
73667         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73668         and two tests used that idiom.
73669         * tests/init.sh: Update suggested usage comments.
73670         (path_prepend_): New function, to be used in place
73671         of the --src-path=DIR option.
73672         (setup_): Move PATH-prepending code into path_prepend_.
73673         * tests/test-pread.sh: Adapt to new usage.
73674         * tests/test-xalloc-die.sh: Likewise.
73676 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73678         * doc/gnulib.texi (Glibc pty.h): Add.
73679         * doc/glibc-functions/forkpty.texi: Add.
73680         * doc/glibc-functions/openpty.texi: Add.
73681         Suggested by Bruno Haible.
73683 2009-12-08  Eric Blake  <ebb9@byu.net>
73685         fchdir: fix logic bugs
73686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73687         * tests/test-fchdir.c (main): Enhance test.
73688         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73689         is in use.
73691         dup2: fix logic bugs
73692         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73693         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73694         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73695         exists.
73696         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73698 2009-12-07  Eric Blake  <ebb9@byu.net>
73700         unlink: fix m4 detection
73701         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73703         unistd-safer: add unit test
73704         * modules/unistd-safer-tests: New file.
73705         * tests/test-dup-safer.c: Likewise.
73706         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73707         * tests/test-dup2.c (setmode): Likewise.
73708         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73710         cloexec: preserve text vs. binary across dup_cloexec
73711         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73712         mode.
73713         * modules/dup2-tests (Depends-on): Add binary-io.
73714         * modules/cloexec-tests (Depends-on): Likewise.
73715         * tests/test-dup2.c (setmode, is_mode): New helpers.
73716         (main): Add tests that translation mode is preserved.
73717         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73718         Reported by Bruno Haible.
73720         mgetgroups: reduce duplicate listings
73721         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73722         resulting array.
73723         * tests/test-chown.h (test_chown): Simplify client.
73724         * tests/test-lchown.h (test_lchown): Likewise.
73726 2009-12-06  Bruno Haible  <bruno@clisp.org>
73728         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73729         value.
73731 2009-12-06  Bruno Haible  <bruno@clisp.org>
73733         * lib/progname.c: Include stdio.h, stdlib.h.
73734         (set_program_name): Reject a NULL argument.
73736 2009-12-05  Eric Blake  <ebb9@byu.net>
73738         pipe2-safer: new module
73739         * modules/pipe2-safer: New file.
73740         * lib/unistd-safer.h (pipe2_safer): New prototype.
73741         * lib/unistd--.h (pipe2): New wrapper.
73742         * lib/pipe-safer.c (pipe2_safer): New function.
73743         * modules/pipe (Depends-on): Add pipe2-safer.
73744         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73746         stdlib-safer: preserve cloexec flag for mkostemp[s]
73747         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73748         fd_safer_flag.
73750         unistd-safer: allow preservation of cloexec status via flag
73751         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73752         prototypes.
73753         * lib/dup-safer.c (dup_safer_flag): New function.
73754         * lib/fd-safer.c (fd_safer_flag): Likewise.
73755         * modules/cloexec (configure.ac): Set witness.
73757         test-dup2: enhance test
73758         * modules/dup2-tests (Depends-on): Add cloexec.
73759         * tests/test-dup2.c (main): Enhance test.
73761         cloexec: add dup_cloexec
73762         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73763         header and comments.
73764         * lib/cloexec.c (set_cloexec_flag): Add comments.
73765         (dup_cloexec): New function, with mingw implementation borrowed
73766         from...
73767         * lib/w32spawn.h (dup_noinherit): ...here.
73768         * modules/execute (Depends-on): Add cloexec.
73769         * modules/pipe (Depends-on): Likewise.
73770         * modules/cloexec (Depends-on): Add dup2.
73771         * modules/cloexec-tests (Files): New file.
73772         * tests/test-cloexec.c: Likewise.
73774         test-xalloc-die: fix test for mingw
73775         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73776         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73777         directory and .exe suffix off argv[0] output.
73779         test-fseeko: fix test for mingw
73780         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73781         than undefining fseek, so test will pass on mingw.
73783 2009-12-05  Bruno Haible  <bruno@clisp.org>
73785         * lib/progname.h (set_program_name): Clarify specification.
73786         * lib/progname.c (set_program_name): Likewise.
73787         Reported by Jim Meyering.
73789 2009-12-05  Jim Meyering  <meyering@redhat.com>
73791         maint.mk: backslash-escape parens in default regexp
73792         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73793         backslash-escape the literal parentheses.
73795         maint.mk: news-date-check: use grep -E
73796         * top/maint.mk (today): Define a Make variable, not a...
73797         (news-date-check): ...shell variable.
73798         (news-date-regexp): Use the Make variable.
73799         Use grep's -E option.  Change the failing diagnostic to mention
73800         the variable, $(news-date-regexp).
73802 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73804         maintainer-makefile: allow customization of NEWS entry format
73805         * top/maint.mk (news-date-regexp): New overridable variable.
73806         (news-date-check): Use it.
73808 2009-12-04  Eric Blake  <ebb9@byu.net>
73810         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73811         * lib/mgetgroups.h (xgetgroups): New prototype.
73812         * lib/mgetgroups.c (xgetgroups): New wrapper.
73813         (mgetgroups): Handle ENOSYS.
73814         * modules/mgetgroups (Depends-on): Add realloc.
73815         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73817         mgetgroups: avoid argument promotion issues with -1
73818         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73819         for invalid gid_t.
73820         * tests/test-chown.h (getegid, test_chown): Likewise.
73821         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73823 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73825         exclude: Fix header file problems.
73826         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73828 2009-12-01  Jim Meyering  <meyering@redhat.com>
73830         fts: fts_open: do not let an empty string cause immediate failure
73831         This is required in support of GNU rm, for which the command
73832         "rm A '' B" must process and remove both A and B, in spite of
73833         the empty string argument.
73834         * lib/fts.c (fts_open): Do not let the presence of an empty string
73835         cause fts_open to fail immediately.  Most fts-using tools must be
73836         able to process all arguments, in order, and can be expected to
73837         diagnose such arguments themselves.
73839 2009-11-30  Eric Blake  <ebb9@byu.net>
73841         utimens: fix compilation error
73842         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73843         Declare variable at right scope.
73845 2009-11-29  Jim Meyering  <meyering@redhat.com>
73847         bootstrap: handle perl-5.11's changed --version output
73848         * build-aux/bootstrap (get_version): Handle perl separately,
73849         since perl-5.11's --version output is different.
73851 2009-11-28  Jim Meyering  <meyering@redhat.com>
73853         userspec: depend on the inttostr module, too
73854         * modules/userspec (Depends-on): Add inttostr.
73856         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73857         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73858         number of MAXUID when it evaluates to (uid_t) -1.
73859         Likewise for group ID.  Reported by Matt McCutchen in
73860         <http://savannah.gnu.org/bugs/?28113>
73862         userspec: reformat to use spaces, not TABs
73863         * lib/userspec.c: Expand TABs to spaces.
73864         Add Emacs' "indent-tabs-mode: nil" hint.
73866 2009-11-27  Eric Blake  <ebb9@byu.net>
73868         getopt-gnu: flush out another BSD bug
73869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73870         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73871         flush out BSD bug.
73872         * tests/test-getopt.h (test_getopt): End lists with NULL.
73873         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73874         (test_getopt_long_posix): Enhance test.
73875         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73876         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73877         getopt-gnu.
73878         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73879         Likewise.
73881 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73883         * modules/idpriv-droptemp-tests (Notice): Fix text.
73885 2009-11-27  Jim Meyering  <meyering@redhat.com>
73887         test-xalloc-die: avoid spurious failure due to libtool argv difference
73888         In a libtool-enabled project, this test would fail due to a difference
73889         in the emitted program name, e.g.,
73890         -test-xalloc-die: memory exhausted
73891         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73892         Use program to avoid that.
73893         * modules/xalloc-die-tests (Depends-on): Add progname.
73894         * tests/test-xalloc-die.c: Include progname.h".
73895         (program_name): Remove decl.
73896         (main): Call set_program_name.
73897         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73899 2009-11-26  Richard Jones  <rjones@redhat.com>
73901         w32sock: leave win32 error in place.
73902         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73904 2009-11-26  Eric Blake  <ebb9@byu.net>
73906         init.sh: suggest to use skip_ and fail_ functions in comments
73907         * tests/init.sh: Add a sentence.
73909 2009-11-25  Bruno Haible  <bruno@clisp.org>
73911         init.sh: add documentation in comments
73912         * tests/init.sh: Add some developer and user documentation.
73914 2009-11-26  Jim Meyering  <meyering@redhat.com>
73916         init.sh: accommodate even those who specify bogus srcdir manually
73917         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73918         configure-time tests to be sanitized, so that there is no need to
73919         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73920         (with no double quotes) suffices.  However, since tests may be
73921         invoked manually, and since you may explicitly set srcdir to the
73922         name of a directory containing spaces, do quote its uses here.
73923         * tests/test-pread.sh: Likewise.
73924         Suggested by Bruno Haible.
73926         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73927         * tests/test-pread.sh: Write no data into the pipe, because
73928         test-pread actually reads none.  This avoids a diagnostic,
73929         "bash: echo: write error: Broken pipe", that arises in the unusual
73930         event something is ignoring SIGPIPE, and might be interpreted
73931         as some sort of failure.  Reported by Bruno Haible.
73933 2009-11-25  Jim Meyering  <meyering@redhat.com>
73935         test-pread: cover failure with ESPIPE and EINVAL
73936         * tests/test-pread.c (main): Test for failure, too.
73937         * tests/test-pread.sh: Invoke with stdin on a pipe.
73938         Suggested by Eric Blake.
73940         pread: improvement and fix
73941         * modules/pread (Depends-on): Depend on lseek, for portability to
73942         e.g., mingw.  Suggested by Eric Blake.
73943         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73945         unistd.in.h: correct declaration of pread
73946         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73947         Reported by Richard W.M. Jones.
73949         test-pread.sh: distribute the test script
73950         * modules/pread-tests (Files): Include test-pread.sh.
73952         test-pread.sh: clean up
73953         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73954         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73955         That is unnecessary, since it's always ".".
73956         Suggestion from Eric Blake.
73958         test-pread.sh: make executable
73959         * tests/test-pread.sh: Set executable bit.
73960         Reported by Eric Blake.
73962         correct typo in test-pread.sh
73963         * tests/test-pread.sh: Add #! line.
73965         test pread
73966         * tests/test-pread.c: New file.
73967         * tests/test-pread.sh: Likewise.
73968         * modules/pread-tests: Likewise.
73970         pread: new module
73971         * modules/pread: New file.
73972         * lib/unistd.in.h (pread): Define/declare.
73973         * lib/pread.c (pread): New file.
73974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73975         * modules/unistd (Makefile.am): Substitute witnesses.
73976         * doc/posix-functions/pread.texi (pread): Update.
73977         * MODULES.html.sh: Add pread.
73979 2009-11-25  Jim Meyering  <meyering@redhat.com>
73981         tests/init.sh: new file to be used via most *.sh tests
73982         * tests/init.sh: New file.
73984 2009-11-25  Eric Blake  <ebb9@byu.net>
73986         utimens: work around older Linux failure with symlinks
73987         * lib/utimens.c (lutimensat_works_really): New variable.
73988         (fdutimens, lutimens): Use it to manage kernels that support
73989         nanosecond times on files, but not on symlinks.
73990         Reported by Ondřej Vašík.
73992         utimes: fix configure grammar
73993         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73995 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73997         regex: Fix fastmap for multibyte character ranges.
73998         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73999         characters when a multibyte character range is included.
74001 2009-11-22  Andy Wingo  <wingo@pobox.com>
74003         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74004         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74006 2009-11-24  Bruno Haible  <bruno@clisp.org>
74008         doc: Most *_l functions exist in MacOS X 10.5.
74009         * doc/posix-functions/duplocale.texi: Update platforms list.
74010         * doc/posix-functions/freelocale.texi: Likewise.
74011         * doc/posix-functions/newlocale.texi: Likewise.
74012         * doc/posix-functions/uselocale.texi: Likewise.
74013         * doc/posix-functions/isalnum_l.texi: Likewise.
74014         * doc/posix-functions/isalpha_l.texi: Likewise.
74015         * doc/posix-functions/isblank_l.texi: Likewise.
74016         * doc/posix-functions/iscntrl_l.texi: Likewise.
74017         * doc/posix-functions/isdigit_l.texi: Likewise.
74018         * doc/posix-functions/isgraph_l.texi: Likewise.
74019         * doc/posix-functions/islower_l.texi: Likewise.
74020         * doc/posix-functions/isprint_l.texi: Likewise.
74021         * doc/posix-functions/ispunct_l.texi: Likewise.
74022         * doc/posix-functions/isspace_l.texi: Likewise.
74023         * doc/posix-functions/isupper_l.texi: Likewise.
74024         * doc/posix-functions/iswalnum_l.texi: Likewise.
74025         * doc/posix-functions/iswalpha_l.texi: Likewise.
74026         * doc/posix-functions/iswblank_l.texi: Likewise.
74027         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74028         * doc/posix-functions/iswctype_l.texi: Likewise.
74029         * doc/posix-functions/iswdigit_l.texi: Likewise.
74030         * doc/posix-functions/iswgraph_l.texi: Likewise.
74031         * doc/posix-functions/iswlower_l.texi: Likewise.
74032         * doc/posix-functions/iswprint_l.texi: Likewise.
74033         * doc/posix-functions/iswpunct_l.texi: Likewise.
74034         * doc/posix-functions/iswspace_l.texi: Likewise.
74035         * doc/posix-functions/iswupper_l.texi: Likewise.
74036         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74037         * doc/posix-functions/isxdigit_l.texi: Likewise.
74038         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74039         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74040         * doc/posix-functions/strcoll_l.texi: Likewise.
74041         * doc/posix-functions/strfmon_l.texi: Likewise.
74042         * doc/posix-functions/strftime_l.texi: Likewise.
74043         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74044         * doc/posix-functions/strxfrm_l.texi: Likewise.
74045         * doc/posix-functions/tolower_l.texi: Likewise.
74046         * doc/posix-functions/toupper_l.texi: Likewise.
74047         * doc/posix-functions/towctrans_l.texi: Likewise.
74048         * doc/posix-functions/towlower_l.texi: Likewise.
74049         * doc/posix-functions/towupper_l.texi: Likewise.
74050         * doc/posix-functions/wcscoll_l.texi: Likewise.
74051         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74052         * doc/posix-functions/wctrans_l.texi: Likewise.
74053         * doc/posix-functions/wctype_l.texi: Likewise.
74054         * doc/glibc-functions/strptime_l.texi: Likewise.
74055         * doc/glibc-functions/strtod_l.texi: Likewise.
74056         * doc/glibc-functions/strtof_l.texi: Likewise.
74057         * doc/glibc-functions/strtol_l.texi: Likewise.
74058         * doc/glibc-functions/strtold_l.texi: Likewise.
74059         * doc/glibc-functions/strtoll_l.texi: Likewise.
74060         * doc/glibc-functions/strtoul_l.texi: Likewise.
74061         * doc/glibc-functions/strtoull_l.texi: Likewise.
74062         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74063         * doc/glibc-functions/wcstod_l.texi: Likewise.
74064         * doc/glibc-functions/wcstof_l.texi: Likewise.
74065         * doc/glibc-functions/wcstol_l.texi: Likewise.
74066         * doc/glibc-functions/wcstold_l.texi: Likewise.
74067         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74068         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74069         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74071 2009-11-24  Bruno Haible  <bruno@clisp.org>
74073         duplocale: Fix logic bug.
74074         * lib/duplocale.c: Don't include <langinfo.h>.
74075         (_NL_LOCALE_NAME): Remove macro.
74076         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74077         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74079 2009-11-23  Jim Meyering  <meyering@redhat.com>
74081         test-update-copyright: don't hard-code /usr/bin/perl
74082         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74083         perl to print the current year.  Gilles Espinasse reported that
74084         the replaced use of perl was hard-coded as /usr/bin/perl.
74086 2009-11-23  Bruno Haible  <bruno@clisp.org>
74088         duplocale: Add support for glibc 2.3.x.
74089         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74091 2009-11-22  Bruno Haible  <bruno@clisp.org>
74093         vasnprintf: Tiny optimization.
74094         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74095         MacOS X.
74097 2009-11-22  Bruno Haible  <bruno@clisp.org>
74099         Tests for module 'duplocale'.
74100         * modules/duplocale-tests: New file.
74101         * tests/test-duplocale.c: New file.
74103         New module 'duplocale'.
74104         * m4/duplocale.m4: New file.
74105         * lib/locale.in.h (duplocale): New declaration.
74106         * lib/duplocale.c: New file.
74107         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74108         gl_LOCALE_H_DEFAULTS): New macros.
74109         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74110         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74111         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74112         REPLACE_DUPLOCALE.
74113         * modules/duplocale: New file.
74114         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74116 2009-11-22  Bruno Haible  <bruno@clisp.org>
74118         * modules/locale-tests (configure.ac): Test for newlocale function.
74119         * tests/test-locale.c: When the system has extended locale functions,
74120         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74122         locale: Make locale_t available when possible.
74123         * lib/locale.in.h: Include <xlocale.h> when it exists.
74124         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74125         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74126         * modules/locale (Depends-on): Add extensions.
74127         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74128         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74130 2009-11-22  Bruno Haible  <bruno@clisp.org>
74132         Add comments.
74133         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74134         invocation.
74135         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74136         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74137         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74139 2009-11-22  Bruno Haible  <bruno@clisp.org>
74141         error: account for the possibility of freopen (stdout).
74142         * lib/error.c: Include <unistd.h>.
74143         (flush_stdout): New function, extracted from error and error_at_line.
74144         Determine stdout's fd dynamically.
74145         (error, error_at_line): Invoke flush_stdout.
74146         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74147         * modules/error (Depends-on): Add unistd.
74149 2009-11-22  Bruno Haible  <bruno@clisp.org>
74151         diffseq: Add comment.
74152         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74154 2009-11-22  Jim Meyering  <meyering@redhat.com>
74156         c-stack: avoid defining an unused static function
74157         * lib/c-stack.c (find_stack_direction): Do not define this function
74158         when it will not be used.
74160         diffseq: avoid spurious gcc warnings
74161         * lib/diffseq.h (IF_LINT2): Define.
74162         (compareseq): Use it to initialize two members of "part".
74163         This avoids two used-uninitialized warnings.
74165 2009-11-21  Jim Meyering  <meyering@redhat.com>
74167         c-stack: avoid "ignoring return value of `write'" warning
74168         * lib/c-stack.c: Include "ignore-value.h".
74169         (die): Explicitly ignore each write return value.
74170         * modules/c-stack (Depends-on): Add ignore-value.
74172 2009-11-21  Bruno Haible  <bruno@clisp.org>
74174         diffseq: reduce scope of variable 'best'.
74175         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74176         variable, earlier used for two different purposes.
74178 2009-11-21  Jim Meyering  <meyering@redhat.com>
74180         diffseq: remove useless assignment to "best"
74181         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74182         assignment.  At that point "best" is already guaranteed to be zero.
74184 2009-11-20  Eric Blake  <ebb9@byu.net>
74186         build: mention ftp redirector in release announcements
74187         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74188         values that used to come from cfg.mk; mention FTP redirect URL.
74189         * build-aux/announce-gen: Mention the mirror list.
74190         Suggested by Karl Berry.
74192         nanosleep: improve port to mingw
74193         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74195         LIB_NANOSLEEP, but only when needed.
74196         * modules/select (Link): Document LIBSOCKET.
74197         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74198         enough.
74200         nanosleep: work around cygwin bug
74201         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74202         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74203         bug.
74204         (getnow): Delete, not needed.
74205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74206         LIB_CLOCK_GETTIME.
74207         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74208         clock-time, gettime.
74209         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74210         bug.
74211         * modules/nanosleep-tests: New test.
74212         * tests/test-nanosleep.c: New file.
74214         sleep: work around cygwin bug
74215         * lib/sleep.c (rpl_sleep): Work around the bug.
74216         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74217         (gl_PREREQ_SLEEP): Delete unused macro.
74218         * modules/sleep (Depends-on): Add verify.
74219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74220         * modules/unistd (Makefile.am): Substitute witness.
74221         * lib/unistd.in.h (sleep): Update prototype.
74222         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74223         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74224         * modules/sleep-tests (Depends-on): Check for alarm.
74226 2009-11-20  Jim Meyering  <meyering@redhat.com>
74228         maint.mk: improve sc_prohibit_magic_number_exit
74229         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74230         so it does not match uses like System.exit(1).
74231         Add comments showing how to correct all offenders.
74233 2009-11-19  Eric Blake  <ebb9@byu.net>
74235         xalloc-die-tests: add missing library
74236         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74238         test-xvasprintf: silence compiler warnings
74239         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74240         empty string from gcc.
74242 2009-11-19  Jim Meyering  <meyering@redhat.com>
74244         xfreopen: new module, from coreutils
74245         * modules/xfreopen: New module.
74246         * lib/xfreopen.c: New file.
74247         * lib/xfreopen.h: New file.
74248         * MODULES.html.sh (File stream based Input/Output"): Add it.
74250 2009-11-19  Eric Blake  <ebb9@byu.net>
74252         manywarnings: depend on warnings
74253         * modules/manywarnings (Depends-on): Add warnings.
74255         build: avoid compiler warnings
74256         * lib/select.c (rpl_select): Delete unused variable.
74257         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74259 2009-11-18  Eric Blake  <ebb9@byu.net>
74261         tests: avoid false negative with --with-packager
74262         * tests/test-version-etc.sh: Discard packager information.
74263         * tests/test-argp-version-etc-1.sh: Likewise.
74264         Reported by Mike Frysinger.
74266         utimens: fix regression on Solaris
74267         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74268         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74269         can only change fd timestamps via futimesat.  Instead, use an
74270         additional witness macro to avoid BSD bug.
74271         Reported by Jim Meyering.
74273 2009-11-17  Eric Blake  <ebb9@byu.net>
74275         usleep: use it to simplify tests
74276         * modules/stat-time-tests (Depends-on): Add usleep.
74277         (configure.ac): Drop usleep check.
74278         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74279         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74280         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74281         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74282         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74283         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74284         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74285         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74286         Likewise.
74287         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74288         * tests/test-lchown.h (nap): Likewise.
74289         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74290         * tests/test-stat-time.c (nap): Likewise.
74291         * tests/test-utimens-common.h (nap): Update comments.
74293         usleep: new module
74294         * modules/usleep: New file.
74295         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74296         * lib/usleep.c (usleep): Likewise.
74297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74298         * modules/unistd (Makefile.am): Substitute witnesses.
74299         * lib/unistd.in.h (usleep): Add declaration.
74300         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74301         * MODULES.html.sh (Date and time): Likewise.
74302         * modules/usleep-tests (Depends-on): New test.
74303         * tests/test-usleep.c: New file.
74305         chown: work around OpenBSD bug
74306         * lib/chown.c (rpl_chown): Work around the bug.
74307         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74308         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74310         * modules/chown (Depends-on): Add stdbool.
74311         * modules/lchown (Depends-on): Likewise.
74312         * doc/posix-functions/chown.texi (chown): Document the bug.
74313         * doc/posix-functions/lchown.texi (lchown): Likewise.
74314         * tests/test-lchown.h (test_chown): Relax test.
74316         mkstemp: avoid conflict with C++ keyword template
74317         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74318         * lib/mkostemp.c (mkostemp): Likewise.
74319         * lib/mkostemps.c (mkostemps): Likewise.
74320         * lib/mkstemp.c (mkstemp): Likewise.
74321         * lib/mkstemps.c (mkstemps): Likewise.
74323         xalloc-die-tests: optimize
74324         * tests/test-xalloc-die.sh: Reduce number of processes.
74326 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74328         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74329         patch from ludo@gnu.org (Ludovic Courtès).
74331 2009-11-17  Jim Meyering  <meyering@redhat.com>
74333         version-etc: use proper license string
74334         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74335         * modules/version-etc-fsf: Likewise.
74337 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74339         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74340         printed to stdout.  Deal with EOL differences.
74342 2009-11-17  Eric Blake  <ebb9@byu.net>
74344         unsetenv: work around Solaris bug
74345         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74346         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74347         Reported by Jim Meyering.
74349         vasnprintf: avoid compiler warnings
74350         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74351         variables.
74352         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74354 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74356         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74357         settings since xalloc-die is no longer the self test,
74358         xalloc-die.sh is.
74360 2009-11-17  Jim Meyering  <meyering@redhat.com>
74362         test-xalloc-die.sh: make the code agree with the commit log
74363         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74364         at the end, just in case you happen to have a test-xalloc-die
74365         program in some other PATH directory.
74367         test-xalloc-die.sh: fix a portability bug
74368         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74369         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74370         Otherwise, argv[0] (as often seen in diagnostics) would be too
74371         system-dependent, sometimes with, and sometimes without the leading "./".
74373         version-etc-fsf: relax license to LGPLv3+
74374         * modules/version-etc-fsf (License): Relax license.
74376 2009-11-16  Eric Blake  <ebb9@byu.net>
74378         xalloc-die-tests: avoid printing null pointer
74379         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74380         shell script.
74381         * tests/test-xalloc-die.c (program_name): Declare.
74382         * tests/test-xalloc-die.sh (tmpfiles): New file.
74384         setenv, unsetenv: work around various bugs
74385         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74386         (setenv) [HAVE_SETENV]: Work around bugs.
74387         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74388         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74389         for bugs.
74390         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74391         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74393         * modules/stdlib (Makefile.am): Update substitutions.
74394         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74395         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74396         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74397         * modules/setenv-tests: New test.
74398         * modules/unsetenv-tests: Likewise.
74399         * tests/test-setenv.c: New file.
74400         * tests/test-unsetenv.c: Likewise.
74402 2009-11-16  Jim Meyering  <meyering@redhat.com>
74404         version-etc: relax license to LGPLv3+
74405         * modules/version-etc (License): Relax license.
74407         better AC_REQUIRE expanded-before-required-warning avoidance
74408         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74409         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74410         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74411         which is no longer needed.
74413 2009-11-16  Eric Blake  <ebb9@byu.net>
74415         test-freading: clean up temporary file
74416         * tests/test-freading.c (main): Remove file on success, and use
74417         ASSERT more liberally.
74418         Reported by Jim Meyering.
74420 2009-11-16  Jim Meyering  <meyering@redhat.com>
74422         avoid new AC_REQUIRE expanded-before-required warnings
74423         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
74424         merely using it.
74425         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
74426         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
74428 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74430         * tests/test-xalloc-die.c: New file.
74431         * modules/xalloc-die-tests: New file.
74432         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
74433         XFAIL_TESTS so it can be appended by modules.
74435 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74437         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74438         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74440 2009-11-14  Eric Blake  <ebb9@byu.net>
74442         fnmatch: avoid compiler warning
74443         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74444         to silence compiler warning about mismatch signedness in ?:.
74445         Reported by Robert Millan.
74447         intprops: add double-inclusion guard
74448         * lib/intprops.h: Allow idempotent includes.
74449         Suggested by Bruce Korb.
74451         openat: detect Solaris fchownat bug
74452         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74453         penalizing glibc chownat when only lchownat is broken.
74454         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74455         trailing slash bugs.
74456         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74457         * modules/openat-tests (Files): Include more files.
74458         (Depends-on): Add mgetgroups, sleep, stat-time.
74459         (configure.ac): Add additional checks.
74460         (Makefile.am): Build new test.
74461         * tests/test-fchownat.c: New file.
74463         lchown: detect Solaris and FreeBSD bug
74464         * lib/lchown.c (rpl_lchown): Work around bug.
74465         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74467         * modules/unistd (Makefile.am): Populate it.
74468         * lib/unistd.in.h (lchown): Update declaration.
74469         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74470         * modules/lchown-tests: New file.
74471         * tests/test-lchown.h (test_lchown): Likewise.
74472         * tests/test-lchown.c (main): Likewise.
74474         chown: detect Solaris and FreeBSD bug
74475         * lib/chown.c (rpl_chown): Work around bug.
74476         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74477         (gl_PREREQ_CHOWN): Delete.
74478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74479         * modules/unistd (Makefile.am): Populate it.
74480         * lib/unistd.in.h (chown): Update declaration.
74481         * lib/lchown.c (chown): Update client.
74482         * modules/lchown (Depends-on): Add lstat.
74483         * doc/posix-functions/chown.texi (chown): Document the bug.
74484         * doc/posix-functions/getgroups.texi (getgroups): Document
74485         getgroups pitfall.
74486         * modules/chown-tests: New file.
74487         * tests/test-chown.h (test_chown): Likewise.
74488         * tests/test-chown.c (main): Likewise.
74490 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74492         gnulib-tool: correctly detect absence of m4 directories
74493         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74495 2009-11-14  Jim Meyering  <meyering@redhat.com>
74497         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74498         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74500 2009-11-14  John W. Eaton  <jwe@gnu.org>
74502         strftime.h: wrap function declaration in extern "C" block
74503         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74505 2009-11-13  Eric Blake  <ebb9@byu.net>
74507         getgroups: avoid compiler warning
74508         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74510         getgroups: work around FreeBSD bug
74511         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74512         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74513         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74514         * tests/test-getgroups.c (main): Fix buffer overrun.
74516         getgroups: avoid compilation failure
74517         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74518         * modules/getgroups (Depends-on): Add stdint.
74520 2009-11-13  Jim Meyering  <meyering@redhat.com>
74522         test-getgroups: avoid compilation failure
74523         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74525 2009-11-13  Eric Blake  <ebb9@byu.net>
74527         mgetgroups: new module, taken from coreutils
74528         * modules/mgetgroups: New file.
74529         * lib/mgetgroups.h: Likewise.
74530         * lib/mgetgroups.c (mgetgroups): Likewise.
74531         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74532         * MODULES.html.sh (Users and groups): Mention it.
74534         getgroups: don't expose GETGROUPS_T to user
74535         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74536         an element at a time if GETGROUPS_T is wrong size.
74537         * lib/getugroups.h (getugroups): Change signature.
74538         * lib/unistd.in.h (getgroups): Likewise.
74539         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74540         signature needs fixing.
74541         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74542         AC_TYPE_GETGROUPS.
74543         * modules/group-member (Depends-on): Add getgroups.
74544         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74545         (group_member): Rely on getgroups replacement.
74546         * lib/getugroups.c (getugroups): Use gid_t.
74547         * tests/test-getgroups.c (main): Likewise.
74548         * NEWS: Mention the signature change.
74549         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74550         problem with signature.
74551         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74552         GETGROUPS_T is still useful for setgroups.
74554         getgroups, getugroups: provide stubs for mingw
74555         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74556         * lib/getugroups.c (getugroups): Likewise.
74557         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74558         function.  Modernize replacement scheme.
74559         (gl_PREREQ_GETGROUPS): Delete.
74560         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74561         * modules/getgroups (configure.ac): Declare witness.
74562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74563         * modules/unistd (Depends-on): Substitute witness.
74564         * lib/unistd.in.h (getgroups): Declare replacement.
74566         getgroups: avoid calling exit
74567         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74568         drop xalloc.
74569         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74570         dependencies.
74571         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74572         exiting, in the rare case of malloc failure.
74574         getgroups: fix logic error
74575         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74576         has more than 20 groups.
74577         * modules/getgroups-tests: New test.
74578         * tests/test-getgroups.c: New file.
74580 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74582         * tests/test-base64.c: Improve.
74584 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74586         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74587         Blake <ebb9@byu.net>.
74589 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74591         * tests/test-xvasprintf.c: Add %s%s related checks.
74593 2009-11-12  Eric Blake  <ebb9@byu.net>
74595         version-etc: match standards.texi style
74596         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74597         and use <> only for URLs.
74599 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74601         fts: do not fail on a submount during traversal
74602         * lib/fts.c (fts_build): Read the stat info again after opening
74603         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74604         Original report at http://bugzilla.redhat.com/501848.
74606 2009-11-12  Jim Meyering  <meyering@redhat.com>
74608         bootstrap: sync from coreutils
74609         * build-aux/bootstrap (bootstrap_epilogue): New function.
74610         Use git_modules_config in one more place.  This make bootstrap's
74611         --gnulib-srcdir option more useful for testing.
74613         bootstrap: generalize autoheader check
74614         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74615         AC_CONFIG_HEADERS.
74617 2009-11-11  Eric Blake  <ebb9@byu.net>
74619         mkfifoat: use new modules for Solaris and BSD bugs
74620         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74621         * lib/mkfifoat.c (mknodat): Split...
74622         * lib/mknodat.c (mknodat): ...into new file.
74623         * modules/mkfifoat (Files): Ship new file.
74624         (Depends-on): Add mkfifo, mknod.
74625         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74626         (Depends-on): Add symlink.
74627         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74628         redundant with test_mkfifo.h.
74629         (do_mkfifoat, do_mknodat): New helpers.
74631         mknod: new module
74632         * modules/mknod: New file.
74633         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74634         * lib/mknod.c (mknod): Likewise.
74635         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74636         defaults.
74637         * modules/sys_stat (Makefile.am): Substitute them.
74638         * lib/sys_stat.in.h (mknod): Declare replacement.
74639         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74640         Document it.
74641         * doc/posix-functions/mknod.texi (mknod): Likewise.
74642         * modules/mknod-tests: New test.
74643         * tests/test-mknod.c: Likewise.
74645         mkfifo: new module
74646         * modules/mkfifo: New file.
74647         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74648         * lib/mkfifo.c (mkfifo): Likewise.
74649         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74650         defaults.
74651         * modules/sys_stat (Makefile.am): Substitute them.
74652         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74653         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74654         Document it.
74655         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74656         * modules/mkfifo-tests: New test.
74657         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74658         from test-mkfifoat.c.
74659         * tests/test-mkfifo.c: New file.
74661         readlink: detect FreeBSD bug
74662         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74663         slash on symlink.
74664         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74665         * tests/test-readlink.h (test_readlink): Enhance test.
74667         symlink: detect FreeBSD bug
74668         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74669         slash on symlink.
74670         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74671         * tests/test-symlink.h (test_symlink): Enhance test.
74673 2009-11-10  Eric Blake  <ebb9@byu.net>
74675         link: detect FreeBSD bug
74676         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74677         symlink.
74678         * doc/posix-functions/link.texi (link): Document the bug.
74679         * tests/test-link.h (test_link): Enhance test.
74680         * tests/test-linkat.c (main): Update caller.
74682         unlink, remove: detect FreeBSD bug
74683         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74684         slash on symlink.
74685         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74686         * doc/posix-functions/remove.texi (remove): Likewise.
74687         * tests/test-unlink.h (test_unlink): Enhance test.
74688         * tests/test-remove.c (main): Likewise.
74690 2009-11-09  Eric Blake  <ebb9@byu.net>
74692         rename: detect FreeBSD bug
74693         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74694         slash on symlink.
74695         * modules/renameat-tests (Depends-on): Add filenamecat.
74696         * tests/test-rename.h (test_rename): Allow one more errno.
74697         * tests/test-renameat.c (main): Likewise.
74698         * doc/posix-functions/rename.texi (rename): Document the bug.
74700         open: detect FreeBSD bug
74701         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74702         symlink.
74703         * doc/posix-functions/open.texi (open): Document the bug.
74704         * doc/posix-functions/utimes.texi (utimes): Likewise.
74705         * tests/test-open.h (test_open): Add parameters, and test symlink
74706         handling.
74707         * tests/test-open.c (main): Adjust caller.
74708         * tests/test-fcntl-safer.c (main): Likewise.
74709         * modules/open-tests (Depends-on): Add stdbool, symlink.
74710         * modules/fcntl-safer-tests (Depends-on): Likewise.
74711         * tests/test-openat.c (main): Add test-open tests.
74713         stat: detect FreeBSD bug
74714         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74715         symlink.
74716         * doc/posix-functions/stat.texi (stat): Document the bug.
74717         * tests/test-stat.h (test_stat_func): Add argument.
74718         * tests/test-stat.c (main): Adjust caller.
74719         * tests/test-fstatat.c (main): Likewise.
74720         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74721         Reported by Jim Meyering.
74723 2009-11-09  James Youngman  <jay@gnu.org>
74725         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74726         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74728 2009-11-08  Jim Meyering  <meyering@redhat.com>
74730         utimens: remove invalid futimesat call
74731         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74732         It used the file descriptor of the target file as the DIR_FD
74733         parameter and NULL as the file name.  That caused failure with
74734         errno == EFAULT on FreeBSD-8.0-rc2
74736 2009-11-07  Eric Blake  <ebb9@byu.net>
74738         fflush, freadseek: use fseeko, not fseek
74739         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74740         (clear_ungetc_buffer): Avoid potential problems on large files.
74741         * lib/freadseek.c (freadseek): Likewise.
74742         * modules/freadseek (Depends-on): Add fseeko.
74743         * modules/fseek (configure.ac): Set a witness.
74744         * tests/test-fflush.c (main): Use fseeko.
74745         * tests/test-fpurge.c (fseek): Disable link warning.
74746         * tests/test-freadable.c (fseek): Likewise.
74747         * tests/test-freading.c (fseek): Likewise.
74748         * tests/test-fseeko.c (fseek): Likewise.
74749         * tests/test-ftell.c (fseek): Likewise.
74750         * tests/test-ftello.c (fseek): Likewise.
74751         * tests/test-fwritable.c (fseek): Likewise.
74752         * tests/test-fwriting.c (fseek): Likewise.
74754 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74756         * modules/memchr (Depends-on): Drop getpagesize dependency.
74758 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74760         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74761         Reported by Ludovic Courtès.
74762         * build-aux/pmccabe2html: Improve example usage.
74763         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74765 2009-11-06  Jim Meyering  <meyering@redhat.com>
74767         do-release-commit-and-tag: New module.
74768         Automate the release-commit and tag process.
74769         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74770         * modules/do-release-commit-and-tag: New file.
74771         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74773 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74775         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74776         because test-select.c uses inet_pton.
74778 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74780         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74781         GETADDRINFO_LIB.  Bump serial number.
74782         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74783         Suggested by Eric Blake <ebb9@byu.net>.
74785 2009-11-05  Eric Blake  <ebb9@byu.net>
74787         strtod: detect darwin bug
74788         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74789         Reported by Leo Davis.
74791         freopen-safer: new module
74792         * modules/freopen-safer: New module.
74793         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74794         * lib/freopen-safer.c (freopen_safer): New file.
74795         * lib/stdio-safer.h (freopen_safer): New declaration.
74796         * lib/stdio--.h (freopen): New override.
74797         * MODULES.html.sh (File stream based Input/Output): Mention it.
74798         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74799         freopen-safer module.
74800         * doc/posix-functions/stderr.texi (stderr): Likewise.
74801         * doc/posix-functions/stdin.texi (stdin): Likewise.
74802         * doc/posix-functions/stdout.texi (stdout): Likewise.
74803         * modules/freopen-safer-tests: New test.
74804         * tests/test-reopen-safer.c: New file.
74806 2009-11-05  Jim Meyering  <meyering@redhat.com>
74808         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74809         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74811 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74813         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74815 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74817         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74819 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74821         Fix link error.
74822         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74823         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74825 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74827         * tests/test-func.c: Also test value of __func__.
74829 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74831         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74832         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74834 2009-11-05  Bruno Haible  <bruno@clisp.org>
74836         Fix link error.
74837         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74838         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74839         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74841 2009-11-05  Bruno Haible  <bruno@clisp.org>
74843         Tests for module 'inet_pton'.
74844         * modules/inet_pton-tests: New file.
74845         * tests/test-inet_pton.c: New file.
74847 2009-11-05  Bruno Haible  <bruno@clisp.org>
74849         Tests for module 'inet_ntop'.
74850         * modules/inet_ntop-tests: New file.
74851         * tests/test-inet_ntop.c: New file.
74853 2009-11-04  Eric Blake  <ebb9@byu.net>
74855         stdlib-safer: wrap all mkstemp variants
74856         * modules/mkostemp (configure.ac): Set witness.
74857         * modules/mkostemps (configure.ac): Likewise.
74858         * modules/mkstemps (configure.ac): Likewise.
74859         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74860         (mkstemps_safer): Wrap more functions.
74861         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74862         wrapping.
74863         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74864         (mkstemps_safer): Implement the wrappers.
74866         mkstemps, mkostemps: new modules
74867         * modules/mkostemps: New module.
74868         * modules/mkstemps: Likewise.
74869         * lib/mkostemps.c (mkostemps): New file.
74870         * lib/mkstemps.c (mkstemps): Likewise.
74871         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74872         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74874         * modules/stdlib (Makefile.am): Substitute them.
74875         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74876         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74877         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74878         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74879         * MODULES.html.sh (File system functions): Mention them.
74881         tempname: resync from glibc
74882         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74883         same values for __GT_FILE as glibc.  Abort even when assertions
74884         are disabled.
74885         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74886         match its value otherwise.  Allow idempotent inclusion.
74887         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74888         * lib/mkostemp.c (mkostemp): Likewise.
74889         * lib/mkstemp.c (mkstemp): Likewise.
74890         * lib/tmpfile.c (tmpfile): Likewise.
74891         * NEWS: Document this.
74893         utimens: fix use of futimens on older Linux
74894         * lib/utimens.c (fdutimens): Use updated, rather than original,
74895         timespec to avoid bug in older Linux kernel.
74896         Reported by Simon Josefsson.
74898 2009-11-04  Bruno Haible  <bruno@clisp.org>
74900         Make num_processors more flexible and consistent.
74901         * lib/nproc.h (enum nproc_query): New type.
74902         (num_processors): Add a 'query' argument.
74903         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74904         (num_processors): Add a 'query' argument. Test the value of the
74905         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74906         mingw, count the number of CPUs available for the current process.
74907         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74908         Check for sched_getaffinity and sched_getaffinity_np.
74909         * modules/nproc (Depends-on): Add c-ctype, extensions.
74910         * NEWS: Mention the change.
74912 2009-11-03  Bruno Haible  <bruno@clisp.org>
74914         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74916 2009-11-03  Jim Meyering  <meyering@redhat.com>
74918         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74919         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74920         if it is defined.
74922 2009-11-02  Eric Blake  <ebb9@byu.net>
74924         mktime, timegm: share common declaration
74925         * lib/mktime-internal.h: New file.
74926         * lib/mktime.c: Use it rather than open-coding a declaration.
74927         * lib/timegm.c: Likewise.
74928         * modules/mktime (Files): Ship it.
74929         * modules/timegm (Files): Likewise.
74930         Suggested by Bruno Haible.
74932         test-update-copyright: update test to match script changes
74933         * tests/test-update-copyright.sh: Avoid hard-coding perl
74934         location.  Don't update *.bak created by earlier runs.
74936 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74937             Simon Josefsson  <simon@josefsson.org>
74938             Bruno Haible  <bruno@clisp.org>
74940         Fix link error on Solaris 8.
74941         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74942         also in libnsl. Define also INET_PTON_LIB.
74943         * modules/inet_pton (Link): New section.
74945 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74946             Bruno Haible  <bruno@clisp.org>
74948         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74949         * modules/inet_ntop (Link): New section.
74950         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74952 2009-11-02  Eric Blake  <ebb9@byu.net>
74954         maint: avoid compiler warnings in m4 macros
74955         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74958 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74960         * m4/pmccabe2html.m4: Remove file.
74961         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74962         function.  Change maintainer.
74963         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74964         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74965         Courtès).
74967 2009-10-31  Eric Blake  <ebb9@byu.net>
74969         fseeko: fix m4 regression
74970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74971         regression from 2009-10-27.
74972         Reported by Ralf Wildenhues.
74974 2009-10-31  Jim Meyering  <meyering@redhat.com>
74976         inttostr: aesthetics and improved (compile-time) safety
74977         Define inttype_is_signed rather than inttype_is_unsigned,
74978         since the sole use is via "#if inttype_is_signed".
74979         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74980         inttype_is_unsigned.
74981         * lib/offtostr.c (inttype_is_signed): Likewise.
74982         * lib/uinttostr.c (inttype_is_signed): Likewise.
74983         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74984         * lib/inttostr.c (inttostr): Use verify to cross-check the
74985         inttype_is_signed value and the signedness of the actual type.
74986         * modules/inttostr (Depends-on): Add verify.
74988 2009-10-30  Eric Blake  <ebb9@byu.net>
74990         build: avoid compiler warnings
74991         * lib/fchmodat.c (lchmod): Mark unused variables.
74992         * lib/getopt.c (_getopt_initialize): Likewise.
74993         * lib/mktime.c (__mktime_internal): Provide prototype.
74994         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74995         older gcc that do not understand #pragma GCC diagnostic.
74996         * lib/uinttostr.c (inttype_is_unsigned): Define.
74997         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74999 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75001         stat: fix compilation on AIX
75002         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75003         only see struct stat64.
75005 2009-10-30  Eric Blake  <ebb9@byu.net>
75007         exclude: make more robust
75008         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75009         rather than masking a coding bug.
75010         Suggested by Bruno Haible.
75012 2009-10-30  Jim Meyering  <meyering@redhat.com>
75014         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75015         Rather than putting #!/usr/bin/perl on the first line,
75016         start with a variant of what's recommended by "man perlrun" that
75017         invokes the first "perl" program from your shell's search path.
75018         * build-aux/gitlog-to-changelog: Replace #!... as above.
75019         Add a "Local Variables" perl mode setting.
75020         Prompted by a patch from Ludovic Courtès.
75021         Improved by Eric Blake.
75022         * build-aux/useless-if-before-free: Likewise.
75023         * build-aux/announce-gen: Likewise.
75024         * build-aux/update-copyright: Likewise.
75026 2009-10-29  Eric Blake  <ebb9@byu.net>
75028         filenamecat-lgpl: adjust clients
75029         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75030         filenamecat.
75031         * modules/renameat (Depends-on): Likewise.
75033         filenamecat: split into filenamecat-lgpl
75034         * modules/filenamecat-lgpl: New module.
75035         * modules/filenamecat (Files): Move library-safe files into
75036         filenamecat-lgpl.
75037         (Depends-on): Add filenamecat-lgpl.
75038         (configure.ac): Declare witness.
75039         * lib/filenamecat.h (file_name_concat): Only declare when using
75040         GPL module.
75041         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75042         Move...
75043         * lib/filenamecat-lgpl.c: ...into new file.
75044         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75045         (gl_FILE_NAME_CONCAT): Use it.
75046         * MODULES.html.sh (File system functions): Mention new module.
75048         argp: avoid memory leak
75049         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75050         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75051         base_name, since the latter malloc()s and can call exit().
75052         Leak introduced 2006-07-03.
75054         dirname-lgpl: adjust clients that don't need full dirname
75055         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75056         * modules/filenamecat (Depends-on): Likewise.
75057         * modules/linkat (Depends-on): Likewise.
75058         * modules/mkancesdirs (Depends-on): Likewise.
75059         * modules/mkdir (Depends-on): Likewise.
75060         * modules/openat (Depends-on): Likewise.
75061         * modules/savewd (Depends-on): Likewise.
75062         * modules/rename (Depends-on): Likewise.
75063         (License): Relax license.
75064         * modules/mkdir-tests (Depends-on): Drop progname.
75065         (Makefile.am): Delete unneeded LDADD.
75066         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75068         dirname: split into dirname-lgpl
75069         * modules/dirname-lgpl: New module.
75070         * modules/dirname (Files): Move library-safe files into
75071         dirname-lgpl.
75072         (Depends-on): Add dirname-lgpl.
75073         (configure.ac): Declare witness.
75074         * modules/double-slash-root (License): Relax license.
75075         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75076         module.
75077         * lib/dirname.c (dir_len, mdir_name): Move...
75078         * lib/dirname-lgpl.c: ...into new file.
75079         * lib/basename.c (last_component, base_len): Move...
75080         * lib/basename-lgpl.c: ...into new file.
75081         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75082         (gl_DIRNAME): Use it.
75083         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75084         Mention new module.
75085         * modules/dirname-tests (Depends-on): Add progname.
75086         * tests/test-dirname.c (program_name): Delete.
75088         mkdir: make safe for libraries
75089         * modules/mkdir (Depends-on): Drop xalloc.
75090         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75091         exit.
75093         tests: avoid some compiler warnings
75094         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75095         literals.
75096         * tests/test-memchr.c (main): Avoid type mismatch.
75097         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75098         * tests/test-base64.c (main): Likewise.
75099         * tests/test-getdelim.c (main): Likewise.
75100         * tests/test-gethostname.c (main): Likewise.
75101         * tests/test-getline.c (main): Likewise.
75102         * tests/test-netinet_in.c (main): Likewise.
75103         * tests/test-select.c (open_server_socket, main): Likewise.
75104         * tests/test-select-stdin.c (main): Likewise.
75105         * tests/test-sockets.c (main): Likewise.
75106         * tests/test-strsignal.c (main): Likewise.
75107         * tests/test-sys_select.c (main): Likewise.
75108         * tests/test-sys_socket.c (main): Likewise.
75109         * tests/test-u64.c (main): Likewise.
75110         * tests/test-xfprintf-posix.c (main): Likewise.
75111         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75113         sockets: avoid compiler warning
75114         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75116         maint: detect usage(1) and other suspicious exits
75117         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75119 2009-10-29  Jim Meyering  <meyering@redhat.com>
75121         timespec: long-to-int truncation could make timespec_cmp malfunction
75122         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75123         a multiple of 2^32 nanoseconds as no difference.
75125 2009-10-28  Jim Meyering  <meyering@redhat.com>
75127         fprintftime: wrap macro code argument in "do {...} while(0)"
75128         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75129         cpy macro must be a statement that can be followed by a semicolon.
75130         Now that the else clause contains a comment and is hence longer
75131         than one line, I require curly braces.  That in turn requires
75132         that we wrap this code block in the standard do...while(0).
75134         fprintftime: remove stray semicolon from previous change
75135         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75137         fprintftime: avoid a warning about ignored fwrite return value
75138         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75139         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75140         that is unsafe.
75141         * modules/fprintftime (Depends-on): Add ignore-value.
75143         exclude: avoid an unwarranted warning
75144         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75146 2009-10-27  Eric Blake  <ebb9@byu.net>
75148         fseek: avoid compilation failure when fflush is replaced
75149         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75150         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75151         module is in use.
75152         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75153         module is not in use; since REPLACE_FSEEK worked otherwise.
75154         (GNULIB_FTELLO): Likewise for ftell.
75155         Reported by Ian Beckwith and others.
75157 2009-10-27  Bruno Haible  <bruno@clisp.org>
75159         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75160         Reported by Jim Meyering.
75162 2009-10-27  Jim Meyering  <jim@meyering.net>
75163             Bruno Haible  <bruno@clisp.org>
75165         Avoid warning despite dropping the return value of fwrite.
75166         * lib/unicodeio.c: Include ignore-value.h.
75167         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75168         * modules/unicodeio (Depends-on): Add ignore-value.
75170 2009-10-26  Eric Blake  <ebb9@byu.net>
75172         areadlinkat: fix fallback path
75173         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75174         pointer and zero.
75176 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75178         Use a better IO block size for modern systems
75179         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75180         * lib/md2.c: Likewise.
75181         * lib/md4.c: Likewise.
75182         * lib/md5.c: Likewise.
75183         * lib/sha1.c: Likewise.
75184         * lib/sha256.c: Likewise.
75185         * lib/sha512.c: Likewise.
75187 2009-10-22  Eric Blake  <ebb9@byu.net>
75189         tests: avoid several compiler warnings
75190         * tests/test-getcwd.c (main): Avoid buffer underflow.
75191         * tests/test-getdate.c (main): String literals are not safe with
75192         putenv, so use setenv.  Declare unused argument.
75193         * modules/getdate-tests (Depends-on): Add setenv.
75194         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75195         problems with string literals in char *.
75196         * tests/test-hash.c (main): Avoid shadowing declaration.
75197         (insert_new): Treat string literals as char const *.
75198         * tests/test-getopt.h (test_getopt): Likewise.
75199         (getopt_loop): Alter types to minimize casting elsewhere.
75200         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75201         (test_getopt_long_posix): Likewise.
75202         (do_getopt_long): Add wrapper to minimize casting.
75203         * tests/test-atexit.c (clear_temp_file): Use void.
75204         * tests/test-areadlink-with-size.c (main): Declare unused
75205         arguments.
75206         * tests/test-areadlink.c (main): Likewise.
75207         * tests/test-areadlinkat-with-size.c (main): Likewise.
75208         * tests/test-areadlinkat.c (main): Likewise.
75209         * tests/test-canonicalize-lgpl.c (main): Likewise.
75210         * tests/test-canonicalize.c (main): Likewise.
75211         * tests/test-dirent-safer.c (main): Likewise.
75212         * tests/test-dirname.c (main): Likewise.
75213         * tests/test-dup2.c (main): Likewise.
75214         * tests/test-fchdir.c (main): Likewise.
75215         * tests/test-fcntl-h.c (main): Likewise.
75216         * tests/test-fcntl-safer.c (main): Likewise.
75217         * tests/test-fdopendir.c (main): Likewise.
75218         * tests/test-fdutimensat.c (main): Likewise.
75219         * tests/test-fflush.c (main): Likewise.
75220         * tests/test-filenamecat.c (main): Likewise.
75221         * tests/test-filevercmp.c (main): Likewise.
75222         * tests/test-fopen-safer.c (main): Likewise.
75223         * tests/test-fopen.c (main): Likewise.
75224         * tests/test-fpending.c (main): Likewise.
75225         * tests/test-fpurge.c (main): Likewise.
75226         * tests/test-freading.c (main): Likewise.
75227         * tests/test-fstatat.c (main): Likewise.
75228         * tests/test-fsync.c (main): Likewise.
75229         * tests/test-futimens.c (main): Likewise.
75230         * tests/test-getndelim2.c (main): Likewise.
75231         * tests/test-gettimeofday.c (main): Likewise.
75232         * tests/test-getopt.c (main): Likewise.
75233         * tests/test-i-ring.c (main): Likewise.
75234         * tests/test-inttypes.c (main): Likewise.
75235         * tests/test-link.c (main): Likewise.
75236         * tests/test-lstat.c (main): Likewise.
75237         * tests/test-math.c (main): Likewise.
75238         * tests/test-md5.c (main): Likewise.
75239         * tests/test-memchr2.c (main): Likewise.
75240         * tests/test-memrchr.c (main): Likewise.
75241         * tests/test-mkdir.c (main): Likewise.
75242         * tests/test-mkdirat.c (main): Likewise.
75243         * tests/test-mkfifoat.c (main): Likewise.
75244         * tests/test-open.c (main): Likewise.
75245         * tests/test-openat-safer.c (main): Likewise.
75246         * tests/test-openat.c (main): Likewise.
75247         * tests/test-quotearg.c (main): Likewise.
75248         * tests/test-rawmemchr.c (main): Likewise.
75249         * tests/test-readlink.c (main): Likewise.
75250         * tests/test-remove.c (main): Likewise.
75251         * tests/test-rename.c (main): Likewise.
75252         * tests/test-renameat.c (main): Likewise.
75253         * tests/test-rmdir.c (main): Likewise.
75254         * tests/test-sha1.c (main): Likewise.
75255         * tests/test-signal.c (main): Likewise.
75256         * tests/test-sigaction.c (main): Likewise.
75257         * tests/test-stat.c (main): Likewise.
75258         * tests/test-stat-time.c (main): Likewise.
75259         * tests/test-stddef.c (main): Likewise.
75260         * tests/test-stdint.c (main): Likewise.
75261         * tests/test-stdio.c (main): Likewise.
75262         * tests/test-stdlib.c (main): Likewise.
75263         * tests/test-strchrnul.c (main): Likewise.
75264         * tests/test-strerror.c (main): Likewise.
75265         * tests/test-string.c (main): Likewise.
75266         * tests/test-strtod.c (main): Likewise.
75267         * tests/test-strverscmp.c (main): Likewise.
75268         * tests/test-symlink.c (main): Likewise.
75269         * tests/test-symlinkat.c (main): Likewise.
75270         * tests/test-sys_stat.c (main): Likewise.
75271         * tests/test-sys_time.c (main): Likewise.
75272         * tests/test-time.c (main): Likewise.
75273         * tests/test-unistd.c (main): Likewise.
75274         * tests/test-unlink.c (main): Likewise.
75275         * tests/test-unlinkat.c (main): Likewise.
75276         * tests/test-utimens.c (main): Likewise.
75277         * tests/test-utimensat.c (main): Likewise.
75278         * tests/test-version-etc.c (main): Likewise.
75279         * tests/test-wchar.c (main): Likewise.
75280         * tests/test-wctype.c (main): Likewise.
75281         * tests/test-xprintf-posix.c (main): Likewise.
75282         * tests/test-posixtm.c (main): Likewise.
75283         (STREQ): Delete unused macro.
75284         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75285         shadowed variables.
75286         * tests/test-memchr.c (main): Likewise.
75288 2009-10-21  Eric Blake  <ebb9@byu.net>
75290         areadlinkat: avoid failure on older glibc
75291         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75292         rather than mis-comparing 0 against FUNC_RESULT of char*.
75294 2009-10-21  Bruno Haible  <bruno@clisp.org>
75296         * modules/stpncpy (License): Relicense under LGPLv2+.
75297         Reported by David Lutterkort <lutter@redhat.com>.
75299 2009-10-20  Eric Blake  <ebb9@byu.net>
75301         utimensat: work around Solaris 9 bug
75302         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75303         has trailing slash bugs.
75304         * tests/test-lutimens.h (test_lutimens): Enhance test.
75305         * tests/test-utimens.h (test_utimens): Likewise.
75306         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75307         * doc/posix-functions/utimes.texi (utimes): Likewise.
75308         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75309         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75310         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75311         * doc/posix-functions/futimens.texi (futimens): Likewise.
75313         fdutimensat: new module
75314         * modules/fdutimensat: New file.
75315         * lib/fdutimensat.c (fdutimensat): Likewise.
75316         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75317         * MODULES.html.sh (File system functions): Mention module.
75318         * modules/fdutimensat-tests: New test.
75319         * tests/test-fdutimensat.c: Likewise.
75321         doc: regenerate INSTALL
75322         * doc/INSTALL: Reflect recent autoconf update.
75323         * doc/INSTALL.ISO: Likewise.
75324         * doc/INSTALL.UTF-8: Likewise.
75326 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75328         acl: warn if ACL support is not detected
75329         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75331 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75333         * lib/nproc.h: Add extern "C" block for C++.
75335 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75336             Bruno Haible  <bruno@clisp.org>
75338         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75339         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75340         * doc/posix-functions/isalpha.texi: Likewise.
75341         * doc/posix-functions/isblank.texi: Likewise.
75342         * doc/posix-functions/iscntrl.texi: Likewise.
75343         * doc/posix-functions/isdigit.texi: Likewise.
75344         * doc/posix-functions/isgraph.texi: Likewise.
75345         * doc/posix-functions/islower.texi: Likewise.
75346         * doc/posix-functions/isprint.texi: Likewise.
75347         * doc/posix-functions/ispunct.texi: Likewise.
75348         * doc/posix-functions/isspace.texi: Likewise.
75349         * doc/posix-functions/isupper.texi: Likewise.
75350         * doc/posix-functions/isxdigit.texi: Likewise.
75352 2009-10-18  Bruno Haible  <bruno@clisp.org>
75354         Tests for module 'isblank'.
75355         * modules/isblank-tests: New file.
75356         * tests/test-isblank.c: New file.
75358         New module 'isblank'.
75359         * lib/isblank.c: New file.
75360         * m4/isblank.m4: New file.
75361         * modules/isblank: New file.
75362         * doc/posix-functions/isblank.texi: Mention the new module.
75364 2009-10-18  Bruno Haible  <bruno@clisp.org>
75366         New module 'ctype'.
75367         * lib/ctype.in.h: New file.
75368         * m4/ctype.m4: New file.
75369         * modules/ctype: New file.
75370         * doc/posix-headers/ctype.texi: Mention the new module.
75372 2009-10-18  Jim Meyering  <meyering@redhat.com>
75374         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75375         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75376         right after its initialization, rather than farther down.
75377         Keeping these in close proximity makes it easier to ensure
75378         that each such variable is initialized.  E.g.,
75380             LIB_CLOCK_GETTIME=
75381             AC_SUBST([LIB_CLOCK_GETTIME])
75383         This change also increments these serial numbers.
75384         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75385         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75388 2009-10-18  Bruno Haible  <bruno@clisp.org>
75390         Don't let environment variables perturb build.
75391         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75392         (gl_PREREQ_GETHRXTIME): ... not here.
75394 2009-10-18  Bruno Haible  <bruno@clisp.org>
75396         Avoid symlink attack in localcharset module.
75397         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75398         (O_NOFOLLOW): Define fallback.
75399         (get_charset_aliases): Don't open the file if it is a symbolic link.
75400         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75401         gl_FCNTL_H.
75402         (gl_FCNTL_H): Require it.
75403         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75404         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75405         Reported by Fergal Glynn <fglynn@veracode.com>.
75407 2009-10-18  Bruno Haible  <bruno@clisp.org>
75409         Implement nproc for mingw.
75410         * lib/nproc.c: Include <windows.h>
75411         (num_processors): On native Windows platforms, try GetSystemInfo.
75413 2009-10-18  Bruno Haible  <bruno@clisp.org>
75415         Implement nproc for IRIX.
75416         * lib/nproc.c: Include <sys/sysmp.h>.
75417         (num_processors): On IRIX systems, try sysmp.
75418         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
75420 2009-10-18  Bruno Haible  <bruno@clisp.org>
75422         Implement nproc for HP-UX.
75423         * lib/nproc.c: Include <sys/pstat.h>
75424         (num_processors): On HP-UX systems, try pstat_getdynamic.
75425         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
75426         pstat_getdynamic.
75428 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
75429             Bruno Haible  <bruno@clisp.org>
75431         Implement nproc for NetBSD, OpenBSD.
75432         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
75433         (ARRAY_SIZE): New macro.
75434         (num_processors): On BSD systems, try sysctl of HW_NCPU.
75435         * m4/nproc.m4: New file.
75436         * modules/nproc (Files): Add m4/nproc.m4.
75437         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75438         (Makefile.am): Instead, augment lib_SOURCES.
75440 2009-10-18  Bruno Haible  <bruno@clisp.org>
75442         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75443         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75444         sys/param.h.
75446 2009-10-16  Eric Blake  <ebb9@byu.net>
75448         utimensat: new module
75449         * modules/utimensat: New file.
75450         * lib/utimensat.c (utimensat): Likewise.
75451         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75452         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75453         so we can work around Linux bugs.
75454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75455         * modules/sys_stat (Makefile.am): Substitute them.
75456         * lib/sys_stat.in.h (utimensat): Declare it.
75457         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75458         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75459         * modules/utimensat-tests: New test.
75460         * tests/test-utimensat.c: Likewise.
75462         utimens: let lutimens work on non-symlinks
75463         * lib/utimens.c (lutimens): Fall back to utimens rather than
75464         failing with ENOSYS, when file is not a symlink.
75465         (utimens): Reduce redirection.
75466         * tests/test-lutimens.h (test_lutimens): Update test to cover
75467         non-symlinks.
75468         * tests/test-utimens.h (test_utimens): Update test to cover
75469         symlinks.
75470         * tests/test-utimens.c (main): Update caller.
75472         utimens: cache whether utimensat syscall works
75473         * lib/utimens.c (utimensat_works_really): New cache variable.
75474         (fdutimens, lutimens): Use it to avoid failing syscall.
75476         test-stat-time, test-utimens: improve portability
75477         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75478         ext4 on alpha, and for cygwin.
75479         * tests/test-utimens-common.h: New file.
75480         (nap): Factor delays into single function.
75481         * tests/test-lutimens.h (test_lutimens): Use new header.
75482         * tests/test-futimens.h (test_futimens): Likewise.
75483         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75484         timestamps to occur from same machine, as was done previously for
75485         test_utimens.
75486         * modules/utimens-tests (Files): Ship new file.
75487         * modules/futimens-tests (Files): Likewise.
75488         Reported in part by Jim Meyering.
75490         sys_stat: sort replacement declarations
75491         * lib/sys_stat.in.h: Sort declarations.
75492         * lib/futimens.c (futimens): Fix typo.
75494 2009-10-15  Jim Meyering  <meyering@redhat.com>
75496         don't let environment settings perturb build
75497         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75498         could cause a configure-time and/or build-time malfunction.
75499         Typically, a configure-time function-in-library test is performed
75500         via code like this:
75502           LIB_VAR=
75503           AC_SUBST([LIB_VAR])
75504           prefix_saved_LIBS=$LIBS
75505             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75506                        [test "$ac_cv_search_FUNC" = "none required" ||
75507                         LIB_VAR=$ac_cv_search_FUNC])
75508           LIBS=$prefix_saved_LIBS
75510         However, in each of the files affected by this change, the LIB_VAR=
75511         initialization was omitted.  Thus, when set in the environment, its
75512         value would propagate into generated Makefiles when FUNC is not found
75513         in LIB_NAME.
75514         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75515         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75518 2009-10-14  Eric Blake  <ebb9@byu.net>
75520         fchdir: avoid infinite recursion in mingw
75521         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75522         recursing.
75524         test-stat-time: port to mingw
75525         * tests/test-stat-time.c (force_unlink): Return a value.
75526         (test_ctime) [W32]: Fix compilation error.
75527         (nap): Don't call usleep with too large an argument.  Use
75528         force_unlink.
75529         * doc/pastposix-functions/usleep.texi (usleep): Document the
75530         portability issue.
75532 2009-10-13  Jim Meyering  <meyering@redhat.com>
75534         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75535         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75536         * modules/pipe-filter-ii: Likewise.
75537         * modules/sys_socket-tests: Likewise.
75538         * modules/tsearch-tests: Likewise.
75539         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75540         (check): Depend on it.
75542 2009-10-12  Eric Blake  <ebb9@byu.net>
75544         utimens-tests: port to NFS file systems
75545         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75546         comparisons to avoid spurious failures from timestamp drift
75547         between NFS machines.
75549 2009-10-12  Eric Blake  <ebb9@byu.net>
75551         stat-time-tests: minor cleanups
75552         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75553         * tests/test-stat-time.c (nap): Separate assignment from call.
75554         Suggested by Paolo Bonzini and Bruno Haible.
75556         sys_stat: guarantee struct timespec
75557         * lib/sys_stat.in.h (includes): Always include <time.h>
75558         * modules/sys_stat (Depends-on): Add time.
75559         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75560         mode_t permission values.
75561         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75562         get at subsecond timestamps.
75564 2009-10-10  Eric Blake  <ebb9@byu.net>
75566         futimens: new module
75567         * modules/futimens: New file.
75568         * lib/futimens.c (futimens): Likewise.
75569         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75570         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75571         we can work around Linux bugs.
75572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75573         * modules/sys_stat (Makefile.am): Substitute them.
75574         * lib/sys_stat.in.h (futimens): Declare it.
75575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75576         * doc/posix-functions/futimens.texi (futimens): Likewise.
75577         * modules/futimens-tests: New test.
75578         * tests/test-futimens.c: Likewise.
75580         utimens: introduce fdutimens
75581         * lib/utimens.h (fdutimens): New prototype.
75582         * lib/utimens.c (gl_futimens): Move guts...
75583         (fdutimens): ...to new interface.
75584         * tests/test-utimens.c (do_fdutimens): Use it.
75586         utimens: add UTIME_NOW and UTIME_OMIT support
75587         * lib/utimens.c (validate_timespec, update_timespec): New helper
75588         functions.
75589         (gl_futimens, lutimens): Use them.
75590         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75591         stdbool, sys_stat.
75592         (Link): Mention resulting library dependency.
75593         * modules/utimecmp (Link): Likewise.
75594         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75595         (Makefile.am): Pick up library dependency.
75596         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75597         definition.
75598         * tests/test-sys_stat.c: Test the definitions.
75599         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75600         * NEWS: Document library dependency.
75602         utimecmp: support symlink timestamps
75603         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75604         hashing when possible.  Use pathconf when available.
75605         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75606         * modules/utimecmp (Depends-on): Add lstat.
75608         utimens: add lutimens interface
75609         * lib/utimens.c (lutimens): New function.
75610         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75611         * lib/utimens.h (lutimens): Declare new interface.
75612         * tests/test-utimens.c (main): Enhance test.
75613         * tests/test-lutimens.h (test_lutimens): New file.
75614         * modules/utimens-tests (Files): Distribute it.
75615         (Depends-on): Add symlink.
75616         (configure.ac): Check for usleep.
75618         utimens: validate futimens usage
75619         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75620         fewer syscalls on failure later on.  Avoid compiler warning on
75621         mingw.
75622         * modules/utimens (Depends-on): Add dup2.
75624         utimens: add test
75625         * modules/utimens-tests: New test.
75626         * tests/test-utimens.h: New file.
75627         * tests/test-futimens.h: Likewise.
75628         * tests/test-utimens.c: Likewise.
75630         doc: mention timestamp portability issues
75631         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75632         instead.
75633         * doc/posix-functions/utime.texi (utime): Likewise.
75634         * doc/posix-functions/utimes.texi (utimes): Likewise.
75635         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75636         instead.
75637         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75638         module.
75639         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75640         Mention weakness with symlink timestamps.
75641         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75642         to utimensat/futimens instead.
75643         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75645         test-dup2: enhance test
75646         * tests/test-dup2.c (main): Also check AT_FDCWD.
75648         test-stat-time: avoid more spurious failures
75649         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75650         xfs; and avoid race if the two timestamps cross quantization edge.
75652         relocatable: prefer 'file system' over 'filesystem'
75653         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75654         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75655         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75656         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75657         * lib/relocatable.c (compute_curr_prefix): Likewise.
75659 2009-10-10  Jim Meyering  <meyering@redhat.com>
75661         stat-time-tests: check for the usleep function
75662         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75664 2009-10-10  Bruno Haible  <bruno@clisp.org>
75666         * modules/xnanosleep: Put the Link section after the Include section.
75668 2009-10-09  Eric Blake  <ebb9@byu.net>
75670         dup2: work around FreeBSD 6.1 bug
75671         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75672         * doc/posix-functions/dup2.texi (dup2): Document it.
75673         Reported by Nelson H. F. Beebe and Jim Meyering.
75675         test-stat-time: port to buggy NFS clients
75676         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75677         (test_ctime): Also skip test if mtime and ctime are skewed.
75679         maint: prefer 'file system' over 'filesystem'
75680         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75681         * doc/posix-functions/lstat.texi (lstat): Likewise.
75682         * lib/file-has-acl.c (file_has_acl): Likewise.
75683         * lib/fwriteerror.c [TEST]: Likewise.
75684         * tests/test-areadlink.h (test_areadlink): Likewise.
75685         * tests/test-areadlinkat-with-size.c (main): Likewise.
75686         * tests/test-areadlinkat.c (main): Likewise.
75687         * tests/test-canonicalize-lgpl.c (main): Likewise.
75688         * tests/test-canonicalize.c (main): Likewise.
75689         * tests/test-fstatat.c (main): Likewise.
75690         * tests/test-linkat.c (main): Likewise.
75691         * tests/test-lstat.h (test_lstat_func): Likewise.
75692         * tests/test-mkdir.h (test_mkdir): Likewise.
75693         * tests/test-readlink.h (test_readlink): Likewise.
75694         * tests/test-remove.c (main): Likewise.
75695         * tests/test-rename.h (test_rename): Likewise.
75696         * tests/test-renameat.c (main): Likewise.
75697         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75698         * tests/test-symlink.h (test_symlink): Likewise.
75699         * tests/test-symlinkat.c (main): Likewise.
75700         * tests/test-unlink.h (test_unlink_func): Likewise.
75701         * tests/test-unlinkat.c (main): Likewise.
75703         maint: make realtime library usage explicit
75704         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75705         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75706         * modules/settime (Link): Likewise.
75707         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75709         test-stat-time: speed up execution
75710         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75711         warning on mingw.
75712         (nap): New helper function.
75713         (prepare_test): Use it to reduce sleep time.
75714         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75715         execution.
75716         * modules/stat-time-tests (configure.ac): Check for usleep.
75718 2009-10-09  Jim Meyering  <meyering@redhat.com>
75720         selinux-h: always use getfilecon wrappers
75721         * lib/getfilecon.c: New file.
75722         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75723         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75724         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75725         (fgetfilecon): Provide a stub.
75726         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75727         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75728         file unconditionally.
75729         When <selinux/selinux.h> is found, arrange to use wrappers.
75730         * modules/selinux-h (Files): Add getfilecon.c.
75731         (Makefile.am): Substitute include-next-related bits
75732         into the now-always-generated selinux/selinux.h file.
75733         * doc/glibc-functions/lgetfilecon.texi: New file.
75734         * doc/glibc-functions/fgetfilecon.texi: New file.
75735         * doc/glibc-functions/getfilecon.texi: New file.
75736         * doc/glibc-functions/getfilecon-desc.texi: New file.
75737         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75738         which to pull in the new files.
75739         * MODULES.html.sh (Misc): Add selinux-h.
75741 2009-10-08  Jim Meyering  <meyering@redhat.com>
75743         unistd: fix comment typo
75744         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75746 2009-10-08  Eric Blake  <ebb9@byu.net>
75748         areadlink: use SIZE_MAX consistently
75749         * modules/areadlink (Depends-on): Add stdint.
75750         * modules/areadlink-with-size (Depends-on): Likewise.
75751         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75752         gives NULL; drop sys/types, since unistd gives size_t; and add
75753         stdint for SIZE_MAX.
75754         (SIZE_MAX): Rely on headers.
75755         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75756         and add stdint.
75757         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75758         (SIZE_MAX): Likewise.
75759         (INITIAL_BUF_SIZE): Turn into enum.
75760         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75762 2009-10-08  Jim Meyering  <meyering@redhat.com>
75764         areadlinkat: avoid compilation failure
75765         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75766         Fix typo in comment.
75768 2009-10-07  Eric Blake  <ebb9@byu.net>
75770         areadlinkat-with-size: new module
75771         * modules/areadlinkat-with-size: New module.
75772         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75773         * lib/areadlink.h (areadlinkat): Declare it.
75774         * MODULES.html.sh (File system functions): Mention it.
75775         * modules/areadlinkat-with-size-tests: New test.
75776         * tests/test-areadlinkat-with-size.c: New file.
75778         xreadlinkat: new module
75779         * modules/xreadlinkat: New module.
75780         * lib/xreadlinkat.c (xreadlinkat): New file.
75781         * lib/xreadlink.h (xreadlinkat): Declare it.
75782         * MODULES.html.sh (File system functions): Mention it.
75784         areadlinkat: new module
75785         * lib/at-func.c (FUNC_FAIL): New define.
75786         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75787         * modules/areadlinkat: New module.
75788         * lib/linkat.c (areadlinkat): Move...
75789         * lib/areadlinkat.c (areadlinkat): ...to new file.
75790         * lib/areadlink.h (areadlinkat): Declare it.
75791         * modules/linkat (Depends-on): Add areadlinkat.
75792         * MODULES.html.sh (File system functions): Mention it.
75793         * modules/areadlinkat-tests: New test.
75794         * tests/test-areadlinkat.c: New file.
75796         areadlink, areadlink-with-size: add tests
75797         * modules/areadlink-tests: New test.
75798         * modules/areadlink-with-size-tests: Likewise.
75799         * tests/test-areadlink.h: New file.
75800         * tests/test-areadlink.c: Likewise.
75801         * tests/test-areadlink-with-size.c: Likewise.
75803         maint: minor cleanups
75804         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75805         _UNUSED_PARAMETER_ instead.
75806         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75807         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75808         * modules/linkat-tests (Files): Distribute test-link.h.
75810         openat, utimens: whitespace cleanup
75811         * lib/openat.c: Prefer space throughout, rather than mix of 8
75812         spaces vs. tabs.
75813         * lib/at-func.c: Likewise.
75814         * lib/utimens.c: Likewise.
75816         openat: avoid using wrong fd
75817         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75818         working directory chooses same fd.
75819         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75821         mkdir, mkdirat: fix cygwin 1.5.x bug
75822         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75823         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75824         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75825         bug.
75826         (gl_PREREQ_MKDIR): Delete unused macro.
75827         * modules/mkdir (Files): Track file rename.
75828         (configure.ac): Update macro name.
75829         * modules/openat (Depends-on): Add mkdir.
75830         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75832         mkdir, mkdirat: add tests
75833         * modules/mkdir-tests: New test.
75834         * tests/test-mkdir.h: New file.
75835         * tests/test-mkdir.c: Likewise.
75836         * tests/test-mkdirat.c: Likewise.
75837         * modules/openat-tests (Files): Add new files.
75838         (Makefile.am): Run new test.
75840 2009-10-06  Eric Blake  <ebb9@byu.net>
75842         doc: tweak *at function documentation
75843         * doc/posix-functions/faccessat.texi (faccessat): Mention
75844         known issue with replacement.
75845         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75846         * doc/posix-functions/linkat.texi (linkat): Likewise.
75847         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75848         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75849         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75850         * doc/posix-functions/renameat.texi (renameat): Likewise.
75851         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75853         openat: fix GNU/Hurd bug in unlinkat
75854         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75855         broken.
75856         * doc/posix-functions/unlink.texi (unlink): Document this.
75857         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75859         fdopendir: fix GNU/Hurd bug
75860         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75861         allowing non-directory fds.
75862         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75863         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75864         * modules/dirent (Makefile.am): Substitute it.
75865         * lib/dirent.in.h (fdopendir): Declare replacement.
75866         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75867         * tests/test-fdopendir.c (main): Test something other than
75868         /dev/null, since on Hurd that behaves like a directory.
75870         test-symlink: port to GNU/Hurd
75871         * tests/test-symlink.h (test_symlink): Relax expected errno.
75873         doc: tweak more cygwin information
75874         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75875         now compatible with glibc.
75876         * doc/posix-functions/getopt.texi (getopt): Likewise.
75878         getopt-gnu: add another test
75879         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75880         guarantee behavior relied on by m4.
75881         * tests/test-getopt.c (main): Use it.
75882         * modules/getopt-posix-tests (Depends-on): Add setenv.
75883         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75885         getopt: fix compilation on darwin
75886         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75887         include.
75888         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75889         Reported by Ludovic Courtès.
75891 2009-10-06  Bruno Haible  <bruno@clisp.org>
75893         * modules/size_max (Description): Discourage its use.
75894         Reported by Simon Josefsson.
75896 2009-10-06  Jim Meyering  <meyering@redhat.com>
75898         linkat: avoid compilation failure
75899         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75901 2009-10-05  Eric Blake  <ebb9@byu.net>
75903         linkat: support Linux 2.6.17
75904         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75905         linkat on Linux, but allow cache variable override.
75906         * lib/linkat.c (rpl_linkat): Define override.
75907         * modules/linkat (Depends-on): Add symlinkat.
75908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75909         * modules/unistd (Makefile.am): Substitute it.
75910         * lib/unistd.in.h (linkat): Declare replacement.
75911         Reported by Pádraig Brady.
75913         quotearg: port test to systems with C.UTF-8 locale
75914         * tests/test-quotearg.c (struct result_strings): Add another
75915         member, differentiating between C.ASCII and C.UTF-8 handling.
75916         (compare_strings): Add parameter.
75917         (main): Adjust all callers.
75919         getopt: avoid clash with FreeBSD _getopt_internal
75920         * lib/getopt.in.h (_getopt_internal): Override the name.
75921         * lib/getopt_int.h (includes): Pick up any overrides.
75922         Reported by Reuben Thomas.
75924         hash: allow C89 compilation
75925         * lib/hash.c (check_tuning): Move declaration before statement.
75926         Reported by Reuben Thomas.
75928 2009-10-05  Karl Berry  <karl@gnu.org>
75930         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75932 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75933             Bruno Haible  <bruno@clisp.org>
75935         * lib/uname.c (uname): Use a table-driven algorithm to compute
75936         Windows NT versions.
75938 2009-10-04  Bruno Haible  <bruno@clisp.org>
75940         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75941         program_invocation_short_name.
75942         * modules/progname (configure.ac): Test for presence of
75943         program_invocation_short_name.
75944         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75946 2009-10-04  Bruno Haible  <bruno@clisp.org>
75948         * lib/progname.c (set_program_name): Fix comment.
75949         Reported by Jim Meyering.
75951 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75952             Bruno Haible  <bruno@clisp.org>
75954         * lib/uname.c: Include <string.h>.
75955         (uname): Do only one call to GetVersionEx in the common case.
75957 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75958             Bruno Haible  <bruno@clisp.org>
75960         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75961         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75962         (uname): Add support for Windows CE and various non-x86 CPU types.
75964 2009-10-03  Bruno Haible  <bruno@clisp.org>
75966         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75967         invocation to tests/configure.ac.
75968         Reported by Ian Beckwith <ianb@erislabs.net>.
75970 2009-10-02  Eric Blake  <ebb9@byu.net>
75972         fchdir: avoid compiler warning
75973         * lib/fchdir.c (canonicalize_file_name)
75974         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75976         test-open: support mingw errno values
75977         * tests/test-open.h (test_open): Relax test.
75978         * tests/test-fopen.h (test_fopen): Likewise.
75979         * tests/test-openat-safer.c (main): Likewise.
75981         open: fix opening directory on mingw
75982         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75984         test-open: on GNU/Hurd, /dev/null is a directory
75985         * tests/test-fopen.h (main): Rename...
75986         (test_fopen): ...to this.  Use a guaranteed non-directory when
75987         confirming open behavior on trailing slash.
75988         * tests/test-openat-safer.c (main): Likewise.
75989         * tests/test-open.h (main): Likewise....
75990         (test_open): ...to this.
75991         * tests/test-fopen.c (main): Adjust caller.
75992         * tests/test-fopen-safer.c (main): Likewise.
75993         * tests/test-open.c (main): Likewise.
75994         * tests/test-fcntl-safer.c (main): Likewise.
75995         Reported by Samuel Thibault.
75997         rename, fchdir: don't ignore chdir failure
75998         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75999         * lib/rename.c (rpl_rename) [W32]: Likewise.
76000         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76001         an empty destination directory if source cannot be renamed,
76002         although there is still possibility for failure.
76003         * doc/posix-functions/rename.texi (rename): Document the race.
76004         Reported by Jim Meyering.
76006         maint: cleanup whitespace in recent commits
76007         * lib/rename.c (rpl_rename): Remove tabs.
76008         * tests/test-link.h (test_link): Likewise.
76009         * lib/fchdir.c (get_name): Likewise.
76010         Reported by Jim Meyering.
76012 2009-10-02  Ben Pfaff  <blp@gnu.org>
76014         relocatable-prog-wrapper: Add missing dependency on
76015         double-slash-root.
76016         * modules/relocatable-prog-wrapper: Add dependency.
76017         Reported by Ian Beckwith <ianb@erislabs.net>.
76019 2009-10-02  Eric Blake  <ebb9@byu.net>
76021         renameat: fix Solaris bugs
76022         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76023         needed fixing.
76024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76025         * modules/stdio (Makefile.am): Substitute it.
76026         * lib/stdio.in.h (renameat): Declare replacement.
76027         * lib/renameat.c (rpl_renameat): Implement fix.
76029         renameat: new module
76030         * modules/renameat: New file.
76031         * lib/renameat.c (renameat): Likewise.
76032         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76034         * modules/stdio (Makefile.am): Substitute them.
76035         * lib/stdio.in.h (renameat): Declare it.
76036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76037         * doc/posix-functions/renameat.texi (renameat): Likewise.
76038         * modules/renameat-tests: New test.
76039         * tests/test-renameat.c: Likewise.
76041         rename: fix mingw bugs
76042         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76043         directory overwrite bugs.
76045         rename: fix another cygwin 1.5 bug
76046         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76047         checks.
76048         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76049         unnecessary cygwin workarounds.  Also work around bug with moving
76050         full directory onto an empty one.
76051         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76053         rename-dest-slash: merge into rename module
76054         * modules/rename-dest-slash (Status): Mark obsolete.
76055         (Depends-on): Add rename.
76056         (Files): Let rename do it all.
76057         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76058         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76059         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76060         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76061         * lib/rename.c (rpl_rename): Update comments.
76063         rename: fix cygwin 1.5.x bugs
76064         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76065         * lib/rename.c (rpl_rename): Work around them.
76066         * modules/rename (Depends-on): Add same-inode.
76068         rename: fix Solaris 10 bug
76069         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76070         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76071         was the only bug.
76073         rename: fix Solaris 9 bug
76074         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76075         on non-directory.  Avoid calling exit.
76076         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76077         strdup.
76078         * modules/rename-tests (Depends-on): Drop lstat.
76079         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76080         (gl_PREREQ_RENAME): Delete unused macro.
76082         rename-dest-slash: fix NetBSD bug
76083         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76084         links.
76085         * modules/rename-dest-slash (Depends-on): Add same-inode.
76087         rename-tests: new test, exposes several platform bugs
76088         * modules/rename-tests: New file.
76089         * tests/test-rename.h: Likewise.
76090         * tests/test-rename.c: Likewise.
76091         * doc/posix-functions/rename.texi (rename): Improve documentation,
76092         including bugs that will eventually be fixed in gnulib.
76094 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76096         * lib/uname.c: Include <stdlib.h>
76097         (uname): Assume version info is available.
76099 2009-10-02  Jim Meyering  <meyering@redhat.com>
76101         gnu-web-doc-update: correct --help output
76102         * build-aux/gnu-web-doc-update: Make --help output relevant.
76104         gnu-web-doc-update: add standard options
76105         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76107         gnu-web-doc-update: New module.
76108         Use this script to automatically update the on-line web documentation
76109         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76110         * modules/gnu-web-doc-update: New file, from coreutils.
76111         * build-aux/gnu-web-doc-update: New script.
76113 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76115         link: LoadLibrary is not needed.
76116         * lib/link.c: Use GetModuleHandle.
76118 2009-10-01  Eric Blake  <ebb9@byu.net>
76120         getopt: bump serial number
76121         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76122         change.
76124         tests: tighten link, rmdir, and remove tests
76125         * tests/test-link.h (includes): No need to use <config.h> here.
76126         Clean up if directory hard link was created, otherwise test for
76127         trailing '.'.
76128         * tests/test-linkat.c (main): Simplify.
76129         * tests/test-remove.c (main): Enhance test for trailing '.'.
76130         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76132 2009-10-01  Jim Meyering  <meyering@redhat.com>
76134         maint.mk: requiring "make major" was annoying, for a "minor" release.
76135         What is intended is "stable", to contrast with alpha and beta,
76136         so require "make stable", not "make major".
76137         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76138         (get_tool_versions): Likewise.
76139         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76141 2009-09-30  Ben Pfaff  <blp@gnu.org>
76143         Fix broken build of replacement for Windows tmpfile().
76144         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76145         flags argument added along with the 'mkostemp' module.
76147 2009-09-28  Bruno Haible  <bruno@clisp.org>
76149         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76150         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76151         to 'remove_elt'.
76152         (gl_list_remove): Update.
76153         * lib/gl_list.c (gl_list_remove): Update.
76154         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76155         to 'remove_elt'.
76156         (gl_oset_remove): Update.
76157         * lib/gl_list.c (gl_oset_remove): Update.
76158         Reported by Eric Blake.
76160 2009-09-28  Eric Blake  <ebb9@byu.net>
76162         doc: mention yet more cygwin 1.7 status
76163         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76164         cygwin.
76165         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76166         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76168         argp: fix test failure
76169         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76170         that are not upper-case.  Pass correct range to tolower.
76172 2009-09-27  Jim Meyering  <meyering@redhat.com>
76174         test-yesno: work around sparc-dash here-document infelicity
76175         Without this change, the literal \177 byte in a here document
76176         would make dash 0.5.5.1-3 access uninitialized memory.
76177         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76178         Instead, use a marker, "@", and filter through tr to create the desired
76179         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76181 2009-09-27  Bruno Haible  <bruno@clisp.org>
76183         Disable untested support for new flavours of ACLs on AIX.
76184         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76185         progress.
76186         * lib/set-mode-acl.c (qset_acl): Likewise.
76188 2008-12-07  Bruno Haible  <bruno@clisp.org>
76190         Add support for new flavours of ACLs on AIX. (Untested.)
76191         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76192         (file_has_acl): Add support for newer AIX.
76193         * lib/set-mode-acl.c (qset_acl): Likewise.
76194         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76195         Rainer Tammer <tammer@tammer.net>.
76197 2009-09-26  Eric Blake  <ebb9@byu.net>
76199         argp: fix compilation of getopt
76200         * lib/getopt.in.h (includes): Use different guard than glibc.
76201         Reported by Sergey Poznyakoff.
76203         doc: mention more cygwin 1.7 status
76204         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76205         bug.
76206         * doc/posix-functions/execl.texi (execl): Likewise.
76207         * doc/posix-functions/execle.texi (execle): Likewise.
76208         * doc/posix-functions/execlp.texi (execlp): Likewise.
76209         * doc/posix-functions/execv.texi (execv): Likewise.
76210         * doc/posix-functions/execve.texi (execve): Likewise.
76211         * doc/posix-functions/execvp.texi (execvp): Likewise.
76212         * doc/glibc-functions/canonicalize_file_name.texi
76213         (canonicalize_file_name): Cygwin 1.7 now provides this.
76214         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76215         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76216         on AT_SYMLINK_NOFOLLOW.
76218 2009-09-24  Eric Blake  <ebb9@byu.net>
76220         test-linkat: make test more robust
76221         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76223         getopt: fix inclusion guards for cygwin
76224         * modules/getopt-posix (Depends-on): Add include-next.
76225         (Makefile.am): Substitute more items in replacement header.
76226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76227         <getopt.h>.
76228         * lib/getopt.in.h (includes): Use split inclusion guard, and
76229         prefer <getopt.h> over include <unistd.h> when one is present.
76230         (option): Also override name of 'struct option'.
76232         same-inode: revert prior change; it is not yet ready
76233         * NEWS: Undo mention of this change.
76234         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76235         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76236         * lib/cycle-check.c (cycle_check): Likewise.
76237         * lib/same.c (same_name): Likewise.
76238         * lib/at-func2.c (at_func2): Likewise.
76240 2009-09-23  Eric Blake  <ebb9@byu.net>
76242         linkat: new module
76243         * modules/linkat: New file.
76244         * lib/at-func2.c (at_func2): Likewise.
76245         * lib/linkat.c (linkat): Likewise.
76246         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76247         * lib/openat-priv.h (at_func2): Add declaration.
76248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76249         * modules/unistd (Makefile.am): Substitute them.
76250         * lib/unistd.in.h (linkat): Declare it.
76251         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76252         * doc/posix-functions/linkat.texi (linkat): Likewise.
76253         * doc/posix-functions/link.texi (link): Tweak wording.
76254         * tests/test-link.c (main): Move guts...
76255         * tests/test-link.h (test_link): ...into new file.
76256         * modules/linkat-tests: New test.
76257         * tests/test-linkat.c: Likewise.
76258         * modules/link-tests (Files): Ship new file.
76259         (Depends-on): Add stdbool.
76261         dirname: add library-safe mdir_name
76262         * lib/dirname.h (mdir_name): New prototype.
76263         * lib/dirname.c (dir_name): Move guts...
76264         (mdir_name): ...to new function that avoids xalloc_die.
76266         fchdir: another mingw fix
76267         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76268         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76269         on mingw (where it has not yet been ported), and make it optional
76270         elsewhere.
76271         (_gl_register_fd): Use it.
76273         same-inode: make SAME_INODE tri-state, to port to mingw
76274         * NEWS: Mention this change.
76275         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76276         st_ino always being 0.
76277         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76278         * lib/cycle-check.c (cycle_check): Likewise.
76279         * lib/same.c (same_name): Likewise.
76281         lstat: avoid mingw compilation error
76282         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76283         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76284         lstat ourselves.
76285         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76286         was adequate.
76287         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76288         the checks for lstat.
76289         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76291         link: fix test failure on Solaris 9
76292         * lib/link.c (rpl_link): Don't assume link will catch bogus
76293         trailing slash on source.
76295         test-symlinkat: enhance test
76296         * tests/test-readlink.c (main): Move guts...
76297         * tests/test-readlink.h (test_readlink): ...into new file.
76298         * tests/test-symlink.c (main): Move guts...
76299         * tests/test-symlink.h (test_symlink): ...into new file.
76300         * tests/test-symlinkat.c (main): Use new files for further
76301         coverage.
76302         (do_symlink, do_readlink): New helper functions.
76303         * modules/symlink-tests (Files): Ship new file.
76304         (Depends-on): Add stdbool.
76305         * modules/readlink-tests (Files): Ship new file.
76306         (Depends-on): Add stdbool.
76307         * modules/symlinkat-tests (Files): Use new files.
76309 2009-09-23  Eric Blake  <ebb9@byu.net>
76311         readlink: document portability issue with symlink length
76312         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76313         systems have bogus st_size on symlinks, and mention the
76314         areadlink-with-size module.
76315         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76316         * doc/posix-functions/readlink.texi (readlink): Mention the
76317         areadlink module, and ERANGE failure.
76318         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76319         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76321         readlink: fix Solaris 9 bug with trailing slash
76322         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76323         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76324         * doc/posix-functions/readlink.texi (readlink): Document this.
76325         * modules/readlink-tests: New test.
76326         * tests/test-readlink.c: Likewise.
76328         readlink: fix cygwin 1.5.x bug with return type
76329         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76330         * lib/unistd.in.h (readlink): Use ssize_t.
76331         * lib/readlink.c (readlink): Likewise.
76332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76333         * modules/unistd (Makefile.am): Substitute it.
76334         * lib/unistd.in.h (readlink): Declare replacement.
76335         * doc/posix-functions/readlink.texi (readlink): Document this.
76337         symlink: use throughout gnulib
76338         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76339         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76340         symlink is not used.
76341         * modules/symlinkat (Depends-on): Add symlink.
76342         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76343         * modules/canonicalize-tests (Depends-on): Likewise.
76344         * modules/lstat-tests (Depends-on): Likewise.
76345         * modules/openat-tests (Depends-on): Likewise.
76346         * modules/remove-tests (Depends-on): Likewise.
76347         * modules/rmdir-tests (Depends-on): Likewise.
76348         * modules/unlink-tests (Depends-on): Likewise.
76349         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76350         * tests/test-canonicalize.c (symlink): Likewise.
76351         * tests/test-fstatat.c (symlink): Likewise.
76352         * tests/test-lstat.c (symlink): Likewise.
76353         * tests/test-remove.c (symlink): Likewise.
76354         * tests/test-rmdir.c (symlink): Likewise.
76355         * tests/test-unlink.c (symlink): Likewise.
76356         * tests/test-unlinkat.c (symlink): Likewise.
76358         symlink: new module, for Solaris 9 bug
76359         * modules/symlink: New file.
76360         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76361         * lib/symlink.c: Likewise.
76362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76363         * modules/unistd (Makefile.am): Substitute them.
76364         * lib/unistd.in.h (symlink): Declare replacement.
76365         * MODULES.html.sh (File system functions): Mention it.
76366         * doc/posix-functions/symlink.texi (symlink): Likewise.
76367         * modules/symlink-tests: New test.
76368         * tests/test-symlink.c: Likewise.
76370 2009-09-23  Bruno Haible  <bruno@clisp.org>
76372         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76373         when needed.
76374         Test case: gnulib-tool --import --with-tests atexit inttypes.
76375         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76377 2009-09-23  Bruno Haible  <bruno@clisp.org>
76379         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76380         subcommand, not in a subshell.
76382 2009-09-22  Eric Blake  <ebb9@byu.net>
76384         unistd: sort replacement declarations
76385         * lib/unistd.in.h: Sort declarations.
76387         open, openat: minor optimization
76388         * lib/open.c (open): If open succeeded, len is non-zero.
76389         * lib/openat.c (rpl_openat): Likewise.
76391         link-follow: ensure correct result
76392         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76393         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76394         distinguish between possible failures.
76396 2009-09-21  Eric Blake  <ebb9@byu.net>
76398         fts: avoid compiler warning
76399         * lib/fts.c (dirent_inode_sort_may_be_useful)
76400         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76402 2009-09-19  Bruno Haible  <bruno@clisp.org>
76404         * lib/progreloc.c (canonicalize_file_name): New declaration.
76406 2009-09-19  Eric Blake  <ebb9@byu.net>
76408         link: fix quoting
76409         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76411         openat: fix openat bugs on Solaris 9
76412         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
76413         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
76414         * modules/openat (Depends-on): Add open.
76415         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
76416         * modules/fcntl-h (Makefile.am): Substitute it.
76417         * lib/fcntl.in.h (openat): Declare replacement.
76418         * doc/posix-functions/openat.texi (openat): Document this.
76420         openat: move fstatat and unlinkat into correct files
76421         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
76422         compiled.
76423         * lib/openat.c (fstatat, unlinkat): Move...
76424         * lib/fstatat.c (fstatat): ...into correct files.
76425         * lib/unlinkat.c (unlinkat): Likewise.
76427         openat: fix unlinkat bugs on Solaris 9
76428         * lib/unlinkat.c (unlinkat): New file.
76429         * modules/openat (Depends-on): Add unlink.
76430         (Files): Distribute it.
76431         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
76432         trailing slash behavior is broken.
76433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76434         * modules/unistd (Makefile.am): Substitute it.
76435         * lib/unistd.in.h (unlinkat): Declare replacement.
76436         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76438         openat: fix fstatat bugs on Solaris 9
76439         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76440         stat.
76441         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76443         test-unlinkat: enhance test, to expose Solaris 9 bug
76444         * tests/test-unlink.c (main): Factor guts...
76445         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76446         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76447         * tests/test-rmdir.c (main): Adjust caller.
76448         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76449         (unlinker): New helper function.
76450         (rmdirat): Enhance check.
76451         * modules/rmdir-tests (Depends-on): Add stdbool.
76452         * modules/unlink-tests (Depends-on): Likewise.
76453         (Files): Add test-unlink.h.
76454         * modules/openat-tests (Files): Likewise.
76455         (Depends-on): Add unlinkdir.
76457         test-fstatat: new test, to expose Solaris 9 bugs
76458         * tests/test-stat.c (main): Factor guts...
76459         * tests/test-stat.h (test_stat_func): ...into new file.
76460         * tests/test-lstat.c (main): Factor guts...
76461         * tests/test-lstat.h (test_lstat_func): ...into new file.
76462         * tests/test-fstatat.c: New file.
76463         * modules/stat-tests (Files): Add test-stat.h.
76464         * modules/lstat-tests (Files): Add test-lstat.h.
76465         (Depends-on): Add stdbool.
76466         * modules/openat-tests (Depends-on): Add pathmax.
76467         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76468         (Makefile.am): Run new test.
76470         remove: new module, for mingw and Solaris 9 bugs
76471         * modules/remove: New file.
76472         * lib/remove.c: Likewise.
76473         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76475         * modules/stdio (Makefile.am): Use them.
76476         * lib/stdio.in.h (remove): Declare replacement.
76477         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76478         * doc/posix-functions/remove.texi (remove): Likewise.
76479         * modules/remove-tests: New test.
76480         * tests/test-remove.c: Likewise.
76482         unlink: new module, for Solaris 9 bug
76483         * modules/unlink: New file.
76484         * lib/unlink.c: Likewise.
76485         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76487         * modules/unistd (Makefile.am): Use them.
76488         * lib/unistd.in.h (stat): Declare replacement.
76489         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76490         * doc/posix-functions/unlink.texi (unlink): Likewise.
76491         * modules/unlink-tests: New test.
76492         * tests/test-unlink.c: Likewise.
76494         lstat: fix Solaris 9 bug
76495         * lib/lstat.c (lstat): Also check for trailing slash on
76496         non-symlink, non-directories.  Use stat module to simplify logic.
76497         * doc/posix-functions/lstat.texi (lstat): Document it.
76498         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76499         (configure.ac): Check for symlink.
76500         * tests/test-lstat.c (main): Add more tests.
76502         stat: add as dependency to other modules
76503         * modules/chown (Depends-on): Add stat.
76504         * modules/euidaccess (Depends-on): Likewise.
76505         * modules/fchdir (Depends-on): Likewise.
76506         * modules/isdir (Depends-on): Likewise.
76507         * modules/link (Depends-on): Likewise.
76508         * modules/lstat (Depends-on): Likewise.
76509         * modules/mkdir-p (Depends-on): Likewise.
76510         * modules/modechange (Depends-on): Likewise.
76511         * modules/open (Depends-on): Likewise.
76512         * modules/readlink (Depends-on): Likewise.
76513         * modules/same (Depends-on): Likewise.
76515         stat: fix Solaris 9 bug
76516         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76517         slash.
76518         * lib/stat.c (rpl_stat): Work around it.
76519         * doc/posix-functions/stat.texi (stat): Update documentation.
76521         stat: new module, for mingw bug
76522         * modules/stat: New file.
76523         * lib/stat.c: Likewise.
76524         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76526         * modules/sys_stat (Makefile.am): Use them.
76527         * lib/sys_stat.in.h (stat): Declare replacement.
76528         * lib/openat.c (fstatat): Deal with lstat and stat being function
76529         macros.
76530         * modules/openat (Depends-on): Add inline.
76531         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76532         * doc/posix-functions/stat.texi (stat): Likewise.
76533         * modules/stat-tests: New test.
76534         * tests/test-stat.c: Likewise.
76536 2009-09-19  Jim Meyering  <meyering@redhat.com>
76538         syntax-check: detect unnecessary inclusion of canonicalize.h
76539         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76541 2009-09-19  Eric Blake  <ebb9@byu.net>
76543         canonicalize-lgpl: adjust clients to use correct header
76544         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76545         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76546         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76547         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76548         * lib/progreloc.c (includes): Likewise.
76550 2009-09-19  Jim Meyering  <meyering@redhat.com>
76552         test-posixtm.c: correct a comment
76553         * tests/test-posixtm.c: Correct first-line comment.
76554         Spotted by Eric Blake.
76556 2009-09-16  Jim Meyering  <meyering@redhat.com>
76558         posixtm-tests: make T const-correct; add a test case
76559         * tests/test-posixtm.c (T): Declare const.
76560         Add a test for -(2^31+1).
76561         Remove useless can-succeed-only-in-2002 test.
76563         posixtm-tests: adjust the sole failing test
76564         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76565         expected output matches what mktime now produces.  Cross-checked via
76566         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76568         posixtm: move #ifdef'd tests into a new module
76569         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76570         * tests/test-posixtm.c: ... this new file.
76571         * modules/posixtm-tests: New module.
76573 2009-09-19  Eric Blake  <ebb9@byu.net>
76575         openat: simplify use of at-func.c
76576         * lib/at-func.c (includes): Include prerequisites here, to
76577         simplify requirements on client files.
76578         * lib/openat-priv.h: Add double-inclusion guard.
76579         * lib/faccessat.c (includes): Simplify.
76580         * lib/fchmodat.c (includes): Likewise.
76581         * lib/fchownat.c (includes): Likewise.
76582         * lib/mkdirat.c (includes): Likewise.
76583         * lib/mkfifoat.c (includes): Likewise.
76584         * lib/symlinkat.c (includes): Likewise.
76586         openat: allow return of fd 0
76587         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76588         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76589         unistd-safer.
76590         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76591         <fcntl.h>; this module does not leak fds.
76592         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76593         must be allowed to return 0, leaving openat_safer to add the
76594         safety.
76595         (openat_permissive): Avoid writing to just-opened fd 2 if
76596         restoring the current directory fails.
76597         * lib/openat-die.c (openat_restore_fail): Add comment.
76598         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76599         (save_cwd): Guarantee safe fd, but without use of open_safer.
76600         * tests/test-openat.c: New test.
76601         * modules/openat-tests (Files, Makefile.am): Distribute and build
76602         new file.
76604         relocatable-prog-wrapper: fix build
76605         * modules/relocatable-prog-wrapper (Files): Update name of
76606         canonicalize m4 file, broken on 2009-09-17.
76607         Reported by emad hajjar <aleppos@hotmail.com>.
76609 2009-09-19  Bruno Haible  <bruno@clisp.org>
76611         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76612         * lib/safe-alloc.c: Likewise.
76613         Reported by Ian Beckwith <ianb@erislabs.net>.
76615 2009-09-18  Bruno Haible  <bruno@clisp.org>
76617         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76618         Reported by <erobles@sensacd.com.mx>.
76620 2009-09-17  Eric Blake  <ebb9@byu.net>
76622         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76623         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76624         slashes when checking if last component is missing.
76625         * tests/test-canonicalize.c (main): Test this.
76627         canonicalize, canonicalize-lgpl: honor // if distinct from /
76628         * modules/canonicalize (Files): Add double-slash-root.m4.
76629         * modules/canonicalize-lgpl (Files): Likewise.
76630         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76631         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76632         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76633         fallback definition.
76634         (canonicalize_filename_mode): Use it to protect //.
76635         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76636         (__realpath): Likewise.
76637         * tests/test-canonicalize.c (main): Test this.
76638         * tests/test-canonicalize-lgpl.c (main): Likewise.
76639         * modules/canonicalize-tests (Depends-on): Add same-inode.
76640         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76642         canonicalize-lgpl: fix glibc bug with trailing slash
76643         * m4/canonicalize-lgpl.m4: Move contents...
76644         * m4/canonicalize.m4: ...here.
76645         (gl_CANONICALIZE_LGPL): Factor realpath check...
76646         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76647         glibc 2.3.5 bug, fixed 2005-04-27.
76648         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76649         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76650         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76651         * modules/canonicalize-lgpl (Files): Manage file rename.
76652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76653         * modules/stdlib (Makefile.am): Substitute witness.
76654         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76655         is needed.
76656         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76657         replacement is required.
76658         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76659         * doc/glibc-functions/canonicalize_file_name.texi
76660         (canonicalize_file_name): Document this.
76661         * doc/posix-functions/realpath.texi (realpath): Likewise.
76663         canonicalize-lgpl: reject non-directory with trailing slash
76664         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76665         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76666         catches failures in glibc 2.3.5.
76667         * tests/test-canonicalize.c (main): Likewise.
76669         canonicalize-lgpl: use native realpath if it works
76670         * lib/canonicalize-lgpl.c (realpath): Guard with
76671         FUNC_REALPATH_WORKS.
76672         * lib/stdlib.in.h (realpath): Make declaration optional based on
76673         HAVE_REALPATH.
76674         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76675         native realpath works.
76676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76677         * modules/stdlib (Makefile.am): Substitute witness.
76679         canonicalize, canonicalize-lgpl: use <stdlib.h>
76680         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76681         (Include): Mention <stdlib.h>.
76682         (configure.ac): Mention functions we provide.
76683         * modules/canonicalize (configure.ac): Likewise.
76684         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76685         realpath if canonicalize_file_name is missing.
76686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76687         * modules/stdlib (Makefile.am): Substitute witnesses.
76688         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76689         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76690         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76691         * NEWS: Document this.
76692         * doc/glibc-functions/canonicalize_file_name.texi
76693         (canonicalize_file_name): Likewise.
76694         * doc/posix-functions/realpath.texi (realpath): Likewise.
76695         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76697         test-canonicalize: consolidate into single C program
76698         * tests/test-canonicalize.sh: Delete; move setup into...
76699         * tests/test-canonicalize.c (main): ...the program, making it
76700         easier to run in debugger.  Add some tests.
76701         * modules/canonicalize-tests (Files): Remove unused file.
76702         (Depends-on): Add progname.
76703         (configure.ac, Makefile.am): Simplify.
76705         test-canonicalize-lgpl: consolidate into single C program
76706         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76707         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76708         easier to run in debugger.  Add some tests.
76709         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76710         (configure.ac, Makefile.am): Simplify.
76712         canonicalize: avoid resolvepath
76713         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76714         unnecessary checks.
76715         * lib/canonicalize.c (includes): Simplify.
76716         (canonicalize_file_name): Drop resolvepath implementation.
76717         * modules/canonicalize (Depends-on): Drop filenamecat.
76719         canonicalize: don't lose errno
76720         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76721         over calls to free.
76723         canonicalize: simplify errno handling
76724         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76725         assignment.
76727         canonicalize, canonicalize-lgpl: update module dependencies
76728         * modules/canonicalize (Depends-on): Add extensions, lstat,
76729         pathmax, stdlib.
76730         (Files): Drop pathmax.h.
76731         (configure.ac): Adjust macro name.
76732         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76733         lstat, stdlib, sys_stat.
76734         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76735         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76736         extensions.
76737         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76738         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76739         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76740         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76741         declaration, if available.
76742         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76743         we can rely on the readlink module.
76744         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76745         (includes): Use <unistd.h> unconditionally.
76747 2009-09-17  Eric Blake  <ebb9@byu.net>
76749         maint: make Include sections of modules consistent
76750         * modules/alloca: Use only header name; no need to list #include.
76751         * modules/alloca-opt: Likewise.
76752         * modules/arpa_inet: Likewise.
76753         * modules/canon-host: Likewise.
76754         * modules/configmake: Likewise.
76755         * modules/dirent: Likewise.
76756         * modules/eealloc: Likewise.
76757         * modules/environ: Likewise.
76758         * modules/fchdir: Likewise.
76759         * modules/fcntl: Likewise.
76760         * modules/fcntl-h: Likewise.
76761         * modules/gethrxtime: Likewise.
76762         * modules/gettime: Likewise.
76763         * modules/ignore-value: Likewise.
76764         * modules/inet_ntop: Likewise.
76765         * modules/inet_pton: Likewise.
76766         * modules/inttypes: Likewise.
76767         * modules/isnand-nolibm: Likewise.
76768         * modules/isnanf-nolibm: Likewise.
76769         * modules/mbchar: Likewise.
76770         * modules/mbfile: Likewise.
76771         * modules/mbiter: Likewise.
76772         * modules/mbuiter: Likewise.
76773         * modules/netdb: Likewise.
76774         * modules/netinet_in: Likewise.
76775         * modules/nproc: Likewise.
76776         * modules/pagealign_alloc: Likewise.
76777         * modules/poll: Likewise.
76778         * modules/printf-frexp: Likewise.
76779         * modules/pthread: Likewise.
76780         * modules/putenv: Likewise.
76781         * modules/random_r: Likewise.
76782         * modules/relocatable-prog: Likewise.
76783         * modules/search: Likewise.
76784         * modules/select: Likewise.
76785         * modules/selinux-h: Likewise.
76786         * modules/settime: Likewise.
76787         * modules/signal: Likewise.
76788         * modules/size_max: Likewise.
76789         * modules/socklen: Likewise.
76790         * modules/ssize_t: Likewise.
76791         * modules/stdarg: Likewise.
76792         * modules/stdbool: Likewise.
76793         * modules/stddef: Likewise.
76794         * modules/stdint: Likewise.
76795         * modules/stdio: Likewise.
76796         * modules/stdlib: Likewise.
76797         * modules/string: Likewise.
76798         * modules/strings: Likewise.
76799         * modules/sys_file: Likewise.
76800         * modules/sys_ioctl: Likewise.
76801         * modules/sys_select: Likewise.
76802         * modules/sys_socket: Likewise.
76803         * modules/sys_stat: Likewise.
76804         * modules/sys_time: Likewise.
76805         * modules/sys_times: Likewise.
76806         * modules/sys_utsname: Likewise.
76807         * modules/sys_wait: Likewise.
76808         * modules/sysexits: Likewise.
76809         * modules/time: Likewise.
76810         * modules/times: Likewise.
76811         * modules/tmpfile: Likewise.
76812         * modules/trim: Likewise.
76813         * modules/unistd: Likewise.
76814         * modules/wchar: Likewise.
76815         * modules/wctype: Likewise.
76817 2009-09-17  Bruno Haible  <bruno@clisp.org>
76819         Make getdate.y compile on QNX and NetBSD 5 / i386.
76820         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76821         TIME_T_FITS_IN_LONG_INT.
76822         * lib/getdate.y (long_time_t): New type.
76823         (relative_time): Change type of 'seconds' field to long_time_t.
76824         (get_date): Update types of local variables. Check against overflow
76825         during conversion from long_time_t to time_t.
76826         Reported by Matt Kraai <kraai@ftbfs.org>
76827         and Hasso Tepper <hasso@netbsd.org>.
76829 2009-09-17  Bruno Haible  <bruno@clisp.org>
76831         * modules/COPYING: Update copyright years.
76832         * modules/README: Likeiwse.
76833         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76834         Reported by Ian Beckwith <ianb@erislabs.net>.
76836 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76838         * users.txt: Update references for gnuit package.
76840 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76842         * m4/getdelim.m4: Fix typo in copyright line.
76844 2009-09-17  Bruno Haible  <bruno@clisp.org>
76846         * lib/atoll.c: Use the standard header with GPL copyright.
76847         * lib/argz.in.h: Likewise.
76848         * lib/glob.c: Likewise.
76849         * lib/glob-libc.h: Likewise.
76850         * lib/random_r.c: Likewise.
76851         * lib/siglist.h: Likewise.
76852         * lib/strsignal.c: Likewise.
76853         Reported by Ian Beckwith <ianb@erislabs.net>.
76855 2009-09-17  Eric Blake  <ebb9@byu.net>
76857         rmdir: ensure correct dependency order
76858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76860 2009-09-17  Bruno Haible  <bruno@clisp.org>
76862         Disable assertion that fails on NetBSD 5 / i386.
76863         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76864         Reported by Sam Steingold <sds@gnu.org>
76865         and Hasso Tepper <hasso@netbsd.org>.
76867 2009-09-16  Eric Blake  <ebb9@byu.net>
76869         unlinkdir: port to mingw
76870         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76871         on which no one can unlink a directory.
76873         stdlib: sort witness names
76874         * modules/stdlib (Makefile.am): Sort replacements.
76875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76876         * lib/stdlib.in.h: Likewise.
76878         parse-duration-tests: avoid link failure
76879         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76880         LIBINTL.
76881         Reported by Tom G. Christensen.
76883         openat-tests: ensure unlinkat behaves like rmdir
76884         * tests/test-rmdir.c (main): Factor guts...
76885         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76886         * modules/rmdir-tests (Files): Ship new file.
76887         * modules/openat-tests: New test.
76888         * tests/test-unlinkat.c: Likewise.
76890         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76891         * modules/rmdir-errno (Status, Notice): Now obsolete.
76893         rmdir: work around cygwin 1.5.x and mingw bugs
76894         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76895         * lib/rmdir.c (rmdir): Work around it.
76896         * modules/rmdir (Status, Notice): No longer obsolete.
76897         (Files): Add dos.m4.
76898         (Depends-on): Add unistd.
76899         (configure.ac): Set witnesses.
76900         (License): Relax to LGPLv2+.
76901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76902         * modules/unistd (Makefile.am): Substitute witnesses.
76903         * lib/unistd.in.h (rmdir): Declare replacement.
76904         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76905         * modules/rmdir-tests: New tests.
76906         * tests/test-rmdir.c: Likewise.
76908 2009-09-15  Eric Blake  <ebb9@byu.net>
76910         fchdir: improve use of replacement functions
76911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76913         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76914         REPLACE_CLOSEDIR.
76915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76916         * modules/sys_stat (Makefile.am): Substitute correct witness.
76917         * modules/dirent (Makefile.am): Likewise.
76918         * modules/unistd (Makefile.am): Likewise.
76919         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76920         * lib/unistd.in.h (dup): Likewise.
76921         * lib/sys_stat.in.h (fstat): Likewise.
76923         maint: ignore gnulib-tool temp files
76924         * .gitignore: Ignore files created during gnulib-tool --test.
76926 2009-09-13  Jim Meyering  <meyering@redhat.com>
76928         posixtm: don't reject a time that specify "60" as the number of seconds
76929         * lib/posixtm.c (posixtime): The code to reject invalid dates
76930         would also reject a time specified with the .60 suffix.
76931         But POSIX allows that, in order to accommodate leap seconds.
76932         So don't reject it.
76933         (main): Adjust tests accordingly.
76934         * modules/posixtm (Depends-on): Add stpcpy.
76936 2009-09-11  Jim Meyering  <meyering@redhat.com>
76938         announce-gen: include [$release_type] in emitted Subject:
76939         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76940         e.g., [stable] in the emitted Subject: line.
76942 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76944         Remove obsolete macros from several modules.
76945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76946         obsolete Autoconf macros with their modern counterparts.
76947         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76948         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76950         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76951         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76952         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76954         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76955         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76956         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76957         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76959         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76960         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76961         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76963         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76964         * m4/time_r.m4 (gl_TIME_R): Likewise.
76965         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76966         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76967         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76969         Fix copyright header in build-aux scripts.
76970         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76971         recommendation.
76972         * build-aux/ncftpput-ftp: Likewise.
76973         * build-aux/update-copyright: Likewise.
76975 2009-09-09  Eric Blake  <ebb9@byu.net>
76977         test-link: allow Linux choice of errno
76978         * tests/test-link.c (main): Relax test for alternate error.
76980         strndup: fix improper m4 caching
76981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76982         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76983         (gl_PREREQ_STRNDUP): Delete.
76984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76985         * modules/string (Makefile.am): Substitute it.
76986         * lib/string.in.h (strndup): Modernize prototype.
76988         getcwd: port to mingw
76989         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76990         different from the POSIX assumptions made throughout the getcwd
76991         module; fortunately, the mingw getcwd does not need replacement.
76992         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76993         * modules/getcwd-tests: New test.
76994         * tests/test-getcwd.c: Likewise.
76996         link: fix platform bugs
76997         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76998         * lib/link.c (link): Work around them.  Fix related mingw bug.
76999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77000         * modules/unistd (Makefile.am): Substitute it.
77001         * lib/unistd.in.h (link): Declare replacement.
77002         * doc/posix-functions/link.texi (link): Document this.
77003         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77005         test-link: consolidate into single C program, test more cases
77006         * tests/test-link.sh: Delete.
77007         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77008         at least Cygwin and Solaris.
77009         * modules/link-tests (Files): Remove unused file.
77010         (Depends-on): Add errno, sys_stat.
77011         (Makefile.am): Simplify.
77013 2009-09-08  Bruno Haible  <bruno@clisp.org>
77015         Work around towlower, towupper bug on mingw.
77016         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77017         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77018         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77019         * doc/posix-functions/towupper.texi: Likewise.
77020         Reported by Eric Blake.
77022 2009-09-08  Jim Meyering  <meyering@redhat.com>
77024         build: don't try to run autoheader if we don't use it
77025         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77026         is not used in configure.ac.
77028 2009-09-08  Eric Blake  <ebb9@byu.net>
77030         euidaccess: fix compilation error
77031         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77033         rawmemchr: relax license
77034         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77035         okay.
77036         Reported by Jim Meyering.
77038         mkfifoat: new module
77039         * modules/mkfifoat: New file.
77040         * lib/mkfifoat.c: Likewise.
77041         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77043         * modules/sys_stat (Makefile.am): Use them.
77044         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77045         * MODULES.html.sh (File system functions): Mention module.
77046         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77047         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77048         * modules/mkfifoat-tests: New test.
77049         * tests/test-mkfifoat.c: Likewise.
77051         strchrnul: relax license
77052         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77053         okay.
77054         Reported by Jim Meyering.
77056 2009-09-08  Eric Blake  <ebb9@byu.net>
77058         fstatat: fix compilation on Solaris
77059         * lib/fstatat.c (includes): Add fcntl.h.
77060         Reported by Pádraig Brady.
77062 2009-09-07  Eric Blake  <ebb9@byu.net>
77064         rename: modernize replacement
77065         * modules/rename (Depends-on): Add stdio.
77066         (configure.ac): Declare witness.
77067         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77068         stdio take care of replacement.
77069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77070         * modules/stdio (Makefile.am): Substitute them.
77071         * lib/stdio.in.h (rename): Declare replacement.
77072         * lib/rename.c (includes): Allow cross-compilation to non-windows
77073         machines.
77074         * doc/posix-functions/rename.texi (rename): Improve
77075         documentation.
77077         stdio: sort witness names
77078         * modules/stdio (Makefile.am): Sort replacements.
77079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77080         * lib/stdio.in.h: Likewise.
77082         getcwd: minor cleanups
77083         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77084         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77086         openat: provide more convenience names
77087         * modules/faccessat (configure.ac): Add C witness.
77088         * lib/unistd.in.h (readlinkat): Fix typo.
77089         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77090         convenience wrappers.
77091         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77092         wrappers in syntax checks.
77094 2009-09-06  Eric Blake  <ebb9@byu.net>
77096         doc: fix comments in recent patches
77097         * lib/faccessat.c: Mention correct function.
77098         * lib/fchmodat.c: Likewise.
77099         * lib/fchownat.c: Likewise.
77100         * lib/symlinkat.c: Likewise.
77101         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77102         constants.
77104         faccessat, symlinkat: continue cleanup of previous patch
77105         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77106         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77107         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77109         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77110         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77111         set.
77113 2009-09-06  Bruno Haible  <bruno@clisp.org>
77115         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77116         (fstatat): Declare if GNULIB_FSTATAT is set.
77117         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77118         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77119         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77120         * modules/fcntl-h (Files): Remove m4/openat.m4.
77121         * modules/sys_stat (Files): Remove m4/openat.m4.
77122         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77123         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77124         * modules/unistd (Files): Remove m4/openat.m4.
77125         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77126         GNULIB_OPENAT.
77127         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77128         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77130         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77131         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77132         gl_OPENAT_DEFAULTS.
77133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77134         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77135         Don't require gl_OPENAT_DEFAULTS.
77136         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77137         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77138         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77139         (gl_OPENAT_DEFAULTS): Remove macro.
77141 2009-09-06  Bruno Haible  <bruno@clisp.org>
77143         * modules/openat (configure.ac): Remove unneeded witness.
77145 2009-09-06  Bruno Haible  <bruno@clisp.org>
77147         Set errno to ENOSYS when a function is entirely unsupported.
77148         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77149         EOPNOTSUPP.
77150         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77151         * modules/chown (Depends-on): Remove errno.
77153 2009-09-06  Bruno Haible  <bruno@clisp.org>
77155         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77157 2009-09-06  Bruno Haible  <bruno@clisp.org>
77159         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77161 2009-09-06  Ben Pfaff  <blp@gnu.org>
77162             Bruno Haible  <bruno@clisp.org>
77164         Work around a glibc bug in strtok_r.
77165         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77166         Undefine if UNDEFINE_STRTOK_R is set.
77167         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77169         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77170         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77171         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77172         UNDEFINE_STRTOK_R.
77173         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77175 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77177         exclude: minor fix
77178         * lib/exclude.c: Include wctype.h
77180 2009-09-06  Akim Demaille  <demaille@gostai.com>
77182         bootstrap: improve error message
77183         * build-aux/bootstrap (find_tool): Upon failure, report the list
77184         of candidates.
77185         Honor the initial value of the envvar.
77187 2009-09-05  Eric Blake  <ebb9@byu.net>
77189         symlinkat: new module
77190         * modules/symlinkat: New file.
77191         * lib/symlinkat.c: Likewise.
77192         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77194         * modules/unistd (Makefile.am): Use them.
77195         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77196         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77197         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77198         * MODULES.html.sh (File system functions): Mention module.
77199         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77200         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77201         * modules/symlinkat-tests: New test.
77202         * tests/test-symlinkat.c: Likewise.
77204         test-openat-safer: add more checks
77205         * tests/test-openat-safer.c (main): Check more code paths.
77207 2009-09-05  Jim Meyering  <meyering@redhat.com>
77209         syntax-check: detect unnecessary inclusion of openat.h
77210         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77212 2009-09-05  Bruno Haible  <bruno@clisp.org>
77214         Support towlower, towupper.
77215         * doc/posix-functions/towlower.texi: Mention module wctype.
77216         * doc/posix-functions/towupper.texi: Likewise.
77217         * lib/wctype.in.h (towlower, towupper): New functions.
77218         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77219         (ASSERT): New macro.
77220         (e): New variable.
77221         (main): Test also towlower, towupper. Test WEOF argument.
77222         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77224 2009-09-05  Bruno Haible  <bruno@clisp.org>
77226         Fix conversion behaviour when the input is invalid.
77227         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77228         mark occurring in first pass of indirect conversion.
77229         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77230         input.
77231         Found by clang's static analyzer.
77233 2009-09-05  Bruno Haible  <bruno@clisp.org>
77235         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77236         where direct conversion is possible.
77238 2009-09-04  Eric Blake  <ebb9@byu.net>
77240         openat: fail with ENOENT on empty name
77241         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77242         buffer.
77244         link-follow: fix logic bug in prior patch
77245         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77246         reversed sense of yes and no in prior patch.  Avoid confusing
77247         compilation failure with desired semantics.
77249         link-follow: accommodate mingw and cross-compilation
77250         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77251         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77252         cross-compilation results to -1, to make linkat easier to
77253         implement when cross-compiling.  Trivially support mingw.
77254         * modules/link-follow (configure.ac): Call new name.
77255         * NEWS: Mention this.
77257 2009-09-03  Eric Blake  <ebb9@byu.net>
77259         faccessat: compile replacement
77260         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77261         needed.
77263         fts: fix compilation error
77264         * lib/fts.c (includes): Re-add "openat.h", for
77265         openat_needs_fchdir.
77267         faccessat: new module
77268         * modules/faccessat: New file.
77269         * lib/faccessat.c: Likewise.
77270         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77272         * modules/unistd (Makefile.am): Use it.
77273         * lib/unistd.in.h (faccessat): Declare it.
77274         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77275         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77276         * MODULES.html.sh (File system functions): Mention it.
77277         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77278         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77280         euidaccess: prefer POSIX over non-standard implementation
77281         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77282         * lib/euidaccess.c (euidaccess): Use it if available.
77284         openat: make template easier to use
77285         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77286         AT_FUNC_F2 to be undefined.
77287         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77288         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77289         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77290         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77291         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77292         Likewise.
77293         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77294         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77295         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77296         Likewise.
77298         openat: declare in POSIX headers
77299         * NEWS: Mention this.
77300         * modules/openat (configure.ac): Declare witnesses.
77301         (Depends-on): Add fcntl-h, sys_stat, unistd.
77302         (Include): Mention correct headers.
77303         * modules/fcntl-h (Depends-on): Add link-warning.
77304         (Files): Add openat.m4.
77305         (Makefile.am): Substitute witnesses.
77306         * modules/sys_stat (Files, Makefile.am): Likewise.
77307         * modules/unistd (Files, Makefile.am): Likewise.
77308         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77309         (gl_OPENAT_DEFAULTS): New macro.
77310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77313         (SYS_STAT_H): Remove unused variable.
77314         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77315         * lib/fcntl--.h (includes): Remove unneeded header.
77316         * lib/openat-safer.c (includes): Likewise.
77317         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77318         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77319         appropriate headers.
77320         (__OPENAT_PREFIX): Delete.
77321         * lib/fcntl.in.h (openat): Provide declaration.
77322         (AT_FDCWD): Fix Solaris bug.
77323         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77324         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77325         * lib/fchmodat.c (includes):  Adjust to find declaration.
77326         * lib/fchownat.c (includes): Likewise.
77327         * lib/mkdirat.c (includes): Likewise.
77328         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77329         still visible.
77331 2009-09-02  Eric Blake  <ebb9@byu.net>
77333         errno: use consistently
77334         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77335         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77336         * lib/canonicalize.c (ELOOP): Likewise.
77337         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77338         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77339         * lib/lchown.c (EOPNOTSUPP): Likewise.
77340         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77341         * lib/savewd.c (ESTALE): Likewise.
77342         * lib/settime.c (ENOSYS): Likewise.
77343         * lib/utimens.c (ENOSYS): Likewise.
77344         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77345         * lib/chdir-safer.c (ELOOP): Likewise.
77346         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77347         * modules/c-stack (Depends-on): Add errno.
77348         * modules/canonicalize (Depends-on): Likewise.
77349         * modules/chdir-safer (Depends-on): Likewise.
77350         * modules/fdopendir (Depends-on): Likewise.
77351         * modules/inet_ntop (Depends-on): Likewise.
77352         * modules/inet_pton (Depends-on): Likewise.
77353         * modules/lchown (Depends-on): Likewise.
77354         * modules/openat (Depends-on): Likewise.
77355         * modules/savewd (Depends-on): Likewise.
77356         * modules/settime (Depends-on): Likewise.
77357         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77359         fts: avoid leaking fds
77360         * modules/fts (Depends-on): Add cloexec.
77361         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77362         flag.
77364         fts: make directory fds more robust
77365         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77366         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77368         backupfile, chdir-long, fts, savedir: make safer
77369         * lib/backupfile.c (includes): Use "dirent--.h", since
77370         numbered_backup can write to stderr during readdir.
77371         * lib/savedir.c (includes): Likewise.
77372         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77373         emulation can write to stderr on failure.
77374         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77375         * lib/getcwd.c: Document why opendir_safer is unused.
77376         * lib/glob.c: Likewise.
77377         * lib/scandir.c: Likewise.
77378         * lib/openat-proc.c: Likewise, for open_safer.
77379         * modules/backupfile (Depends-on): Add dirent-safer.
77380         * modules/savedir (Depends-on): Likewise.
77381         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77382         * modules/chdir-long (Depends-on): Add openat-safer.
77384         openat-safer: new module
77385         * modules/openat-safer: New file.
77386         * lib/openat-safer.c: Likewise.
77387         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77388         * lib/fcntl-safer.h (openat_safer): Declare.
77389         * lib/fcntl--.h (openat): Override.
77390         * MODULES.html.sh (File descriptor based I/O): Mention it.
77391         * lib/openat.h: Add double-inclusion guards.
77392         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77393         "fcntl--.h", so we can implement openat.
77394         * modules/openat-safer-tests: New test.
77395         * tests/test-openat-safer.c: New file.
77397         dirent-safer: new module
77398         * modules/dirent-safer: New file.
77399         * lib/dirent--.h: Likewise.
77400         * lib/dirent-safer.h: Likewise.
77401         * lib/opendir-safer.c: Likewise.
77402         * m4/dirent-safer.m4: Likewise.
77403         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77404         * modules/dirent-safer-tests: New test.
77405         * tests/test-dirent-safer.c: New file.
77406         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77408         fdopendir: optimize on mingw
77409         * lib/unistd.in.h (_gl_directory_name): New prototype.
77410         * lib/fchdir.c (_gl_directory_name): Implement it.
77411         (fchdir): Use it to simplify implementation.
77412         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
77413         fchdir, when available, to avoid calling [f]chdir().
77415         fdopendir: split into its own module
77416         * lib/openat.c (fdopendir): Move...
77417         * lib/fdopendir.c: ...into new file.
77418         * modules/fdopendir: New module.
77419         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
77420         * modules/openat (Depends-on): Add fdopendir.
77421         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
77422         fdopendir here.
77423         * modules/savedir (Depends-on): Only need fdopendir, not full
77424         openat.
77425         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
77426         * lib/openat.h (fdopendir): Drop prototype.
77427         * lib/dirent.in.h (fdopendir): Provide prototype.
77428         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
77429         * modules/dirent (Makefile.am): Substitute them.
77430         * MODULES.html.sh (File system functions): Mention it.
77431         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
77432         * modules/fdopendir-tests: New file.
77433         * tests/test-fdopendir.c: Likewise.
77435         fchdir: use more consistent macro convention
77436         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
77437         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77438         REPLACE_FCHDIR, rather than relying on config.h macros.
77439         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77440         inside a single make-time REPLACE_FCHDIR block, rather than using
77441         the config.h FCHDIR_REPLACEMENT.
77442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77443         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77444         Manage fstat replacement.
77445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77446         REPLACE_FCHDIR.
77447         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77448         (Makefile.am): Substitute REPLACE_FCHDIR.
77449         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77450         FCHDIR_REPLACEMENT.
77451         * lib/dup-safer.c (dup_safer): Likewise.
77452         * lib/dup2.c (rpl_dup2): Likewise.
77453         * lib/dup3.c (rpl_dup3): Likewise.
77454         * lib/open.c (rpl_open): Likewise.
77456         fchdir: simplify error handling, and support dup3
77457         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77458         stdbool, malloc-posix, realloc-posix.
77459         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77460         (ensure_dirs_slot): Return false on allocation failure.
77461         (rpl_dup2): Delete.
77462         (_gl_register_dup): New function.
77463         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77464         (_gl_register_fd): Close fd on allocation failure.
77465         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77466         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77467         prototype.
77468         (rpl_dup2_fchdir): Delete prototype.
77469         * lib/open.c (open): Update caller.
77470         * lib/dup2.c (dup2): Track fchdir metadata.
77471         * lib/dup3.c (dup3): Likewise.
77472         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77475 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77477         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77478         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77479         don't pass arguments to AC_OUTPUT.
77481 2009-09-02  Bruno Haible  <bruno@clisp.org>
77483         * modules/mkdtemp (License): Relicense under LGPLv2+.
77484         Reported by Paolo Bonzini.
77486 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77488         Replace uses of obsolete autoconf macros in Jim's modules.
77489         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77490         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77491         can evoke a warning from autoconf when run with -Wobsolete
77492         enabled.  They were declared obsolete for good reasons (see
77493         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77494         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77495         should not continue using the deprecated macros.
77496         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77497         obsolete Autoconf macros with modern counterparts.
77498         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77499         * m4/dos.m4 (gl_AC_DOS): Likewise.
77500         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77501         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77502         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77503         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77504         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77506         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77507         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77508         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77509         Likewise.
77510         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77512         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77513         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77514         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77515         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77517 2009-09-01  Eric Blake  <ebb9@byu.net>
77519         fchdir: fix off-by-one bug in previous patch
77520         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77521         (_gl_unregister_fd): Delete useless if.
77523 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77525         maint.mk: sort the list of syntax-check rules
77526         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77527         easier to get a sense of progress when the rules are run sequentially
77528         and take a long time.
77530 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77532         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77533         * modules/netinet_in: Likewise.
77534         * modules/sys_file: Likewise.
77535         * modules/sys_ioctl: Likewise.
77536         * modules/sys_select: Likewise.
77537         * modules/sys_socket: Likewise.
77538         * modules/sys_stat: Likewise.
77539         * modules/sys_time: Likewise.
77540         * modules/sys_times: Likewise.
77541         * modules/sys_utsname: Likewise.
77542         * modules/sys_wait: Likewise.
77544 2009-09-01  Jim Meyering  <meyering@redhat.com>
77546         fts: help ensure that return values are not ignored
77547         * lib/fts_.h (__GNUC_PREREQ): Define.
77548         (__attribute_warn_unused_result__): Define.
77549         (fts_children, fts_close, fts_open, fts_read): Declare with
77550         __attribute_warn_unused_result__.
77552         fts: fts_close now fails also when closing a dir file descriptor fails
77553         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77554         and propagate to caller, along with errno.
77556         announce-gen: correct formatting in --help output
77557         * build-aux/announce-gen (usage): Move the one-line description in
77558         --help output "up", to where it belongs, just after Usage:.
77560 2009-08-31  Eric Blake  <ebb9@byu.net>
77562         fchdir: port to mingw
77563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77564         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77565         opened, then use a substitute.
77566         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77567         replacement.
77568         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77569         (_gl_register_fd): No need to check stat if open already filters
77570         all directories.
77571         (fchdir): Fix error condition to match POSIX.
77572         * modules/fchdir (Depends-on): Add sys_stat.
77573         * doc/posix-functions/open.texi (open): Document the limitation.
77574         * modules/fchdir-tests: New file.
77575         * tests/test-fchdir.c: Likewise.
77577         canonicalize: allow cross-testing from cygwin to mingw
77578         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77579         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77580         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77581         Likewise.
77582         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77583         target does not support symlinks.
77584         * tests/test-canonicalize-lgpl.sh: Likewise.
77586         chown: avoid compilation warning on mingw
77587         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77588         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77589         mingw.
77590         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77591         * modules/chown (Depends-on): Add errno.
77593 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77595         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77596         command.
77598 2009-08-31  Jim Meyering  <meyering@redhat.com>
77600         canonicalize: remove useless initialization
77601         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77602         initialization of local, "end".
77604 2009-08-30  Bruno Haible  <bruno@clisp.org>
77606         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77607         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77608         ENOSYS.
77610 2009-08-30  Bruno Haible  <bruno@clisp.org>
77612         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77613         /usr/xpg4/bin/tr when it exists.
77614         * tests/test-pipe-filter-gi1.sh: Likewise.
77616 2009-08-30  Bruno Haible  <bruno@clisp.org>
77618         Work around deficient /usr/bin/id program on Solaris.
77619         * tests/test-file-has-acl.sh (ID): New variable.
77620         * tests/test-set-mode-acl.sh (ID): Likewise.
77621         * tests/test-copy-acl.sh (ID): Likewise.
77622         * tests/test-copy-file.sh (ID): Likewise.
77624 2009-08-30  Bruno Haible  <bruno@clisp.org>
77626         New module 'xstriconveh'.
77627         * lib/xstriconveh.h: New file.
77628         * lib/xstriconveh.c: New file.
77629         * modules/xstriconveh: New file.
77631 2009-08-30  Bruno Haible  <bruno@clisp.org>
77633         Make it easier to use mem_cd_iconveh.
77634         * lib/striconveh.h (iconveh_t): New type.
77635         (iconveh_open, iconveh_close): New declarations.
77636         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77637         with a single 'const iconveh_t *' argument.
77638         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77639         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77640         with a single 'const iconveh_t *' argument.
77641         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77642         * tests/test-striconveh.c (main): Update.
77643         * NEWS: Mention the change.
77645 2009-08-30  Bruno Haible  <bruno@clisp.org>
77647         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77648         problem.
77650 2009-08-30  Bruno Haible  <bruno@clisp.org>
77652         Work around iconv_open problem on Solaris.
77653         * lib/iconv_open-solaris.gperf: New file.
77654         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77656         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77657         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77658         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77659         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77661 2009-08-29  Jim Meyering  <meyering@redhat.com>
77663         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77664         * top/maint.mk (cvs-check): Remove target; it was just an alias
77665         to the better-named vc-diff-check.
77666         (maintainer-distcheck): Remove rule.  It was used only from
77667         the (alpha/beta/major) target, and all of its commands but one
77668         were coreutils-specific.
77669         (vc-dist): Remove rule.
77670         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77671         Run vc-diff-check, not vc-dist.
77672         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77674 2009-08-27  Bruno Haible  <bruno@clisp.org>
77676         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77677         of 0.
77679 2009-08-27  Bruno Haible  <bruno@clisp.org>
77681         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77682         compilers.
77683         * doc/func.texi: Document the SunPRO C bug.
77685 2009-08-27  Bruno Haible  <bruno@clisp.org>
77687         Fix link error on Solaris.
77688         * tests/test-parse-duration.c (xstrdup): Remove function.
77690 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77692         ignore-value: handle pointer types, too
77693         * lib/ignore-value.h (__attribute__): Remove definition.
77694         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77695         of a more concise and more-often effective "(void) i" statement.
77696         (ignore_ptr): New function to suppress warnings from functions that
77697         return pointers, and to make it explicit that one function doesn't
77698         handle all cases.
77700 2009-08-25  Bruno Haible  <bruno@clisp.org>
77702         dup2: work around a Linux bug.
77703         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77704         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77705         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77706         Reported by Simon Josefsson.
77708 2009-08-25  Jim Meyering  <meyering@redhat.com>
77710         libguestfs uses gnulib
77711         * users.txt: Add libguestfs.
77713 2009-08-24  Eric Blake  <ebb9@byu.net>
77715         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77716         * lib/pipe2.c (includes): Add binary-io.h.
77717         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77719 2009-08-24  Bruno Haible  <bruno@clisp.org>
77721         Tolerate declared but missing accept4 syscall.
77722         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77723         available.
77724         * lib/sys_socket.in.h (accept4): If the function is already present,
77725         override it.
77726         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77727         * modules/accept4 (Makefile.am): Compile accept4.c always.
77728         Reported by Paolo Bonzini and Eric Blake.
77730 2009-08-23  Bruno Haible  <bruno@clisp.org>
77732         New module 'accept4'.
77733         * lib/sys_socket.in.h (accept4): New declaration.
77734         * lib/accept4.c: New file.
77735         * m4/accept4.m4: New file.
77736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77737         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77738         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77739         HAVE_ACCEPT4.
77740         * modules/accept4: New file.
77741         * doc/glibc-functions/accept4.texi: Mention the new module.
77743 2009-08-24  Jim Meyering  <meyering@redhat.com>
77745         progname: also set global program_invocation_name, when possible
77746         Before this change, a libtool-enabled program that calls glibc's
77747         error function would report the program name as
77748         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77749         * modules/progname (configure.ac): Check for a declaration of
77750         program_invocation_name.
77751         * lib/progname.c:  Include <errno.h>.
77752         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77753         Set program_invocation_name.
77755 2009-08-23  Bruno Haible  <bruno@clisp.org>
77757         * lib/dup3.c: Include <string.h>.
77759 2009-08-23  Bruno Haible  <bruno@clisp.org>
77761         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77762         * lib/pipe2.c (pipe2): Likewise.
77763         Suggested by Eric Blake.
77765 2009-08-23  Bruno Haible  <bruno@clisp.org>
77767         Tolerate declared but missing dup3 syscall.
77768         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77769         * lib/unistd.in.h (dup3): If the function is already present,
77770         override it.
77771         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77772         * modules/dup3 (Makefile.am): Compile dup3.c always.
77773         Reported by Paolo Bonzini.
77775 2009-08-23  Bruno Haible  <bruno@clisp.org>
77777         Tolerate declared but missing pipe2 syscall.
77778         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77779         available.
77780         * lib/unistd.in.h (pipe2): If the function is already present,
77781         override it.
77782         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77783         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77784         Reported by Paolo Bonzini.
77786 2009-08-23  Bruno Haible  <bruno@clisp.org>
77788         * lib/pipe2.c (pipe2): Move #ifs inside function.
77790 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77792         quotearg: document limitations of quote_these_too
77793         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77794         those limitations are created.
77795         * lib/quotearg.h (set_char_quoting): Document that digits and
77796         letters that are special after backslash are not permitted.
77797         (quotearg_char): Cross-reference set_char_quoting documentation.
77799 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77801         quotearg: implement custom_quoting_style
77802         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77803         right_quote fields.
77804         (set_custom_quoting): New public function.
77805         (quotearg_buffer_restyled): Add left_quote and right_quote
77806         arguments, handle them very much like locale quoting, and update
77807         all uses.
77808         (quotearg_n_custom): New public function.
77809         (quotearg_n_custom_mem): New public function.
77810         (quotearg_custom): New public function.
77811         (quotearg_custom_mem): New public function.
77812         * lib/quotearg.h: Prototype and document new public functions.
77813         (enum quoting_style): For escape_quoting_style and
77814         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77815         ignored even though they're otherwise like c_quoting_style.
77816         Add custom_quoting_style member and document with comparison to
77817         clocale_quoting_style.
77818         * tests/test-quotearg.c (custom_quotes): New array.
77819         (custom_results): New array.
77820         (main): Extend to test custom quoting.
77822 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77824         quotearg: fix right quote escaping when it's in quote_these_too
77825         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77826         quote, be sure to prepend only one backslash.
77827         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77828         (main): Test it.
77830 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77832         quotearg-tests: test escaping of embedded locale quotes
77833         * tests/test-quotearg.c (struct result_strings): Add member for
77834         new input.
77835         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77836         (inputs): Add new input.
77837         (results_g): Add expected results.
77838         (flag_results): Likewise.
77839         (locale_results): Likewise.
77840         (compare_strings): Check those.
77842 2009-08-23  Bruno Haible  <bruno@clisp.org>
77844         Tests for module 'dup3'.
77845         * modules/dup3-tests: New file.
77846         * tests/test-dup3.c: New file.
77848         New module 'dup3'.
77849         * lib/unistd.in.h (dup3): New declaration.
77850         * lib/dup3.c: New file.
77851         * m4/dup3.m4: New file.
77852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77853         HAVE_DUP3.
77854         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77855         * modules/dup3: New file.
77856         * doc/glibc-functions/dup3.texi: Mention the new module.
77858 2009-08-23  Bruno Haible  <bruno@clisp.org>
77860         Tweak the dup2 test.
77861         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77862         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77863         the test file is still empty. Fix argument order of lseek.
77865 2009-08-23  Bruno Haible  <bruno@clisp.org>
77867         Avoid test link errors when the modules getopt-gnu, gettext are used.
77868         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77871 2009-08-23  Bruno Haible  <bruno@clisp.org>
77873         Fix getdtablesize() on mingw.
77874         * lib/getdtablesize.c (getdtablesize): Implement differently.
77875         * lib/unistd.in.h (getdtablesize): Improve comment.
77877 2009-08-23  Bruno Haible  <bruno@clisp.org>
77879         New module 'mkostemp'.
77880         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77881         * lib/stdlib.in.h (mksotemp): New declaration.
77882         * lib/mkostemp.c: New file, from glibc with modifications.
77883         * lib/tempname.h (GT_FILE): Remove outdated comment.
77884         (gen_tempname): Add flags argument.
77885         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77886         (__GT_FILE): Map to 1.
77887         (small_open, large_open): Remove macros.
77888         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77889         * lib/mkstemp.c (mkstemp): Update.
77890         * lib/mkdtemp.c (mkdtemp): Likewise.
77891         * m4/mkostemp.m4: New file.
77892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77893         HAVE_MKOSTEMP.
77894         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77895         HAVE_MKOSTEMP.
77896         * modules/mkostemp: New file, based on modules/mkstemp.
77897         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77898         * NEWS: Mention the change.
77900 2009-08-23  Bruno Haible  <bruno@clisp.org>
77902         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77903         Reported by Eric Blake.
77905 2009-08-23  Bruno Haible  <bruno@clisp.org>
77907         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77908         Reported by Eric Blake.
77910 2009-08-23  Bruno Haible  <bruno@clisp.org>
77912         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77913         * modules/pipe2 (Depends-on): Likewise.
77915 2009-08-23  Eric Blake  <ebb9@byu.net>
77917         fcntl-h: add O_TTY_INIT support
77918         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77919         * tests/test-fcntl-h.c (o): Test it.
77920         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77922         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77923         * modules/fcntl: Move <fcntl.h> header replacement...
77924         * modules/fcntl-h: ...to new name, so as not to collide with
77925         like-named function.
77926         * tests/test-fcntl.c: Rename...
77927         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77928         * modules/fcntl-tests: Rename...
77929         * modules/fcntl-h-tests: ...to this.  Update test file name.
77930         * modules/chdir-long (Depends-on): Update clients.
77931         * modules/chdir-safer (Depends-on): Likewise.
77932         * modules/fcntl-safer (Depends-on): Likewise.
77933         * modules/fts (Depends-on): Likewise.
77934         * modules/mkancesdirs (Depends-on): Likewise.
77935         * modules/mkdir-p (Depends-on): Likewise.
77936         * modules/open (Depends-on): Likewise.
77937         * modules/savewd (Depends-on): Likewise.
77938         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77939         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77941 2009-08-22  Bruno Haible  <bruno@clisp.org>
77943         * modules/binary-io (License): Relicense under LGPL.
77944         * modules/pipe2 (License): Likewise.
77946 2009-08-22  Bruno Haible  <bruno@clisp.org>
77948         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77949         return value.
77950         * lib/pipe-filter-gi.c (filter_init): Likewise.
77951         Reported by Eric Blake.
77953 2009-08-22  Bruno Haible  <bruno@clisp.org>
77955         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77956         * modules/pipe (Depends-on): Add pipe2.
77958 2009-08-22  Bruno Haible  <bruno@clisp.org>
77960         Tests for module 'pipe2'.
77961         * modules/pipe2-tests: New file.
77962         * tests/test-pipe2.c: New file.
77964         New module 'pipe2'.
77965         * lib/unistd.in.h (pipe2): New declaration.
77966         * lib/pipe2.c: New file.
77967         * m4/pipe2.m4: New file.
77968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77969         HAVE_PIPE2.
77970         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77971         * modules/pipe2: New file.
77972         * doc/glibc-functions/pipe2.texi: Mention the new module.
77974 2009-08-22  Bruno Haible  <bruno@clisp.org>
77976         Reference some new glibc functions.
77977         * doc/glibc-functions/accept4.texi: New file.
77978         * doc/glibc-functions/dup3.texi: New file.
77979         * doc/glibc-functions/mkostemp.texi: New file.
77980         * doc/glibc-functions/pipe2.texi: New file.
77981         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77982         (Glibc sys/socket.h): Refer to accept4.
77983         (Glibc unistd.h): Refer to dup3, pipe2.
77984         Reported by Eric Blake.
77986 2009-08-22  Jim Meyering  <meyering@redhat.com>
77987             Bruno Haible  <bruno@clisp.org>
77989         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77990         This makes it so packages using automake-1.11's silent-rules option
77991         can print e.g., a single "GEN    configmake.h" line, rather than
77992         the 30+ statements that perform the job.  If you want to see the
77993         actual commands, you can still run "make V=1".
77994         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77995         so that make output is abbreviated when those variables are defined
77996         appropriately.
77997         * modules/argz: Likewise.
77998         * modules/arpa_inet: Likewise.
77999         * modules/byteswap: Likewise.
78000         * modules/configmake: Likewise.
78001         * modules/dirent: Likewise.
78002         * modules/errno: Likewise.
78003         * modules/fcntl: Likewise.
78004         * modules/float: Likewise.
78005         * modules/fnmatch: Likewise.
78006         * modules/getopt-posix: Likewise.
78007         * modules/glob: Likewise.
78008         * modules/iconv_open: Likewise.
78009         * modules/inttypes: Likewise.
78010         * modules/localcharset: Likewise.
78011         * modules/locale: Likewise.
78012         * modules/math: Likewise.
78013         * modules/netdb: Likewise.
78014         * modules/netinet_in: Likewise.
78015         * modules/poll: Likewise.
78016         * modules/posix_spawnp-tests: Likewise.
78017         * modules/sched: Likewise.
78018         * modules/search: Likewise.
78019         * modules/selinux-h: Likewise.
78020         * modules/signal: Likewise.
78021         * modules/spawn: Likewise.
78022         * modules/stdarg: Likewise.
78023         * modules/stdbool: Likewise.
78024         * modules/stddef: Likewise.
78025         * modules/stdint: Likewise.
78026         * modules/stdio: Likewise.
78027         * modules/stdlib: Likewise.
78028         * modules/string: Likewise.
78029         * modules/strings: Likewise.
78030         * modules/sys_file: Likewise.
78031         * modules/sys_ioctl: Likewise.
78032         * modules/sys_select: Likewise.
78033         * modules/sys_socket: Likewise.
78034         * modules/sys_stat: Likewise.
78035         * modules/sys_time: Likewise.
78036         * modules/sys_times: Likewise.
78037         * modules/sys_utsname: Likewise.
78038         * modules/sys_wait: Likewise.
78039         * modules/sysexits: Likewise.
78040         * modules/time: Likewise.
78041         * modules/unistd: Likewise.
78042         * modules/wchar: Likewise.
78043         * modules/wctype: Likewise.
78045 2009-08-22  Jim Meyering  <meyering@redhat.com>
78047         announce-gen: detect write failure
78048         * build-aux/announce-gen: Add Coda at end.
78049         Remove equivalent-but-more-verbose block at top.
78051 2009-08-19  Akim Demaille  <demaille@gostai.com>
78053         bootstrap: --help to stdout.
78054         * bootstrap (usage): Don't send --help to stderr.
78055         Use a here doc instead of a long string.
78057 2009-08-21  Eric Blake  <ebb9@byu.net>
78059         test-popen-safer: split from test-popen
78060         * tests/test-popen.c (main): Move...
78061         * tests/test-popen.h: ...into new file.
78062         * tests/test-popen-safer2.c: New file.
78063         * modules/popen-tests (Files): Add test-popen.h.
78064         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78065         Suggested by Bruno Haible.
78067         test-fcntl-safer: split from test-open
78068         * tests/test-open.c (main): Move...
78069         * tests/test-open.h: ...into new file.
78070         * tests/test-fcntl-safer.c: New file.
78071         * modules/open-tests (Files): Add test-open.h.
78072         * modules/fcntl-safer-tests: New file.
78073         Suggested by Bruno Haible.
78075         test-fopen-safer: split from test-fopen
78076         * tests/test-fopen.c (main): Move...
78077         * tests/test-fopen.h: ...into new file.
78078         * tests/test-fopen-safer.c: New file.
78079         * modules/fopen-tests (Files): Add test-fopen.h.
78080         * modules/fopen-safer-tests: New file.
78081         Suggested by Bruno Haible.
78083 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78085         popen-safer: test O_CLOEXEC at run-time.
78086         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78088 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78090         fcntl: move more flags to the header
78091         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78092         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78093         * lib/fcntl.in.h: Do both things here.
78095 2009-08-21  Jim Meyering  <meyering@redhat.com>
78097         consistently remove $@-t before redirecting to it
78098         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78099         * modules/alloca-opt: Likewise.
78100         * modules/byteswap: Likewise.
78101         * modules/fnmatch: Likewise.
78102         * modules/getopt-posix: Likewise.
78103         * modules/glob: Likewise.
78104         * modules/poll: Likewise.
78105         * modules/posix_spawnp-tests: Likewise.
78106         * modules/sys_socket: Likewise.
78107         * modules/sysexits: Likewise.
78109 2009-08-21  Eric Blake  <ebb9@byu.net>
78111         popen: simplify access to original popen
78112         * lib/popen.c (rpl_popen): No need to worry about popen being a
78113         macro.
78114         Reported by Bruno Haible.
78116 2009-08-20  Eric Blake  <ebb9@byu.net>
78118         build: avoid some compiler warnings
78119         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78120         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78121         type.
78122         (new_exclude_segment, excluded_file_pattern_p)
78123         (excluded_file_name_p): Reduce scope.
78124         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78125         old-style declaration.
78127 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78129         * tests/test-exclude1.sh: Handle Windows EOL.
78130         * tests/test-exclude2.sh: Likewise.
78131         * tests/test-exclude3.sh: Likewise.
78132         * tests/test-exclude4.sh: Likewise.
78133         * tests/test-exclude5.sh: Likewise.
78134         * tests/test-exclude6.sh: Likewise.
78135         * tests/test-exclude7.sh: Likewise.
78137 2009-08-19  Akim Demaille  <demaille@gostai.com>
78139         bootstrap: find sha1sum when named gsha1sum.
78140         * bootstrap (find_tool): New.
78141         ($SHA1SUM): New.
78142         Use it.
78144 2009-08-20  Jim Meyering  <meyering@redhat.com>
78146         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78147         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78148         expression that converts "." in a file name to "\." in the resulting
78149         regexp.  Start with a dummy statement, so that prior shell variable
78150         definitions are expanded portably.  Reported by Simon Josefsson.
78152 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78154         Fix polling for writeability of a screen buffer.
78155         * lib/poll.c: Distinguish input and screen buffers for the
78156         Win32 implementation.
78157         * lib/select.c: Likewise.
78159 2009-08-19  Eric Blake  <ebb9@byu.net>
78161         popen-safer: prevent popen from clobbering std descriptors
78162         * modules/popen-safer: New file.
78163         * lib/popen-safer.c: Likewise.
78164         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78165         * lib/stdio--.h (popen): Provide override.
78166         * lib/stdio-safer.h (popen_safer): Provide declaration.
78167         * tests/test-popen.c (includes): Partially test this.
78168         * modules/popen-safer-tests: New file, for more tests.
78169         * tests/test-popen-safer.c: Likewise.
78170         * MODULES.html.sh (file stream based Input/Output): Mention it.
78172         tests: test some of the *-safer modules
78173         * modules/fopen-safer (Depends-on): Add fopen.
78174         * modules/fcntl-safer (Depends-on): Add fcntl.
78175         * modules/stdlib-safer (Depends-on): Add stdlib.
78176         (configure.ac): Set indicator.
78177         * modules/unistd-safer (configure.ac): Likewise.
78178         * modules/tmpfile-safer (configure.ac): Likewise.
78179         (Depends-on): Add tmpfile.
78180         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78181         active.
78182         * tests/test-fopen.c (includes): Test safer versions when they are
78183         in use.
78184         * tests/test-open.c (includes): Likewise.
78186         popen: fix cygwin 1.5 bug when stdin closed
78187         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78188         * modules/popen: New file.
78189         * modules/popen-tests: Likewise.
78190         * tests/test-popen.c: Likewise.
78191         * m4/popen.m4: Likewise.
78192         * lib/popen.c: Likewise.
78193         * lib/stdio.in.h (popen): New declaration.
78194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78195         * modules/stdio (Makefile.am): Likewise.
78196         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78198 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78200         maint.mk: give full control over update-copyright exclusions
78201         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78202         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78203         (update-copyright): Don't force inclusion of top-level
78204         ChangeLog.  Don't force exclusion of all COPYING files, but make
78205         them the default exclusion instead.
78207 2009-08-16  Bruno Haible  <bruno@clisp.org>
78209         Fix test failures on Solaris 10.
78210         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78211         tests when Solaris iconv() is used.
78212         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78213         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78214         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78215         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78216         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78218 2009-08-16  Bruno Haible  <bruno@clisp.org>
78220         Fix test failures on Solaris 10.
78221         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78222         'tr' program and pass it as first argument.
78223         * tests/test-pipe-filter-gi1.sh: Likewise.
78224         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78225         program as first argument.
78226         * tests/test-pipe-filter-gi1.c (main): Likewise.
78228 2009-08-16  Eric Blake  <ebb9@byu.net>
78230         fpurge: fix previous commits
78231         * modules/fpurge (Makefile.am): Make replacement conditional,
78232         partially reverting 2007-04-29 change; missed in previous
78233         attempt.
78234         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78235         is missing.
78237 2009-08-16  Bruno Haible  <bruno@clisp.org>
78239         Clarify fpurge's effect on the file position.
78240         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78241         * tests/test-fpurge.c (main): Make a second pass for checking the file
78242         position.
78244 2009-08-16  Bruno Haible  <bruno@clisp.org>
78246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78247         declaration of fpurge is missing.
78248         * tests/test-fpurge.c (main): Check that the file has not more contents
78249         than expected. Close the file before removing it.
78251 2009-08-15  Eric Blake  <ebb9@byu.net>
78253         fpurge: don't wrap working cygwin implementation
78254         * lib/fpurge.c (fpurge): Fix comment typo.
78255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78256         1.7 to avoid replacement.
78257         * tests/test-fpurge.c (main): Enhance test.
78259 2009-08-15  Eric Blake  <ebb9@byu.net>
78260         and Jim Meyering  <meyering@redhat.com>
78262         test-update-copyright: skip if perl is insufficient
78263         * tests/test-update-copyright.sh: Failure to run maintainer tool
78264         should not cause testsuite failure on cygwin 1.5.
78266 2009-08-14  Eric Blake  <ebb9@byu.net>
78268         doc: mention more functions added in cygwin 1.7.0
78269         * doc/posix-headers/limits.texi (limits.h): Update for recent
78270         cygwin additions.
78271         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78272         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78273         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78274         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78275         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78277 2009-08-14  Eric Blake  <ebb9@byu.net>
78279         maint.mk: simplify update-copyright rule
78280         * top/maint.mk (update-copyright-local): Delete, and document how
78281         to do it in cfg.mk instead.
78282         (update-copyright-exclude-regexp): Delete, and document how to do
78283         it in .x-update-copyright instead.
78284         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78285         exclude ChangeLog.
78287 2009-08-14  Bruno Haible  <bruno@clisp.org>
78289         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78291 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78293         maint.mk: support update-copyright-env
78294         * top/maint.mk (update-copyright-env): Define place-holder.
78295         (update-copyright): Expand $(update-copyright-env) before
78296         invoking update-copyright.
78298 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78300         update-copyright: implement forced reformatting
78301         * build-aux/update-copyright: Implement and document
78302         UPDATE_COPYRIGHT_FORCE.
78303         * tests/test-update-copyright.sh: Test it.
78305 2009-08-14  Eric Blake  <ebb9@byu.net>
78306         and Bruno Haible  <bruno@clisp.org>
78308         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78309         * tests/test-locale.c: Revert previous patch related to NULL.
78310         * tests/test-stdio.c: Likewise.
78311         * tests/test-stdlib.c: Likewise.
78312         * tests/test-string.c: Likewise.
78313         * tests/test-unistd.c: Likewise.
78314         * modules/time-tests (Depends-on): Add verify.
78315         * modules/wchar-tests (Depends-on): Likewise.
78316         * tests/test-time.c: Test for NULL compliance.
78317         * tests/test-wchar.c: Likewise.
78318         * modules/locale (Depends-on): Add stddef.
78319         * modules/stdio (Depends-on): Likewise.
78320         * modules/stdlib (Depends-on): Likewise.
78321         * modules/string (Depends-on): Likewise.
78322         * modules/time (Depends-on): Likewise.
78323         * modules/unistd (Depends-on): Likewise.
78324         * modules/wchar (Depends-on): Likewise.
78325         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78326         * lib/stdlib.in.h (includes): Likewise.
78327         * lib/string.in.h (includes): Likewise.
78328         * lib/time.in.h (includes): Likewise.
78329         * lib/unistd.in.h (includes): Likewise.
78330         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78331         replaced.
78332         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78333         * m4/stddef_h.m4: New file.
78334         * modules/stddef: Likewise.
78335         * lib/stddef.in.h: Likewise.
78336         * modules/stddef-tests: Likewise.
78337         * tests/test-stddef.c: Likewise.
78338         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78339         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78340         * doc/posix-headers/locale.texi (locale.h): Likewise.
78341         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78342         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78343         * doc/posix-headers/string.texi (string.h): Likewise.
78344         * doc/posix-headers/time.texi (time.h): Likewise.
78345         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78346         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78348 2009-08-14  Eric Blake  <ebb9@byu.net>
78350         doc: improve git diff of texinfo files
78351         * .gitattributes: Add rule for *.texi files, with hint on how to
78352         use it.
78353         Copied from m4, and based on a report by Bruno Haible.
78355 2009-08-14  Bruno Haible  <bruno@clisp.org>
78357         Disable multithread support by default on Cygwin 1.5.x for real.
78358         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78360 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78362         update-copyright: much ado about intervals
78363         * build-aux/update-copyright: Implement and document
78364         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78365         of copyright year intervals.
78366         Also, document UPDATE_COPYRIGHT_YEAR.
78367         * tests/test-update-copyright.sh: Test it.
78369         update-copyright: convert 2-digit to 4-digit years
78370         * build-aux/update-copyright: Implement and document.
78371         * tests/test-update-copyright.sh: Update.
78373 2009-08-14  Jim Meyering  <meyering@redhat.com>
78375         test-exclude: avoid coreutils "make check" failure
78376         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78377         just as in test-argmatch.c.
78379 2009-08-13  Eric Blake  <ebb9@byu.net>
78381         test-dup2: fix bad assumption
78382         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78383         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78385         test-version-etc: fix CRLF portability issue
78386         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78387         recognize \r.
78388         * tests/test-argp-version-etc-1.sh: Likewise.
78390         getopt: update client modules
78391         * modules/argp (Depends-on): Use getopt-gnu.
78392         * modules/git-merge-changelog (Depends-on): Likewise.
78393         * modules/long-options (Depends-on): Likewise.
78394         * modules/xstrtol (Depends-on): Likewise.
78396 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78398         * tests/test-version-etc.sh: Don't fail on different
78399         project/version.  Don't fail on CRLF differences.  Rewrite to use
78400         multiple -e instead of multiple sed forks, suggested by Eric Blake
78401         <ebb9@byu.net>.
78402         * tests/test-argp-version-etc-1.sh: Likewise.
78404 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78406         * tests/test-version-etc.sh: Don't fail on different
78407         project/version.
78409 2009-08-12  Bruno Haible  <bruno@clisp.org>
78411         Tests for modules 'getopt-posix', 'getopt-gnu'.
78412         * modules/getopt-posix-tests: New file.
78413         * tests/test-getopt.c: New file.
78414         * tests/test-getopt.h: New file.
78415         * tests/test-getopt_long.h: New file.
78417         New modules 'getopt-posix', 'getopt-gnu'.
78418         * modules/getopt-gnu: New file, renamed from modules/getopt.
78419         * modules/getopt-posix: New file.
78420         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
78421         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
78422         (gl_GETOPT): Remove macro.
78423         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
78424         Disable the test against BSD systems that declare optreset. Test
78425         against mingw bug. Test against lack of support of optional arguments
78426         on many platforms.
78427         * doc/glibc-headers/getopt.texi: Update module name and list of
78428         relevant platforms.
78429         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
78430         'getopt-gnu' and more portability problems.
78431         * NEWS: Mention the changes.
78433 2009-08-12  Bruno Haible  <bruno@clisp.org>
78435         Ensure that optarg etc. get declared by <unistd.h>.
78436         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
78437         AC_USE_SYSTEM_EXTENSIONS.
78438         * modules/getopt (Depends-on): Add 'extensions'.
78440 2009-08-12  Bruno Haible  <bruno@clisp.org>
78442         Avoid test link errors.
78443         * modules/pipe-filter-ii-tests (Makefile.am): Define
78444         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78445         * modules/pipe-filter-gi-tests (Makefile.am): Define
78446         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78449 2009-08-12  Bruno Haible  <bruno@clisp.org>
78451         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78452         gl_GETOPT_SUBSTITUTE before.
78453         (gl_GETOPT): Use it.
78454         * m4/argp.m4 (gl_ARGP): Update.
78455         Reported by Sergey Poznyakoff.
78457         * m4/getopt.m4: Reorder macros.
78458         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78459         (gl_GETOPT_SUBSTITUTE): Remove macro.
78461 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78463         Minor improvement in gitlog-to-changelog
78465         * build-aux/gitlog-to-changelog: New option `--format' makes
78466         output format string configurable.
78468 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78470         Optimize exclude: use hash tables for non-wildcard patterns.
78472         * lib/exclude.c: Include hash.h and mbuiter.h
78473         (struct exclude_pattern, exclude_segment): New data types.
78474         (struct exclude): Rewrite.
78475         (fnmatch_pattern_has_wildcards): New function.
78476         (new_exclude_segment, free_exclude_segment): New functions.
78477         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78478         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78479         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78480         * modules/exclude: Depend on hash and mbuiter.
78482         * modules/exclude-tests: New file.
78483         * tests/test-exclude.c: New file.
78484         * tests/test-exclude1.sh: New file.
78485         * tests/test-exclude2.sh: New file.
78486         * tests/test-exclude3.sh: New file.
78487         * tests/test-exclude4.sh: New file.
78488         * tests/test-exclude5.sh: New file.
78489         * tests/test-exclude6.sh: New file.
78490         * tests/test-exclude7.sh: New file.
78492 2009-08-12  Bruno Haible  <bruno@clisp.org>
78494         Ensure that getopt() gets declared by <unistd.h>.
78495         * lib/unistd.in.h: Conditionally include getopt.h.
78496         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78497         Set GNULIB_UNISTD_H_GETOPT.
78498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78499         GNULIB_UNISTD_H_GETOPT.
78500         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78502 2009-08-12  Bruno Haible  <bruno@clisp.org>
78504         Clarify logic.
78505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78506         gl_replace_getopt instead of GETOPT_H.
78508 2009-08-12  Bruno Haible  <bruno@clisp.org>
78510         * m4/getopt.m4: Add comments.
78512 2009-08-12  Bruno Haible  <bruno@clisp.org>
78514         Disable multithread support by default on Cygwin 1.5.x.
78515         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78516         set gl_use_threads=no if not specified otherwise.
78518 2009-08-11  Bruno Haible  <bruno@clisp.org>
78520         Avoid compilation error on NetBSD 5.0.
78521         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78522         * tests/test-stdio.c: Likewise.
78523         * tests/test-stdlib.c: Likewise.
78524         * tests/test-string.c: Likewise.
78525         * tests/test-unistd.c: Likewise.
78526         Reported by Greg Troxel <gdt@ir.bbn.com>
78527         at <https://savannah.gnu.org/support/?106973>.
78529 2009-08-11  Bruno Haible  <bruno@clisp.org>
78531         * modules/dup2-tests (Depends-on): Remove close.
78533         Undo 2009-07-19 commit.
78534         * modules/acl-tests (Depends-on): Remove close.
78535         * modules/binary-io-tests (Depends-on): Likewise.
78536         * modules/closein-tests (Depends-on): Likewise.
78537         * modules/flock-tests (Depends-on): Likewise.
78538         * modules/fsync-tests (Depends-on): Likewise.
78539         * modules/lseek-tests (Depends-on): Likewise.
78540         * modules/pipe-tests (Depends-on): Likewise.
78541         * modules/posix_spawn-tests (Depends-on): Likewise.
78542         * modules/posix_spawnp-tests (Depends-on): Likewise.
78543         * modules/stat-time-tests (Depends-on): Likewise.
78544         * modules/yesno-tests (Depends-on): Likewise.
78546 2009-08-10  Bruno Haible  <bruno@clisp.org>
78548         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78550 2009-08-10  Bruno Haible  <bruno@clisp.org>
78552         Fix a gcc warning.
78553         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78555 2009-08-10  Bruno Haible  <bruno@clisp.org>
78557         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78558         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78559         not only the first time.
78560         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78561         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78562         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78563         is 1, not only the first time.
78565 2009-08-10  Bruno Haible  <bruno@clisp.org>
78567         Make it possible to use module 'gethostname' without module 'close'.
78568         * lib/unistd.in.h (close): Evoke a link error only if
78569         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78571         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78572         * modules/unistd (Makefile.am): Substitute
78573         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78574         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78575         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78576         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78577         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78578         * modules/sys_ioctl (Makefile.am): Substitute
78579         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78580         * modules/socket (configure.ac): On native Windows, set
78581         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78582         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78583         Reported by Sam Steingold <sds@gnu.org>.
78585 2009-08-10  Bruno Haible  <bruno@clisp.org>
78587         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78588         * modules/ioctl (configure.ac): Likewise.
78590 2009-08-10  Bruno Haible  <bruno@clisp.org>
78592         Avoid collision between gnulib wrapper and libintl wrapper.
78593         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78594         already defined in intl/printf.c.
78595         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78596         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78598 2009-08-09  Bruno Haible  <bruno@clisp.org>
78600         Make <sys/select.h> really self-contained, also on Solaris 10.
78601         * lib/sys_select.in.h: Include <string.h>.
78602         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78603         Solaris 10 problem.
78604         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78605         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78606         Reported by Jim Meyering.
78608 2009-08-09  Bruno Haible  <bruno@clisp.org>
78610         Avoid warnings from 'aclocal' that are due to a use of macro name
78611         AM_XGETTEXT_OPTION that is not defined in automake.
78612         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78613         automake.
78614         * modules/error (configure.ac): Likewise.
78615         * modules/propername (configure.ac): Likewise.
78616         * modules/vasprintf (configure.ac): Likewise.
78617         * modules/verror (configure.ac): Likewise.
78618         * modules/xprintf (configure.ac): Likewise.
78619         * modules/xvasprintf (configure.ac): Likewise.
78621 2009-08-08  Bruno Haible  <bruno@clisp.org>
78623         Avoid compilation error in C++ mode.
78624         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78625         Reported by Sam Steingold <sds@gnu.org>.
78627 2009-08-08  Bruno Haible  <bruno@clisp.org>
78629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78630         for the various Unix platforms.
78631         * doc/posix-headers/limits.texi: Update platforms list regarding
78632         HOST_NAME_MAX.
78633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78635 2009-08-07  Jim Meyering  <meyering@redhat.com>
78637         selinux-at: fix typo in a comment
78638         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78639         Spotted by Paolo Bonzini.
78641         selinux-at: remove redundant m4 code, add documentation
78642         * modules/selinux-at (configure.ac): Remove redundant code.
78643         LIB_SELINUX is already set via the dependent module, selinux-h.
78644         (Include): Add quotes around selinux-at.h.
78645         * lib/selinux-at.h: Add documentation.
78646         Reported by Bruno Haible in
78647         http://marc.info/?l=gnulib-bug&m=124958988300749
78649 2009-08-07  Bruno Haible  <bruno@clisp.org>
78651         Avoid link error on MacOS X 10.3 and 10.4.
78652         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78653         on non-ELF systems.
78654         * lib/argp-pv.c (argp_program_version): Likewise.
78655         Reported by Simon Josefsson.
78657 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78659         * tests/test-version-etc.sh: Use $EXEEXT.
78661 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78663         update-copyright: update documentation to point to maint.mk
78664         * build-aux/update-copyright: Here.
78666 2009-08-06  Jim Meyering  <meyering@redhat.com>
78668         maint.mk: support update-copyright-local
78669         * top/maint.mk (update-copyright-local): Define place-holder.
78670         (update-copyright): Depend on $(update-copyright-local).
78672 2009-08-06  Jim Meyering  <meyering@redhat.com>
78674         selinux-at: new module
78675         Initially written for coreutils, this module will soon be
78676         used by findutils, too.
78677         * MODULES.html.sh [Misc]: Add selinux-at.
78678         * lib/selinux-at.h: New file, from coreutils.
78679         * lib/selinux-at.c: Likewise.
78680         * modules/selinux-at: Likewise.
78681         (License): Change from LGPL to GPL, since it depends
78682         on the GPL'd openat module.
78684         doc: update README
78685         * README: Remove references to cogito.
78686         Remove cvs-repo-updating instructions from 2007.
78687         Don't imply that CVS is better if you have limited disk space.
78689 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78691         update-copyright: support C-style comments
78692         * build-aux/update-copyright: Implement and document.
78693         * tests/test-update-copyright.sh: Test.
78695 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78697         update-copyright: support omitted "(C)"
78698         * build-aux/update-copyright: Implement and document.  Also,
78699         allow variable whitespace before "(C)".
78700         * tests/test-update-copyright.sh: Test.
78702 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78704         update-copyright: don't trip on non-FSF copyright statements
78705         * build-aux/update-copyright: Fix so that the first correctly
78706         formatted FSF copyright statement is recognized no matter what
78707         appears before it.  Update documentation.
78708         * tests/test-update-copyright.sh: Test that.
78710 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78712         update-copyright: clean up code a little
78713         * build-aux/update-copyright: Append "_re" to the name of any
78714         variable holding a regular expression.
78715         Replace "old" and "new" with "stmt" in variable names.
78716         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78717         handled correctly.
78718         Format code more consistently.
78720 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78722         update-copyright-tests: improve portability
78723         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78724         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78726 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78728         update-copyright: support @copyright{} and &copy;
78729         * build-aux/update-copyright: Implement and document.
78730         * tests/test-update-copyright.sh: Test.
78732 2009-08-04  Jim Meyering  <meyering@redhat.com>
78734         update-copyright-tests: correctly test EOL=\r\n handling
78735         * tests/test-update-copyright.sh: Put \r at the end of some lines
78736         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78738         maint.mk: make update-copyright exclusion list more configurable
78739         * top/maint.mk (update-copyright): Default to excluding COPYING,
78740         but allow an override, in case someone does want to update that file.
78742         maint.mk: don't update copyright date in COPYING
78743         * top/maint.mk (update-copyright): Exclude COPYING.
78745         maint.mk: add a copyright-updating rule
78746         * top/maint.mk (update-copyright): New rule.
78747         Derived from coreutils/Makefile.am.
78749         update-copyright: rename some variables
78750         * build-aux/update-copyright: Rename a few variables for clarity.
78751         Tweak syntax.  List Joel E. Denny as coauthor.
78753 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78755         update-copyright: fix bug for 2-digit last year and add tests
78756         * build-aux/update-copyright: Fix bug.
78757         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78758         specified.
78759         * modules/update-copyright-tests: New
78760         * tests/test-update-copyright.sh: New.
78762 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78764         update-copyright: handle leading tabs in line prefix
78765         * build-aux/update-copyright: Count leading tabs as 8 spaces
78766         when computing margin.  This helps with the formatting of
78767         ChangeLogs, for example.
78768         Fix documentation a little.
78770 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78772         update-copyright: support EOL=\r\n
78773         * build-aux/update-copyright: Implement that.
78775 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78777         update-copyright: automatically format copyright statements
78778         * build-aux/update-copyright: Implement that.
78779         Also, be a little more predictable and safer by always failing
78780         when the full copyright format is not perfectly recognized as an
78781         unbroken whole.  Discussed at
78782         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78783         Rewrite documentation.
78785 2009-08-03  Bruno Haible  <bruno@clisp.org>
78787         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78789 2009-08-02  Bruno Haible  <bruno@clisp.org>
78791         Tests for module 'uname'.
78792         * modules/uname-tests: New file.
78793         * tests/test-uname.c: New file.
78795         New module 'uname'.
78796         * lib/uname.c: New file.
78797         * m4/uname.m4: New file.
78798         * modules/uname: New file.
78799         * doc/posix-functions/uname.texi: Mention the new module.
78801 2009-08-02  Bruno Haible  <bruno@clisp.org>
78803         Tests for module 'sys_utsname'.
78804         * modules/sys_utsname-tests: New file.
78805         * tests/test-sys_utsname.c: New file.
78807         New module 'sys_utsname'.
78808         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78809         * m4/sys_utsname_h.m4: New file.
78810         * modules/sys_utsname: New file.
78811         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78813 2009-08-02  Bruno Haible  <bruno@clisp.org>
78815         Implicitly initialize the sockets library.
78816         * lib/gethostname.c: Include sockets.h.
78817         (rpl_gethostname): Invoke gl_sockets_startup.
78818         * lib/socket.c: Include sockets.h.
78819         (rpl_socket): Invoke gl_sockets_startup.
78820         * modules/gethostname (Depends-on): Add sockets.
78821         * modules/socket (Depends-on): Likewise.
78822         * tests/test-poll.c: Don't include sockets.h.
78823         (main): Don't invoke gl_sockets_startup.
78824         * tests/test-select.c: Don't include sockets.h.
78825         (main): Don't invoke gl_sockets_startup.
78827 2009-08-02  Bruno Haible  <bruno@clisp.org>
78829         Allow multiple calls to gl_sockets_startup.
78830         * lib/sockets.c (initialized_sockets_version): New variable.
78831         (gl_sockets_startup): Do nothing if already called for this or a higher
78832         version.
78833         (gl_sockets_cleanup): Reset initialized_sockets_version.
78835 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78837         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78838         different project/version.
78840 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78841             Bruno Haible  <bruno@clisp.org>
78843         Tests for module 'pipe-filter-gi'.
78844         * modules/pipe-filter-gi-tests: New file.
78845         * tests/test-pipe-filter-gi1.sh: New file.
78846         * tests/test-pipe-filter-gi1.c: New file.
78847         * tests/test-pipe-filter-gi2.sh: New file.
78848         * tests/test-pipe-filter-gi2-main.c: New file.
78849         * tests/test-pipe-filter-gi2-child.c: New file.
78851         New module 'pipe-filter-gi'.
78852         * lib/pipe-filter-gi.c: New file.
78853         * modules/pipe-filter-gi: New file.
78855 2009-08-02  Bruno Haible  <bruno@clisp.org>
78856             Paolo Bonzini  <bonzini@gnu.org>
78858         Tests for module 'pipe-filter-ii'.
78859         * modules/pipe-filter-ii-tests: New file.
78860         * tests/test-pipe-filter-ii1.sh: New file.
78861         * tests/test-pipe-filter-ii1.c: New file.
78862         * tests/test-pipe-filter-ii2.sh: New file.
78863         * tests/test-pipe-filter-ii2-main.c: New file.
78864         * tests/test-pipe-filter-ii2-child.c: New file.
78866         New module 'pipe-filter-ii'.
78867         * lib/pipe-filter.h: New file.
78868         * lib/pipe-filter-ii.c: New file.
78869         * lib/pipe-filter-aux.h: New file.
78870         * modules/pipe-filter-ii: New file.
78872 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78874         * lib/gc-libgcrypt.c: Change copyright to FSF.
78875         * lib/gc-gnulib.c: Likewise.
78877 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78879         * lib/gethostname.c: Include limits.h.
78881 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78882             Bruno Haible  <bruno@clisp.org>
78884         Ensure HOST_NAME_MAX as part of the gethostname module.
78885         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78886         define also HOST_NAME_MAX.
78887         * tests/test-gethostname.c: Include <limits.h>.
78888         (main): Check also HOST_NAME_MAX.
78889         * doc/posix-headers/limits.texi: Document the mingw problem.
78891 2009-08-02  Bruno Haible  <bruno@clisp.org>
78893         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78894         Add comments.
78896 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78898         * lib/gethostname.c: Add Windows wrapper.
78899         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78900         * modules/gethostname: Depend on sys_socket & errno, for also
78901         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78902         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78904 2009-07-31  Jim Meyering  <meyering@redhat.com>
78906         getloadavg: fix symbol name in comment
78907         * lib/getloadavg.c: Correct a typo I introduced when adding
78908         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78909         Matt Kraai spotted the problem.
78911 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78913         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78914         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78915         code also if ! defined N_NAME_POINTER.
78916         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78917         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78918         but the n_name member is a 12-byte array.
78920 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78922         update-copyright: generalize comment handling
78923         * build-aux/update-copyright: Handle copyright statements
78924         within more comment styles.
78925         Document usage.
78926         Report any file with an external copyright holder or parse failure.
78928 2009-07-29  Jim Meyering  <meyering@redhat.com>
78930         mktime: correct setting of REPLACE_MKTIME
78931         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78933         update-copyright: new module
78934         * modules/update-copyright: New file.
78935         * build-aux/update-copyright: New file.
78936         * MODULES.html.sh (maint+release support): Add update-copyright.
78938 2009-07-27  Bruno Haible  <bruno@clisp.org>
78940         Fix compilation error when <ctime> is used and mktime is replaced.
78941         * lib/time.in.h (mktime): New declaration.
78942         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78943         REPLACE_MKTIME instead of defining mktime in config.h.
78944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78945         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78946         Reported by Ross McFarland <rwmcfa1@neces.com>.
78948 2009-07-27  Bruno Haible  <bruno@clisp.org>
78950         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78951         Reported by Matt Kraai <mkraai@beckman.com>.
78953 2009-07-25  Jim Meyering  <meyering@redhat.com>
78955         maint.mk: avoid warnings about missing files
78956         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78957         diagnostic when .prev-version does not exist.
78958         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78959         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78960         nonexistent cfg.mk.
78961         Suggestions from Simon Josefsson.
78963 2009-07-25  Bruno Haible  <bruno@clisp.org>
78965         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78966         defined as macros. Needed on QNX 6.4.1.
78967         Reported by Matt Kraai <mkraai@beckman.com>.
78969 2009-07-23  Jim Meyering  <meyering@redhat.com>
78971         maint.mk: invoke "make dist" with a working value of XZ_OPT
78972         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78974 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78976         Make fseeko.c compile on QNX.
78977         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78979 2009-07-22  Peter Simons  <simons@cryp.to>
78981         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78982         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78983         * lib/md4.h: Likewise.
78984         * lib/md5.h: Likewise.
78985         * lib/sha1.h: Likewise.
78986         * lib/sha256.h: Likewise.
78987         * lib/sha512.h: Likewise.
78989         tests-sha1: don't assign literal string to 'char *' variable
78990         * tests/test-sha1.c (main): Declare locals with "const" to match
78991         attributes of the right hand side.
78993 2009-07-21  Eric Blake  <ebb9@byu.net>
78995         dup2: fix more mingw problems
78996         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78997         fd to itself.
78998         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78999         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79000         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79001         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79002         care of mingw bugs.
79004 2009-07-21  Jim Meyering  <meyering@redhat.com>
79006         vc-list-files: avoid failure when /bin/sh is dash
79007         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79008         On some Debian based systems, /bin/sh is a symlink to dash, and running
79009         this command would omit the "/" following each 'tests' prefix:
79010           dash -x build-aux/vc-list-files -C . tests
79011         That is because bash and dash work differently:
79012           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79013           bash ok
79014           dash odd
79016 2009-07-21  Eric Blake  <ebb9@byu.net>
79018         dup2-tests: test previous patch
79019         * modules/dup2-tests: New file.
79020         * tests/test-dup2.c: Likewise.
79021         * tests/test-open.c (main): Avoid unspecified behavior.
79022         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79023         test.
79025         dup2: work around mingw and cygwin 1.5 bug
79026         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79028         * modules/unistd (Makefile.am): Substitute it.
79029         * lib/unistd.in.h (dup2): Declare the replacement.
79030         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79031         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79032         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79033         * modules/execute (Depends-on): Add dup2.
79034         * modules/fseterr (Depends-on): Likewise.
79035         * modules/pipe (Depends-on): Likewise.
79036         * modules/posix_spawn-internal (Depends-on): Likewise.
79038 2009-07-21  Bruno Haible  <bruno@clisp.org>
79040         * modules/.gitattributes: New file.
79042 2009-07-20  Bruno Haible  <bruno@clisp.org>
79044         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79045         (main): Use it.
79047 2009-07-20  Eric Blake  <ebb9@byu.net>
79049         test-pipe: make a bit more robust.
79050         * tests/test-pipe.c (myerr): Allow error messages regardless of
79051         what we do to stderr.
79052         (test_pipe): Rearrange to avoid deadlock.
79053         (child_main): Try a larger read, to ensure we avoided deadlock.
79054         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79055         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79056         if misused.
79058 2009-07-19  Jim Meyering  <meyering@redhat.com>
79060         fts: avoid false-positive cycle-detection
79061         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79062         for each new command line argument.
79064 2009-07-19  Bruno Haible  <bruno@clisp.org>
79066         Fix build error on mingw with the modules sys_select and unistd.
79067         * modules/acl-tests (Depends-on): Add close.
79068         * modules/binary-io-tests (Depends-on): Likewise.
79069         * modules/closein-tests (Depends-on): Likewise.
79070         * modules/flock-tests (Depends-on): Likewise.
79071         * modules/fsync-tests (Depends-on): Likewise.
79072         * modules/lseek-tests (Depends-on): Likewise.
79073         * modules/pipe-tests (Depends-on): Likewise.
79074         * modules/posix_spawn-tests (Depends-on): Likewise.
79075         * modules/posix_spawnp-tests (Depends-on): Likewise.
79076         * modules/stat-time-tests (Depends-on): Likewise.
79077         * modules/yesno-tests (Depends-on): Likewise.
79079 2009-07-19  Bruno Haible  <bruno@clisp.org>
79081         Unify conditionals.
79082         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79083         macros, not at the compiler macros.
79084         * lib/pipe.c: Likewise.
79085         * lib/execute.c: Likewise.
79086         * lib/spawni.c: Likewise.
79088 2009-07-19  Bruno Haible  <bruno@clisp.org>
79090         Fix handling of closed stdin/stdout/stderr on mingw.
79091         * lib/w32spawn.h: Include unistd.h.
79092         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79093         file descriptor with O_NOINHERIT flag.
79094         (fd_safer_noinherit): New function, based on fd-safer.c.
79095         (dup_safer_noinherit): New function, based on dup-safer.c.
79096         (undup_safer_noinherit): New function.
79097         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79098         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79099         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79100         instead of fd_safer.
79101         * tests/test-pipe.c: Include <windows.h>.
79102         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79103         result.
79105         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79106         from main.
79107         (test_pipe): Pass an extra argument for disambiguation.
79108         (main): Invoke parent_main or child_main.
79110         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79111         consistently.
79113 2009-07-18  Eric Blake  <ebb9@byu.net>
79115         test-pipe: fix mingw build
79116         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79118 2009-07-18  Bruno Haible  <bruno@clisp.org>
79120         * modules/pipe-tests (Makefile.am): Fix typo.
79122 2009-07-18  Eric Blake  <ebb9@byu.net>
79124         error: fix mingw build
79125         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79126         Reported by Bruno Haible.
79128         error: avoid undefined use of stdout
79129         * lib/error.c (error, error_at_line): Check that fd 1 is open
79130         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79131         is handling faults and the close_stdout module wants to report the
79132         detection of closed stdout as an error.
79134 2009-07-17  Eric Blake  <ebb9@byu.net>
79136         pipe: be robust in face of closed fds
79137         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79138         should cause child to misbehave.
79139         * modules/pipe-tests: New module.
79140         * tests/test-pipe.c: New file.
79141         * tests/test-pipe.sh: New file.
79142         Reported by Akim Demaille.
79144 2009-07-14  Bruno Haible  <bruno@clisp.org>
79146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79147         Reported by anonymous kc.
79149 2009-07-07  Jim Meyering  <meyering@redhat.com>
79151         maint.mk: don't look for translatable strings in *.m4 or *.mk
79152         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79153         when searching for translatable strings.
79155 2009-07-05  Jim Meyering  <meyering@redhat.com>
79157         remove superfluous parentheses in STREQ definition
79158         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79159         * lib/getugroups.c (STREQ): Likewise.
79160         * lib/fnmatch.c (STREQ): Likewise.
79161         Spotted by Bruno Haible.
79163 2009-07-04  Jim Meyering  <meyering@redhat.com>
79165         argv-iter: new module
79166         * MODULES.html.sh: Add argv-iter.
79167         * lib/argv-iter.c, lib/argv-iter.h: New files.
79168         * modules/argv-iter: New file.
79169         * modules/argv-iter-tests: New file.
79170         * tests/test-argv-iter.c: Test it.
79172 2009-07-04  Bruno Haible  <bruno@clisp.org>
79174         Fix assertion.
79175         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79176         contains more exact copies of a given entry than file2, leave the extra
79177         copies unpaired rather than aborting.
79178         Reported by Eric Blake.
79180 2009-07-02  Bruno Haible  <bruno@clisp.org>
79182         Speedup git-merge-changelog for git cherry-pick.
79183         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79184         (entries_mapping_get): New function, extracted from compute_mapping.
79185         (entries_mapping_reverse_get): New function.
79186         (compute_mapping): Add a 'full' argument. Return the result in a
79187         'struct entries_mapping'.
79188         (main): Update. Access the mappings through entries_mapping_get.
79189         Reported by Eric Blake.
79191 2009-07-02  Bruno Haible  <bruno@clisp.org>
79193         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79194         best_i.
79196 2009-07-02  Bruno Haible  <bruno@clisp.org>
79198         Speed up approximate search for matching ChangeLog entries.
79199         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79200         argument. Call fstrcmp_bounded instead of fstrcmp.
79201         (compute_mapping, try_split_merged_entry, main): Update callers.
79203 2009-07-02  Bruno Haible  <bruno@clisp.org>
79205         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79207 2009-06-30  Bruno Haible  <bruno@clisp.org>
79209         Reduce the number of uc_is_cased calls.
79210         * lib/unicase.h (casing_suffix_context_t): Add
79211         'first_char_except_ignorable' field.
79212         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79213         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79214         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79215         Update initializer.
79216         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79217         case-ignorable characters.
79218         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79219         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79220         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79221         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79222         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79224 2009-06-30  Bruno Haible  <bruno@clisp.org>
79226         Tests for module 'unicase/ignorable'.
79227         * modules/unicase/ignorable-tests: New file.
79228         * tests/unicase/test-ignorable.c: New file, generated by
79229         gen-uni-tables.
79231         Tests for module 'unicase/cased'.
79232         * modules/unicase/cased-tests: New file.
79233         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79234         * tests/unicase/test-predicate-part1.h: New file, derived from
79235         tests/unictype/test-predicate-part1.h.
79236         * tests/unicase/test-predicate-part2.h: New file, same as
79237         tests/unictype/test-predicate-part2.h.
79239         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79240         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79241         (output_casing_properties): New function.
79242         (main): Call it.
79243         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79244         * lib/unicase/cased.c: Include unictype/bitmap.h.
79245         (uc_is_cased): Define through a bitmap lookup.
79246         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79247         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79248         (uc_is_case_ignorable): Define through a bitmap lookup.
79249         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79250         lib/unictype/bitmap.h.
79251         (Depends-on): Add inline. Clean up.
79252         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79253         lib/unictype/bitmap.h.
79254         (Depends-on): Add inline. Clean up.
79255         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79256         recognition.
79257         * tests/unicase/test-u16-tolower.c (main): Likewise.
79258         * tests/unicase/test-u32-tolower.c (main): Likewise.
79260 2009-06-30  Bruno Haible  <bruno@clisp.org>
79262         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79263         * lib/unicase/u16-casemap.c: Likewise.
79264         * lib/unicase/u32-casemap.c: Likewise.
79266 2009-06-29  Bruno Haible  <bruno@clisp.org>
79268         Define u32_casefold as a wrapper around u32_ct_casefold.
79269         * lib/unicase/u32-casefold.c: Update.
79270         * modules/unicase/u32-casefold (Depends-on): Add
79271         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79272         unicase/empty-suffix-context. Clean up.
79274         Define u16_casefold as a wrapper around u16_ct_casefold.
79275         * lib/unicase/u16-casefold.c: Update.
79276         * modules/unicase/u16-casefold (Depends-on): Add
79277         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79278         unicase/empty-suffix-context. Clean up.
79280         Define u8_casefold as a wrapper around u8_ct_casefold.
79281         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79282         * lib/unicase/u8-casefold.c: Update.
79283         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79284         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79286         Define u32_totitle as a wrapper around u32_ct_totitle.
79287         * lib/unicase/u32-totitle.c: Update.
79288         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79289         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79291         Define u16_totitle as a wrapper around u16_ct_totitle.
79292         * lib/unicase/u16-totitle.c: Update.
79293         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79294         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79296         Define u8_totitle as a wrapper around u8_ct_totitle.
79297         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79298         functions.
79299         (FUNC): Delegate to U_CT_TOTITLE.
79300         * lib/unicase/u8-totitle.c: Update.
79301         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79302         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79304         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79305         invocation.
79306         * modules/unicase/u32-tolower (Depends-on): Add
79307         unicase/empty-prefix-context, unicase/empty-suffix-context.
79309         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79310         invocation.
79311         * modules/unicase/u16-tolower (Depends-on): Add
79312         unicase/empty-prefix-context, unicase/empty-suffix-context.
79314         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79315         * modules/unicase/u8-tolower (Depends-on): Add
79316         unicase/empty-prefix-context, unicase/empty-suffix-context.
79318         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79319         invocation.
79320         * modules/unicase/u32-toupper (Depends-on): Add
79321         unicase/empty-prefix-context, unicase/empty-suffix-context.
79323         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79324         invocation.
79325         * modules/unicase/u16-toupper (Depends-on): Add
79326         unicase/empty-prefix-context, unicase/empty-suffix-context.
79328         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79329         * modules/unicase/u8-toupper (Depends-on): Add
79330         unicase/empty-prefix-context, unicase/empty-suffix-context.
79332         New module 'unicase/u32-ct-casefold'.
79333         * lib/unicase/u32-ct-casefold.c: New file.
79334         * modules/unicase/u32-ct-casefold: New file.
79336         New module 'unicase/u16-ct-casefold'.
79337         * lib/unicase/u16-ct-casefold.c: New file.
79338         * modules/unicase/u16-ct-casefold: New file.
79340         New module 'unicase/u8-ct-casefold'.
79341         * lib/unicase/u8-ct-casefold.c: New file.
79342         * lib/unicase/u-ct-casefold.h: New file, derived from
79343         lib/unicase/u-casefold.h.
79344         * modules/unicase/u8-ct-casefold: New file.
79346         New module 'unicase/u32-ct-totitle'.
79347         * lib/unicase/u32-ct-totitle.c: New file.
79348         * modules/unicase/u32-ct-totitle: New file.
79350         New module 'unicase/u16-ct-totitle'.
79351         * lib/unicase/u16-ct-totitle.c: New file.
79352         * modules/unicase/u16-ct-totitle: New file.
79354         New module 'unicase/u8-ct-totitle'.
79355         * lib/unicase/u8-ct-totitle.c: New file.
79356         * lib/unicase/u-ct-totitle.h: New file, derived from
79357         lib/unicase/u-totitle.h.
79358         * modules/unicase/u8-ct-totitle: New file.
79360         New module 'unicase/u32-ct-tolower'.
79361         * lib/unicase/u32-ct-tolower.c: New file.
79362         * modules/unicase/u32-ct-tolower: New file.
79364         New module 'unicase/u16-ct-tolower'.
79365         * lib/unicase/u16-ct-tolower.c: New file.
79366         * modules/unicase/u16-ct-tolower: New file.
79368         New module 'unicase/u8-ct-tolower'.
79369         * lib/unicase/u8-ct-tolower.c: New file.
79370         * modules/unicase/u8-ct-tolower: New file.
79372         New module 'unicase/u32-ct-toupper'.
79373         * lib/unicase/u32-ct-toupper.c: New file.
79374         * modules/unicase/u32-ct-toupper: New file.
79376         New module 'unicase/u16-ct-toupper'.
79377         * lib/unicase/u16-ct-toupper.c: New file.
79378         * modules/unicase/u16-ct-toupper: New file.
79380         New module 'unicase/u8-ct-toupper'.
79381         * lib/unicase/u8-ct-toupper.c: New file.
79382         * modules/unicase/u8-ct-toupper: New file.
79384         Add context arguments to u*_casemap functions.
79385         * lib/unicase/unicasemap.h: Include unicase.h.
79386         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79387         suffix_context arguments.
79388         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79389         functions.
79390         (FUNC): Add prefix_context and suffix_context arguments. Use
79391         uc_is_cased and uc_is_case_ignorable.
79392         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79393         * lib/unicase/u16-casemap.c: Likewise.
79394         * lib/unicase/u32-casemap.c: Likewise.
79395         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79396         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79397         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79398         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79399         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79400         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79402         New module 'unicase/u32-suffix-context'.
79403         * lib/unicase/u32-suffix-context.c: New file.
79404         * modules/unicase/u32-suffix-context: New file.
79406         New module 'unicase/u16-suffix-context'.
79407         * lib/unicase/u16-suffix-context.c: New file.
79408         * modules/unicase/u16-suffix-context: New file.
79410         New module 'unicase/u8-suffix-context'.
79411         * lib/unicase/u8-suffix-context.c: New file.
79412         * lib/unicase/u-suffix-context.h: New file.
79413         * modules/unicase/u8-suffix-context: New file.
79415         New module 'unicase/empty-suffix-context'.
79416         * lib/unicase/empty-suffix-context.c: New file.
79417         * modules/unicase/empty-suffix-context: New file.
79419         New module 'unicase/u32-prefix-context'.
79420         * lib/unicase/u32-prefix-context.c: New file.
79421         * modules/unicase/u32-prefix-context: New file.
79423         New module 'unicase/u16-prefix-context'.
79424         * lib/unicase/u16-prefix-context.c: New file.
79425         * modules/unicase/u16-prefix-context: New file.
79427         New module 'unicase/u8-prefix-context'.
79428         * lib/unicase/u8-prefix-context.c: New file.
79429         * lib/unicase/u-prefix-context.h: New file.
79430         * lib/unicase/context.h: New file.
79431         * modules/unicase/u8-prefix-context: New file.
79433         New module 'unicase/empty-prefix-context'.
79434         * lib/unicase/empty-prefix-context.c: New file.
79435         * modules/unicase/empty-prefix-context: New file.
79437         New module 'unicase/ignorable'.
79438         * lib/unicase/ignorable.c: New file.
79439         * modules/unicase/ignorable: New file.
79441         New module 'unicase/cased'.
79442         * lib/unicase/caseprop.h: New file.
79443         * lib/unicase/cased.c: New file.
79444         * modules/unicase/cased: New file.
79446         New functions for case mapping of substrings.
79447         * lib/unicase.h (casing_prefix_context_t): New type.
79448         (unicase_empty_prefix_context): New variable.
79449         (u8_casing_prefix_context, u16_casing_prefix_context,
79450         u32_casing_prefix_context, u8_casing_prefixes_context,
79451         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79452         declarations.
79453         (casing_suffix_context_t): New type.
79454         (unicase_empty_suffix_context): New variable.
79455         (u8_casing_suffix_context, u16_casing_suffix_context,
79456         u32_casing_suffix_context, u8_casing_suffixes_context,
79457         u16_casing_suffixes_context, u32_casing_suffixes_context,
79458         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79459         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79460         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79461         declarations.
79463 2009-06-28  Jim Meyering  <meyering@redhat.com>
79465         boostrap: indent only with spaces
79466         * build-aux/bootstrap: Indent only with spaces, never TABs.
79468         bootstrap: split long lines
79469         * build-aux/bootstrap: Keep line length < 80.
79471         bootstrap: sync from coreutils
79472         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79473         just as autoreconf does.  Verify a list of prerequisite
79474         package-name,version-number pairs if defined in bootstrap.conf.
79475         Refer to README-prereq, if prerequisites are not satisfied.
79477 2009-06-27  Eric Blake  <ebb9@byu.net>
79479         tests: add test for bogus NULL definition
79480         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79481         * tests/test-stdlib.c: Likewise.
79482         * tests/test-string.c: Likewise.
79483         * tests/test-locale.c: Likewise.
79484         * tests/test-unistd.c: Likewise.
79485         * modules/stdio-tests (Depends-on): Add verify.
79486         * modules/stdlib-tests (Depends-on): Likewise.
79487         * modules/string-tests (Depends-on): Likewise.
79488         * modules/locale-tests (Depends-on): Likewise.
79489         * modules/unistd-tests (Depends-on): Likewise.
79491 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79493         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79494         self-explaining comment.
79495         * m4/selinux-selinux-h: Update serial.
79496         (gl_LIBSELINUX): New macro, adding a warning for missing development
79497         packages to code extracted from...
79498         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79499         Add warning for missing development packages here, too.
79501 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79503         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79505 2009-06-25  Eric Blake  <ebb9@byu.net>
79507         version-etc: fix regression
79508         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79509         gcc.
79510         (version_etc): Use it, to catch bugs with trailing NULL.
79511         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79512         (version_etc_va): Fix logic bug.
79513         * modules/version-etc-tests: Add test.
79514         * tests/test-version-etc.c: New file.
79515         * tests/test-version-etc.sh: Likewise.
79517 2009-06-25  Sam Steingold  <sds@gnu.org>
79519         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79520         mbtowc declaration.
79522 2009-06-25  Eric Blake  <ebb9@byu.net>
79524         fpurge: migrate into <stdio.h>
79525         * lib/fpurge.h: Delete...
79526         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79527         * lib/fpurge.c (fpurge): Change declaring header.
79528         * modules/fpurge (Files): Drop deleted file.
79529         (Depends-on): Add stdio.
79530         (configure.ac): Set witness.
79531         * modules/stdio (Makefile.am): Support fpurge macros.
79532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79533         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79534         * lib/fflush.c: Update client.
79535         * tests/test-fpurge.c: Likewise.
79536         * NEWS: Mention the change.
79538 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79540         * lib/argp-version-etc.c (program_authors): Add const
79541         qualifier.
79542         * lib/version-etc.c: Fix typos in the comments.
79543         * modules/argp-version-etc: Depends on version-etc.
79545 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79547         argp-version-etc: new module.
79549         * lib/argp-version-etc.c: New file.
79550         * lib/argp-version-etc.h: New file.
79551         * modules/argp-version-etc: New file.
79552         * modules/argp-version-etc-tests: New file.
79553         * tests/test-argp-version-etc.c: New test.
79554         * tests/test-argp-version-etc-1.sh: New test.
79556 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79558         Provide additional interfaces and documentation for version-etc
79559         module.
79561         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79562         interfaces.
79563         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79564         prototypes.
79566 2009-06-24  Bruno Haible  <bruno@clisp.org>
79568         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79569         HAVE_LIB${NAME} macro.
79570         Reported by Sam Steingold <sds@gnu.org>.
79572 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79574         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79575         needed.
79577 2009-06-21  Bruno Haible  <bruno@clisp.org>
79579         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79580         work.
79581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79582         together with LIB${NAME}, LTLIB${NAME}.
79583         Reported by Sam Steingold <sds@gnu.org>.
79585 2009-06-20  Jim Meyering  <meyering@redhat.com>
79587         tests: make sc_require_test_exit_idiom more generic
79588         * top/maint.mk (Exit_witness_file): New overridable variable.
79589         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79590         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79592 2009-06-19  Jim Meyering  <meyering@redhat.com>
79594         hash: reverse order of src/dst parameters in an internal interface
79595         * lib/hash.c (transfer_entries): Reverse order of parameters to
79596         put DST before SRC.  Adjust callers.
79598         tests: test-hash: avoid wholesale duplication
79599         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79600         Instead, use a loop and add a single conditional.
79602         tests: test-hash: allow seed selection via a command line argument
79603         * tests/test-hash.c (get_seed): New function.
79604         (main): Use it.
79606 2009-06-19  Eric Blake  <ebb9@byu.net>
79608         hash: avoid memory leak on allocation failure
79609         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79610         failure.  Factor repeated algorithm...
79611         (transfer_entries): ...into new helper routine.
79612         (hash_delete): React to hash_rehash return value.
79614         hash: reduce memory pressure in hash_rehash no-op case
79615         * lib/hash.c (next_prime): Avoid overflow.
79616         (hash_initialize): Factor bucket size computation...
79617         (compute_bucket_size): ...into new helper function.
79618         (hash_rehash): Use new function and open coding to reduce memory
79619         pressure, and avoid a memory leak in USE_OBSTACK code.
79620         Reported by Jim Meyering.
79622 2009-06-18  Eric Blake  <ebb9@byu.net>
79624         hash: make rotation more obvious
79625         * modules/hash (Depends-on): Add bitrotate and stdint.
79626         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79627         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79628         (SIZE_MAX): Rely on headers for definition.
79629         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79630         (raw_hasher): Use rotr_sz.
79631         Suggested by Jim Meyering.
79633         hash: fix memory leak in last patch
79634         * lib/hash.c (hash_rehash): Avoid memory leak.
79636         hash: avoid no-op rehashing
79637         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79639         hash: provide default callback functions
79640         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79641         (hash_initialize): Use them as defaults.
79642         * tests/test-hash.c (main): Test this.
79644         hash: minor optimization
79645         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79646         when possible.
79647         (hash_initialize): Document this promise.
79648         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79649         * tests/test-hash.c (hash_compare_strings): Test this.
79651 2009-06-18  Bruno Haible  <bruno@clisp.org>
79653         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79654         going to be replaced anyway.
79656 2009-06-18  Bruno Haible  <bruno@clisp.org>
79658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79659         in one place.
79660         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79661         be replaced anyway.
79663 2009-06-18  Eric Blake  <ebb9@byu.net>
79665         hash: check for resize before insertion
79666         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79667         threshold before insertion, so that a pathological hash_rehash
79668         that fills every bucket can still trigger another rehash.
79670 2009-06-18  Jim Meyering  <meyering@redhat.com>
79672         hash-tests: add a loop around the small tests
79673         * tests/test-hash.c (main): Repeat small tests with selected
79674         small initial table sizes.
79676 2009-06-17  Eric Blake  <ebb9@byu.net>
79678         hash: minor cleanups
79679         * lib/hash.h (hash_entry): Make opaque, by moving...
79680         * lib/hash.c (hash_entry): ...here.
79681         (hash_insert): Clarify restrictions on what can be inserted.
79682         (hash_get_next): Clarify when it is safe to remove an element
79683         during traversal.
79684         (check_tuning): Skip verification when tuning is known safe.
79685         (hash_initialize): Clarify restrictions on tuning.
79687 2009-06-17  Jim Meyering  <jim@meyering.net>
79688         and Eric Blake  <ebb9@byu.net>
79690         hash-tests: new module
79691         * modules/hash-tests: New file.
79692         * tests/test-hash.c: New file.
79694 2009-06-17  Eric Blake  <ebb9@byu.net>
79696         strstr-simple: document new module
79697         * MODULES.html.sh: Document new module.
79699         strstr, strcasestr: replace on platforms with broken memchr
79700         * modules/strstr: Split into...
79701         * modules/strstr-simple: ...new module that does not care about
79702         performance, but does care about glibc bug.
79703         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79704         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79705         if platform memchr is broken, per Debian bug 521737.
79706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79707         memchr.
79708         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79709         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79710         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79711         * modules/mountlist (Depends-on): Add strstr-simple.
79712         * modules/gen-uni-tables (Depends-on): Likewise.
79713         * modules/argz (Depends-on): Add strstr.
79715 2009-06-17  Bruno Haible  <bruno@clisp.org>
79717         * modules/posix_spawn-internal (Depends-on): Add errno.
79719 2009-06-17  Bruno Haible  <bruno@clisp.org>
79721         Define missing ESTALE on Interix 3.5.
79722         * lib/errno.in.h (ESTALE): Assign a value if missing.
79723         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79724         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79725         missing.
79726         * doc/posix-headers/errno.texi: Mention the Interix bug.
79727         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79729 2009-06-15  Eric Blake  <ebb9@byu.net>
79731         memchr, memchr2: add valgrind exception
79732         * lib/memchr.valgrind: New file.
79733         * lib/memchr2.valgrind: New file.
79734         * modules/memchr (Files): Distribute valgrind file.
79735         * modules/memchr2 (Files): Likewise.
79737         docs: memchr is no longer obsolete
79738         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79739         * lib/string.in.h (memchr): Simplify logic.
79741 2009-06-14  Jim Meyering  <meyering@redhat.com>
79743         link-follow: fix the "checking..." message to not mention trailing slash
79744         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79745         never considered trailing slashes.
79747 2009-06-14  Bruno Haible  <bruno@clisp.org>
79749         * m4/memchr.m4: Mention also the bug on IA-64.
79750         * doc/posix-functions/memchr.texi: Likewise.
79752 2009-06-12  Eric Blake  <ebb9@byu.net>
79754         memchr: detect broken x86_64 and alpha implementations
79755         * modules/memchr-tests (Depends-on): Move mmap detection...
79756         * modules/memchr (Depends-on): ...here.
79757         (configure.ac): Set indicator.
79758         * lib/string.in.h (memchr): Declare replacement.
79759         * modules/string (Makefile.am): Trigger replacement.
79760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79761         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79762         bugs.
79763         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79764         * modules/getpagesize (License): Relax license.
79766 2009-06-11  Bruno Haible  <bruno@clisp.org>
79768         * lib/idpriv.h: Add more references.
79770 2009-06-08  Bruno Haible  <bruno@clisp.org>
79772         Tests for module 'idpriv-droptemp'.
79773         * modules/idpriv-droptemp-tests: New file.
79774         * tests/test-idpriv-droptemp.sh: New file.
79775         * tests/test-idpriv-droptemp.su.sh: New file.
79776         * tests/test-idpriv-droptemp.c: New file.
79778         New module 'idpriv-droptemp'.
79779         * lib/idpriv-droptemp.c: New file.
79780         * modules/idpriv-droptemp: New file.
79782 2009-06-08  Bruno Haible  <bruno@clisp.org>
79784         Tests for module 'idpriv-drop'.
79785         * modules/idpriv-drop-tests: New file.
79786         * tests/test-idpriv-drop.sh: New file.
79787         * tests/test-idpriv-drop.su.sh: New file.
79788         * tests/test-idpriv-drop.c: New file.
79790         New module 'idpriv-drop'.
79791         * lib/idpriv.h: New file.
79792         * lib-idpriv-drop.c: New file.
79793         * m4/idpriv.m4: New file.
79794         * modules/idpriv-drop: New file.
79796 2009-06-08  Bruno Haible  <bruno@clisp.org>
79798         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79799         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79800         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79801         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79802         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79803         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79804         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79806 2009-06-08  Eric Blake  <ebb9@byu.net>
79808         test-strstr: use memory fence, when possible
79809         * tests/test-strstr.c (main): Use memory fence, in order to be
79810         more likely to trigger Debian bug 521737.
79811         * modules/strstr-tests (Files): Pull in additional files.
79813         memchr: no longer obsolete, for wider field testing
79814         * modules/memchr (Status, Notice): Delete, this module is no
79815         longer obsolete.
79816         * modules/vasnprintf (Depends-on): Add memchr.
79818 2009-06-07  Jim Meyering  <meyering@redhat.com>
79820         hash: declare some functions with the warn_unused_result attribute
79821         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79823 2009-06-07  Bruno Haible  <bruno@clisp.org>
79825         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79826         Reported by Eric Blake.
79828 2009-06-06  Eric Blake  <ebb9@byu.net>
79830         test-alignof: fix typo with long double
79831         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79832         compiler error.
79834 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79836         Escape non-texinfo { and }s.
79837         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79838         markup error.
79840 2009-06-04  Jim Meyering  <meyering@redhat.com>
79842         gitlog-to-changelog: don't infloop on an empty commit log
79843         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79844         Reported by Boris Petersen <transacid@centerim.org>.
79846 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79848         version-etc: extend for packagers
79849         Add three new configure options, intended for packagers:
79850           --with-packager="packager name"
79851           --with-packager-version="packager-specific version"
79852           --with-packager-bug-reports="packager bug reporting"
79853         An example with coreutils:
79854           $ ./configure \
79855             --with-packager=Gentoo \
79856             --with-packager-bug-report=http://bugs.gentoo.org/ \
79857             --with-packager-version="patchset 1.6"
79858           $ ./src/ls --version | head -n2
79859           ls (GNU coreutils) 7.1-dirty
79860           Packaged by Gentoo (patchset 1.6)
79861         Note that the bug reporting info via --help doesn't show up because
79862         coreutils uses its own custom emit_bug_reporting_address() implementation
79863         in src/system.h.  If it didn't, it'd look like:
79864           $ ./src/ls --help | tail -n4
79865           Report bugs to <bug-coreutils@gnu.org>.
79866           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79867           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79868           General help using GNU software: <http://www.gnu.org/gethelp/>.
79869         * lib/version-etc.c: Print new information, if provided.
79870         * m4/version-etc.m4: New file.
79871         * modules/version-etc (Files): Add m4/version-etc.m4.
79872         (configure.ac): Add gl_VERSION_ETC.
79874 2009-05-31  Bruno Haible  <bruno@clisp.org>
79876         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79877         and 'int64_t'.
79878         * modules/alignof-tests (Dependencies): Add stdint.
79879         Reported by Eric Blake.
79881 2009-05-31  Bruno Haible  <bruno@clisp.org>
79883         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79884         restriction due to compiler bugs.
79885         Reported by Eric Blake.
79887 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79888             Bruno Haible  <bruno@clisp.org>
79890         Fix test-alignof failure.
79891         * lib/alignof.h (alignof_slot): New macro.
79892         (alignof_type): New macro, with the same semantics as the previous
79893         'alignof'.
79894         (alignof): Alias to alignof_slot.
79895         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79896         check that the results are usable as constant expressions.
79898 2009-05-31  Bruno Haible  <bruno@clisp.org>
79900         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79901         * tests/test-memchr.c (main): Check that memchr does not read past the
79902         first occurrence of the byte.
79903         * tests/test-strstr.c (main): Update comment.
79904         Suggested by Eric Blake.
79906 2009-05-30  Bruno Haible  <bruno@clisp.org>
79908         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79909         detail how to use dumpbin.
79910         Reported by David Byron <dbyron@dbyron.com>.
79912 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79914         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79916 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79918         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79920 2009-05-28  Bruno Haible  <bruno@clisp.org>
79922         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79923         build-aux/ files.
79925 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79927         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79929 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79931         * gnulib-tool (sed_transform_main_lib_file)
79932         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79933         regexps.
79935 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79937         * tests/test-strstr.c: Add another self-test.
79938         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79939         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79941 2009-05-23  Bruno Haible  <bruno@clisp.org>
79943         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79944         change.
79946 2009-05-21  Bruno Haible  <bruno@clisp.org>
79948         Simplify use of mode_t varargs.
79949         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79950         uses 'mode_t' or 'int'.
79951         * lib/openat.c (openat): Likewise.
79952         * lib/open-safer.c (open_safer): Likewise.
79953         * m4/mode_t.m4: New file.
79954         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79955         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79956         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79957         * modules/open (Files): Add m4/mode_t.m4.
79958         * modules/openat (Files): Likewise.
79959         * modules/fcntl-safer (Files): Likewise.
79960         Suggested by Eric Blake.
79962 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79964         * doc/glibc-functions/fallocate.texi: New file.
79965         * doc/gnulib.texi: Include it.
79967 2009-05-21  Eric Blake  <ebb9@byu.net>
79968             Bruno Haible  <bruno@clisp.org>
79970         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79971         invocations.
79972         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79974 2009-05-21  Eric Blake  <ebb9@byu.net>
79975             Bruno Haible  <bruno@clisp.org>
79977         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79978         include_next. Fix of 2008-11-20 commit.
79979         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79980         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79981         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79982         NEXT_MATH_H.
79983         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79984         instead of NEXT_MATH_H.
79986 2009-05-21  Bruno Haible  <bruno@clisp.org>
79988         Avoid redefinition warnings for SIZE_MAX.
79989         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79990         Reported by Simon Josefsson.
79992 2009-05-21  Bruno Haible  <bruno@clisp.org>
79994         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79995         AC_CACHE_VAL.
79997 2009-05-20  Bruno Haible  <bruno@clisp.org>
79999         Make zeroptr.h work on mingw.
80000         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80001         mprotect.
80002         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80003         * modules/memchr2-tests (configure.ac): Likewise.
80004         * modules/memcmp-tests (configure.ac): Likewise.
80005         * modules/memmem-tests (configure.ac): Likewise.
80006         * modules/memrchr-tests (configure.ac): Likewise.
80007         Reported by Simon Josefsson.
80009 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80011         * tests/test-glob.c: Include string.h for strcmp prototype.
80013 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80015         * modules/getdelim (Depends-on): Add explicit stdint, although it
80016         was implicitly already pulled in via realloc-posix.
80017         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80019 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80021         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80022         G. Christensen" <tgc@jupiterrise.com>.
80023         * m4/sys_socket_h.m4: Check for sa_family_t.
80024         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80025         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80026         * tests/test-sys_socket.c: Check that sa_family_t works.
80028 2009-05-18  Eric Blake  <ebb9@byu.net>
80030         maint.mk: allow gnulib_dir in VPATH build
80031         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80033 2009-05-15  Jim Meyering  <meyering@redhat.com>
80035         maint.mk: Give gnulib_dir a default definition.
80036         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80037         Thus, most packages no longer need to specify this variable in cfg.mk
80039 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80041         rename.m4: fix typos that would make non-mingw cross-configure fail
80042         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80044 2009-05-13  Eric Blake  <ebb9@byu.net>
80046         mmap-anon: avoid out-of-order autoconf expansion
80047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80048         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80049         * modules/memchr-tests (Depends-on): Add extensions.
80050         * modules/memchr2-tests (Depends-on): Add extensions.
80051         * modules/memcmp-tests (Depends-on): Add extensions.
80052         * modules/memmem-tests (Depends-on): Add extensions.
80053         * modules/memrchr-tests (Depends-on): Add extensions.
80055 2009-05-13  Bruno Haible  <bruno@clisp.org>
80057         Make some tests ISO C 99 compliant.
80058         * tests/zerosize-ptr.h: New file.
80059         * tests/test-memchr.c: Include zerosize-ptr.h.
80060         (main): Use a zero-size object pointer instead of NULL.
80061         * tests/test-memchr2.c: Include zerosize-ptr.h.
80062         (main): Use a zero-size object pointer instead of NULL.
80063         * tests/test-memcmp.c: Include zerosize-ptr.h.
80064         (main): Use a zero-size object pointer instead of NULL.
80065         * tests/test-memmem.c: Include zerosize-ptr.h.
80066         (main): Use a zero-size object pointer instead of NULL.
80067         * tests/test-memrchr.c: Include zerosize-ptr.h.
80068         (main): Use a zero-size object pointer instead of NULL.
80069         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80070         m4/mmap-anon.m4.
80071         (Depends-on): Add getpagesize.
80072         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80073         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80074         m4/mmap-anon.m4.
80075         (Depends-on): Add getpagesize.
80076         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80077         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80078         m4/mmap-anon.m4.
80079         (Depends-on): Add getpagesize.
80080         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80081         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80082         m4/mmap-anon.m4.
80083         (Depends-on): Add getpagesize.
80084         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80085         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80086         m4/mmap-anon.m4.
80087         (Depends-on): Add getpagesize.
80088         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80090 2009-05-12  Bruno Haible  <bruno@clisp.org>
80092         Tests for module 'alignof'.
80093         * modules/alignof-tests: New file.
80094         * tests/test-alignof.c: New file.
80096 2009-05-12  Bruno Haible  <bruno@clisp.org>
80098         Fix alignof macro.
80099         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80100         vendor compilers that are always correct.
80102 2009-05-12  Bruno Haible  <bruno@clisp.org>
80104         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80105         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80106         not whether its fully works.
80108 2009-05-12  Bruno Haible  <bruno@clisp.org>
80110         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80112 2009-05-12  Jim Meyering  <meyering@redhat.com>
80114         * top/maint.mk: Adjust backslash alignment.
80116 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80118         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80120 2009-05-11  Eric Blake  <ebb9@byu.net>
80122         argp: avoid undefined behavior
80123         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80124         macros.
80126 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80128         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80129         user.name to prevent git commit from complaining.
80131 2009-05-10  Bruno Haible  <bruno@clisp.org>
80133         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80134         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80135         it rewrites every file name only once.
80136         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80138 2009-05-08  Bruno Haible  <bruno@clisp.org>
80140         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80141         instead of 'max'.
80143 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80145         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80146         sockaddr_storage test.
80148 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80150         * modules/sys_socket (Makefile.am): Substitute
80151         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80152         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80153         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80154         * tests/test-sys_socket.c: Check sockaddr_storage.
80156 2009-05-08  Bruno Haible  <bruno@clisp.org>
80158         New module 'alignof'.
80159         * lib/alignof.h: New file.
80160         * modules/alignof: New file.
80162 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80163             Bruno Haible  <bruno@clisp.org>
80165         Fix test-file-has-acl on FreeBSD.
80166         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80167         mask is implicitly added.
80168         * tests/test-file-has-acl.c: Include <signal.h>.
80169         (main): Terminate the test after 5 seconds.
80170         * modules/acl-tests (configure.ac): Check for alarm function.
80172 2009-05-04  Bruno Haible  <bruno@clisp.org>
80174         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80175         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80176         * modules/errno (configure.ac): Drop AC_REQUIRE.
80177         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80178         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80180 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80182         * modules/glob-tests: New module.
80183         * tests/test-glob.c: Add.
80185 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80187         * modules/fnmatch-tests: New module.
80188         * tests/test-fnmatch.c: Add.
80190 2009-05-04  Eric Blake  <ebb9@byu.net>
80192         maint: make the new no-submodule-changes rule VPATH-safe
80193         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80195 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80196             Bruno Haible  <bruno@clisp.org>
80198         acl: Fix infinite loop on FreeBSD.
80199         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80200         of return value from acl_get_entry.
80201         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80202         Likewise.
80204 2009-05-03  Bruno Haible  <bruno@clisp.org>
80206         * lib/acl-internal.h (acl_entries): Clarify return value.
80207         * lib/acl_entries.c (acl_entries): Likewise.
80209 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80211         Bug fix in acl module.
80212         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80214 2009-05-03  Bruno Haible  <bruno@clisp.org>
80216         Create gperf-generated file in the source dir, not in the build dir.
80217         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80218         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80219         * modules/unicase/locale-language (unicase/locale-languages.h):
80220         Likewise.
80221         * modules/unicase/special-casing (unicase/special-casing-table.h):
80222         Likewise.
80223         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80224         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80225         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80226         Reported by Ralf Wildenhues.
80228 2009-05-03  Bruno Haible  <bruno@clisp.org>
80230         * modules/fnmatch (Description, configure.ac): Taken from
80231         fnmatch-posix.
80232         * modules/fnmatch-posix: Turn into a symbolic reference to the
80233         'fnmatch' module, and deprecate.
80234         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80236 2009-05-03  Bruno Haible  <bruno@clisp.org>
80238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80239         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80240         Reported by Ralf Wildenhues.
80242 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80244         * m4/fnmatch.m4: Fix fnmatch re-define.
80246 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80248         priv-set: new module and tests; adapt write-any-file
80249         * lib/priv-set.c: New file.
80250         * lib/priv-set.h: New file.
80251         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80252         * lib/write-any-file.c: Simplify by using priv-set module.
80253         * m4/priv-set.m4: New file.
80254         * modules/priv-set: New file.
80255         * modules/unlinkdir: Add dependency on priv-set module.
80256         * modules/write-any-file: Likewise.
80258         Tests for module 'priv-set'.
80259         * modules/priv-set-tests: New file.
80260         * tests/test-priv-set.c: New file.
80262 2009-05-03  Jim Meyering  <meyering@redhat.com>
80263             Bruno Haible  <bruno@clisp.org>
80265         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80266         use the converted UTF-8 variant of the name instead.
80268 2009-05-03  Jim Meyering  <meyering@redhat.com>
80270         tests: tighten some getdate tests
80271         * tests/test-getdate.c (main): Tighten tests: require equality,
80272         not just greater than.  Set TZ envvar to UTC0.
80274 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80276         getdate: correctly interpret "next monday" when run on a Monday
80277         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80278         that e.g., "next tues" (when run on a tuesday) results in a date
80279         that is one week in the future, and not today's date.
80280         I.e., add a week when the wday is the same as the current one.
80281         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80282         and earlier by Martin Bernreuther and Jan Minář.
80283         * tests/test-getdate.c (main): Check that "next DAY" is always in
80284         the future and that "last DAY" is always in the past.
80286 2009-05-02  Jim Meyering  <meyering@redhat.com>
80288         build: ensure that a release build fails when a submodule is unclean
80289         * top/maint.mk (no-submodule-changes): New rule.
80290         (alpha beta major): Depend on it.
80292 2009-05-02  Bruno Haible  <bruno@clisp.org>
80294         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80295         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80296         shell variable gl_fnmatch_required to detect which variant is
80297         requested.
80298         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80299         gl_FUNC_FNMATCH_POSIX.
80300         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80301         exclude fnmatch-posix.
80303 2009-05-02  Bruno Haible  <bruno@clisp.org>
80305         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80306         * modules/mbsrtowcs (License): Change to LGPLv2+.
80307         * modules/strnlen1 (License): Likewise.
80308         Reported by Simon Josefsson.
80310 2009-05-02  Bruno Haible  <bruno@clisp.org>
80312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80313         "cross".
80314         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80315         gnulib-tool was called with option --source-base=lib.
80317 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80319         Use automake *-local hooks without commands, for extensibility.
80320         * modules/localcharset (Makefile.am): Rename install-exec-local
80321         rule to install-exec-localcharset, and make it a prerequisite of
80322         install-exec-local.  Likewise, rename the uninstall-local rule to
80323         uninstall-localcharset, and make it a prerequisite of the former.
80325 2009-05-01  Bruno Haible  <bruno@clisp.org>
80327         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80328         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80329         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80331         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80332         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80333         m4/locale-zh.m4, m4/codeset.m4.
80335         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80336         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80337         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80338         m4/locale-zh.m4.
80340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80341         REPLACE_WCRTOMB if mbstate_t must be replaced.
80342         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80343         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80345 2009-05-01  Bruno Haible  <bruno@clisp.org>
80347         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80348         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80349         dngettext, dcngettext, textdomain, bindtextdomain,
80350         bind_textdomain_codeset): Undefine before redefining.
80352 2009-04-30  Bruno Haible  <bruno@clisp.org>
80354         Fix bug introduced on 2009-04-25.
80355         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80356         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80357         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80358         is defined.
80359         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80360         is defined.
80361         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80362         is defined.
80363         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80365 2009-04-28  Bruno Haible  <bruno@clisp.org>
80367         Comment tweaks.
80368         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80369         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80370         * lib/unicase.h (u*_casexfrm): Likewise.
80371         Reported by Paolo Bonzini.
80373 2009-04-28  Bruno Haible  <bruno@clisp.org>
80375         Fix a compilation error.
80376         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80377         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80378         Reported by Jim Meyering.
80380 2009-04-27  Bruno Haible  <bruno@clisp.org>
80382         New module 'libunistring'.
80383         * modules/libunistring: New file.
80384         * m4/libunistring.m4: New file.
80385         * MODULES.html.sh (Unicode string functions): Add it.
80387 2009-04-27  Eric Blake  <ebb9@byu.net>
80389         maint.mk: allow package-specific header to provide <config.h>
80390         * top/maint.mk (sc_require_config_h): New variable.
80391         (sc_require_config_h, sc_require_config_h_first): Use it.
80393 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80395         * top/maint.mk (sc_avoid_if_before_free): Except
80396         useless-if-before-free script.
80398 2009-04-27  Eric Blake  <ebb9@byu.net>
80400         maintainer-makefile: depend on all required helper scripts
80401         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80402         useless-if-before-free.
80403         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80404         version, rather than assuming gnulib checkout is available.
80405         Reported by Simen Josefsson.
80407 2009-04-26  Bruno Haible  <bruno@clisp.org>
80409         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80410         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80411         "../" or "..".
80413 2009-04-26  Bruno Haible  <bruno@clisp.org>
80415         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
80416         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
80417         AC_LIB_HAVE_LINKFLAGS.
80419 2009-04-26  Bruno Haible  <bruno@clisp.org>
80421         Simplify calling convention of u*_conv_from_encoding.
80422         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
80423         u32_conv_from_encoding): Expect a resultbuf argument and return the
80424         result directly as a pointer.
80425         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
80426         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
80427         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
80428         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
80429         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
80430         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80431         Update.
80432         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
80433         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
80434         * lib/vasnprintf.c (VASNPRINTF): Update.
80435         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
80436         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
80437         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80438         * NEWS: Mention the change.
80440 2009-04-26  Bruno Haible  <bruno@clisp.org>
80442         Simplify calling convention of u*_conv_to_encoding.
80443         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80444         u32_conv_to_encoding): Expect a resultbuf argument and return the
80445         result directly as a pointer.
80446         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80447         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80448         freeing scaled_offsets if mem_iconveha failed.
80449         * lib/unicase/u-casexfrm.h (FUNC): Update.
80450         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80451         * lib/vasnprintf.c (VASNPRINTF): Update.
80452         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80453         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80454         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80455         * NEWS: Mention the change.
80457 2009-04-26  Bruno Haible  <bruno@clisp.org>
80459         Avoid test failures on AIX and OSF/1.
80460         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80461         malloc(0).
80462         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80463         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80464         Likewise.
80465         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80466         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80467         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80468         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80469         * doc/posix-functions/malloc.texi: Document the portability problem
80470         related to malloc(0).
80472 2009-04-26  Bruno Haible  <bruno@clisp.org>
80474         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80475         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80476         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80478 2009-04-25  Bruno Haible  <bruno@clisp.org>
80480         Avoid link error when creating a namespace clean library.
80481         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80482         as macro with arguments if already defined as an alias.
80483         * lib/signbitf.c (gl_signbitf): Don't undefine.
80484         * lib/signbitd.c (gl_signbitd): Don't undefine.
80485         * lib/signbitl.c (gl_signbitl): Don't undefine.
80487 2009-04-25  Jim Meyering  <meyering@redhat.com>
80489         vc-list-files: fix another quoting bug
80490         * build-aux/vc-list-files: Avoid sed backslash expansion
80491         of pathological directory names.
80493 2009-04-25  Eric Blake  <ebb9@byu.net>
80495         vc-list-files: fix shell quoting error
80496         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80497         timestamp.
80499 2009-04-25  Jim Meyering  <meyering@redhat.com>
80501         vc-list-files: restore lost functionality with subdir argument
80502         * build-aux/vc-list-files: When given a non-"." sub-directory
80503         argument, substitute the $dir/ prefix back onto each resulting name.
80504         Otherwise, coreutils' root_tests check would fail.
80506 2009-04-24  Eric Blake  <ebb9@byu.net>
80508         vc-list-files: ignore git symlinks
80509         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80510         than ls-files, to ignore git symlinks.
80512         maint.mk: import improvements from m4
80513         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80514         (move_if_change): Delete unused macro.
80515         (news-date-check, vc-diff-check): Support VPATH builds.
80516         (announcement): Likewise.  Split --bootstrap-tools list...
80517         (boostrap-tools): ...into separate list, which can be overridden
80518         in cfg.mk.
80519         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80520         requiring dependency on useless-if-before-free module.
80521         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80522         Support VPATH builds.
80524 2009-04-24  Jim Meyering  <meyering@redhat.com>
80526         maint.mk: remove coreutils-specific rules and variables
80527         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80528         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80529         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80531         maint.mk: remove obsolete rule
80532         * top/maint.mk (rel-check): Remove rule.
80533         (WGET, WGETFLAGS): Remove now-unused variables.
80535 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80537         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80538         consistency.
80540         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80541         '$(PATH_SEPARATOR)' instead of ':'.
80543 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80545         * lib/getopt1.c (main): Use 'const' for static array.
80547 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80549         * top/maint.mk: Sync with coreutils.
80550         * NEWS: Explain incompatibilities.
80552 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80553             Bruno Haible  <bruno@clisp.org>
80555         Fix cross-compilation results.
80556         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80557         statement, as third argument of AC_TRY_RUN.
80558         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80559         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80560         Likewise.
80561         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80562         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80563         Likewise.
80564         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80565         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80566         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80568 2009-04-20  Bruno Haible  <bruno@clisp.org>
80570         Avoid test failure on mingw.
80571         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80573 2009-04-20  Bruno Haible  <bruno@clisp.org>
80575         Avoid compilation error on mingw.
80576         * modules/localename-tests (Depends-on): Add locale.
80578 2009-04-19  Bruno Haible  <bruno@clisp.org>
80580         Support for building a shared library on Windows platforms.
80581         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80582         (main): Test the presence of UNINORM_NFC here.
80583         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80584         (main): Test the presence of UNINORM_NFD here.
80585         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80586         (main): Test the presence of UNINORM_NFKC here.
80587         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80588         (main): Test the presence of UNINORM_NFKD here.
80590 2009-04-19  Bruno Haible  <bruno@clisp.org>
80592         Avoid a compiler warning.
80593         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80594         Change type of variable 'sequence'.
80596 2009-04-19  Bruno Haible  <bruno@clisp.org>
80598         * modules/configmake (Makefile.am): When the contents of configmake.h
80599         does not change, arrange to preserve its modification time.
80601 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80603         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80604         gettext domain.
80606 2009-04-16  Jim Meyering  <meyering@redhat.com>
80608         useless-if-before-free: improve conversion code
80609         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80610         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80612 2009-04-14  Bruno Haible  <bruno@clisp.org>
80614         * modules/fcntl (Depends-on): Add extensions.
80615         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80617 2009-04-12  Ben Pfaff  <blp@gnu.org>
80619         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80620         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80622 2009-03-20  Ben Pfaff  <blp@gnu.org>
80624         Make rename replace existing destinations on Windows.
80625         * m4/rename.m4: Add test for Mingw.
80626         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80627         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80628         * doc/posix-functions/rename.texi: Document.
80630 2009-04-10  Bruno Haible  <bruno@clisp.org>
80632         New include file "iconveh.h".
80633         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80634         * lib/striconveh.h: Include it.
80635         (enum iconv_ilseq_handler): Remove definition.
80636         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80637         striconveh.h.
80638         * lib/striconveha.c: Include striconveh.h.
80639         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80640         * modules/striconveh (Files): Add lib/iconveh.h.
80641         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80642         lib/striconveh.h.
80644 2009-04-10  Bruno Haible  <bruno@clisp.org>
80646         * lib/uniconv.h: Update comment.
80648 2009-04-10  Bruno Haible  <bruno@clisp.org>
80650         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80651         always.
80652         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80653         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80654         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80655         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80656         "unistring-notinline.h", so that the function gets defined always.
80657         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80658         * lib/unistr/u8-uctomb.c: Likewise.
80659         * lib/unistr/u16-mbtouc.c: Likewise.
80660         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80661         * lib/unistr/u16-uctomb.c: Likewise.
80662         * lib/unistr/u32-mbtouc.c: Likewise.
80663         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80664         * lib/unistr/u32-uctomb.c: Likewise.
80666 2009-04-10  Bruno Haible  <bruno@clisp.org>
80668         Mark 'utime' obsolete.
80669         * modules/utime (Status, Notice): New sections.
80670         Suggested by Jim Meyering.
80672         Fix cross-compile guess for utime test.
80673         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80674         autoconf.
80675         * doc/posix-functions/utime.texi: Give more precisions.
80676         Reported by Jan <ipif@ymail.com>.
80678 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80680         filevercmp: correct today's change
80681         * lib/filevercmp.c: Also handle coreutils' test inputs.
80682         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80684         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80685         for reporting it.
80686         * lib/filevercmp.c: Special handle for "", "." and "..".
80687         * tests/test-filevercmp.c: Enlarge the set suite.
80689 2009-04-07  Jim Meyering  <meyering@redhat.com>
80691         useless-if-before-free: show how to remove braced useless free, too
80692         * build-aux/useless-if-before-free: still only in a comment, though.
80694 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80696         maint.mk: import changes to syntax-check macros from coreutils
80697         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80698         Use them in the relevant macros.
80700 2009-04-06  Bruno Haible  <bruno@clisp.org>
80702         Fix unportable use of bit-fields.
80703         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80704         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80705         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80707 2009-04-06  Bruno Haible  <bruno@clisp.org>
80709         Avoid test failures on AIX and OSF/1.
80710         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80711         that malloc(0) = NULL.
80712         * tests/unicase/test-u8-tolower.c (check): Likewise.
80713         * tests/unicase/test-u8-totitle.c (check): Likewise.
80714         * tests/unicase/test-u8-toupper.c (check): Likewise.
80715         * tests/unicase/test-u16-casefold.c (check): Likewise.
80716         * tests/unicase/test-u16-tolower.c (check): Likewise.
80717         * tests/unicase/test-u16-totitle.c (check): Likewise.
80718         * tests/unicase/test-u16-toupper.c (check): Likewise.
80719         * tests/unicase/test-u32-casefold.c (check): Likewise.
80720         * tests/unicase/test-u32-tolower.c (check): Likewise.
80721         * tests/unicase/test-u32-totitle.c (check): Likewise.
80722         * tests/unicase/test-u32-toupper.c (check): Likewise.
80723         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80724         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80725         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80726         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80727         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80728         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80729         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80730         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80731         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80732         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80733         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80734         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80736 2009-04-05  Bruno Haible  <bruno@clisp.org>
80738         Work around an autoconf limitation.
80739         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80740         comment line if it would be longer than 3 KB.
80742 2009-04-05  Bruno Haible  <bruno@clisp.org>
80744         Avoid test failure with libiconv-1.13.
80745         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80746         of the expected test results.
80748 2009-04-05  Bruno Haible  <bruno@clisp.org>
80750         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80751         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80752         that it should be installed.
80754 2009-04-05  Bruno Haible  <bruno@clisp.org>
80756         * gnulib-tool: New option --copy-file.
80757         (func_usage): Document it.
80758         (func_dest_tmpfilename): Moved out of func_import.
80759         (func_add_file, func_update_file): New functions, extracted from
80760         func_import.
80761         (func_import): Update.
80763 2009-04-05  Karl Berry  <karl@gnu.org>
80765         * README: prominently mention gnulib-tool.
80766         Rearrange sections so getting the code is near the top.
80768 2009-04-05  Bruno Haible  <bruno@clisp.org>
80770         * lib/unicase.h: Mention u*_cmp2.
80771         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80772         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80773         * lib/unicase/ulc-casecmp.c: Likewise.
80774         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80775         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80776         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80777         unistr/u8-cmp.
80778         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80779         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80780         unistr/u16-cmp.
80781         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80782         unistr/u32-cmp.
80784         * lib/uninorm.h: Mention u*_cmp2.
80785         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80786         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80787         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80788         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80789         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80790         unistr/u8-cmp.
80791         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80792         unistr/u16-cmp.
80793         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80794         unistr/u32-cmp.
80796         New module 'unistr/u32-cmp2'.
80797         * lib/unistr/u32-cmp2.c: New file.
80798         * modules/unistr/u32-cmp2: New file.
80800         New module 'unistr/u16-cmp2'.
80801         * lib/unistr/u16-cmp2.c: New file.
80802         * modules/unistr/u16-cmp2: New file.
80804         New module 'unistr/u8-cmp2'.
80805         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80806         * lib/unistr/u8-cmp2.c: New file.
80807         * lib/unistr/u-cmp2.h: New file.
80808         * modules/unistr/u8-cmp2: New file.
80810 2009-04-05  Bruno Haible  <bruno@clisp.org>
80812         * lib/unictype.h (uc_property_is_valid): New macro.
80813         * tests/unictype/test-pr_byname.c (main): Use it.
80815         * lib/unistr.h: Doc fixes.
80816         * lib/uniconv.h: Doc fixes.
80817         * lib/unictype.h: Doc fixes.
80819 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80821         Port coreutils 7.2 to Solaris 8.
80823         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80824         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80825         for Solaris 8.  This is a bit of a hack, as it means it's the
80826         caller's responsibility to add -lnsl if needed, but most likely it
80827         won't be needed since only getaddrinfo uses this and getaddrinfo
80828         isn't needed on Solaris 8.
80830         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80831         problem to Solaris 8 encountered with coreutils 7.2, which
80832         resulted in a message "fnmatch.c:292: warning: passing argument 4
80833         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80834         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80836 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80838         * m4/ld-version-script.m4: Add FIXME comment.
80840 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80842         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80843         SOVERSION variable.
80845 2009-04-02  Bruno Haible  <bruno@clisp.org>
80847         * Makefile (info, html, dvi, pdf): Combine the rules.
80848         Suggested by Jim Meyering.
80850 2009-04-01  Bruno Haible  <bruno@clisp.org>
80852         * Makefile (info, html, dvi, pdf): New targets.
80853         Reported by Reuben Thomas <rrt@sc3d.org>.
80855 2009-04-01  Bruno Haible  <bruno@clisp.org>
80857         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80858         can be put into PATH.
80859         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80861 2009-04-01  Bruno Haible  <bruno@clisp.org>
80863         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80865 2009-04-01  Bruno Haible  <bruno@clisp.org>
80867         Rename module 'visibility'.
80868         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80869         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80870         * doc/gnulib.texi: Update.
80871         * MODULES.html.sh (Misc): Update.
80872         * NEWS: Mention the change.
80874 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80876         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80877         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80878         Eric Blake <ebb9@byu.net> for review.
80879         * MODULES.html.sh: Add lib-msvc-compat.
80880         * doc/gnulib.texi: Link to new section.
80881         * m4/ld-output-def.m4: New file.
80882         * doc/ld-output-def.texi: New file.
80884 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80886         Rename ld-version-script to lib-symbol-versions.  Suggested by
80887         Bruno Haible <bruno@clisp.org>.
80888         * modules/ld-version-script: Renamed to lib-symbol-versions.
80889         * doc/ld-version-script.texi: Fix module name.
80890         * MODULES.html.sh: Add lib-symbol-versions.
80892 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80894         * modules/u64-tests: New file.
80895         * tests/test-u64.c: New file.
80897 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80899         * MODULES.html.sh: Mention u64.
80900         * modules/u64: New module.
80901         * modules/crypto/sha512: Depend on u64 module instead of providing
80902         u64.h.
80904 2009-03-27  Eric Blake  <ebb9@byu.net>
80906         test-strerror: make debugging EAI_SYSTEM easier
80907         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80908         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80909         failure was EAI_SYSTEM.
80911 2009-03-25  Bruno Haible  <bruno@clisp.org>
80913         Fix a problem with --enable-relocatable on Solaris 7.
80914         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80915         since 2008-02-24.
80917 2009-03-25  Eric Blake  <ebb9@byu.net>
80919         test-sockets: avoid gcc warning
80920         * tests/test-sockets.c (main): Silence compiler warning.
80922 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80924         New modules nproc, pthread, contributed by Glen Lenker.
80926         * MODULES.html.sh: Add pthread, nproc.
80927         * lib/nproc.c: New file.
80928         * lib/nproc.h: New file.
80929         * lib/pthread.in.h: New file.
80930         * m4/pthread.m4: New file.
80931         * modules/nproc: New file.
80932         * modules/pthread: New file.
80934 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80936         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80937         New variable.
80939 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80941         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80942         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80943         * tests/test-filevercmp.c: Add tests for backup suffixes.
80945 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80947         * modules/stdlib (Depends-on): Add stdint, needed when defining
80948         struct random_data on, for example, HP-UX 10.20.  Reported by
80949         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80951 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80953         * lib/readline.c (readline): Call fflush on stdout after printing
80954         prompt.
80956 2009-03-20  Bruno Haible  <bruno@clisp.org>
80958         Remove dependency from 'close' module to -lws2_32 on native Windows.
80959         * lib/close-hook.h: New file.
80960         * lib/close-hook.c: New file.
80961         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80962         w32sock.h.
80963         (_gl_close_fd_maybe_socket): Remove function.
80964         (rpl_close): Invoke execute_all_close_hooks instead of
80965         _gl_close_fd_maybe_socket.
80966         * lib/sockets.c: Include close-hook.h, w32sock.h.
80967         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80968         (close_sockets_hook): New variable.
80969         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80970         (gl_sockets_cleanup): Unregister it.
80971         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80972         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80973         * modules/close-hook: New file.
80974         * modules/close (Files): Remove lib/w32sock.h.
80975         (Depends-on): Add close-hook.
80976         (Link): Remove section.
80977         * modules/sockets (Files): Add lib/w32sock.h.
80978         (Depends-on): Add close-hook.
80979         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80980         invocation.
80981         * NEWS: Mention that LIB_CLOSE is gone.
80983 2009-03-23  Eric Blake  <ebb9@byu.net>
80985         signal-tests: test previous patch
80986         * tests/test-signal.c: New file.
80987         * modules/signal-tests: Likewise.
80989         signal.h: always support 'volatile sig_atomic_t'
80990         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80991         (gl_SIGNAL_H_DEFAULTS): Add a default.
80992         * modules/signal (Makefile.am): Substitute if needed.
80993         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80994         users can blindly add volatile.
80995         * doc/posix-headers/signal.texi (signal.h): Document it.
80996         Reported by Matthew Woehlke.
80998 2009-03-23  Jim Meyering  <meyering@redhat.com>
81000         pathmax: PATH_MAX: use pathconf only when available
81001         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81002         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81003         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81004         This avoids a link failure in a PSP cross-compilation environment
81005         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81007         * lib/vasnprintf.c (divide): Fix typo in comment.
81009 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81011         * gnulib-tool (func_filter_filelist): Fix comment.
81013 2009-03-20  Bruno Haible  <bruno@clisp.org>
81015         Make sockets.h self-contained.
81016         * lib/sockets.c: Include sockets.h first.
81017         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81019 2009-03-19  Eric Blake  <ebb9@byu.net>
81021         doc: mention more functions added in cygwin 1.7.0
81022         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81023         addition.
81024         * doc/posix-functions/log2f.texi: Likewise.
81026 2009-03-19  Jim Meyering  <meyering@redhat.com>
81028         fsusage: avoid syntax error due to statement-before-declaration
81029         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81030         after all declarations.  Reported by Matthew Woehlke in
81031         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81033 2009-03-18  Eric Blake  <ebb9@byu.net>
81035         build-aux/compile: sync from automake
81036         * build-aux/compile: New file, from automake.
81037         * config/srclist.txt: Mention build-aux/compile.
81039 2009-03-17  Bruno Haible  <bruno@clisp.org>
81041         * lib/git-merge-changelog.c: Fix typo in comment.
81042         Reported by Reuben Thomas <rrt@sc3d.org>.
81044 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81046         * m4/regex.m4: update and improve help for
81047         --without-included-regex.
81049 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81051         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81052         failure on missing include files.
81054 2009-03-17  Eric Blake  <ebb9@byu.net>
81056         doc: mention more functions added in cygwin 1.7.0
81057         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81058         addition.
81059         * doc/posix-functions/fwscanf.texi: Likewise.
81060         * doc/posix-functions/swprintf.texi: Likewise.
81061         * doc/posix-functions/swscanf.texi: Likewise.
81062         * doc/posix-functions/vfwprintf.texi: Likewise.
81063         * doc/posix-functions/vfwscanf.texi: Likewise.
81064         * doc/posix-functions/vswprintf.texi: Likewise.
81065         * doc/posix-functions/vswscanf.texi: Likewise.
81066         * doc/posix-functions/vwprintf.texi: Likewise.
81067         * doc/posix-functions/vwscanf.texi: Likewise.
81068         * doc/posix-functions/wcscasecmp.texi: Likewise.
81069         * doc/posix-functions/wcsdup.texi: Likewise.
81070         * doc/posix-functions/wcsftime.texi: Likewise.
81071         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81072         * doc/posix-functions/wprintf.texi: Likewise.
81073         * doc/posix-functions/wscanf.texi: Likewise.
81074         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81076 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81078         maint.mk: really add $(AM_MAKEFLAGS)
81079         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81080         was inadvertently omitted in the last commit.
81081         Spotted by Bruno Haible.
81083         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81084         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81085         $(AM_MAKEFLAGS)' rather than plain `make'.
81087         gnulib-tool: execute $MAKE not make
81088         * gnulib-tool: Default $MAKE to 'make'.
81089         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81090         than make.  Initialize $MAKE in the do-autobuild script.
81092         gnulib-tool: use $MAKE not make in generated files
81093         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81094         make, in generated files.  Initialize $MAKE in the do-autobuild
81095         script.
81097         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81099         GNUmakefile: disable parallelism only for multiple, recursive targets
81100         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81101         additions in the Makefile.
81102         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81103         by Automake.
81104         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81105         are listed on the command line and at least one of them is
81106         listed in $(ALL_RECURSIVE_TARGETS).
81108 2009-03-14  Bruno Haible  <bruno@clisp.org>
81110         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81111         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81112         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81113         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81114         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81115         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81116         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81117         unistr/u8-uctomb.
81118         * modules/unistr/u8-strchr (Depends-on): Likewise.
81119         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81120         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81121         unistr/u16-uctomb.
81122         * modules/unistr/u16-strchr (Depends-on): Likewise.
81123         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81125 2009-03-12  Bruno Haible  <bruno@clisp.org>
81127         Work around select() bug on Interix 3.5.
81128         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81129         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81130         * m4/select.m4: New file.
81131         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81132         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81133         * modules/select (Files): Add m4/select.m4.
81134         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81135         * modules/nanosleep (Depends-on): Add select.
81136         * modules/poll (Depends-on): Likewise.
81137         * doc/posix-functions/select.texi: Mention the Interix bug.
81138         Reported by Markus Duft <mduft@gentoo.org>.
81140         * lib/select.c: Renamed from lib/winsock-select.c.
81141         * modules/select (Files): Add lib/select.c, remove
81142         lib/winsock-select.c.
81143         (configure.ac): Update.
81145 2009-03-12  Jim Meyering  <meyering@redhat.com>
81147         avoid gcc warnings about unused macro definitions
81148         * lib/readtokens.c (STREQ): Remove unused definition.
81149         * lib/xmalloc.c (SIZE_MAX): Likewise.
81150         * lib/openat-die.c (N_): Likewise.
81151         * lib/mountlist.c (SIZE_MAX): Remove definition.
81152         Instead, include <stdint.h>.
81153         * lib/readutmp.c: Likewise.
81154         * modules/readutmp (Depends-on): Add stdint.
81155         * modules/mountlist (Depends-on): Add stdint.
81156         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81158 2009-03-10  Bruno Haible  <bruno@clisp.org>
81160         Tests for module 'mbmemcasecoll'.
81161         * modules/mbmemcasecoll-tests: New file.
81162         * tests/test-mbmemcasecoll1.sh: New file.
81163         * tests/test-mbmemcasecoll2.sh: New file.
81164         * tests/test-mbmemcasecoll3.sh: New file.
81165         * tests/test-mbmemcasecoll.c: New file.
81167         New module 'mbmemcasecoll'.
81168         * lib/mbmemcasecoll.h: New file.
81169         * lib/mbmemcasecoll.c: New file.
81170         * modules/mbmemcasecoll: New file.
81172         * tests/test-mbmemcasecmp.h: New file, extracted from
81173         tests/test-mbmemcasecmp.c.
81174         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81175         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81176         (main): Update.
81177         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81179 2009-03-09  Bruno Haible  <bruno@clisp.org>
81181         Tests for module 'mbmemcasecmp'.
81182         * modules/mbmemcasecmp-tests: New file.
81183         * tests/test-mbmemcasecmp1.sh: New file.
81184         * tests/test-mbmemcasecmp2.sh: New file.
81185         * tests/test-mbmemcasecmp3.sh: New file.
81186         * tests/test-mbmemcasecmp.c: New file.
81188         New module 'mbmemcasecmp'.
81189         * lib/mbmemcasecmp.h: New file.
81190         * lib/mbmemcasecmp.c: New file.
81191         * modules/mbmemcasecmp: New file.
81193 2009-03-09  Bruno Haible  <bruno@clisp.org>
81195         Tests for module 'unicase/ulc-casecoll'.
81196         * modules/unicase/ulc-casecoll-tests: New file.
81197         * tests/unicase/test-ulc-casecoll1.sh: New file.
81198         * tests/unicase/test-ulc-casecoll2.sh: New file.
81199         * tests/unicase/test-ulc-casecoll.c: New file.
81201         New module 'unicase/ulc-casecoll'.
81202         * lib/unicase.h (ulc_casecoll): New declaration.
81203         * lib/unicase/ulc-casecoll.c: New file.
81204         * modules/unicase/ulc-casecoll: New file.
81206         New module 'unicase/ulc-casexfrm'.
81207         * lib/unicase.h (ulc_casexfrm): New declaration.
81208         * lib/unicase/ulc-casexfrm.c: New file.
81209         * modules/unicase/ulc-casexfrm: New file.
81211 2009-03-09  Bruno Haible  <bruno@clisp.org>
81213         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81214         invocations.
81216         * m4/mbscasecmp.m4: Remove file.
81217         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81218         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81220         * m4/mbscasestr.m4: Remove file.
81221         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81222         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81224         * m4/mbschr.m4: Remove file.
81225         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81226         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81228         * m4/mbscspn.m4: Remove file.
81229         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81230         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81232         * m4/mbslen.m4: Remove file.
81233         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81234         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81236         * m4/mbsncasecmp.m4: Remove file.
81237         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81238         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81240         * m4/mbsnlen.m4: Remove file.
81241         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81242         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81244         * m4/mbspbrk.m4: Remove file.
81245         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81246         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81248         * m4/mbspcasecmp.m4: Remove file.
81249         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81250         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81252         * m4/mbsrchr.m4: Remove file.
81253         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81254         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81256         * m4/mbssep.m4: Remove file.
81257         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81258         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81260         * m4/mbsspn.m4: Remove file.
81261         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81262         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81264         * m4/mbsstr.m4: Remove file.
81265         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81266         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81268         * m4/mbstok_r.m4: Remove file.
81269         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81270         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81272         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81274         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81275         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81277         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81279 2009-03-08  Bruno Haible  <bruno@clisp.org>
81281         Tests for module 'unicase/ulc-casecmp'.
81282         * modules/unicase/ulc-casecmp-tests: New file.
81283         * tests/unicase/test-ulc-casecmp1.sh: New file.
81284         * tests/unicase/test-ulc-casecmp2.sh: New file.
81285         * tests/unicase/test-ulc-casecmp.c: New file.
81287         New module 'unicase/ulc-casecmp'.
81288         * lib/unicase.h (ulc_casecmp): New declaration.
81289         * lib/unicase/ulc-casecmp.c: New file.
81290         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81291         'const SRC_UNIT *'.
81292         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81293         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81294         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81295         * modules/unicase/ulc-casecmp: New file.
81297         Tests for module 'unicase/u32-is-cased'.
81298         * modules/unicase/u32-is-cased-tests: New file.
81299         * tests/unicase/test-u32-is-cased.c: New file.
81301         Tests for module 'unicase/u16-is-cased'.
81302         * modules/unicase/u16-is-cased-tests: New file.
81303         * tests/unicase/test-u16-is-cased.c: New file.
81305         Tests for module 'unicase/u8-is-cased'.
81306         * modules/unicase/u8-is-cased-tests: New file.
81307         * tests/unicase/test-u8-is-cased.c: New file.
81308         * tests/unicase/test-is-cased.h: New file.
81310         New module 'unicase/u32-is-cased'.
81311         * lib/unicase/u32-is-cased.c: New file.
81312         * modules/unicase/u32-is-cased: New file.
81314         New module 'unicase/u16-is-cased'.
81315         * lib/unicase/u16-is-cased.c: New file.
81316         * modules/unicase/u16-is-cased: New file.
81318         New module 'unicase/u8-is-cased'.
81319         * lib/unicase/u8-is-cased.c: New file.
81320         * lib/unicase/u-is-cased.h: New file.
81321         * modules/unicase/u8-is-cased: New file.
81323         Tests for module 'unicase/u32-is-casefolded'.
81324         * modules/unicase/u32-is-casefolded-tests: New file.
81325         * tests/unicase/test-u32-is-casefolded.c: New file.
81327         Tests for module 'unicase/u16-is-casefolded'.
81328         * modules/unicase/u16-is-casefolded-tests: New file.
81329         * tests/unicase/test-u16-is-casefolded.c: New file.
81331         Tests for module 'unicase/u8-is-casefolded'.
81332         * modules/unicase/u8-is-casefolded-tests: New file.
81333         * tests/unicase/test-u8-is-casefolded.c: New file.
81334         * tests/unicase/test-is-casefolded.h: New file.
81336         New module 'unicase/u32-is-casefolded'.
81337         * lib/unicase/u32-is-casefolded.c: New file.
81338         * modules/unicase/u32-is-casefolded: New file.
81340         New module 'unicase/u16-is-casefolded'.
81341         * lib/unicase/u16-is-casefolded.c: New file.
81342         * modules/unicase/u16-is-casefolded: New file.
81344         New module 'unicase/u8-is-casefolded'.
81345         * lib/unicase/u8-is-casefolded.c: New file.
81346         * modules/unicase/u8-is-casefolded: New file.
81348         Tests for module 'unicase/u32-is-titlecase'.
81349         * modules/unicase/u32-is-titlecase-tests: New file.
81350         * tests/unicase/test-u32-is-titlecase.c: New file.
81352         Tests for module 'unicase/u16-is-titlecase'.
81353         * modules/unicase/u16-is-titlecase-tests: New file.
81354         * tests/unicase/test-u16-is-titlecase.c: New file.
81356         Tests for module 'unicase/u8-is-titlecase'.
81357         * modules/unicase/u8-is-titlecase-tests: New file.
81358         * tests/unicase/test-u8-is-titlecase.c: New file.
81359         * tests/unicase/test-is-titlecase.h: New file.
81361         New module 'unicase/u32-is-titlecase'.
81362         * lib/unicase/u32-is-titlecase.c: New file.
81363         * modules/unicase/u32-is-titlecase: New file.
81365         New module 'unicase/u16-is-titlecase'.
81366         * lib/unicase/u16-is-titlecase.c: New file.
81367         * modules/unicase/u16-is-titlecase: New file.
81369         New module 'unicase/u8-is-titlecase'.
81370         * lib/unicase/u8-is-titlecase.c: New file.
81371         * modules/unicase/u8-is-titlecase: New file.
81373         Tests for module 'unicase/u32-is-lowercase'.
81374         * modules/unicase/u32-is-lowercase-tests: New file.
81375         * tests/unicase/test-u32-is-lowercase.c: New file.
81377         Tests for module 'unicase/u16-is-lowercase'.
81378         * modules/unicase/u16-is-lowercase-tests: New file.
81379         * tests/unicase/test-u16-is-lowercase.c: New file.
81381         Tests for module 'unicase/u8-is-lowercase'.
81382         * modules/unicase/u8-is-lowercase-tests: New file.
81383         * tests/unicase/test-u8-is-lowercase.c: New file.
81384         * tests/unicase/test-is-lowercase.h: New file.
81386         New module 'unicase/u32-is-lowercase'.
81387         * lib/unicase/u32-is-lowercase.c: New file.
81388         * modules/unicase/u32-is-lowercase: New file.
81390         New module 'unicase/u16-is-lowercase'.
81391         * lib/unicase/u16-is-lowercase.c: New file.
81392         * modules/unicase/u16-is-lowercase: New file.
81394         New module 'unicase/u8-is-lowercase'.
81395         * lib/unicase/u8-is-lowercase.c: New file.
81396         * modules/unicase/u8-is-lowercase: New file.
81398         Tests for module 'unicase/u32-is-uppercase'.
81399         * modules/unicase/u32-is-uppercase-tests: New file.
81400         * tests/unicase/test-u32-is-uppercase.c: New file.
81402         Tests for module 'unicase/u16-is-uppercase'.
81403         * modules/unicase/u16-is-uppercase-tests: New file.
81404         * tests/unicase/test-u16-is-uppercase.c: New file.
81406         Tests for module 'unicase/u8-is-uppercase'.
81407         * modules/unicase/u8-is-uppercase-tests: New file.
81408         * tests/unicase/test-u8-is-uppercase.c: New file.
81409         * tests/unicase/test-is-uppercase.h: New file.
81411         New module 'unicase/u32-is-uppercase'.
81412         * lib/unicase/u32-is-uppercase.c: New file.
81413         * modules/unicase/u32-is-uppercase: New file.
81415         New module 'unicase/u16-is-uppercase'.
81416         * lib/unicase/u16-is-uppercase.c: New file.
81417         * modules/unicase/u16-is-uppercase: New file.
81419         New module 'unicase/u8-is-uppercase'.
81420         * lib/unicase/u8-is-uppercase.c: New file.
81421         * modules/unicase/u8-is-uppercase: New file.
81423         New module 'unicase/u32-is-invariant'.
81424         * lib/unicase/u32-is-invariant.c: New file.
81425         * modules/unicase/u32-is-invariant: New file.
81427         New module 'unicase/u16-is-invariant'.
81428         * lib/unicase/u16-is-invariant.c: New file.
81429         * modules/unicase/u16-is-invariant: New file.
81431         New module 'unicase/u8-is-invariant'.
81432         * lib/unicase/u8-is-invariant.c: New file.
81433         * lib/unicase/invariant.h: New file.
81434         * lib/unicase/u-is-invariant.h: New file.
81435         * modules/unicase/u8-is-invariant: New file.
81437         Tests for module 'unicase/u32-casecoll'.
81438         * modules/unicase/u32-casecoll-tests: New file.
81439         * tests/unicase/test-u32-casecoll.c: New file.
81441         Tests for module 'unicase/u16-casecoll'.
81442         * modules/unicase/u16-casecoll-tests: New file.
81443         * tests/unicase/test-u16-casecoll.c: New file.
81445         Tests for module 'unicase/u8-casecoll'.
81446         * modules/unicase/u8-casecoll-tests: New file.
81447         * tests/unicase/test-u8-casecoll.c: New file.
81449         New module 'unicase/u32-casecoll'.
81450         * lib/unicase/u32-casecoll.c: New file.
81451         * modules/unicase/u32-casecoll: New file.
81453         New module 'unicase/u16-casecoll'.
81454         * lib/unicase/u16-casecoll.c: New file.
81455         * modules/unicase/u16-casecoll: New file.
81457         New module 'unicase/u8-casecoll'.
81458         * lib/unicase/u8-casecoll.c: New file.
81459         * lib/unicase/u-casecoll.h: New file.
81460         * modules/unicase/u8-casecoll: New file.
81462         New module 'unicase/u32-casexfrm'.
81463         * lib/unicase/u32-casexfrm.c: New file.
81464         * modules/unicase/u32-casexfrm: New file.
81466         New module 'unicase/u16-casexfrm'.
81467         * lib/unicase/u16-casexfrm.c: New file.
81468         * modules/unicase/u16-casexfrm: New file.
81470         New module 'unicase/u8-casexfrm'.
81471         * lib/unicase/u8-casexfrm.c: New file.
81472         * lib/unicase/u-casexfrm.h: New file.
81473         * modules/unicase/u8-casexfrm: New file.
81475         Tests for module 'unicase/u32-casecmp'.
81476         * modules/unicase/u32-casecmp-tests: New file.
81477         * tests/unicase/test-u32-casecmp.c: New file.
81479         Tests for module 'unicase/u16-casecmp'.
81480         * modules/unicase/u16-casecmp-tests: New file.
81481         * tests/unicase/test-u16-casecmp.c: New file.
81483         Tests for module 'unicase/u8-casecmp'.
81484         * modules/unicase/u8-casecmp-tests: New file.
81485         * tests/unicase/test-u8-casecmp.c: New file.
81486         * tests/unicase/test-casecmp.h: New file.
81488         New module 'unicase/u32-casecmp'.
81489         * lib/unicase/u32-casecmp.c: New file.
81490         * modules/unicase/u32-casecmp: New file.
81492         New module 'unicase/u16-casecmp'.
81493         * lib/unicase/u16-casecmp.c: New file.
81494         * modules/unicase/u16-casecmp: New file.
81496         New module 'unicase/u8-casecmp'.
81497         * lib/unicase/u8-casecmp.c: New file.
81498         * lib/unicase/u-casecmp.h: New file.
81499         * modules/unicase/u8-casecmp: New file.
81501         Tests for module 'unicase/u32-casefold'.
81502         * modules/unicase/u32-casefold-tests: New file.
81503         * tests/unicase/test-u32-casefold.c: New file.
81505         Tests for module 'unicase/u16-casefold'.
81506         * modules/unicase/u16-casefold-tests: New file.
81507         * tests/unicase/test-u16-casefold.c: New file.
81509         Tests for module 'unicase/u8-casefold'.
81510         * modules/unicase/u8-casefold-tests: New file.
81511         * tests/unicase/test-u8-casefold.c: New file.
81513         New module 'unicase/u32-casefold'.
81514         * lib/unicase/u32-casefold.c: New file.
81515         * modules/unicase/u32-casefold: New file.
81517         New module 'unicase/u16-casefold'.
81518         * lib/unicase/u16-casefold.c: New file.
81519         * modules/unicase/u16-casefold: New file.
81521         New module 'unicase/u8-casefold'.
81522         * lib/unicase/u8-casefold.c: New file.
81523         * lib/unicase/u-casefold.h: New file.
81524         * modules/unicase/u8-casefold: New file.
81526         New module 'unicase/tocasefold'.
81527         * lib/unicase/casefold.h: New file.
81528         * lib/unicase/tocasefold.c: New file.
81529         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81530         * modules/unicase/tocasefold: New file.
81532         Tests for module 'unicase/u32-totitle'.
81533         * modules/unicase/u32-totitle-tests: New file.
81534         * tests/unicase/test-u32-totitle.c: New file.
81536         Tests for module 'unicase/u16-totitle'.
81537         * modules/unicase/u16-totitle-tests: New file.
81538         * tests/unicase/test-u16-totitle.c: New file.
81540         Tests for module 'unicase/u8-totitle'.
81541         * modules/unicase/u8-totitle-tests: New file.
81542         * tests/unicase/test-u8-totitle.c: New file.
81544         New module 'unicase/u32-totitle'.
81545         * lib/unicase/u32-totitle.c: New file.
81546         * modules/unicase/u32-totitle: New file.
81548         New module 'unicase/u16-totitle'.
81549         * lib/unicase/u16-totitle.c: New file.
81550         * modules/unicase/u16-totitle: New file.
81552         New module 'unicase/u8-totitle'.
81553         * lib/unicase/u8-totitle.c: New file.
81554         * lib/unicase/u-totitle.h: New file.
81555         * modules/unicase/u8-totitle: New file.
81557         Tests for module 'unicase/u32-tolower'.
81558         * modules/unicase/u32-tolower-tests: New file.
81559         * tests/unicase/test-u32-tolower.c: New file.
81561         Tests for module 'unicase/u16-tolower'.
81562         * modules/unicase/u16-tolower-tests: New file.
81563         * tests/unicase/test-u16-tolower.c: New file.
81565         Tests for module 'unicase/u8-tolower'.
81566         * modules/unicase/u8-tolower-tests: New file.
81567         * tests/unicase/test-u8-tolower.c: New file.
81569         New module 'unicase/u32-tolower'.
81570         * lib/unicase/u32-tolower.c: New file.
81571         * modules/unicase/u32-tolower: New file.
81573         New module 'unicase/u16-tolower'.
81574         * lib/unicase/u16-tolower.c: New file.
81575         * modules/unicase/u16-tolower: New file.
81577         New module 'unicase/u8-tolower'.
81578         * lib/unicase/u8-tolower.c: New file.
81579         * modules/unicase/u8-tolower: New file.
81581         Tests for module 'unicase/u32-toupper'.
81582         * modules/unicase/u32-toupper-tests: New file.
81583         * tests/unicase/test-u32-toupper.c: New file.
81585         Tests for module 'unicase/u16-toupper'.
81586         * modules/unicase/u16-toupper-tests: New file.
81587         * tests/unicase/test-u16-toupper.c: New file.
81589         Tests for module 'unicase/u8-toupper'.
81590         * modules/unicase/u8-toupper-tests: New file.
81591         * tests/unicase/test-u8-toupper.c: New file.
81593         New module 'unicase/u32-toupper'.
81594         * lib/unicase/u32-toupper.c: New file.
81595         * modules/unicase/u32-toupper: New file.
81597         New module 'unicase/u16-toupper'.
81598         * lib/unicase/u16-toupper.c: New file.
81599         * modules/unicase/u16-toupper: New file.
81601         New module 'unicase/u8-toupper'.
81602         * lib/unicase/u8-toupper.c: New file.
81603         * modules/unicase/u8-toupper: New file.
81605         New module 'unicase/u32-casemap'.
81606         * lib/unicase/u32-casemap.c: New file.
81607         * modules/unicase/u32-casemap: New file.
81609         New module 'unicase/u16-casemap'.
81610         * lib/unicase/u16-casemap.c: New file.
81611         * modules/unicase/u16-casemap: New file.
81613         New module 'unicase/u8-casemap'.
81614         * lib/unicase/unicasemap.h: New file.
81615         * lib/unicase/u8-casemap.c: New file.
81616         * lib/unicase/u-casemap.h: New file.
81617         * modules/unicase/u8-casemap: New file.
81619         New module 'unicase/special-casing'.
81620         * lib/unicase/special-casing.h: New file.
81621         * lib/unicase/special-casing.c: New file.
81622         * lib/unicase/special-casing-table.gperf: New file, generated by
81623         gen-uni-tables.c.
81624         * modules/unicase/special-casing: New file.
81626         Tests for module 'unicase/locale-language'.
81627         * modules/unicase/locale-language-tests: New file.
81628         * tests/unicase/test-locale-language.sh: New file.
81629         * tests/unicase/test-locale-language.c: New file.
81631         New module 'unicase/locale-language'.
81632         * lib/unicase/locale-language.c: New file.
81633         * lib/unicase/locale-languages.gperf: New file.
81634         * modules/unicase/locale-language: New file.
81636         Generate more tables for case conversion and case folding.
81637         * lib/gen-uni-tables.c (SCC_*): New enum items.
81638         (struct special_casing_rule): New type.
81639         (casing_rules, num_casing_rules, allocated_casing_rules): New
81640         variables.
81641         (add_casing_rule, fill_casing_rules): New functions.
81642         (struct casefold_rule): New type.
81643         (casefolding_rules, num_casefolding_rules,
81644         allocated_casefolding_rules): New variables.
81645         (fill_casefolding_rules): New function.
81646         (unicode_casefold): New variable.
81647         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81648         sort_casing_rules, output_casing_rules): New functions.
81649         (main): Accept to more arguments: SpecialCasing.txt and
81650         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81651         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81652         Output mapping for casefolding.
81654         * lib/unicase.h: Include stdbool.h, uninorm.h.
81655         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81656         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81657         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81658         arguments.
81659         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81660         resultp arguments.
81661         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81662         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81663         resultp arguments.
81664         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81665         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81666         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81667         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81668         declarations.
81669         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81671 2009-03-08  Bruno Haible  <bruno@clisp.org>
81673         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81674         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81675         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81676         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81678 2009-03-07  Bruno Haible  <bruno@clisp.org>
81680         Adjust u*_normcmp, u*_normcoll API.
81681         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81682         u16_normcoll, u32_normcoll): Change failure conventions.
81683         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81684         errno and return -1.
81685         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81687 2009-03-07  Bruno Haible  <bruno@clisp.org>
81689         Tests for module 'uninorm/u32-normcoll'.
81690         * modules/uninorm/u32-normcoll-tests: New file.
81691         * tests/uninorm/test-u32-normcoll.c: New file.
81693         Tests for module 'uninorm/u16-normcoll'.
81694         * modules/uninorm/u16-normcoll-tests: New file.
81695         * tests/uninorm/test-u16-normcoll.c: New file.
81697         Tests for module 'uninorm/u8-normcoll'.
81698         * modules/uninorm/u8-normcoll-tests: New file.
81699         * tests/uninorm/test-u8-normcoll.c: New file.
81701 2009-03-07  Bruno Haible  <bruno@clisp.org>
81703         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81704         tests/uninorm/test-u32-normcmp.c.
81705         * tests/uninorm/test-u32-normcmp.c: Include it.
81706         (test_nonascii): New function, extracted from main. Add some more
81707         tests.
81708         (main): Invoke test_ascii and test_nonascii.
81709         * modules/uninorm/u32-normcmp-tests (Files): Add
81710         tests/uninorm/test-u32-normcmp.h.
81711         (Depends-on): Remove uninorm/u32-normcmp.
81713         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81714         tests/uninorm/test-u16-normcmp.c.
81715         * tests/uninorm/test-u16-normcmp.c: Include it.
81716         (test_nonascii): New function, extracted from main. Add some more
81717         tests.
81718         (main): Invoke test_ascii and test_nonascii.
81719         * modules/uninorm/u16-normcmp-tests (Files): Add
81720         tests/uninorm/test-u16-normcmp.h.
81721         (Depends-on): Remove uninorm/u16-normcmp.
81723         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81724         tests/uninorm/test-u8-normcmp.c.
81725         * tests/uninorm/test-u8-normcmp.c: Include it.
81726         (test_nonascii): New function, extracted from main. Add some more
81727         tests.
81728         (main): Invoke test_ascii and test_nonascii.
81729         * modules/uninorm/u8-normcmp-tests (Files): Add
81730         tests/uninorm/test-u8-normcmp.h.
81731         (Depends-on): Remove uninorm/u8-normcmp.
81733 2009-03-07  Bruno Haible  <bruno@clisp.org>
81735         New module 'uninorm/u32-normcoll'.
81736         * lib/uninorm/u32-normcoll.c: New file.
81737         * modules/uninorm/u32-normcoll: New file.
81739         New module 'uninorm/u16-normcoll'.
81740         * lib/uninorm/u16-normcoll.c: New file.
81741         * modules/uninorm/u16-normcoll: New file.
81743         New module 'uninorm/u8-normcoll'.
81744         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81745         declarations.
81746         * lib/uninorm/u8-normcoll.c: New file.
81747         * lib/uninorm/u-normcoll.h: New file.
81748         * modules/uninorm/u8-normcoll: New file.
81750         New module 'uninorm/u32-normxfrm'.
81751         * lib/uninorm/u32-normxfrm.c: New file.
81752         * modules/uninorm/u32-normxfrm: New file.
81754         New module 'uninorm/u16-normxfrm'.
81755         * lib/uninorm/u16-normxfrm.c: New file.
81756         * modules/uninorm/u16-normxfrm: New file.
81758         New module 'uninorm/u8-normxfrm'.
81759         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81760         declarations.
81761         * lib/uninorm/u8-normxfrm.c: New file.
81762         * lib/uninorm/u-normxfrm.h: New file.
81763         * modules/uninorm/u8-normxfrm: New file.
81765 2009-03-07  Bruno Haible  <bruno@clisp.org>
81767         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81768         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81769         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81771 2009-03-07  Bruno Haible  <bruno@clisp.org>
81773         New module 'memxfrm'.
81774         * lib/memxfrm.h: New file.
81775         * lib/memxfrm.c: New file.
81776         * modules/memxfrm: New file.
81778 2009-03-07  Bruno Haible  <bruno@clisp.org>
81780         New module 'memcmp2'.
81781         * lib/memcmp2.h: New file.
81782         * lib/memcmp2.c: New file.
81783         * modules/memcmp2: New file.
81785 2009-03-07  Bruno Haible  <bruno@clisp.org>
81787         Tests for module 'uninorm/decomposing-form'.
81788         * modules/uninorm/decomposing-form-tests: New file.
81789         * tests/uninorm/test-decomposing-form.c: New file.
81791         New module 'uninorm/decomposing-form'.
81792         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81793         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81794         Add 'decomposing_variant' field.
81795         * lib/uninorm/decomposing-form.c: New file.
81796         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81797         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81798         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81799         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81800         * modules/uninorm/decomposing-form: New file.
81801         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81802         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81804 2009-03-07  Bruno Haible  <bruno@clisp.org>
81806         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81807         strings.
81809 2009-03-06  Bruno Haible  <bruno@clisp.org>
81811         Tests for module 'uninorm/u32-normcmp'.
81812         * tests/uninorm/test-u32-normcmp.c: New file.
81813         * modules/uninorm/u32-normcmp-tests: New file.
81815         Tests for module 'uninorm/u16-normcmp'.
81816         * tests/uninorm/test-u16-normcmp.c: New file.
81817         * modules/uninorm/u16-normcmp-tests: New file.
81819         Tests for module 'uninorm/u8-normcmp'.
81820         * tests/uninorm/test-u8-normcmp.c: New file.
81821         * modules/uninorm/u8-normcmp-tests: New file.
81823         New module 'uninorm/u32-normcmp'.
81824         * lib/uninorm/u32-normcmp.c: New file.
81825         * modules/uninorm/u32-normcmp: New file.
81827         New module 'uninorm/u16-normcmp'.
81828         * lib/uninorm/u16-normcmp.c: New file.
81829         * modules/uninorm/u16-normcmp: New file.
81831         New module 'uninorm/u8-normcmp'.
81832         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81833         declarations.
81834         * lib/uninorm/u8-normcmp.c: New file.
81835         * lib/uninorm/u-normcmp.h: New file.
81836         * modules/uninorm/u8-normcmp: New file.
81838 2009-03-06  Bruno Haible  <bruno@clisp.org>
81840         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81841         Reported by Eric Blake.
81843 2009-03-06  Eric Blake  <ebb9@byu.net>
81844             Bruno Haible  <bruno@clisp.org>
81846         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81847         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81848         condition.
81849         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81850         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81851         condition.
81852         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81854 2009-03-06  Eric Blake  <ebb9@byu.net>
81856         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81857         to avoid compiler warnings.
81858         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81860 2009-03-05  Bruno Haible  <bruno@clisp.org>
81862         * tests/test-ftell.c (main): Disable test beyond end of file on
81863         FreeMiNT.
81864         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81866 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81868         * lib/filevercmp.c: Move hidden files up in ordering.
81869         * tests/test-filevercmp.c: Add tests for hidden files.
81871 2009-03-04  Bruno Haible  <bruno@clisp.org>
81873         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81874         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81875         AM_CFLAGS.
81876         Reported by Simon Josefsson.
81878 2009-03-03  Bruno Haible  <bruno@clisp.org>
81880         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81881         Reported by Simon Josefsson.
81883         * doc/ld-version-script.texi: Update node reference.
81885 2009-03-03  Bruno Haible  <bruno@clisp.org>
81887         * modules/visibility (License): Change to 'unlimited'.
81888         Suggested by Simon Josefsson.
81890 2009-03-03  Jim Meyering  <meyering@redhat.com>
81892         unlinkdir: cannot_unlink_dir may modify process state
81893         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81894         it's neither thread-safe nor appropriate for use in a library.
81896 2009-03-03  Eric Blake  <ebb9@byu.net>
81898         test-closein: silence test under Darwin
81899         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81900         care if it dies from EPIPE or EBADF.
81902 2009-03-03  Bruno Haible  <bruno@clisp.org>
81904         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81905         earlier.
81906         * doc/visibility.texi: Fix @node and @section.
81908 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81910         * doc/gnulib.texi: Link to sections for ld version script and
81911         visibility.
81912         * doc/visibility.texi: Add @node and @section.
81913         * modules/ld-version-script: New module.
81914         * m4/ld-version-script.m4: New file.
81915         * doc/ld-version-script.texi: New file.
81917 2009-03-02  David Lutterkort  <lutter@redhat.com>
81919         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81922 2009-03-02  Bruno Haible  <bruno@clisp.org>
81924         * doc/visibility.texi: Mention libtool's -export-symbols option.
81926 2009-03-02  Jim Meyering  <meyering@redhat.com>
81928         announce-gen: new option: --no-print-checksums
81929         * build-aux/announce-gen (usage): Describe it.
81930         (print_checksums): Print a newline here, not in the [*] footnote.
81931         (main): Honor it.
81933 2009-03-01  Bruno Haible  <bruno@clisp.org>
81935         Use socklen_t in the native Windows replacements prototypes.
81936         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81937         instead of 'int'.
81938         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81939         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81940         * modules/getsockopt (Depends-on): Add socklen.
81941         * modules/setsockopt (Depends-on): Add socklen.
81943 2009-03-01  Bruno Haible  <bruno@clisp.org>
81945         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81946         least 4.2.
81948 2009-03-01  Eric Blake  <ebb9@byu.net>
81949             Bruno Haible  <bruno@clisp.org>
81951         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81952         error messages.
81953         * lib/wait-process.c (wait_subprocess): Omit error message about
81954         deadly signal sent to the child of termsigp != NULL.
81956 2009-03-01  Eric Blake  <ebb9@byu.net>
81958         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81960 2009-03-01  Bruno Haible  <bruno@clisp.org>
81962         Avoid a gcc warning.
81963         * tests/test-sched.c (b): Make global.
81964         Reported by Eric Blake.
81966 2009-01-19  Martin Lambers  <marlam@marlam.de>
81968         Provide POSIX semantics for socket timeout options on W32.
81969         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81970         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81971         * modules/setsockopt: Depend on sys_time module for struct timeval.
81972         * modules/getsockopt: Depend on sys_time module for struct timeval.
81974 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81976         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81977         __USE_GNU, for consistency with netdb.in.h.
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/fseeko.c (rpl_fseeko): Complete last commit.
81984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81986 2009-03-01  Bruno Haible  <bruno@clisp.org>
81988         More support for FreeMiNT.
81989         * lib/fpurge.c (fpurge): Correct last commit.
81990         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81992 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81994         Fix unportable awk script in vc-list-files.
81995         * build-aux/vc-list-files: In the replacement awk script, use
81996         substr with a second argument of 1, not zero.
81997         Report by Simon Josefsson.
81999 2009-02-28  Bruno Haible  <bruno@clisp.org>
82001         More support for FreeMiNT.
82002         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82003         to FreeMiNT today.
82004         * lib/fwriting.c (fwriting): Likewise.
82005         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82007 2009-02-28  Bruno Haible  <bruno@clisp.org>
82009         * tests/test-freadseek.c (main): Disable test beyond end of file on
82010         FreeMiNT.
82011         * tests/test-ftello.c (main): Likewise.
82012         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82014 2009-02-28  Bruno Haible  <bruno@clisp.org>
82016         Add tentative support for FreeMiNT.
82017         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82018         * lib/fpurge.c (fpurge): Likewise.
82019         * lib/freadable.c (freadable): Likewise.
82020         * lib/freading.c (freading): Likewise.
82021         * lib/freadptr.c (freadptr): Likewise.
82022         * lib/freadseek.c (freadptrinc): Likewise.
82023         * lib/fseeko.c (rpl_fseeko): Likewise.
82024         * lib/fseterr.c (fseterr): Likewise.
82025         * lib/fwritable.c (fwritable): Likewise.
82026         * lib/fwriting.c (fwriting): Likewise.
82027         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82028         Hourihane.
82029         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82031 2009-02-28  Bruno Haible  <bruno@clisp.org>
82033         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82034         SIGCHLD.
82035         Reported by Jim Meyering.
82037 2009-02-28  Bruno Haible  <bruno@clisp.org>
82039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82040         Mention the results of these tests on various platforms.
82041         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82042         order.
82043         * doc/posix-functions/printf.texi: Likewise.
82044         * doc/posix-functions/snprintf.texi: Likewise.
82045         * doc/posix-functions/sprintf.texi: Likewise.
82046         * doc/posix-functions/vfprintf.texi: Likewise.
82047         * doc/posix-functions/vprintf.texi: Likewise.
82048         * doc/posix-functions/vsnprintf.texi: Likewise.
82049         * doc/posix-functions/vsprintf.texi: Likewise.
82050         * doc/glibc-functions/obstack_printf.texi: Likewise.
82051         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82053 2009-02-28  Bruno Haible  <bruno@clisp.org>
82055         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82056         Reported by Loïc Minier <lool@dooz.org>.
82058 2009-02-27  Bruno Haible  <bruno@clisp.org>
82060         * gnulib-tool (func_import): Make the sed expression used to create the
82061         sed script for updating the .gitignore file POSIX compliant.
82062         Reported by Eric Blake.
82064 2009-02-27  Bruno Haible  <bruno@clisp.org>
82066         * gnulib-tool (sed): Don't alias as "sed --posix".
82067         Reported by Eric Blake.
82069 2009-02-27  Bruno Haible  <bruno@clisp.org>
82071         Avoid test link errors.
82072         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82073         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82074         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82075         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82078 2009-02-27  Bruno Haible  <bruno@clisp.org>
82080         Avoid spurious "(cached)" in configure output.
82081         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82082         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82083         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82084         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82085         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82086         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82087         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82088         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82089         Reported by Eric Blake.
82091 2009-02-27  Eric Blake  <ebb9@byu.net>
82093         printf: fix regression in previous patch
82094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82096 2009-02-27  Bruno Haible  <bruno@clisp.org>
82098         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82099         value.
82100         * lib/stdint.in.h: Likewise.
82101         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82103 2009-02-27  Eric Blake  <ebb9@byu.net>
82105         doc: mention more functions added in cygwin 1.7.0
82106         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82107         addition.
82108         * doc/posix-functions/open_wmemstream.texi: Likewise.
82109         * doc/posix-functions/wcsnlen.texi: Likewise.
82110         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82111         * doc/posix-functions/wcstod.texi: Likewise.
82112         * doc/posix-functions/wcstof.texi: Likewise.
82113         * doc/posix-functions/wcstoimax.texi: Likewise.
82114         * doc/posix-functions/wcstok.texi: Likewise.
82115         * doc/posix-functions/wcstoumax.texi: Likewise.
82117         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82119         * doc/posix-functions/fprintf.texi: Update.
82120         * doc/posix-functions/printf.texi: Update.
82121         * doc/posix-functions/snprintf.texi: Update.
82122         * doc/posix-functions/sprintf.texi: Update.
82123         * doc/posix-functions/vfprintf.texi: Update.
82124         * doc/posix-functions/vprintf.texi: Update.
82125         * doc/posix-functions/vsnprintf.texi: Update.
82126         * doc/posix-functions/vsprintf.texi: Update.
82127         * doc/glibc-functions/obstack_printf.texi: Update.
82128         * doc/glibc-functions/obstack_vprintf.texi: Update.
82130 2009-02-26  Eric Blake  <ebb9@byu.net>
82132         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82133         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82134         compilation bug by using runtime conversion.
82135         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82136         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82137         * modules/ceill-tests (Files): Use nan.h.
82138         * modules/floorl-tests (Files): Likewise.
82139         * modules/frexpl-tests (Files): Likewise.
82140         * modules/isnanl-tests (Files): Likewise.
82141         * modules/ldexpl-tests (Files): Likewise.
82142         * modules/roundl-tests (Files): Likewise.
82143         * modules/truncl-tests (Files): Likewise.
82144         * tests/test-ceill.c (main): Use a working NaN.
82145         * tests/test-floorl.c (main): Likewise.
82146         * tests/test-frexpl.c (main): Likewise.
82147         * tests/test-isnan.c (test_long_double): Likewise.
82148         * tests/test-isnanl.h (main): Likewise.
82149         * tests/test-ldexpl.h (main): Likewise.
82150         * tests/test-roundl.h (main): Likewise.
82151         * tests/test-truncl.h (main): Likewise.
82152         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82154 2009-02-26  Eric Blake  <ebb9@byu.net>
82155             Bruno Haible  <bruno@clisp.org>
82157         Work around a *printf bug with %ls on Solaris.
82158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82159         precision is specified, sprintf stops converting the wide string
82160         argument when the number of bytes that have been produced by this
82161         conversion equals or exceeds the precision.
82162         * doc/posix-functions/fprintf.texi: Update.
82163         * doc/posix-functions/printf.texi: Update.
82164         * doc/posix-functions/snprintf.texi: Update.
82165         * doc/posix-functions/sprintf.texi: Update.
82166         * doc/posix-functions/vfprintf.texi: Update.
82167         * doc/posix-functions/vprintf.texi: Update.
82168         * doc/posix-functions/vsnprintf.texi: Update.
82169         * doc/posix-functions/vsprintf.texi: Update.
82170         * doc/glibc-functions/obstack_printf.texi: Update.
82171         * doc/glibc-functions/obstack_vprintf.texi: Update.
82173 2009-02-26  Eric Blake  <ebb9@byu.net>
82175         stdlib: favor compiler check of random.h
82176         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82177         to avoid an ObjC random.h installed by Swarm.
82179 2009-02-26  Bruno Haible  <bruno@clisp.org>
82181         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82182         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82183         Reported by Gary V. Vaughan <gary@gnu.org>.
82185 2009-02-26  Bruno Haible  <bruno@clisp.org>
82187         Fix *printf behaviour regarding the %ls directive.
82188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82189         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82190         NEED_PRINTF_DIRECTIVE_LS.
82191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82192         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82194         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82195         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82196         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82197         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82202         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82206         * doc/posix-functions/fprintf.texi: Update.
82207         * doc/posix-functions/printf.texi: Update.
82208         * doc/posix-functions/snprintf.texi: Update.
82209         * doc/posix-functions/sprintf.texi: Update.
82210         * doc/posix-functions/vfprintf.texi: Update.
82211         * doc/posix-functions/vprintf.texi: Update.
82212         * doc/posix-functions/vsnprintf.texi: Update.
82213         * doc/posix-functions/vsprintf.texi: Update.
82214         * doc/glibc-functions/obstack_printf.texi: Update.
82215         * doc/glibc-functions/obstack_vprintf.texi: Update.
82216         Reported by Eric Blake.
82218 2009-02-25  Bruno Haible  <bruno@clisp.org>
82220         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82221         with known value.
82222         Reported by Gary V. Vaughan <gary@gnu.org>.
82224 2009-02-25  Bruno Haible  <bruno@clisp.org>
82226         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82227         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82228         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82229         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82230         Reported by Gary V. Vaughan <gary@gnu.org>.
82232 2009-02-25  Bruno Haible  <bruno@clisp.org>
82234         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82235         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82236         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82237         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82238         Reported by Gary V. Vaughan <gary@gnu.org>.
82240 2009-02-25  Eric Blake  <ebb9@byu.net>
82242         tests: skip fseek/ftell tests if ungetc is broken
82243         * m4/ungetc.m4: New file.
82244         * modules/fseek-tests: Split test, so ungetc dependency is
82245         separate from rest of test.
82246         * modules/fseeko-tests: Likewise.
82247         * modules/ftell-tests: Likewise.
82248         * modules/ftello-tests: Likewise.
82249         * tests/test-fseek.c (main): Isolate ungetc dependency.
82250         * tests/test-fseeko.c (main): Likewise.
82251         * tests/test-ftell.c (main): Likewise.
82252         * tests/test-ftello.c (main): Likewise.
82253         * tests/test-fseek2.sh: New file.
82254         * tests/test-fseeko2.sh: Likewise.
82255         * tests/test-ftell2.sh: Likewise.
82256         * tests/test-ftello2.sh: Likewise.
82258 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82260         test-getaddrinfo: fix usage of skip return code 77
82261         * tests/test-gettaddrinfo.c: Return skip code 77 only
82262         for first occurrence of skip (4x77 is not 77)
82264 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82266         strtod: avoid C99 decl-after-statement
82267         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82269 2009-02-24  Eric Blake  <ebb9@byu.net>
82271         strtod: detect HP-UX 11.31 bug
82272         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82273         Reported by Gary V. Vaughan.
82275 2009-02-23  Bruno Haible  <bruno@clisp.org>
82277         Fix invalid read past end of memory block.
82278         * lib/vasnprintf.c (DCHAR_SET): Define.
82279         (local_wcslen): Define only when needed.
82280         (local_strnlen, local_wcsnlen): New functions.
82281         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82282         directives that involve a conversion ourselves.
82283         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82284         wcsnlen, mbrtowc, wcrtomb.
82285         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82286         * tests/test-vasprintf-posix.c (test_function): Likewise.
82287         * tests/test-snprintf-posix.h (test_function): Likewise.
82288         * tests/test-sprintf-posix.h (test_function): Likewise.
82289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82291 2009-02-22  Bruno Haible  <bruno@clisp.org>
82293         Implement new clarified decomposition of Hangul syllables.
82294         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82295         of type LTV, return only a pairwise decomposition.
82296         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82297         Likewise.
82298         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82299         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82300         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82302 2009-02-22  Bruno Haible  <bruno@clisp.org>
82304         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82305         zero-length results and shrink excess allocated memory.
82306         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82307         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82308         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82309         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82310         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82311         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82312         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82313         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82314         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82315         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82316         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82317         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82319 2009-02-21  Bruno Haible  <bruno@clisp.org>
82321         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82322         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82323         spaces after a period. Put a space between a macro name and its
82324         argument list. Trivial rewordings.
82325         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82326         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82327         (main): Return 0 explicitly.
82329 2009-02-21  Bruno Haible  <bruno@clisp.org>
82331         Tests for module 'uninorm/filter'.
82332         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82333         * modules/uninorm/filter-tests: New file.
82335         New module 'uninorm/filter'.
82336         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82337         uninorm_filter_flush, uninorm_filter_free): New declarations.
82338         * lib/uninorm/uninorm-filter.c: New file.
82339         * modules/uninorm/filter: New file.
82341 2009-02-21  Bruno Haible  <bruno@clisp.org>
82343         Tests for module 'uninorm/nfkc'.
82344         * tests/uninorm/test-nfkc.c: New file.
82345         * tests/uninorm/test-u8-nfkc.c: New file.
82346         * tests/uninorm/test-u16-nfkc.c: New file.
82347         * tests/uninorm/test-u32-nfkc.c: New file.
82348         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82349         * tests/uninorm/test-u32-nfkc-big.c: New file.
82350         * modules/uninorm/nfkc-tests: New file.
82352         New module 'uninorm/nfkc'.
82353         * lib/uninorm/nfkc.c: New file.
82354         * modules/uninorm/nfkc: New file.
82356         Tests for module 'uninorm/nfkd'.
82357         * tests/uninorm/test-nfkd.c: New file.
82358         * tests/uninorm/test-u8-nfkd.c: New file.
82359         * tests/uninorm/test-u16-nfkd.c: New file.
82360         * tests/uninorm/test-u32-nfkd.c: New file.
82361         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82362         * tests/uninorm/test-u32-nfkd-big.c: New file.
82363         * modules/uninorm/nfkd-tests: New file.
82365         New module 'uninorm/nfkd'.
82366         * lib/uninorm/nfkd.c: New file.
82367         * modules/uninorm/nfkd: New file.
82369         Tests for module 'uninorm/nfc'.
82370         * tests/uninorm/test-nfc.c: New file.
82371         * tests/uninorm/test-u8-nfc.c: New file.
82372         * tests/uninorm/test-u16-nfc.c: New file.
82373         * tests/uninorm/test-u32-nfc.c: New file.
82374         * tests/uninorm/test-u32-nfc-big.sh: New file.
82375         * tests/uninorm/test-u32-nfc-big.c: New file.
82376         * modules/uninorm/nfc-tests: New file.
82378         New module 'uninorm/nfc'.
82379         * lib/uninorm/nfc.c: New file.
82380         * modules/uninorm/nfc: New file.
82382         Tests for module 'uninorm/nfd'.
82383         * tests/uninorm/test-nfd.c: New file.
82384         * tests/uninorm/test-u8-nfd.c: New file.
82385         * tests/uninorm/test-u16-nfd.c: New file.
82386         * tests/uninorm/test-u32-nfd.c: New file.
82387         * tests/uninorm/test-u32-nfd-big.sh: New file.
82388         * tests/uninorm/test-u32-nfd-big.c: New file.
82389         * tests/uninorm/test-u32-normalize-big.h: New file.
82390         * tests/uninorm/test-u32-normalize-big.c: New file.
82391         * tests/uninorm/NormalizationTest.txt: New file, created from
82392         Unicode 5.1.0 NormalizationTest.txt.
82393         * modules/uninorm/nfd-tests: New file.
82395         New module 'uninorm/nfd'.
82396         * lib/uninorm/nfd.c: New file.
82397         * modules/uninorm/nfd: New file.
82399         New module 'uninorm/u32-normalize'.
82400         * lib/uninorm/u32-normalize.c: New file.
82401         * modules/uninorm/u32-normalize: New file.
82403         New module 'uninorm/u16-normalize'.
82404         * lib/uninorm/u16-normalize.c: New file.
82405         * modules/uninorm/u16-normalize: New file.
82407         New module 'uninorm/u8-normalize'.
82408         * lib/uninorm/u8-normalize.c: New file.
82409         * lib/uninorm/normalize-internal.h: New file.
82410         * lib/uninorm/u-normalize-internal.h: New file.
82411         * modules/uninorm/u8-normalize: New file.
82413         New module 'uninorm/decompose-internal'.
82414         * lib/uninorm/decompose-internal.c: New file.
82415         * modules/uninorm/decompose-internal: New file.
82417         Tests for module 'uninorm/composition'.
82418         * tests/uninorm/test-composition.c: New file.
82419         * modules/uninorm/composition-tests: New file.
82421         New module 'uninorm/composition'.
82422         * lib/uninorm/composition.c: New file.
82423         * lib/uninorm/composition-table.gperf: New file, generated by
82424         gen-uni-tables.
82425         * modules/uninorm/composition: New file.
82427         Tests for module 'uninorm/compat-decomposition'.
82428         * tests/uninorm/test-compat-decomposition.c: New file.
82429         * modules/uninorm/compat-decomposition-tests: New file.
82431         New module 'uninorm/compat-decomposition'.
82432         * lib/uninorm/decompose-internal.h: New file.
82433         * lib/uninorm/compat-decomposition.c: New file.
82434         * modules/uninorm/compat-decomposition: New file.
82436         Tests for module 'uninorm/canonical-decomposition'.
82437         * tests/uninorm/test-canonical-decomposition.c: New file.
82438         * modules/uninorm/canonical-decomposition-tests: New file.
82440         New module 'uninorm/canonical-decomposition'.
82441         * lib/uninorm/canonical-decomposition.c: New file.
82442         * modules/uninorm/canonical-decomposition: New file.
82444         Tests for module 'uninorm/decomposition'.
82445         * tests/uninorm/test-decomposition.c: New file.
82446         * modules/uninorm/decomposition-tests: New file.
82448         New module 'uninorm/decomposition'.
82449         * lib/uninorm/decomposition.c: New file.
82450         * modules/uninorm/decomposition: New file.
82452         New module 'uninorm/decomposition-table'.
82453         * lib/uninorm/decomposition-table.h: New file.
82454         * lib/uninorm/decomposition-table.c: New file.
82455         * lib/uninorm/decomposition-table1.h: New file, generated by
82456         gen-uni-tables.
82457         * lib/uninorm/decomposition-table2.h: New file, generated by
82458         gen-uni-tables.
82459         * modules/uninorm/decomposition-table: New file.
82461         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82462         (UC_DECOMP_*): New enumeration items.
82463         (get_decomposition): New function.
82464         (struct decomp_table): New type.
82465         (output_decomposition, output_decomposition_tables): New functions.
82466         (unicode_composition_exclusions): New variable.
82467         (fill_composition_exclusions, debug_output_composition_tables): New
82468         functions.
82469         (main): Accept one more argument. Invoke fill_composition_exclusions.
82470         Output decomposition and composition tables.
82472         New module 'uninorm/base'.
82473         * lib/uninorm.h: New file.
82474         * lib/unictype.h: Update comment.
82475         * modules/uninorm/base: New file.
82477 2009-02-21  David Lutterkort  <lutter@redhat.com>
82479         Tests for module 'safe-alloc'.
82480         * tests/test-safe-alloc.c: New file.
82481         * modules/safe-alloc-tests: New file.
82483         New module 'safe-alloc'.
82484         * lib/safe-alloc.h: New file.
82485         * lib/safe-alloc.c: New file.
82486         * m4/safe-alloc.m4: New file.
82487         * modules/safe-alloc: New file.
82488         * doc/safe-alloc.texi: New file.
82489         * doc/gnulib.texi: Include it.
82490         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82491         safe-alloc.
82493 2009-02-18  Bruno Haible  <bruno@clisp.org>
82495         Fix link error on non-glibc systems.
82496         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82497         variable.
82498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82500 2009-02-18  Jim Meyering  <meyering@redhat.com>
82502         fts: avoid used-uninitialized error due to recent change
82503         * lib/fts.c (fts_read): Guard uses of the new member,
82504         parent->fts_n_dirs_remaining, since it's not relevant for
82505         the parent of a directory specified on the command-line.
82507 2009-02-17  James Youngman  <jay@gnu.org>
82508             Bruno Haible  <bruno@clisp.org>
82510         * m4/include_next.m4: Reformulate comment.
82512 2009-02-16  Jim Meyering  <meyering@redhat.com>
82514         fts: add #if guards so that the fts_lgpl module still builds
82515         * lib/fts.c: Guard just-added hash-table-using parts with
82516         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82517         Reported by Simon Josefsson.
82519 2009-02-15  Bruno Haible  <bruno@clisp.org>
82521         * modules/array-mergesort-tests: New file.
82522         * tests/test-array-mergesort.c: New file.
82524         New module 'array-mergesort'.
82525         * modules/array-mergesort: New file.
82526         * lib/array-mergesort.h: New file.
82528 2009-02-15  Bruno Haible  <bruno@clisp.org>
82530         Fix 2009-02-07 commit.
82531         * lib/gen-uni-tables.c (output_predicate, output_category,
82532         output_combclass, output_bidi_category, output_decimal_digit,
82533         output_digit, output_numeric, output_mirror, output_scripts,
82534         output_ident_category, output_simple_mapping): Fix format directives.
82535         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82537 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82539         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82540         fixes are available from IBM.
82542 2009-02-13  Jim Meyering  <meyering@redhat.com>
82544         fts: arrange not to stat non-directories in more cases
82545         This makes GNU find (when it doesn't need to stat each file)
82546         *much* more efficient at traversing reiserfs file systems.
82547         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82548         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82549         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82550         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82551         (leaf_optimization_applies): New function.
82552         (LCO_hash, LCO_compare): New helper functions.
82553         (link_count_optimize_ok): New function.
82554         (fts_stat): Initialize new member (if dir).
82555         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82556         we've just stat'ed a directory.  Skip the stat call when possible.
82557         ---
82558         Note this AFS-related exchange:
82559         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82560         and note find's pioctl call in find/fstype.c.
82561         But that is necessary only if you want to enable the
82562         optimization for AFS, and for now, I don't.
82564         fts: move a function definition "up" (no semantic change)
82565         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82566         "up" to precede upcoming use of a related function.
82568 2009-02-11  Jim Meyering  <meyering@redhat.com>
82570         fts: correct internal computation of nlinks (optimization-related)
82571         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82572         whether the current entry is a directory, so don't test it.
82574 2009-02-10  Bruno Haible  <bruno@clisp.org>
82576         Tests for module 'uniwbrk/ulc-wordbreaks'.
82577         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82578         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82579         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82581         Tests for module 'uniwbrk/u32-wordbreaks'.
82582         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82583         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82585         Tests for module 'uniwbrk/u16-wordbreaks'.
82586         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82587         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82589         Tests for module 'uniwbrk/u8-wordbreaks'.
82590         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82591         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82593 2009-02-10  Bruno Haible  <bruno@clisp.org>
82595         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82596         property.
82597         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82598         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82599         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82601 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82603         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82604         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82606 2009-02-10  Bruno Haible  <bruno@clisp.org>
82608         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82609         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82610         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82611         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82612         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82613         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82615 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82617         * lib/sockets.h (gl_fd_to_handle): New function.
82619         * tests/test-sockets.c: Call gl_fd_to_handle.
82621 2009-02-09  Bruno Haible  <bruno@clisp.org>
82623         * doc/havelib.texi: Document the conventions on bi-arch systems.
82625 2009-02-08  Bruno Haible  <bruno@clisp.org>
82627         Document the AC_LIB_LINKFLAGS macro.
82628         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82629         * doc/gnulib.texi: Include it.
82631 2009-02-08  Bruno Haible  <bruno@clisp.org>
82633         Fix wrong order of sections, compared to TOC.
82634         * doc/gnulib.texi: Include relocatable-maint.texi after the
82635         "Regular expressions" node, not before.
82637 2009-02-08  Bruno Haible  <bruno@clisp.org>
82639         Tests for module 'unicase/totitle'.
82640         * modules/unicase/totitle-tests: New file.
82642         Tests for module 'unicase/tolower'.
82643         * modules/unicase/tolower-tests: New file.
82645         Tests for module 'unicase/toupper'.
82646         * modules/unicase/toupper-tests: New file.
82647         * tests/unicase/test-mapping-part1.h: New file.
82648         * tests/unicase/test-mapping-part2.h: New file.
82650         New module 'unicase/totitle'.
82651         * modules/unicase/totitle: New file.
82652         * lib/unicase/totitle.c: New file.
82654         New module 'unicase/tolower'.
82655         * modules/unicase/tolower: New file.
82656         * lib/unicase/tolower.c: New file.
82658         New module 'unicase/toupper'.
82659         * modules/unicase/toupper: New file.
82660         * lib/unicase/toupper.c: New file.
82661         * lib/unicase/simple-mapping.h: New file.
82663         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82664         (mapping_table): New structure.
82665         (output_simple_mapping): New function.
82666         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82667         * modules/gen-uni-tables (Description): Update.
82668         * lib/unicase/toupper.h: New file, automatically generated by
82669         gen-uni-tables.
82670         * lib/unicase/tolower.h: New file, automatically generated by
82671         gen-uni-tables.
82672         * lib/unicase/totitle.h: New file, automatically generated by
82673         gen-uni-tables.
82674         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82675         gen-uni-tables.
82676         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82677         gen-uni-tables.
82678         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82679         gen-uni-tables.
82681         New module 'unicase/base'.
82682         * modules/unicase/base: New file.
82683         * lib/unicase.h: New file.
82685 2009-02-08  Bruno Haible  <bruno@clisp.org>
82687         New module 'uniwbrk/ulc-wordbreaks'.
82688         * modules/uniwbrk/ulc-wordbreaks: New file.
82689         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82691         New module 'uniwbrk/u32-wordbreaks'.
82692         * modules/uniwbrk/u32-wordbreaks: New file.
82693         * lib/uniwbrk/u32-wordbreaks.c: New file.
82695         New module 'uniwbrk/u16-wordbreaks'.
82696         * modules/uniwbrk/u16-wordbreaks: New file.
82697         * lib/uniwbrk/u16-wordbreaks.c: New file.
82699         New module 'uniwbrk/u8-wordbreaks'.
82700         * modules/uniwbrk/u8-wordbreaks: New file.
82701         * lib/uniwbrk/u8-wordbreaks.c: New file.
82702         * lib/uniwbrk/u-wordbreaks.h: New file.
82704         New module 'uniwbrk/table'.
82705         * modules/uniwbrk/table: New file.
82706         * lib/uniwbrk/wbrktable.h: New file.
82707         * lib/uniwbrk/wbrktable.c: New file.
82709         New module 'uniwbrk/wordbreak-property'.
82710         * modules/uniwbrk/wordbreak-property: New file.
82711         * lib/uniwbrk/wordbreak-property.c: New file.
82713         * lib/gen-uni-tables.c (WBP_*): New enum items.
82714         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82715         (unicode_org_wbp): New variable.
82716         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82717         New functions.
82718         (wbp_table): New structure.
82719         (output_wbp, output_wbrk_tables): New functions.
82720         (main): Accept additional argument. Invoke fill_org_wbp,
82721         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82722         output_wbrk_tables.
82723         * modules/gen-uni-tables (Description): Update.
82724         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82725         gen-uni-tables.
82727         New module 'uniwbrk/base'.
82728         * modules/uniwbrk/base: New file.
82729         * lib/uniwbrk.h: New file.
82731 2009-02-08  Bruno Haible  <bruno@clisp.org>
82733         Update to Unicode 5.1.0.
82734         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82735         U+2185..U+2188.
82736         (is_property_default_ignorable_code_point): Don't include characters
82737         of category Cc or Cs and not-a-characters.
82738         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82739         U+0D79, U+109E, U+109F, U+A60C.
82740         * lib/unictype/bidi_of.h: Regenerated.
82741         * lib/unictype/blocks.h: Regenerated.
82742         * lib/unictype/categ_C.h: Regenerated.
82743         * lib/unictype/categ_Cf.h: Regenerated.
82744         * lib/unictype/categ_Cn.h: Regenerated.
82745         * lib/unictype/categ_L.h: Regenerated.
82746         * lib/unictype/categ_Ll.h: Regenerated.
82747         * lib/unictype/categ_Lm.h: Regenerated.
82748         * lib/unictype/categ_Lo.h: Regenerated.
82749         * lib/unictype/categ_Lu.h: Regenerated.
82750         * lib/unictype/categ_M.h: Regenerated.
82751         * lib/unictype/categ_Mc.h: Regenerated.
82752         * lib/unictype/categ_Me.h: Regenerated.
82753         * lib/unictype/categ_Mn.h: Regenerated.
82754         * lib/unictype/categ_N.h: Regenerated.
82755         * lib/unictype/categ_Nd.h: Regenerated.
82756         * lib/unictype/categ_Nl.h: Regenerated.
82757         * lib/unictype/categ_No.h: Regenerated.
82758         * lib/unictype/categ_P.h: Regenerated.
82759         * lib/unictype/categ_Pd.h: Regenerated.
82760         * lib/unictype/categ_Pe.h: Regenerated.
82761         * lib/unictype/categ_Pf.h: Regenerated.
82762         * lib/unictype/categ_Pi.h: Regenerated.
82763         * lib/unictype/categ_Po.h: Regenerated.
82764         * lib/unictype/categ_Ps.h: Regenerated.
82765         * lib/unictype/categ_S.h: Regenerated.
82766         * lib/unictype/categ_Sk.h: Regenerated.
82767         * lib/unictype/categ_Sm.h: Regenerated.
82768         * lib/unictype/categ_So.h: Regenerated.
82769         * lib/unictype/categ_of.h: Regenerated.
82770         * lib/unictype/combining.h: Regenerated.
82771         * lib/unictype/ctype_alnum.h: Regenerated.
82772         * lib/unictype/ctype_alpha.h: Regenerated.
82773         * lib/unictype/ctype_graph.h: Regenerated.
82774         * lib/unictype/ctype_lower.h: Regenerated.
82775         * lib/unictype/ctype_print.h: Regenerated.
82776         * lib/unictype/ctype_punct.h: Regenerated.
82777         * lib/unictype/ctype_upper.h: Regenerated.
82778         * lib/unictype/decdigit.h: Regenerated.
82779         * lib/unictype/digit.h: Regenerated.
82780         * lib/unictype/mirror.h: Regenerated.
82781         * lib/unictype/numeric.h: Regenerated.
82782         * lib/unictype/pr_alphabetic.h: Regenerated.
82783         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82784         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82785         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82786         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82787         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82788         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82789         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82790         * lib/unictype/pr_combining.h: Regenerated.
82791         * lib/unictype/pr_dash.h: Regenerated.
82792         * lib/unictype/pr_decimal_digit.h: Regenerated.
82793         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82794         * lib/unictype/pr_deprecated.h: Regenerated.
82795         * lib/unictype/pr_diacritic.h: Regenerated.
82796         * lib/unictype/pr_extender.h: Regenerated.
82797         * lib/unictype/pr_format_control.h: Regenerated.
82798         * lib/unictype/pr_grapheme_base.h: Regenerated.
82799         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82800         * lib/unictype/pr_grapheme_link.h: Regenerated.
82801         * lib/unictype/pr_id_continue.h: Regenerated.
82802         * lib/unictype/pr_id_start.h: Regenerated.
82803         * lib/unictype/pr_ideographic.h: Regenerated.
82804         * lib/unictype/pr_ignorable_control.h: Regenerated.
82805         * lib/unictype/pr_lowercase.h: Regenerated.
82806         * lib/unictype/pr_math.h: Regenerated.
82807         * lib/unictype/pr_numeric.h: Regenerated.
82808         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82809         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82810         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82811         * lib/unictype/pr_other_id_continue.h: Regenerated.
82812         * lib/unictype/pr_other_lowercase.h: Regenerated.
82813         * lib/unictype/pr_other_math.h: Regenerated.
82814         * lib/unictype/pr_punctuation.h: Regenerated.
82815         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82816         * lib/unictype/pr_soft_dotted.h: Regenerated.
82817         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82818         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82819         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82820         * lib/unictype/pr_uppercase.h: Regenerated.
82821         * lib/unictype/pr_xid_continue.h: Regenerated.
82822         * lib/unictype/pr_xid_start.h: Regenerated.
82823         * lib/unictype/pr_zero_width.h: Regenerated.
82824         * lib/unictype/scripts.h: Regenerated.
82825         * lib/unictype/scripts_byname.gperf: Regenerated.
82826         * lib/unictype/sy_java_ident.h: Regenerated.
82827         * lib/unilbrk/lbrkprop1.h: Regenerated.
82828         * lib/unilbrk/lbrkprop2.h: Regenerated.
82829         * tests/unictype/test-categ_C.c: Regenerated.
82830         * tests/unictype/test-categ_Cf.c: Regenerated.
82831         * tests/unictype/test-categ_Cn.c: Regenerated.
82832         * tests/unictype/test-categ_L.c: Regenerated.
82833         * tests/unictype/test-categ_Ll.c: Regenerated.
82834         * tests/unictype/test-categ_Lm.c: Regenerated.
82835         * tests/unictype/test-categ_Lo.c: Regenerated.
82836         * tests/unictype/test-categ_Lu.c: Regenerated.
82837         * tests/unictype/test-categ_M.c: Regenerated.
82838         * tests/unictype/test-categ_Mc.c: Regenerated.
82839         * tests/unictype/test-categ_Me.c: Regenerated.
82840         * tests/unictype/test-categ_Mn.c: Regenerated.
82841         * tests/unictype/test-categ_N.c: Regenerated.
82842         * tests/unictype/test-categ_Nd.c: Regenerated.
82843         * tests/unictype/test-categ_Nl.c: Regenerated.
82844         * tests/unictype/test-categ_No.c: Regenerated.
82845         * tests/unictype/test-categ_P.c: Regenerated.
82846         * tests/unictype/test-categ_Pd.c: Regenerated.
82847         * tests/unictype/test-categ_Pe.c: Regenerated.
82848         * tests/unictype/test-categ_Pf.c: Regenerated.
82849         * tests/unictype/test-categ_Pi.c: Regenerated.
82850         * tests/unictype/test-categ_Po.c: Regenerated.
82851         * tests/unictype/test-categ_Ps.c: Regenerated.
82852         * tests/unictype/test-categ_S.c: Regenerated.
82853         * tests/unictype/test-categ_Sk.c: Regenerated.
82854         * tests/unictype/test-categ_Sm.c: Regenerated.
82855         * tests/unictype/test-categ_So.c: Regenerated.
82856         * tests/unictype/test-ctype_alnum.c: Regenerated.
82857         * tests/unictype/test-ctype_alpha.c: Regenerated.
82858         * tests/unictype/test-ctype_graph.c: Regenerated.
82859         * tests/unictype/test-ctype_lower.c: Regenerated.
82860         * tests/unictype/test-ctype_print.c: Regenerated.
82861         * tests/unictype/test-ctype_punct.c: Regenerated.
82862         * tests/unictype/test-ctype_upper.c: Regenerated.
82863         * tests/unictype/test-decdigit.h: Regenerated.
82864         * tests/unictype/test-digit.h: Regenerated.
82865         * tests/unictype/test-numeric.h: Regenerated.
82866         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82867         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82868         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82869         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82870         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82871         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82872         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82873         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82874         * tests/unictype/test-pr_combining.c: Regenerated.
82875         * tests/unictype/test-pr_dash.c: Regenerated.
82876         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82877         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82878         * tests/unictype/test-pr_deprecated.c: Regenerated.
82879         * tests/unictype/test-pr_diacritic.c: Regenerated.
82880         * tests/unictype/test-pr_extender.c: Regenerated.
82881         * tests/unictype/test-pr_format_control.c: Regenerated.
82882         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82883         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82884         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82885         * tests/unictype/test-pr_id_continue.c: Regenerated.
82886         * tests/unictype/test-pr_id_start.c: Regenerated.
82887         * tests/unictype/test-pr_ideographic.c: Regenerated.
82888         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82889         * tests/unictype/test-pr_lowercase.c: Regenerated.
82890         * tests/unictype/test-pr_math.c: Regenerated.
82891         * tests/unictype/test-pr_numeric.c: Regenerated.
82892         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82893         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82894         Regenerated.
82895         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82896         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82897         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82898         * tests/unictype/test-pr_other_math.c: Regenerated.
82899         * tests/unictype/test-pr_punctuation.c: Regenerated.
82900         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82901         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82902         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82903         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82904         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82905         * tests/unictype/test-pr_uppercase.c: Regenerated.
82906         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82907         * tests/unictype/test-pr_xid_start.c: Regenerated.
82908         * tests/unictype/test-pr_zero_width.c: Regenerated.
82910         Update to Unicode 5.1.0.
82911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82912         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82913         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82914         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82915         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82916         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82917         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82918         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82919         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82920         (nonspacing_table_ind): Update.
82921         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82923         Update to Unicode 5.1.0.
82924         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82925         code transform.
82926         * lib/uniname/uniname.c (unicode_character_name,
82927         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82928         * lib/uniname/uninames.h: Regenerated.
82929         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82931 2009-02-07  Bruno Haible  <bruno@clisp.org>
82933         Merge gen-ctype and gen-lbrk into a single program.
82934         * lib/gen-uni-tables.c: New file, incorporating
82935         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82936         Add directory prefixes to the names of the generated files.
82937         * lib/unictype/gen-ctype.c: Remove file.
82938         * lib/unilbrk/gen-lbrk.c: Remove file.
82939         * modules/gen-uni-tables: New file.
82940         * modules/unictype/gen-ctype: Remove file.
82941         * modules/unilbrk/gen-lbrk: Remove file.
82943 2009-02-07  Bruno Haible  <bruno@clisp.org>
82945         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82947         New module 'unistr/u32-strcoll'.
82948         * modules/unistr/u32-strcoll: New file.
82949         * lib/unistr/u32-strcoll.c: New file.
82951         New module 'unistr/u16-strcoll'.
82952         * modules/unistr/u16-strcoll: New file.
82953         * lib/unistr/u16-strcoll.c: New file.
82955         New module 'unistr/u8-strcoll'.
82956         * modules/unistr/u8-strcoll: New file.
82957         * lib/unistr/u8-strcoll.c: New file.
82958         * lib/unistr/u-strcoll.h: New file.
82960 2009-02-07  Bruno Haible  <bruno@clisp.org>
82962         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82963         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82964         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82965         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82966         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82967         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82969 2009-02-07  Bruno Haible  <bruno@clisp.org>
82971         Make 64-bit clean.
82972         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82973         output_combclass, output_bidi_category, output_decimal_digit,
82974         output_digit, output_numeric, output_mirror, output_scripts,
82975         output_ident_category): Use proper width specifier in format strings.
82977 2009-02-07  Bruno Haible  <bruno@clisp.org>
82979         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82980         failure behaviour.
82982 2009-02-07  Jim Meyering  <meyering@redhat.com>
82984         regex: avoid compilation failure with upcoming gcc-4.4
82985         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82986         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82987         "... error: integer overflow in preprocessor expression".
82989 2009-02-05  Ben Pfaff  <blp@gnu.org>
82991         Fix link errors on Windows when close module is used.
82992         * modules/close: Add $(LIB_CLOSE) to Link section.
82993         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82994         $(LIB_CLOSE) on Windows.
82996 2009-02-05  Jim Meyering  <meyering@redhat.com>
82998         still avoid unused-parameter warnings, but do it cleanly
82999         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83000         (get_fs_usage): Cast to void instead.
83001         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83002         (dev_from_mount_options, read_file_system_list): Cast to void.
83003         Prompted by Bruno Haible.
83005 2009-02-04  Jim Meyering  <meyering@redhat.com>
83007         fsusage.c: correct copyright year
83008         * lib/fsusage.c: Reflect year in which the change is pushed into
83010         avoid misc. warnings
83011         * lib/fsusage.c (UNUSED_PARAM): Define.
83012         (get_fs_usage): Mark parameter "disk" as unused.
83013         * lib/getugroups.c (getgrent): Use "void" in prototype.
83014         * lib/mountlist.c: Mark unused parameters.
83015         (read_file_system_list): Declare a local with "const".
83016         * lib/nanosleep.c (getnow): Declare static.
83017         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83019         dirfd: set errno upon failure
83020         * lib/dirfd.c: Include <errno.h>.
83021         Set errno to ENOTSUP when returning -1.
83022         * modules/dirfd (Depends-on): Add errno.
83023         Suggested by John Kodis <kodis@comcast.net>.
83025 2009-02-01  Bruno Haible  <bruno@clisp.org>
83027         Don't assume sizeof (long) >= sizeof (void *).
83028         * lib/memcmp.c: Include stdint.h.
83029         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83030         srcp2 to 'const byte *'.
83031         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83032         types to uintptr_t.
83033         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83034         * modules/memcmp (Depends-on): Add stdint.
83035         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83037 2009-01-30  Eric Blake  <ebb9@byu.net>
83039         fix more require-before-expand issues
83040         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83041         expand, AC_PROG_AWK.
83042         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83044 2009-01-28  Eric Blake  <ebb9@byu.net>
83046         version-etc: use consistent URL formatting
83047         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83048         Improve formatting.  Use fputs for string without %.
83050 2009-01-28  Jim Meyering  <meyering@redhat.com>
83052         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83053         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83054         "underquoted definition of NAME" from autoconf-2.59.
83056 2009-01-28  Bruno Haible  <bruno@clisp.org>
83058         * doc/gnulib.texi: Add "Obsolete modules" to index.
83060 2009-01-28  Jim Meyering  <meyering@redhat.com>
83062         useless-if-before-free: recognize more variants
83063         * build-aux/useless-if-before-free: Also recognize e.g.,
83064         if (NULL != p) free (p);
83066 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83068         test-getaddrinfo: skip (don't fail) this test when there's no network
83069         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83070         on the presumption that it means you lack network access.
83072 2009-01-26  Jim Meyering  <meyering@redhat.com>
83074         fflush: avoid warnings on modern systems
83075         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83076         pos and result, into scopes where they're used.
83078 2009-01-26  Eric Blake  <ebb9@byu.net>
83080         Silence warning reintroduced by recent extensions patch.
83081         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83082         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83083         autoconf.
83085         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83086         * m4/00gnulib.m4: New file.
83087         * gnulib-tool (func_get_filelist): Always use it.
83088         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83089         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83091 2009-01-25  Bruno Haible  <bruno@clisp.org>
83093         Make test-quotearg work on MacOS X and AIX.
83094         * tests/test-quotearg.sh: New file.
83095         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83096         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83097         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83098         include <libintl.h>.
83099         (fake_locale): Remove variable.
83100         (gettext, dgettext, dcgettext): Remove functions.
83101         (main): Instead of setting a fake locale, set a real locale. Call
83102         textdomain and bindtextdomain.
83103         * modules/quotearg-tests (Files): Add the new files.
83104         (Depends-on): Add gettext, setenv, unsetenv.
83105         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83106         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83107         Augment TESTS_ENVIRONMENT.
83109 2009-01-25  Bruno Haible  <bruno@clisp.org>
83111         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83112         fr_FR.ISO8859-1 locale on MacOS X.
83113         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83114         ja_JP.eucJP locale on MacOS X.
83115         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83116         zh_CN.GB18030 locale on MacOS X.
83118 2009-01-25  Bruno Haible  <bruno@clisp.org>
83120         Avoid link errors on MacOS X 10.3.
83121         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83122         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83124 2009-01-25  Bruno Haible  <bruno@clisp.org>
83126         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83127         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83128         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83129         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83130         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83131         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83132         posix_spawnattr_init, posix_spawnattr_setsigmask,
83133         posix_spawnattr_setflags, posix_spawnattr_destroy.
83135         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83136         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83137         * modules/execute (Files): Remove m4/posix_spawn.m4.
83138         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83139         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83140         posix_spawnattr_init, posix_spawnattr_setsigmask,
83141         posix_spawnattr_setflags, posix_spawnattr_destroy.
83143 2009-01-25  Bruno Haible  <bruno@clisp.org>
83145         * lib/glthread/threadlib.c: Include <stdlib.h>.
83147 2009-01-25  Bruno Haible  <bruno@clisp.org>
83149         * lib/glthread/threadlib.c (dummy): New declaration.
83151 2009-01-25  Bruno Haible  <bruno@clisp.org>
83153         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83154         multibyte characters also for the GB18030 encoding. Don't crash when
83155         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83157 2009-01-25  Bruno Haible  <bruno@clisp.org>
83159         Avoid redefining 'struct random_data' on OSF/1 5.1.
83160         * lib/stdlib.in.h: Include <random.h> if it exists.
83161         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83162         HAVE_RANDOM_H. Include <random.h> when testing whether
83163         'struct random_data' exists.
83164         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83166 2009-01-25  Bruno Haible  <bruno@clisp.org>
83168         Don't install charset.alias on MacOS X >= 10.3.
83169         * lib/localcharset.c (DARWIN7): New macro.
83170         (get_charset_aliases): Hardcode the result for Darwin7.
83171         * modules/localcharset (install-exec-local): Don't install
83172         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83174 2009-01-25  Bruno Haible  <bruno@clisp.org>
83176         Don't install charset.alias on mingw and Cygwin.
83177         * modules/localcharset (install-exec-local): Don't install
83178         charset.alias on mingw and Cygwin, if the file does not yet exist.
83179         The result for these platforms is hardcoded in localcharset.c.
83181 2009-01-25  Bruno Haible  <bruno@clisp.org>
83183         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83185         before requiring AC_USE_SYSTEM_EXTENSIONS.
83187 2009-01-25  Jim Meyering  <meyering@redhat.com>
83189         c-strtod: avoid warnings
83190         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83191         "assignment discards qualifiers from pointer target type" warnings.
83193 2009-01-24  Bruno Haible  <bruno@clisp.org>
83195         Add support for non-UTF-8 locales on MacOS X.
83196         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83197         canonical encodings. For Darwin 7 and newer, don't map traditional
83198         encodings to UTF-8.
83199         Reported by Vincent Lefevre <vincent@vinc17.org>
83200         at <http://savannah.gnu.org/bugs/?25235>.
83202 2009-01-24  Bruno Haible  <bruno@clisp.org>
83204         * doc/gnulib.texi (Obsolete modules): New section.
83205         Reported by Mike Frysinger <vapier@gentoo.org>.
83207 2009-01-24  Bruno Haible  <bruno@clisp.org>
83209         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83210         (%.dvi): New rule.
83212 2009-01-24  Bruno Haible  <bruno@clisp.org>
83214         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83215         Reported by Eric Blake.
83217 2009-01-24  Bruno Haible  <bruno@clisp.org>
83219         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83220         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83221         Reported by Gary V. Vaughan <gary@gnu.org>.
83223 2009-01-24  Bruno Haible  <bruno@clisp.org>
83225         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83227 2009-01-23  Bruno Haible  <bruno@clisp.org>
83229         Make c-strtod, c-strtold usable in libraries.
83230         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83231         (C_STRTOD): Call strdup instead of xstrdup.
83232         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83233         * modules/c-strtold (Depends-on): Likewise.
83234         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83235         * NEWS: Mention the change.
83236         Reported by Michael Gold <mgold@ncf.ca>.
83238 2009-01-23  Jim Meyering  <meyering@redhat.com>
83240         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83241         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83242         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83244 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83246         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83247         GNU CoreUtils.
83248         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83249         * modules/version-etc (Description): Update.
83251 2009-01-22  Bruno Haible  <bruno@clisp.org>
83253         Cache the C locale object.
83254         * lib/c-strtod.c (c_locale_cache): New variable.
83255         (c_locale): New function.
83256         (C_STRTOD): Use it, and don't call freelocale.
83257         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83258         Suggested by Paolo Bonzini.
83260 2009-01-21  Bruno Haible  <bruno@clisp.org>
83262         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83263         conditions other than overflow.
83265 2009-01-21  Bruno Haible  <bruno@clisp.org>
83267         * lib/c-strtod.c: Include errno.h.
83268         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83269         value from STRTOD_L and STRTOD.
83271 2009-01-21  Bruno Haible  <bruno@clisp.org>
83272         and Jim Meyering  <meyering@redhat.com>
83274         nanosleep: skip configure test (fail it) for apple universal builds
83275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83276         universal builds, assume that nanosleep does not work.
83277         * modules/nanosleep (Depends-on): Add multiarch.
83279         mktime: skip configure test (fail it) for apple universal builds
83280         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83281         universal builds, assume that mktime does not work.
83282         * modules/mktime (Depends-on): Add multiarch.
83284 2009-01-21  Eric Blake  <ebb9@byu.net>
83286         multiarch: avoid expand-before-require warning
83287         * modules/multiarch (configure.ac): Require, rather than expand,
83288         gl_MULTIARCH.
83289         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83290         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83291         enforce that all clients require it.  Partial reversion of
83292         2008-12-29 patch.
83294         error: avoid expand-before-require warning
83295         * modules/errno (configure.ac): Require, rather than expand,
83296         gl_HEADER_ERRNO_H.
83297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83298         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83299         enforce that all clients require it.
83301         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83302         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83303         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83304         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83306 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83308         Revert:
83309         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83311         regex: do not depend on obsolete modules.
83312         * modules/regex: Remove memcmp and memmove.
83314 2009-01-20  Bruno Haible  <bruno@clisp.org>
83316         Make the 'link' module link on Windows NT 4.
83317         * lib/link.c (_WIN32_WINNT): Don't define.
83318         (CreateHardLinkFuncType): New type.
83319         (CreateHardLinkFunc, initialized): New variables.
83320         (initialize): New function.
83321         (link): Invoke CreateHardLink indirectly through the function pointer.
83323 2009-01-20  Bruno Haible  <bruno@clisp.org>
83325         Fix compilation failure on mingw.
83326         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83328 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83330         * doc/c-strtod.texi: Mention a couple of restrictions.
83332 2009-01-20  Jim Meyering  <meyering@redhat.com>
83334         gettimeofday: move more declarations out of functions
83335         * lib/gettimeofday.c: Move extern declarations of tzset and
83336         gmtime out of containing functions.  Prompted by Bruno Haible.
83338 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83340         regex: do not depend on obsolete modules.
83341         * modules/regex: Remove memcmp and memmove.
83343 2009-01-19  Bruno Haible  <bruno@clisp.org>
83345         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83346         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83347         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83348         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83349         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83351 2009-01-19  Bruno Haible  <bruno@clisp.org>
83353         * tests/test-link.c: Include <errno.h>.
83354         (main): Exit with code 77 when a hard link cannot be created due to
83355         the file system.
83356         * tests/test-link.sh: Skip test when a hard link cannot be created due
83357         to the file system.
83358         Suggested by Eric Blake.
83360 2009-01-19  Martin Lambers  <marlam@marlam.de>
83362         * modules/link-tests: New file.
83363         * tests/test-link.sh: New file.
83364         * tests/test-link.c: New file.
83366 2009-01-19  Eric Blake  <ebb9@byu.net>
83368         doc: mention another function added in cygwin 1.7.0
83369         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83370         Another new function in cygwin 1.7.
83372 2009-01-19  Bruno Haible  <bruno@clisp.org>
83374         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83375         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83376         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83377         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83378         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83379         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83380         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83381         * m4/md4.m4 (gl_MD4): Likewise.
83382         * m4/md5.m4 (gl_MD5): Likewise.
83383         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83384         * m4/sha1.m4 (gl_SHA1): Likewise.
83385         * m4/sha256.m4 (gl_SHA256): Likewise.
83386         * m4/sha512.m4 (gl_SHA512): Likewise.
83388 2009-01-19  Bruno Haible  <bruno@clisp.org>
83390         * modules/uniname/uniname-tests (Depends-on): Add progname.
83391         * tests/uniname/test-uninames.c: Include progname.h.
83392         (main): Call set_program_name.
83394         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83395         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83396         (main): Call set_program_name.
83398         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83399         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83400         (main): Call set_program_name.
83402         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83403         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83404         (main): Call set_program_name.
83406         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83407         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83408         (main): Call set_program_name.
83410         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83411         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83412         (main): Call set_program_name.
83414         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
83415         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
83416         (main): Call set_program_name.
83418         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
83419         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
83420         (main): Call set_program_name.
83422         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
83423         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
83424         (main): Call set_program_name.
83426 2009-01-19  Eric Blake  <ebb9@byu.net>
83428         test-unistd: test previous patch
83429         * tests/test-unistd.c: Test *_FILENO macros.
83431         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
83432         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83433         Guarantee a definition.
83434         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
83435         * modules/unistd-safer (Depends-on): Add dependency on unistd.
83436         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
83437         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83438         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83439         Likewise.
83440         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83441         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83442         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83443         Likewise.
83444         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83445         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83446         (STDERR_FILENO): Likewise.
83447         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83448         (STDERR_FILENO): Likewise.
83449         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83450         (STDERR_FILENO): Likewise.
83451         Reported by Elbert Pol.
83453 2009-01-19  Eric Blake  <ebb9@byu.net>
83455         doc: mention more functions added in cygwin 1.7.0
83456         * doc/posix-functions/abort.texi (abort): Update wording related
83457         to cygwin.
83458         * doc/posix-functions/daylight.texi (daylight): Likewise.
83459         * doc/posix-functions/optarg.texi (optarg): Likewise.
83460         * doc/posix-functions/optarg.texi (opterr): Likewise.
83461         * doc/posix-functions/optarg.texi (optind): Likewise.
83462         * doc/posix-functions/optarg.texi (optopt): Likewise.
83463         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83464         worked in 1.5.x, and was withdrawn in 1.7.
83465         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83466         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83467         cygwin versions.
83468         * doc/posix-functions/perror.texi (perror): Likewise.
83469         * doc/posix-functions/printf.texi (printf): Likewise.
83470         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83471         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83472         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83473         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83474         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83475         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83476         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83477         Likewise.
83478         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83479         Likewise.
83480         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83481         this function.
83482         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83483         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83484         Likewise.
83485         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83486         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83487         * doc/posix-functions/confstr.texi (confstr): Likewise.
83488         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83489         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83490         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83491         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83492         * doc/posix-functions/fputws.texi (fputws): Likewise.
83493         * doc/posix-functions/fwide.texi (fwide): Likewise.
83494         * doc/posix-functions/getwc.texi (getwc): Likewise.
83495         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83496         * doc/posix-functions/putwc.texi (putwc): Likewise.
83497         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83498         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83499         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83500         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83501         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83502         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83503         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83504         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83505         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83506         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83507         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83509 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83511         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83512         * lib/ioctl.c: Include <sys/ioctl.h>.
83514 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83516         * modules/getdate-tests (Depends-on): Add progname.
83517         * tests/test-getdate.c: Use progname module, to avoid link errors
83518         on non-glibc systems.
83520 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83522         * modules/filenamecat-tests (Depends-on): Add progname.
83523         * modules/fstrcmp-tests (Depends-on): Likewise.
83525         * tests/test-filenamecat.c: Use progname module, to avoid link
83526         errors on non-glibc systems.
83527         * tests/test-fstrcmp.c: Likewise.
83529 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83531         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83532         * lib/gettimeofday.c: Move extern declaration out of function.
83534 2009-01-18  Bruno Haible  <bruno@clisp.org>
83536         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83537         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83538         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83540 2009-01-18  Bruno Haible  <bruno@clisp.org>
83542         * lib/strftime.c (MEMPCPY): Remove unused macro.
83543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83545 2009-01-18  Martin Lambers  <marlam@marlam.de>
83547         New module 'link'.
83548         * lib/unistd.in.h (link): New declaration.
83549         * lib/link.c: New file.
83550         * m4/link.m4: New file.
83551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83552         HAVE_LINK.
83553         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83554         * modules/link: New file.
83555         * doc/posix-functions/link.texi: Mention the new module.
83557 2009-01-18  Bruno Haible  <bruno@clisp.org>
83559         * tests/test-avltree_list.c (main): Call set_program_name.
83560         * tests/test-avltree_oset.c (main): Likewise.
83561         * tests/test-obstack-printf.c: Include progname.h.
83562         (main): Call set_program_name.
83563         * tests/test-quotearg.c: Include progname.h.
83564         (main): Call set_program_name.
83565         * tests/test-xmemdup0.c: Include progname.h.
83566         (main): Call set_program_name.
83568 2009-01-18  Bruno Haible  <bruno@clisp.org>
83570         New module 'alphasort'.
83571         * lib/dirent.in.h (alphasort): New declaration.
83572         * lib/alphasort.c: New file, from glibc with modifications.
83573         * m4/alphasort.m4: New file.
83574         * modules/alphasort: New file.
83575         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83576         HAVE_ALPHASORT.
83577         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83578         HAVE_ALPHASORT.
83579         * doc/posix-functions/alphasort.texi: Mention the new module and the
83580         portability problems.
83582 2009-01-18  Bruno Haible  <bruno@clisp.org>
83584         New module 'scandir'.
83585         * lib/dirent.in.h (scandir): New declaration.
83586         * lib/scandir.c: New file, from glibc with modifications.
83587         * m4/scandir.m4: New file.
83588         * modules/scandir: New file.
83589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83590         HAVE_SCANDIR.
83591         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83592         HAVE_SCANDIR.
83593         * doc/posix-functions/scandir.texi: Mention the new module and the
83594         portability problems.
83596 2009-01-17  Bruno Haible  <bruno@clisp.org>
83598         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83599         Update documentation.
83600         (func_remove_suffix): Escape all dots in the suffix. Update
83601         documentation.
83602         (func_filter_filelist): Update documentation.
83603         Reported by Ralf Wildenhues.
83605 2009-01-17  Bruno Haible  <bruno@clisp.org>
83607         * modules/dprintf-posix-tests: New file.
83608         * tests/test-dprintf-posix.sh: New file.
83609         * tests/test-dprintf-posix.c: New file.
83611         New modules 'dprintf', 'dprintf-posix'.
83612         * lib/stdio.in.h (dprintf): New declaration.
83613         * lib/dprintf.c: New file.
83614         * m4/dprintf.m4: New file.
83615         * m4/dprintf-posix.m4: New file.
83616         * modules/dprintf: New file.
83617         * modules/dprintf-posix: New file.
83618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83619         HAVE_DPRINTF, REPLACE_DPRINTF.
83620         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83621         HAVE_DPRINTF, REPLACE_DPRINTF.
83622         * doc/posix-functions/dprintf.texi: Mention the new modules.
83624 2009-01-17  Bruno Haible  <bruno@clisp.org>
83626         * modules/vdprintf-posix-tests: New file.
83627         * tests/test-vdprintf-posix.sh: New file.
83628         * tests/test-vdprintf-posix.c: New file.
83630         New modules 'vdprintf', 'vdprintf-posix'.
83631         * lib/stdio.in.h (vdprintf): New declaration.
83632         * lib/vdprintf.c: New file.
83633         * m4/vdprintf.m4: New file.
83634         * m4/vdprintf-posix.m4: New file.
83635         * modules/vdprintf: New file.
83636         * modules/vdprintf-posix: New file.
83637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83638         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83639         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83640         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83641         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83643 2009-01-17  Bruno Haible  <bruno@clisp.org>
83645         Fix replacement of fopen on mingw.
83646         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83647         mingw.
83649 2009-01-17  Bruno Haible  <bruno@clisp.org>
83651         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83652         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83654 2009-01-17  Bruno Haible  <bruno@clisp.org>
83656         Avoid test-fflush2.sh failure on mingw.
83657         * tests/test-fflush2.c: Include binary-io.h.
83658         (main): Put standard input into binary mode.
83659         * modules/fflush-tests (Depends-on): Add binary-io.
83661 2009-01-17  Bruno Haible  <bruno@clisp.org>
83663         * lib/wchar.in.h: In another particular situation, include only the
83664         system's <wchar.h> file.
83665         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83666         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83667         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83669 2009-01-17  Bruno Haible  <bruno@clisp.org>
83671         Support for stripping executables in --enable-relocatable.
83672         * build-aux/install-reloc: Expect one more argument, or an environment
83673         variable RELOC_STRIP_PROG. If set, strip the destination program and
83674         its wrapper.
83675         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83676         RELOC_STRIP_PROG.
83677         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83678         to set RELOCATABLE_STRIP.
83679         * NEWS: Mention the new Makefile requirement.
83681 2009-01-17  Bruno Haible  <bruno@clisp.org>
83683         * build-aux/install-reloc: Remove debugging information left over by
83684         C compiler on MacOS X.
83686 2009-01-17  Bruno Haible  <bruno@clisp.org>
83688         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83689         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83690         _NSGetExecutablePath.
83692 2009-01-16  Jim Meyering  <meyering@redhat.com>
83694         strerror: avoid warnings about discarding "const"
83695         * lib/strerror.c (rpl_strerror): Instead of returning a const
83696         string from each and every "case", use a variable, and add a single
83697         cast after the switch.
83699 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83701         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83703 2009-01-16  Bruno Haible  <bruno@clisp.org>
83705         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83706         array initializer syntax that also works in C++ mode.
83707         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83709 2009-01-16  Jim Meyering  <meyering@redhat.com>
83711         poll: suppress a warning
83712         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83713         to ignore "...unsigned expression < 0 is always false" warnings.
83715 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83717         poll: remove declarations of unused variables
83718         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83719         sockbuf and optlen.
83721 2009-01-15  Bruno Haible  <bruno@clisp.org>
83723         Make fflush-after-ungetc POSIX compliant on BSD systems.
83724         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83725         (clear_ungetc_buffer): Implement also for other systems.
83726         (rpl_fflush): On glibc systems, invoke
83727         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83728         clear_ungetc_buffer after fetching the stream's position, not before.
83730 2009-01-15  Bruno Haible  <bruno@clisp.org>
83732         Make fflush-after-ungetc POSIX compliant on glibc systems.
83733         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83734         after ungetc.
83735         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83736         (rpl_fflush): On glibc systems, simply call the system's fflush
83737         function after clearing the ungetc buffer.
83738         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83739         Instead, lseek only to the end of file, then use the system's fseeko
83740         for the rest. On glibc systems, reset the EOF indicator bit.
83742 2009-01-15  Jim Meyering  <meyering@redhat.com>
83744         openmp.m4: revert quote-adding change, for portability to older autoconf
83745         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83746         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83747         Simon Josefsson noticed the problem when using autoconf-2.61.
83749 2009-01-15  Bruno Haible  <bruno@clisp.org>
83751         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83752         * tests/test-fflush2.c (ASSERT): Always fail.
83753         (main): Add two tests for fflush() after ungetc(), taking into account
83754         the Austin Group's clarification.
83755         Suggested by Eric Blake.
83757 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83759         mktime.m4: remove K&R-style function prototypes
83760         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83761         for the Sun C++ compiler.
83763 2009-01-14  Bruno Haible  <bruno@clisp.org>
83765         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83766         while including <wchar.h>.
83767         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83768         the system's <wchar.h> file.
83769         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83771 2009-01-14  Bruno Haible  <bruno@clisp.org>
83773         * m4/csharp.m4: Don't mention gettext on the serial number line.
83774         * m4/csharpexec.m4: Likewise.
83775         * m4/eaccess.m4: Likewise.
83776         * m4/javaexec.m4: Likewise.
83777         * m4/sig_atomic_t.m4: Likewise.
83778         * m4/tmpdir.m4: Likewise.
83779         * m4/intldir.m4: Bump gettext version.
83780         * m4/lib-ld.m4: Likewise.
83782 2009-01-14  Bruno Haible  <bruno@clisp.org>
83784         * lib/progname.c (set_program_name): Add more comments.
83785         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83787 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83789         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83790         were sys/stat.h does not define it.
83792 2009-01-14  Jim Meyering  <meyering@redhat.com>
83794         many *.m4 files: improve m4 quoting
83795         99% of this change was performed by running the following commands:
83796         git ls-files | grep '\.m4$' | xargs perl -pi \
83797           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83798           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83799           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83800           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83801         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83802         The remainder were to add Copyright dates, increment serial numbers,
83803         undo some changes in comments, exclude m4/intl.m4, and add quotes
83804         around the "1" in ",1" where the unusual spacing prohibited the
83805         above regexps from doing the job.  For more details, see
83806         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83807         * m4/acl.m4: Modified.
83808         * m4/afs.m4: Likewise.
83809         * m4/alloca.m4: Likewise.
83810         * m4/argp.m4: Likewise.
83811         * m4/argz.m4: Likewise.
83812         * m4/atexit.m4: Likewise.
83813         * m4/bison-i18n.m4: Likewise.
83814         * m4/bison.m4: Likewise.
83815         * m4/byteswap.m4: Likewise.
83816         * m4/c-stack.m4: Likewise.
83817         * m4/c-strtod.m4: Likewise.
83818         * m4/calloc.m4: Likewise.
83819         * m4/canonicalize-lgpl.m4: Likewise.
83820         * m4/chown.m4: Likewise.
83821         * m4/clock_time.m4: Likewise.
83822         * m4/codeset.m4: Likewise.
83823         * m4/copy-file.m4: Likewise.
83824         * m4/csharp.m4: Likewise.
83825         * m4/csharpcomp.m4: Likewise.
83826         * m4/csharpexec.m4: Likewise.
83827         * m4/d-ino.m4: Likewise.
83828         * m4/d-type.m4: Likewise.
83829         * m4/dirfd.m4: Likewise.
83830         * m4/double-slash-root.m4: Likewise.
83831         * m4/eaccess.m4: Likewise.
83832         * m4/eealloc.m4: Likewise.
83833         * m4/environ.m4: Likewise.
83834         * m4/errno_h.m4: Likewise.
83835         * m4/euidaccess.m4: Likewise.
83836         * m4/execute.m4: Likewise.
83837         * m4/fatal-signal.m4: Likewise.
83838         * m4/fchdir.m4: Likewise.
83839         * m4/fcntl_h.m4: Likewise.
83840         * m4/fileblocks.m4: Likewise.
83841         * m4/filenamecat.m4: Likewise.
83842         * m4/findprog.m4: Likewise.
83843         * m4/flexmember.m4: Likewise.
83844         * m4/fnmatch.m4: Likewise.
83845         * m4/fopen.m4: Likewise.
83846         * m4/fpending.m4: Likewise.
83847         * m4/fprintf-posix.m4: Likewise.
83848         * m4/free.m4: Likewise.
83849         * m4/frexp.m4: Likewise.
83850         * m4/frexpl.m4: Likewise.
83851         * m4/fsusage.m4: Likewise.
83852         * m4/ftruncate.m4: Likewise.
83853         * m4/gc-camellia.m4: Likewise.
83854         * m4/gc-random.m4: Likewise.
83855         * m4/gc.m4: Likewise.
83856         * m4/getaddrinfo.m4: Likewise.
83857         * m4/getcwd-abort-bug.m4: Likewise.
83858         * m4/getcwd-path-max.m4: Likewise.
83859         * m4/getdate.m4: Likewise.
83860         * m4/getdomainname.m4: Likewise.
83861         * m4/getgroups.m4: Likewise.
83862         * m4/gethostname.m4: Likewise.
83863         * m4/gethrxtime.m4: Likewise.
83864         * m4/getline.m4: Likewise.
83865         * m4/getloadavg.m4: Likewise.
83866         * m4/getndelim2.m4: Likewise.
83867         * m4/getpass.m4: Likewise.
83868         * m4/gettext.m4: Likewise.
83869         * m4/gettime.m4: Likewise.
83870         * m4/gettimeofday.m4: Likewise.
83871         * m4/gnulib-common.m4: Likewise.
83872         * m4/group-member.m4: Likewise.
83873         * m4/host-os.m4: Likewise.
83874         * m4/iconv.m4: Likewise.
83875         * m4/iconv_open.m4: Likewise.
83876         * m4/inet_ntop.m4: Likewise.
83877         * m4/inet_pton.m4: Likewise.
83878         * m4/inline.m4: Likewise.
83879         * m4/intldir.m4: Likewise.
83880         * m4/intlmacosx.m4: Likewise.
83881         * m4/intmax.m4: Likewise.
83882         * m4/intmax_t.m4: Likewise.
83883         * m4/inttypes.m4: Likewise.
83884         * m4/inttypes_h.m4: Likewise.
83885         * m4/inttypes-pri.m4: Likewise.
83886         * m4/isapipe.m4: Likewise.
83887         * m4/isnand.m4: Likewise.
83888         * m4/isnanf.m4: Likewise.
83889         * m4/isnanl.m4: Likewise.
83890         * m4/javacomp.m4: Likewise.
83891         * m4/javaexec.m4: Likewise.
83892         * m4/jm-winsz1.m4: Likewise.
83893         * m4/jm-winsz2.m4: Likewise.
83894         * m4/lchown.m4: Likewise.
83895         * m4/lcmessage.m4: Likewise.
83896         * m4/ldexpl.m4: Likewise.
83897         * m4/lib-ld.m4: Likewise.
83898         * m4/lib-link.m4: Likewise.
83899         * m4/libsigsegv.m4: Likewise.
83900         * m4/link-follow.m4: Likewise.
83901         * m4/localcharset.m4: Likewise.
83902         * m4/locale-fr.m4: Likewise.
83903         * m4/locale-ja.m4: Likewise.
83904         * m4/locale-tr.m4: Likewise.
83905         * m4/locale-zh.m4: Likewise.
83906         * m4/lock.m4: Likewise.
83907         * m4/longlong.m4: Likewise.
83908         * m4/ls-mntd-fs.m4: Likewise.
83909         * m4/lstat.m4: Likewise.
83910         * m4/malloc.m4: Likewise.
83911         * m4/mathl.m4: Likewise.
83912         * m4/mbrtowc.m4: Likewise.
83913         * m4/mbstate_t.m4: Likewise.
83914         * m4/mbswidth.m4: Likewise.
83915         * m4/memchr.m4: Likewise.
83916         * m4/memcmp.m4: Likewise.
83917         * m4/memcpy.m4: Likewise.
83918         * m4/memmem.m4: Likewise.
83919         * m4/memmove.m4: Likewise.
83920         * m4/mempcpy.m4: Likewise.
83921         * m4/memrchr.m4: Likewise.
83922         * m4/memset.m4: Likewise.
83923         * m4/minmax.m4: Likewise.
83924         * m4/mkdir-slash.m4: Likewise.
83925         * m4/mkdtemp.m4: Likewise.
83926         * m4/mktime.m4: Likewise.
83927         * m4/mmap-anon.m4: Likewise.
83928         * m4/mountlist.m4: Likewise.
83929         * m4/nanosleep.m4: Likewise.
83930         * m4/nls.m4: Likewise.
83931         * m4/nocrash.m4: Likewise.
83932         * m4/open.m4: Likewise.
83933         * m4/openat.m4: Likewise.
83934         * m4/openmp.m4: Likewise.
83935         * m4/pathmax.m4: Likewise.
83936         * m4/perl.m4: Likewise.
83937         * m4/physmem.m4: Likewise.
83938         * m4/pipe.m4: Likewise.
83939         * m4/po.m4: Likewise.
83940         * m4/poll.m4: Likewise.
83941         * m4/posixtm.m4: Likewise.
83942         * m4/posixver.m4: Likewise.
83943         * m4/printf-frexp.m4: Likewise.
83944         * m4/printf-frexpl.m4: Likewise.
83945         * m4/printf-posix.m4: Likewise.
83946         * m4/printf-posix-rpl.m4: Likewise.
83947         * m4/printf.m4: Likewise.
83948         * m4/progtest.m4: Likewise.
83949         * m4/putenv.m4: Likewise.
83950         * m4/readline.m4: Likewise.
83951         * m4/readlink.m4: Likewise.
83952         * m4/readutmp.m4: Likewise.
83953         * m4/realloc.m4: Likewise.
83954         * m4/regex.m4: Likewise.
83955         * m4/relocatable.m4: Likewise.
83956         * m4/relocatable-lib.m4: Likewise.
83957         * m4/rename-dest-slash.m4: Likewise.
83958         * m4/rename.m4: Likewise.
83959         * m4/rmdir-errno.m4: Likewise.
83960         * m4/rmdir.m4: Likewise.
83961         * m4/roundf.m4: Likewise.
83962         * m4/roundl.m4: Likewise.
83963         * m4/rpmatch.m4: Likewise.
83964         * m4/save-cwd.m4: Likewise.
83965         * m4/selinux-selinux-h.m4: Likewise.
83966         * m4/setenv.m4: Likewise.
83967         * m4/settime.m4: Likewise.
83968         * m4/sig2str.m4: Likewise.
83969         * m4/sig_atomic_t.m4: Likewise.
83970         * m4/signalblocking.m4: Likewise.
83971         * m4/signbit.m4: Likewise.
83972         * m4/sigpipe.m4: Likewise.
83973         * m4/sockets.m4: Likewise.
83974         * m4/sockpfaf.m4: Likewise.
83975         * m4/st_dm_mode.m4: Likewise.
83976         * m4/stat-time.m4: Likewise.
83977         * m4/stdbool.m4: Likewise.
83978         * m4/stdint.m4: Likewise.
83979         * m4/stdint_h.m4: Likewise.
83980         * m4/stpcpy.m4: Likewise.
83981         * m4/stpncpy.m4: Likewise.
83982         * m4/strcase.m4: Likewise.
83983         * m4/strchrnul.m4: Likewise.
83984         * m4/strcspn.m4: Likewise.
83985         * m4/strdup.m4: Likewise.
83986         * m4/strftime.m4: Likewise.
83987         * m4/strndup.m4: Likewise.
83988         * m4/strnlen.m4: Likewise.
83989         * m4/strpbrk.m4: Likewise.
83990         * m4/strptime.m4: Likewise.
83991         * m4/strsep.m4: Likewise.
83992         * m4/strtod.m4: Likewise.
83993         * m4/strtoimax.m4: Likewise.
83994         * m4/strtok_r.m4: Likewise.
83995         * m4/strtol.m4: Likewise.
83996         * m4/strtoll.m4: Likewise.
83997         * m4/strtoul.m4: Likewise.
83998         * m4/strtoull.m4: Likewise.
83999         * m4/strtoumax.m4: Likewise.
84000         * m4/strverscmp.m4: Likewise.
84001         * m4/threadlib.m4: Likewise.
84002         * m4/timegm.m4: Likewise.
84003         * m4/tm_gmtoff.m4: Likewise.
84004         * m4/tmpdir.m4: Likewise.
84005         * m4/tmpfile.m4: Likewise.
84006         * m4/tzset.m4: Likewise.
84007         * m4/uintmax_t.m4: Likewise.
84008         * m4/unlinkdir.m4: Likewise.
84009         * m4/unlocked-io.m4: Likewise.
84010         * m4/uptime.m4: Likewise.
84011         * m4/userspec.m4: Likewise.
84012         * m4/utimbuf.m4: Likewise.
84013         * m4/utime.m4: Likewise.
84014         * m4/utimes-null.m4: Likewise.
84015         * m4/utimes.m4: Likewise.
84016         * m4/vararrays.m4: Likewise.
84017         * m4/vasnprintf.m4: Likewise.
84018         * m4/vfprintf-posix.m4: Likewise.
84019         * m4/vprintf-posix.m4: Likewise.
84020         * m4/wait-process.m4: Likewise.
84021         * m4/wchar_t.m4: Likewise.
84022         * m4/wint_t.m4: Likewise.
84023         * m4/write-any-file.m4: Likewise.
84024         * m4/yield.m4: Likewise.
84026 2009-01-13  Bruno Haible  <bruno@clisp.org>
84028         Avoid test-copy-file.sh failures when ACL support insufficient.
84029         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84030         TESTS_ENVIRONMENT.
84031         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84032         Reported by Jim Meyering.
84034 2009-01-13  Bruno Haible  <bruno@clisp.org>
84036         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84037         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84038         * modules/unistdio/u8-printf-parse (Files): Likewise.
84039         * modules/unistdio/u32-printf-parse (Files): Likewise.
84040         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84042 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84044         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84045         and m4/inttypes_h.m4 too.
84047 2009-01-12  Eric Blake  <ebb9@byu.net>
84049         tests: IRIX 6.2 cc can't compile -0.0 into .data
84050         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84051         rather than at compile-time.
84052         * tests/test-floorl.c (minus_zero): Likewise.
84053         * tests/test-frexpl.c (minus_zero): Likewise.
84054         * tests/test-isnan.c (minus_zerol): Likewise.
84055         * tests/test-isnanl.h (minus_zero): Likewise.
84056         * tests/test-ldexpl.c (minus_zero): Likewise.
84057         * tests/test-roundl.c (minus_zero): Likewise.
84058         * tests/test-signbit.c (minus_zerol): Likewise.
84059         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84060         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84061         * tests/test-truncl.c (minus_zero): Likewise.
84062         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84063         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84064         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84066 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84068         regex: fix glibc bug 9697
84069         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84070         handling.
84072 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84074         regex: fix glibc bug 697
84075         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84076         being NULL also if there are no backreferences.
84078 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84080         regex: merge glibc changes
84081         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84082         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84083         re_string_skip_chars, re_string_reconstruct): Likewise.
84084         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84086 2009-01-07  Jim Meyering  <meyering@redhat.com>
84088         poll: filter through cppi
84089         * lib/poll.c: Indent cpp directives to reflect nesting.
84091 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84093         poll: don't return uninitialized
84094         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84096 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84098         avoid compile failure on AIX 6.1
84099         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84100         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84102 2009-01-04  Jim Meyering  <meyering@redhat.com>
84104         remove duplicate inclusion of <stdio.h>
84105         * tests/test-fprintf-posix.c: Likewise.
84106         * tests/test-printf-posix.c: Likewise.
84107         * tests/test-snprintf-posix.c: Likewise.
84108         * tests/test-sprintf-posix.c: Likewise.
84109         * tests/test-vasprintf-posix.c: Likewise.
84110         * tests/test-vfprintf-posix.c: Likewise.
84111         * tests/test-vprintf-posix.c: Likewise.
84112         * tests/test-vsnprintf-posix.c: Likewise.
84113         * tests/test-vsprintf-posix.c: Likewise.
84115 2009-01-03  Jim Meyering  <meyering@redhat.com>
84117         gnulib-tool: fix sed-based filtering
84118         * gnulib-tool (func_filter_filelist): Remove extra backslash
84119         in sed_fff_filter definition.
84121 2009-01-02  Jim Meyering  <meyering@redhat.com>
84123         strftime: avoid compilation failure on Solaris 2.6
84124         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84125         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84126         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84127         be available.  Reported by Tom G. Christensen.  Details in
84128         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84130 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84131             Bruno Haible  <bruno@clisp.org>
84133         Speed up gnulib-tool by doing more string processing through shell
84134         built-ins.
84135         * gnulib-tool (fast_func_append): New variable.
84136         (func_remove_prefix, func_remove_suffix): New functions.
84137         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84138         (func_filter_filelist): New function.
84139         (func_get_dependencies): Use func_remove_suffix instead of sed.
84140         (func_get_automake_snippet): Use func_filter_filelist instead of a
84141         subshell and sed invocation.
84143 2009-01-01  Bruno Haible  <bruno@clisp.org>
84145         Fix a security bug.
84146         * gnulib-tool (func_import, import, update): Don't allow the characters
84147         '"', '$', '`', '\' in macro arguments that become part of commands that
84148         are evaluated.
84150 2009-01-01  Bruno Haible  <bruno@clisp.org>
84152         * gnulib-tool (func_reset_sigpipe): Add more comments.
84154 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84156         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84157         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84158         already know the answer.
84160 2009-01-01  Jim Meyering  <meyering@redhat.com>
84162         * lib/version-etc.c (version_etc_va): Update copyright year.
84164 2008-12-30  Bruno Haible  <bruno@clisp.org>
84166         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84167         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84168         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84170 2008-12-29  Eric Blake  <ebb9@byu.net>
84172         multiarch: avoid autoconf AC_REQUIRE bug
84173         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84174         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84175         2.63 and older.
84176         Reported by Bruno Haible, and analyzed in
84177         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84179 2008-12-29  Bruno Haible  <bruno@clisp.org>
84181         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84182         files in subdirectories correctly.
84183         Reported by Ralf Wildenhues.
84185 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84187         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84188         rather than 'join FILE -', for Solaris join.
84190 2008-12-29  Bruno Haible  <bruno@clisp.org>
84192         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84193         quoting.
84194         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84195         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84196         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84197         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84198         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84199         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84200         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84201         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84202         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84203         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84204         * m4/nls.m4 (AM_NLS): Likewise.
84205         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84206         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84207         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84208         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84209         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84210         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84211         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84212         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84213         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84214         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84215         * m4/xsize.m4 (gl_XSIZE): Likewise.
84216         Suggested by Jim Meyering.
84218 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84220         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84221         * lib/parse-duration.c: use a switch instead of cascading if's.
84223 2008-12-29  Eric Blake  <ebb9@byu.net>
84225         wchar.h: supply WEOF on Irix 5.3
84226         * lib/wchar.in.h (wint_t): Also supply WEOF.
84227         * lib/wctype.in.h (wint_t): Likewise.
84228         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84229         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84230         Reported by Tom G. Christensen.
84232 2008-12-26  Bruno Haible  <bruno@clisp.org>
84234         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84235         i486, i586, i686.
84237 2008-12-26  Bruno Haible  <bruno@clisp.org>
84239         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84241 2008-12-26  Bruno Haible  <bruno@clisp.org>
84243         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84244         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84245         not __STDC_CONSTANT_MACROS.
84246         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84248 2008-12-25  Bruno Haible  <bruno@clisp.org>
84250         Add support for universal builds to vasnprintf.
84251         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84252         universal builds, guess no.
84253         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84254         * modules/vasprintf-posix (Depends-on): Likewise.
84255         * modules/fprintf-posix (Depends-on): Likewise.
84256         * modules/vfprintf-posix (Depends-on): Likewise.
84257         * modules/snprintf-posix (Depends-on): Likewise.
84258         * modules/vsnprintf-posix (Depends-on): Likewise.
84259         * modules/sprintf-posix (Depends-on): Likewise.
84260         * modules/vsprintf-posix (Depends-on): Likewise.
84261         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84264         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84265         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84266         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84269         Add support for universal builds to <inttypes.h>.
84270         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84271         _SCNu64_PREFIX): In Apple
84272         universal builds, define directly, using _LP64.
84273         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84274         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84275         * modules/inttypes (Depends-on): Add multiarch.
84276         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84278         Add support for universal builds to <stdint.h>.
84279         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84280         universal builds, define directly, using _LP64.
84281         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84282         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84283         and size_t.
84284         * modules/stdint (Depends-on): Add multiarch.
84285         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84287         New module 'multiarch'.
84288         * modules/multiarch: New file.
84289         * m4/multiarch.m4: New file.
84291 2008-12-25  Bruno Haible  <bruno@clisp.org>
84293         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84295 2008-12-25  Bruno Haible  <bruno@clisp.org>
84297         * modules/btowc (License): Relicense under LGPLv2+.
84298         * modules/mbsinit (License): Likewise.
84299         * modules/mbrtowc (License): Likewise.
84300         * modules/wcrtomb (License): Likewise.
84301         * modules/streq (License): Likewise.
84302         Reported by David Lutterkort <lutter@redhat.com>.
84304 2008-12-23  Bruno Haible  <bruno@clisp.org>
84306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84308 2008-12-23  Bruno Haible  <bruno@clisp.org>
84310         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84312         GETADDRINFO_LIB, not in LIBS.
84313         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84314         * modules/canon-host (Link): Likewise.
84315         * NEWS: Mention the change.
84316         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84317         GETADDRINFO_LIB.
84319 2008-12-22  Bruno Haible  <bruno@clisp.org>
84321         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84322         * doc/posix-functions/iswalpha_l.texi: Likewise.
84323         * doc/posix-functions/iswblank_l.texi: Likewise.
84324         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84325         * doc/posix-functions/iswctype_l.texi: Likewise.
84326         * doc/posix-functions/iswdigit_l.texi: Likewise.
84327         * doc/posix-functions/iswgraph_l.texi: Likewise.
84328         * doc/posix-functions/iswlower_l.texi: Likewise.
84329         * doc/posix-functions/iswprint_l.texi: Likewise.
84330         * doc/posix-functions/iswpunct_l.texi: Likewise.
84331         * doc/posix-functions/iswspace_l.texi: Likewise.
84332         * doc/posix-functions/iswupper_l.texi: Likewise.
84333         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84334         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84335         * doc/posix-functions/open_wmemstream.texi: Likewise.
84336         * doc/posix-functions/swscanf.texi: Likewise.
84337         * doc/posix-functions/towctrans_l.texi: Likewise.
84338         * doc/posix-functions/towlower.texi: Likewise.
84339         * doc/posix-functions/towlower_l.texi: Likewise.
84340         * doc/posix-functions/towupper.texi: Likewise.
84341         * doc/posix-functions/towupper_l.texi: Likewise.
84342         * doc/posix-functions/vfwprintf.texi: Likewise.
84343         * doc/posix-functions/vfwscanf.texi: Likewise.
84344         * doc/posix-functions/vswscanf.texi: Likewise.
84345         * doc/posix-functions/vwprintf.texi: Likewise.
84346         * doc/posix-functions/vwscanf.texi: Likewise.
84347         * doc/posix-functions/wcpcpy.texi: Likewise.
84348         * doc/posix-functions/wcpncpy.texi: Likewise.
84349         * doc/posix-functions/wcscasecmp.texi: Likewise.
84350         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84351         * doc/posix-functions/wcscoll_l.texi: Likewise.
84352         * doc/posix-functions/wcsdup.texi: Likewise.
84353         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84354         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84355         * doc/posix-functions/wcsnlen.texi: Likewise.
84356         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84357         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84358         * doc/posix-functions/wctrans_l.texi: Likewise.
84359         * doc/posix-functions/wctype_l.texi: Likewise.
84360         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84361         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84362         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84363         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84364         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84365         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84366         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84367         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84368         * doc/glibc-functions/wcschrnul.texi: Likewise.
84369         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84370         * doc/glibc-functions/wcstod_l.texi: Likewise.
84371         * doc/glibc-functions/wcstof_l.texi: Likewise.
84372         * doc/glibc-functions/wcstol_l.texi: Likewise.
84373         * doc/glibc-functions/wcstold_l.texi: Likewise.
84374         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84375         * doc/glibc-functions/wcstoq.texi: Likewise.
84376         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84377         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84378         * doc/glibc-functions/wcstouq.texi: Likewise.
84379         * doc/glibc-functions/wmempcpy.texi: Likewise.
84381 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84382             Eric Blake  <ebb9@byu.net>
84383             Paolo Bonzini  <bonzini@gnu.org>
84384             Bruno Haible  <bruno@clisp.org>
84386         Make c-stack work on Haiku.
84387         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84388         (c_stack_action): Use SA_ONSTACK flag.
84390 2008-12-22  Bruno Haible  <bruno@clisp.org>
84392         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84394 2008-12-22  Bruno Haible  <bruno@clisp.org>
84396         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84397         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84398         being overridden.
84399         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84400         New macros.
84401         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84403         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84404         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84406 2008-12-22  Bruno Haible  <bruno@clisp.org>
84408         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84409         from test code.
84411 2008-12-22  Eric Blake  <ebb9@byu.net>
84413         Avoid gcc warnings on cygwin.
84414         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
84415         Avoid unused variable.
84416         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
84417         Likewise.
84419 2008-12-22  Bruno Haible  <bruno@clisp.org>
84421         Remove HAVE_MBRTOWC conditionals.
84422         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
84423         (mbscasecmp): Assume mbrtowc function.
84424         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
84425         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
84426         * lib/mbschr.c: Include mbuiter.h unconditionally.
84427         (mbschr): Assume mbrtowc function.
84428         * lib/mbscspn.c: Include mbuiter.h unconditionally.
84429         (mbscspn): Assume mbrtowc function.
84430         * lib/mbslen.c: Include mbuiter.h unconditionally.
84431         (mbslen): Assume mbrtowc function.
84432         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
84433         (mbsncasecmp): Assume mbrtowc function.
84434         * lib/mbsnlen.c: Include mbiter.h unconditionally.
84435         (mbsnlen): Assume mbrtowc function.
84436         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
84437         (mbspbrk): Assume mbrtowc function.
84438         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84439         (mbspcasecmp): Assume mbrtowc function.
84440         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84441         (mbsrchr): Assume mbrtowc function.
84442         * lib/mbssep.c: Include mbuiter.h unconditionally.
84443         (mbssep): Assume mbrtowc function.
84444         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84445         (mbsspn): Assume mbrtowc function.
84446         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84447         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84448         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84449         (mbstok_r): Assume mbrtowc function.
84450         * lib/propername.c: Include mbuiter.h unconditionally.
84451         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84452         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84453         (trim2): Assume mbrtowc function.
84454         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84455         (mbsnwidth): Assume mbrtowc function.
84456         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84457         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84458         fallback definitions.
84459         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84461 2008-12-22  Bruno Haible  <bruno@clisp.org>
84463         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84465 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84467         * modules/regex: Request emulations for the mb*/wc* functions we need.
84468         * m4/regex.m4: Don't look for those functions here.
84469         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84471 2008-12-22  Bruno Haible  <bruno@clisp.org>
84473         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84475 2008-12-21  Bruno Haible  <bruno@clisp.org>
84477         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84478         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84479         (Include): Remove conditionalization.
84480         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84481         (Include): Remove conditionalization.
84482         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84483         (Include): Remove conditionalization.
84484         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84485         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84486         * NEWS: Mention the change.
84487         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84488         via Sergey Poznyakoff <gray@gnu.org.ua>.
84490 2008-12-21  Bruno Haible  <bruno@clisp.org>
84492         * MODULES.html.sh (Extended multibyte and wide character utilities
84493         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84494         wcrtomb, wcsrtombs.
84495         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84496         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84497         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84498         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84500 2008-12-21  Bruno Haible  <bruno@clisp.org>
84502         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84504 2008-12-21  Bruno Haible  <bruno@clisp.org>
84506         * modules/wcsnrtombs-tests: New file.
84507         * tests/test-wcsnrtombs1.sh: New file.
84508         * tests/test-wcsnrtombs2.sh: New file.
84509         * tests/test-wcsnrtombs3.sh: New file.
84510         * tests/test-wcsnrtombs4.sh: New file.
84511         * tests/test-wcsnrtombs.c: New file.
84513         New module 'wcsnrtombs'.
84514         * lib/wchar.in.h (wcsnrtombs): New declaration.
84515         * lib/wcsnrtombs.c: New file.
84516         * lib/wcsrtombs-state.c: New file.
84517         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84518         (internal_state): Remove variable.
84519         * m4/wcsnrtombs.m4: New file.
84520         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84521         compilation units.
84522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84523         HAVE_WCSNRTOMBS.
84524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84525         HAVE_WCSNRTOMBS.
84526         * modules/wcsnrtombs: New file.
84527         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84528         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84530 2008-12-21  Bruno Haible  <bruno@clisp.org>
84532         * modules/wcsrtombs-tests: New file.
84533         * tests/test-wcsrtombs1.sh: New file.
84534         * tests/test-wcsrtombs2.sh: New file.
84535         * tests/test-wcsrtombs3.sh: New file.
84536         * tests/test-wcsrtombs4.sh: New file.
84537         * tests/test-wcsrtombs.c: New file.
84539         New module 'wcsrtombs'.
84540         * lib/wchar.in.h (wcsrtombs): New declaration.
84541         * lib/wcsrtombs.c: New file.
84542         * m4/wcsrtombs.m4: New file.
84543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84544         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84546         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84547         * modules/wcsrtombs: New file.
84548         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84549         bugs.
84551 2008-12-21  Bruno Haible  <bruno@clisp.org>
84553         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84554         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84556         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84557         if not correct.
84558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84559         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84560         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84561         m4/locale-zh.m4, m4/codeset.m4.
84562         * doc/posix-functions/wcrtomb.texi: Document the bug.
84564 2008-12-21  Bruno Haible  <bruno@clisp.org>
84566         Work around a btowc() bug on IRIX 6.5.
84567         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84568         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84569         REPLACE_WTOBC if not.
84570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84571         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84572         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84574 2008-12-21  Bruno Haible  <bruno@clisp.org>
84576         * modules/wcrtomb-tests: New file.
84577         * tests/test-wcrtomb.sh: New file.
84578         * tests/test-wcrtomb.c: New file.
84580         New module 'wcrtomb'.
84581         * lib/wchar.in.h (wcrtomb): New declaration.
84582         * lib/wcrtomb.c: New file.
84583         * m4/wcrtomb.m4: New file.
84584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84585         HAVE_WCRTOMB.
84586         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84587         HAVE_WCRTOMB.
84588         * modules/wcrtomb: New file.
84589         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84591 2008-12-21  Bruno Haible  <bruno@clisp.org>
84593         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84594         * modules/mbsrtowcs (Files): Likewise.
84595         * modules/wctob (Files): Likewise.
84596         * modules/c-strcase-tests (Files): Likewise.
84597         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84598         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84599         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84600         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84601         * modules/vasnprintf-posix-tests (Files): Likewise.
84603 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84605         gitlog-to-changelog: pass all command-line arguments to git-log
84606         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84607         it is sometimes convenient to filter the commits in various ways.
84608         gitlog-to-changelog only allows --since to specify a start date,
84609         but git-log itself supports many other filtering mechanisms.
84610         At the moment, I want to filter by branch name.  Rather than
84611         adding a --branch option to gitlog-to-changelog, it seems more
84612         flexible to simply pass all options directly to git-log and let
84613         git do the work.  Notice that this effectively makes --since a
84614         redundant option for gitlog-to-changelog, but removing it would
84615         require current usage to change since calls would then require
84616         an additional '--'.
84618 2008-12-21  Bruno Haible  <bruno@clisp.org>
84620         * modules/mbsnrtowcs-tests: New file.
84621         * tests/test-mbsnrtowcs1.sh: New file.
84622         * tests/test-mbsnrtowcs2.sh: New file.
84623         * tests/test-mbsnrtowcs3.sh: New file.
84624         * tests/test-mbsnrtowcs4.sh: New file.
84625         * tests/test-mbsnrtowcs.c: New file.
84627         New module 'mbsnrtowcs'.
84628         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84629         * lib/mbsnrtowcs.c: New file.
84630         * lib/mbsrtowcs-state.c: New file.
84631         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84632         (internal_state): Remove variable.
84633         * m4/mbsnrtowcs.m4: New file.
84634         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84635         compilation units.
84636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84637         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84638         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84639         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84640         * modules/mbsnrtowcs: New file.
84641         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84642         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84643         portability problem.
84645 2008-12-21  Bruno Haible  <bruno@clisp.org>
84647         Work around mbsrtowcs bug.
84648         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84649         (gl_FUNC_MBSRTOWCS): Invoke it.
84650         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84651         m4/locale-zh.m4.
84652         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84654 2008-12-21  Bruno Haible  <bruno@clisp.org>
84656         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84658 2008-12-21  Bruno Haible  <bruno@clisp.org>
84660         Update doc for AIX.
84661         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84662         16-bit wchar_t type.
84663         * doc/posix-functions/btowc.texi: Likewise.
84664         * doc/posix-functions/fgetwc.texi: Likewise.
84665         * doc/posix-functions/fgetws.texi: Likewise.
84666         * doc/posix-functions/fputwc.texi: Likewise.
84667         * doc/posix-functions/fputws.texi: Likewise.
84668         * doc/posix-functions/fwide.texi: Likewise.
84669         * doc/posix-functions/fwprintf.texi: Likewise.
84670         * doc/posix-functions/fwscanf.texi: Likewise.
84671         * doc/posix-functions/getwchar.texi: Likewise.
84672         * doc/posix-functions/getwc.texi: Likewise.
84673         * doc/posix-functions/iswalnum.texi: Likewise.
84674         * doc/posix-functions/iswalpha.texi: Likewise.
84675         * doc/posix-functions/iswblank.texi: Likewise.
84676         * doc/posix-functions/iswcntrl.texi: Likewise.
84677         * doc/posix-functions/iswctype.texi: Likewise.
84678         * doc/posix-functions/iswdigit.texi: Likewise.
84679         * doc/posix-functions/iswgraph.texi: Likewise.
84680         * doc/posix-functions/iswlower.texi: Likewise.
84681         * doc/posix-functions/iswprint.texi: Likewise.
84682         * doc/posix-functions/iswpunct.texi: Likewise.
84683         * doc/posix-functions/iswspace.texi: Likewise.
84684         * doc/posix-functions/iswupper.texi: Likewise.
84685         * doc/posix-functions/iswxdigit.texi: Likewise.
84686         * doc/posix-functions/mbrtowc.texi: Likewise.
84687         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84688         * doc/posix-functions/mbstowcs.texi: Likewise.
84689         * doc/posix-functions/mbtowc.texi: Likewise.
84690         * doc/posix-functions/putwchar.texi: Likewise.
84691         * doc/posix-functions/putwc.texi: Likewise.
84692         * doc/posix-functions/swprintf.texi: Likewise.
84693         * doc/posix-functions/tolower.texi: Likewise.
84694         * doc/posix-functions/toupper.texi: Likewise.
84695         * doc/posix-functions/towctrans.texi: Likewise.
84696         * doc/posix-functions/ungetwc.texi: Likewise.
84697         * doc/posix-functions/vswprintf.texi: Likewise.
84698         * doc/posix-functions/wcrtomb.texi: Likewise.
84699         * doc/posix-functions/wcscat.texi: Likewise.
84700         * doc/posix-functions/wcschr.texi: Likewise.
84701         * doc/posix-functions/wcscmp.texi: Likewise.
84702         * doc/posix-functions/wcscoll.texi: Likewise.
84703         * doc/posix-functions/wcscpy.texi: Likewise.
84704         * doc/posix-functions/wcscspn.texi: Likewise.
84705         * doc/posix-functions/wcsftime.texi: Likewise.
84706         * doc/posix-functions/wcslen.texi: Likewise.
84707         * doc/posix-functions/wcsncat.texi: Likewise.
84708         * doc/posix-functions/wcsncmp.texi: Likewise.
84709         * doc/posix-functions/wcsncpy.texi: Likewise.
84710         * doc/posix-functions/wcspbrk.texi: Likewise.
84711         * doc/posix-functions/wcsrchr.texi: Likewise.
84712         * doc/posix-functions/wcsrtombs.texi: Likewise.
84713         * doc/posix-functions/wcsspn.texi: Likewise.
84714         * doc/posix-functions/wcsstr.texi: Likewise.
84715         * doc/posix-functions/wcstod.texi: Likewise.
84716         * doc/posix-functions/wcstof.texi: Likewise.
84717         * doc/posix-functions/wcstoimax.texi: Likewise.
84718         * doc/posix-functions/wcstok.texi: Likewise.
84719         * doc/posix-functions/wcstold.texi: Likewise.
84720         * doc/posix-functions/wcstoll.texi: Likewise.
84721         * doc/posix-functions/wcstol.texi: Likewise.
84722         * doc/posix-functions/wcstombs.texi: Likewise.
84723         * doc/posix-functions/wcstoull.texi: Likewise.
84724         * doc/posix-functions/wcstoul.texi: Likewise.
84725         * doc/posix-functions/wcstoumax.texi: Likewise.
84726         * doc/posix-functions/wcswidth.texi: Likewise.
84727         * doc/posix-functions/wcsxfrm.texi: Likewise.
84728         * doc/posix-functions/wctob.texi: Likewise.
84729         * doc/posix-functions/wctomb.texi: Likewise.
84730         * doc/posix-functions/wctrans.texi: Likewise.
84731         * doc/posix-functions/wctype.texi: Likewise.
84732         * doc/posix-functions/wcwidth.texi: Likewise.
84733         * doc/posix-functions/wmemchr.texi: Likewise.
84734         * doc/posix-functions/wmemcmp.texi: Likewise.
84735         * doc/posix-functions/wmemcpy.texi: Likewise.
84736         * doc/posix-functions/wmemmove.texi: Likewise.
84737         * doc/posix-functions/wmemset.texi: Likewise.
84738         * doc/posix-functions/wprintf.texi: Likewise.
84739         * doc/posix-functions/wscanf.texi: Likewise.
84741 2008-12-21  Bruno Haible  <bruno@clisp.org>
84743         Update doc for HP-UX 11.11.
84744         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84745         in HP-UX version 11.00, not in all versions of HP-UX 11.
84746         * doc/posix-functions/fwide.texi: Likewise.
84747         * doc/posix-functions/fwprintf.texi: Likewise.
84748         * doc/posix-functions/fwscanf.texi: Likewise.
84749         * doc/posix-functions/inet_ntop.texi: Likewise.
84750         * doc/posix-functions/inet_pton.texi: Likewise.
84751         * doc/posix-functions/mbrlen.texi: Likewise.
84752         * doc/posix-functions/mbrtowc.texi: Likewise.
84753         * doc/posix-functions/mbsinit.texi: Likewise.
84754         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84755         * doc/posix-functions/swprintf.texi: Likewise.
84756         * doc/posix-functions/swscanf.texi: Likewise.
84757         * doc/posix-functions/towctrans.texi: Likewise.
84758         * doc/posix-functions/vfwprintf.texi: Likewise.
84759         * doc/posix-functions/vswprintf.texi: Likewise.
84760         * doc/posix-functions/vwprintf.texi: Likewise.
84761         * doc/posix-functions/wcrtomb.texi: Likewise.
84762         * doc/posix-functions/wcsrtombs.texi: Likewise.
84763         * doc/posix-functions/wcsstr.texi: Likewise.
84764         * doc/posix-functions/wctob.texi: Likewise.
84765         * doc/posix-functions/wctrans.texi: Likewise.
84766         * doc/posix-functions/wmemchr.texi: Likewise.
84767         * doc/posix-functions/wmemcmp.texi: Likewise.
84768         * doc/posix-functions/wmemcpy.texi: Likewise.
84769         * doc/posix-functions/wmemmove.texi: Likewise.
84770         * doc/posix-functions/wmemset.texi: Likewise.
84771         * doc/posix-functions/wprintf.texi: Likewise.
84772         * doc/posix-functions/wscanf.texi: Likewise.
84774 2008-12-21  Bruno Haible  <bruno@clisp.org>
84776         Work around a portability problem.
84777         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84778         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84780 2008-12-20  Bruno Haible  <bruno@clisp.org>
84782         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84783         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84784         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84786         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84788         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84789         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84790         set.
84791         (GNULIB_defined_mbstate_t): New macro.
84792         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84793         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84794         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84795         reuses the system's mbrtowc function but works around the bugs.
84796         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84797         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84798         macros.
84799         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84800         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84801         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84802         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84803         REPLACE_MBSINIT if mbsinit needs to be overridden.
84804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84805         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84806         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84807         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84808         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84809         m4/locale-zh.m4.
84810         (Depends): Add mbsinit.
84811         * modules/mbsinit (Depends): Add mbrtowc.
84812         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84814 2008-12-20  Bruno Haible  <bruno@clisp.org>
84816         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84817         so that there are no conversion errors on AIX.
84818         * tests/test-mbsrtowcs.c (main): LIkewise.
84820 2008-12-20  Bruno Haible  <bruno@clisp.org>
84822         Work around wctob bug on Solaris <= 9.
84823         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84824         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84826         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84827         * modules/wctob (Files): Add m4/locale-fr.m4.
84828         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84830 2008-12-20  Bruno Haible  <bruno@clisp.org>
84832         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84833         /dev/null.
84834         * tests/test-select-in.sh: Likewise.
84835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84837 2008-12-20  Bruno Haible  <bruno@clisp.org>
84839         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84840         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84841         Cygwin 1.5.x.
84843 2008-12-20  Bruno Haible  <bruno@clisp.org>
84845         Ensure mbstate_t is defined on HP-UX 11.11.
84846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84847         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84848         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84849         AC_USE_SYSTEM_EXTENSIONS.
84850         * modules/fnmatch (Depends-on): Add extensions.
84851         * modules/mbrlen (Depends-on): Likewise.
84852         * modules/mbrtowc (Depends-on): Likewise.
84853         * modules/mbsinit (Depends-on): Likewise.
84854         * modules/mbsrtowcs (Depends-on): Likewise.
84855         * modules/mbswidth (Depends-on): Likewise.
84856         * modules/quotearg (Depends-on): Likewise.
84857         * modules/strftime (Depends-on): Likewise.
84859 2008-12-20  Bruno Haible  <bruno@clisp.org>
84861         Ensure wctob is declared on IRIX 6.5.
84862         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84863         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84864         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84866         of HAVE_WCTOB.
84867         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84868         HAVE_WCTOB.
84869         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84871 2008-12-19  Bruno Haible  <bruno@clisp.org>
84873         * modules/mbsrtowcs-tests: New file.
84874         * tests/test-mbsrtowcs1.sh: New file.
84875         * tests/test-mbsrtowcs2.sh: New file.
84876         * tests/test-mbsrtowcs3.sh: New file.
84877         * tests/test-mbsrtowcs4.sh: New file.
84878         * tests/test-mbsrtowcs.c: New file.
84880         New module 'mbsrtowcs'.
84881         * lib/wchar.in.h (mbsrtowcs): New declaration.
84882         * lib/mbsrtowcs.c: New file.
84883         * m4/mbsrtowcs.m4: New file.
84884         * modules/mbsrtowcs: New file.
84885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84886         HAVE_MBSRTOWCS.
84887         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84888         HAVE_MBSRTOWCS.
84889         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84891 2008-12-19  Bruno Haible  <bruno@clisp.org>
84893         New module 'mbrlen'.
84894         * lib/wchar.in.h (mbrlen): New declaration.
84895         * lib/mbrlen.c: New file.
84896         * m4/mbrlen.m4: New file.
84897         * modules/mbrlen: New file.
84898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84899         HAVE_MBRLEN.
84900         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84901         HAVE_MBRLEN.
84902         * doc/posix-functions/mbrlen.texi: Document the new module.
84904 2008-12-19  Bruno Haible  <bruno@clisp.org>
84906         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84907         * modules/mbrtowc (Depends-on): Add verify.
84908         Suggested by Paul Eggert.
84910 2008-12-18  Bruno Haible  <bruno@clisp.org>
84912         * modules/mbsinit-tests: New file.
84913         * tests/test-mbsinit.sh: New file.
84914         * tests/test-mbsinit.c: New file.
84916 2008-12-18  Bruno Haible  <bruno@clisp.org>
84918         * modules/mbrtowc-tests: New file.
84919         * tests/test-mbrtowc1.sh: New file.
84920         * tests/test-mbrtowc2.sh: New file.
84921         * tests/test-mbrtowc3.sh: New file.
84922         * tests/test-mbrtowc4.sh: New file.
84923         * tests/test-mbrtowc.c: New file.
84925         New module 'mbrtowc'.
84926         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84927         mbsinit and mbrtowc.
84928         (mbrtowc): New declaration.
84929         * lib/mbrtowc.c: New file.
84930         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84931         * modules/mbrtowc: New file.
84932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84933         HAVE_MBRTOWC.
84934         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84935         HAVE_MBRTOWC.
84936         * doc/posix-functions/mbrtowc.texi: Document the new module.
84938 2008-12-18  Bruno Haible  <bruno@clisp.org>
84940         New module 'wctob'.
84941         * lib/wchar.in.h (wctob): New declaration.
84942         * lib/wctob.c: New file.
84943         * m4/wctob.m4: New file.
84944         * modules/wctob: New file.
84945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84946         HAVE_WCTOB.
84947         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84948         * doc/posix-functions/wctob.texi: Document the new module.
84950 2008-12-18  Bruno Haible  <bruno@clisp.org>
84952         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84953         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84955 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84957         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84958         G. Christensen" <tgc@jupiterrise.com>.
84960         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84961         G. Christensen" <tgc@jupiterrise.com>.
84963         * lib/flock.c: Need to include string.h.  Reported by "Tom
84964         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84965         <ebb9@byu.net>.
84967 2008-12-18  Bruno Haible  <bruno@clisp.org>
84969         * m4/locale-ja.m4: New file, from GNU gettext.
84971 2008-12-17  Bruno Haible  <bruno@clisp.org>
84973         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84974         Suggested by Eric Blake.
84976 2008-12-17  Bruno Haible  <bruno@clisp.org>
84978         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84980 2008-12-17  Bruno Haible  <bruno@clisp.org>
84982         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84983         * modules/mbsinit (Depends-on): Add verify.
84984         Suggested by Paul Eggert.
84986 2008-12-17  Bruno Haible  <bruno@clisp.org>
84988         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84989         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84990         gl_FUNC_MBRTOWC.
84991         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84992         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84993         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84994         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84995         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84996         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84997         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84998         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84999         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85000         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85001         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85002         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85003         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85004         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85005         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85006         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85007         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85008         * modules/trim (configure.ac): Likewise.
85010 2008-12-17  Bruno Haible  <bruno@clisp.org>
85012         * modules/btowc-tests: New file.
85013         * tests/test-btowc1.sh: New file.
85014         * tests/test-btowc2.sh: New file.
85015         * tests/test-btowc.c: New file.
85017         New module 'btowc'.
85018         * lib/wchar.in.h (btowc): New declaration.
85019         * lib/btowc.c: New file.
85020         * m4/btowc.m4: New file.
85021         * modules/btowc: New file.
85022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85023         HAVE_BTOWC.
85024         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85025         * doc/posix-functions/btowc.texi: Document the new module.
85027 2008-12-17  Bruno Haible  <bruno@clisp.org>
85029         New module 'mbsinit'.
85030         * lib/wchar.in.h (mbsinit): New declaration.
85031         * lib/mbsinit.c: New file.
85032         * m4/mbsinit.m4: New file.
85033         * modules/mbsinit: New file.
85034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85035         HAVE_MBSINIT.
85036         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85037         HAVE_MBSINIT.
85038         * doc/posix-functions/mbsinit.texi: Document the new module.
85040 2008-12-16  Bruno Haible  <bruno@clisp.org>
85042         * lib/unistd.in.h: Add comment.
85043         * tests/test-environ.c: Don't include <stdlib.h>.
85045 2008-12-16  Bruno Haible  <bruno@clisp.org>
85047         * lib/parse-duration.h (parse_duration): Document return value
85048         convention.
85049         * lib/parse-duration.c: Include specification header first. Add
85050         comments.
85051         (_): Remove macro.
85052         (parse_year_month_day, parse_hour_minute_second): Move side effects
85053         outside of strchr call.
85054         (parse_non_iso8601): Move side effects outside of isspace call.
85055         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85056         call.
85058 2008-12-16  Bruno Haible  <bruno@clisp.org>
85060         * tests/test-parse-duration.sh: Produce no output when the test
85061         succeeds.
85063 2008-12-16  Bruno Haible  <bruno@clisp.org>
85065         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85066         expressions.
85068 2008-12-15  Bruno Haible  <bruno@clisp.org>
85070         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85071         * doc/glibc-functions/flistxattr.texi: Likewise.
85072         * doc/glibc-functions/fopencookie.texi: Likewise.
85073         * doc/glibc-functions/fremovexattr.texi: Likewise.
85074         * doc/glibc-functions/fsetxattr.texi: Likewise.
85075         * doc/glibc-functions/getxattr.texi: Likewise.
85076         * doc/glibc-functions/lgetxattr.texi: Likewise.
85077         * doc/glibc-functions/listxattr.texi: Likewise.
85078         * doc/glibc-functions/llistxattr.texi: Likewise.
85079         * doc/glibc-functions/lremovexattr.texi: Likewise.
85080         * doc/glibc-functions/lsetxattr.texi: Likewise.
85081         * doc/glibc-functions/removexattr.texi: Likewise.
85082         * doc/glibc-functions/setxattr.texi: Likewise.
85083         * doc/posix-functions/open_memstream.texi: Likewise.
85085 2008-12-15  Eric Blake  <ebb9@byu.net>
85087         Update doc for cygwin 1.7.
85088         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85089         functions.
85090         * doc/posix-functions/fchmodat.texi: Likewise.
85091         * doc/posix-functions/fchownat.texi: Likewise.
85092         * doc/posix-functions/fdopendir.texi: Likewise.
85093         * doc/posix-functions/fmemopen.texi: Likewise.
85094         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85095         * doc/posix-functions/fstatat.texi: Likewise.
85096         * doc/posix-functions/futimens.texi: Likewise.
85097         * doc/posix-functions/gai_strerror.texi: Likewise.
85098         * doc/posix-functions/getaddrinfo.texi: Likewise.
85099         * doc/posix-functions/getnameinfo.texi: Likewise.
85100         * doc/posix-functions/if_freenameindex.texi: Likewise.
85101         * doc/posix-functions/if_indextoname.texi: Likewise.
85102         * doc/posix-functions/if_nameindex.texi: Likewise.
85103         * doc/posix-functions/if_nametoindex.texi: Likewise.
85104         * doc/posix-functions/insque.texi: Likewise.
85105         * doc/posix-functions/linkat.texi: Likewise.
85106         * doc/posix-functions/llrint.texi: Likewise.
85107         * doc/posix-functions/llrintf.texi: Likewise.
85108         * doc/posix-functions/llrintl.texi: Likewise.
85109         * doc/posix-functions/lockf.texi: Likewise.
85110         * doc/posix-functions/lrintl.texi: Likewise.
85111         * doc/posix-functions/mkdirat.texi: Likewise.
85112         * doc/posix-functions/mkfifoat.texi: Likewise.
85113         * doc/posix-functions/mknodat.texi: Likewise.
85114         * doc/posix-functions/mq_close.texi: Likewise.
85115         * doc/posix-functions/mq_getattr.texi: Likewise.
85116         * doc/posix-functions/mq_notify.texi: Likewise.
85117         * doc/posix-functions/mq_open.texi: Likewise.
85118         * doc/posix-functions/mq_receive.texi: Likewise.
85119         * doc/posix-functions/mq_send.texi: Likewise.
85120         * doc/posix-functions/mq_setattr.texi: Likewise.
85121         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85122         * doc/posix-functions/mq_timedsend.texi: Likewise.
85123         * doc/posix-functions/mq_unlink.texi: Likewise.
85124         * doc/posix-functions/open_memstream.texi: Likewise.
85125         * doc/posix-functions/openat.texi: Likewise.
85126         * doc/posix-functions/posix_fadvise.texi: Likewise.
85127         * doc/posix-functions/posix_fallocate.texi: Likewise.
85128         * doc/posix-functions/posix_madvise.texi: Likewise.
85129         * doc/posix-functions/posix_memalign.texi: Likewise.
85130         * doc/posix-functions/posix_openpt.texi: Likewise.
85131         * doc/posix-functions/readlinkat.texi: Likewise.
85132         * doc/posix-functions/remque.texi: Likewise.
85133         * doc/posix-functions/renameat.texi: Likewise.
85134         * doc/posix-functions/rintl.texi: Likewise.
85135         * doc/posix-functions/sem_unlink.texi: Likewise.
85136         * doc/posix-functions/shm_open.texi: Likewise.
85137         * doc/posix-functions/shm_unlink.texi: Likewise.
85138         * doc/posix-functions/signgam.texi: Likewise.
85139         * doc/posix-functions/sigset.texi: Likewise.
85140         * doc/posix-functions/stpcpy.texi: Likewise.
85141         * doc/posix-functions/stpncpy.texi: Likewise.
85142         * doc/posix-functions/strerror.texi: Likewise.
85143         * doc/posix-functions/strtod.texi: Likewise.
85144         * doc/posix-functions/symlinkat.texi: Likewise.
85145         * doc/posix-functions/unlinkat.texi: Likewise.
85146         * doc/posix-functions/utimensat.texi: Likewise.
85147         * doc/glibc-functions/bindresvport.texi: Likewise.
85148         * doc/glibc-functions/dn_expand.texi: Likewise.
85149         * doc/glibc-functions/exp10.texi: Likewise.
85150         * doc/glibc-functions/exp10f.texi: Likewise.
85151         * doc/glibc-functions/fgetxattr.texi: Likewise.
85152         * doc/glibc-functions/flistxattr.texi: Likewise.
85153         * doc/glibc-functions/fopencookie.texi: Likewise.
85154         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85155         * doc/glibc-functions/fremovexattr.texi: Likewise.
85156         * doc/glibc-functions/fsetxattr.texi: Likewise.
85157         * doc/glibc-functions/getifaddrs.texi: Likewise.
85158         * doc/glibc-functions/getxattr.texi: Likewise.
85159         * doc/glibc-functions/lgetxattr.texi: Likewise.
85160         * doc/glibc-functions/listxattr.texi: Likewise.
85161         * doc/glibc-functions/llistxattr.texi: Likewise.
85162         * doc/glibc-functions/lremovexattr.texi: Likewise.
85163         * doc/glibc-functions/lsetxattr.texi: Likewise.
85164         * doc/glibc-functions/pow10.texi: Likewise.
85165         * doc/glibc-functions/pow10f.texi: Likewise.
85166         * doc/glibc-functions/rcmd_af.texi: Likewise.
85167         * doc/glibc-functions/removexattr.texi: Likewise.
85168         * doc/glibc-functions/res_init.texi: Likewise.
85169         * doc/glibc-functions/res_mkquery.texi: Likewise.
85170         * doc/glibc-functions/res_query.texi: Likewise.
85171         * doc/glibc-functions/res_querydomain.texi: Likewise.
85172         * doc/glibc-functions/res_send.texi: Likewise.
85173         * doc/glibc-functions/rresvport_af.texi: Likewise.
85174         * doc/glibc-functions/setxattr.texi: Likewise.
85175         * doc/glibc-functions/strcasestr.texi: Likewise.
85177 2008-12-15  Bruno Haible  <bruno@clisp.org>
85179         Fix compilation error on OSF/1 4.0.
85180         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85181         <sys/time.h>, simply delegate to the system header.
85182         Reported by Daniel Richard G. <oss@teragram.com>.
85184 2008-12-15  Bruno Haible  <bruno@clisp.org>
85186         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85187         * doc/posix-functions/fchmodat.texi: Likewise.
85188         * doc/posix-functions/fchownat.texi: Likewise.
85189         * doc/posix-functions/fdopendir.texi: Likewise.
85190         * doc/posix-functions/fstatat.texi: Likewise.
85191         * doc/posix-functions/mkdirat.texi: Likewise.
85192         * doc/posix-functions/unlinkat.texi: Likewise.
85194 2008-12-14  Bruno Haible  <bruno@clisp.org>
85196         Update doc for POSIX:2008.
85197         * doc/posix-functions/faccessat.texi: New file.
85198         * doc/posix-functions/fchmodat.texi: New file.
85199         * doc/posix-functions/fchownat.texi: New file.
85200         * doc/posix-functions/fdopendir.texi: New file.
85201         * doc/posix-functions/fstatat.texi: New file.
85202         * doc/posix-functions/futimens.texi: New file.
85203         * doc/posix-functions/linkat.texi: New file.
85204         * doc/posix-functions/mkdirat.texi: New file.
85205         * doc/posix-functions/mkfifoat.texi: New file.
85206         * doc/posix-functions/mknodat.texi: New file.
85207         * doc/posix-functions/open_wmemstream.texi: New file.
85208         * doc/posix-functions/openat.texi: New file.
85209         * doc/posix-functions/psiginfo.texi: New file.
85210         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85211         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85212         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85213         * doc/posix-functions/readlinkat.texi: New file.
85214         * doc/posix-functions/renameat.texi: New file.
85215         * doc/posix-functions/strerror_l.texi: New file.
85216         * doc/posix-functions/symlinkat.texi: New file.
85217         * doc/posix-functions/unlinkat.texi: New file.
85218         * doc/posix-functions/utimensat.texi: New file.
85219         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85221 2008-12-14  Bruno Haible  <bruno@clisp.org>
85223         Update doc for POSIX:2008.
85224         * doc/posix-functions/alphasort.texi: Renamed from
85225         doc/glibc-functions/alphasort.texi.
85226         * doc/posix-functions/dirfd.texi: Renamed from
85227         doc/glibc-functions/dirfd.texi.
85228         * doc/posix-functions/dprintf.texi: Renamed from
85229         doc/glibc-functions/dprintf.texi.
85230         * doc/posix-functions/duplocale.texi: Renamed from
85231         doc/glibc-functions/duplocale.texi.
85232         * doc/posix-functions/fexecve.texi: Renamed from
85233         doc/glibc-functions/fexecve.texi.
85234         * doc/posix-functions/fmemopen.texi: Renamed from
85235         doc/glibc-functions/fmemopen.texi.
85236         * doc/posix-functions/freelocale.texi: Renamed from
85237         doc/glibc-functions/freelocale.texi.
85238         * doc/posix-functions/getdate_err.texi: Renamed from
85239         doc/glibc-functions/getdate_err.texi.
85240         * doc/posix-functions/isalnum_l.texi: Renamed from
85241         doc/glibc-functions/isalnum_l.texi.
85242         * doc/posix-functions/isalpha_l.texi: Renamed from
85243         doc/glibc-functions/isalpha_l.texi.
85244         * doc/posix-functions/isblank_l.texi: Renamed from
85245         doc/glibc-functions/isblank_l.texi.
85246         * doc/posix-functions/iscntrl_l.texi: Renamed from
85247         doc/glibc-functions/iscntrl_l.texi.
85248         * doc/posix-functions/isdigit_l.texi: Renamed from
85249         doc/glibc-functions/isdigit_l.texi.
85250         * doc/posix-functions/isgraph_l.texi: Renamed from
85251         doc/glibc-functions/isgraph_l.texi.
85252         * doc/posix-functions/islower_l.texi: Renamed from
85253         doc/glibc-functions/islower_l.texi.
85254         * doc/posix-functions/isprint_l.texi: Renamed from
85255         doc/glibc-functions/isprint_l.texi.
85256         * doc/posix-functions/ispunct_l.texi: Renamed from
85257         doc/glibc-functions/ispunct_l.texi.
85258         * doc/posix-functions/isspace_l.texi: Renamed from
85259         doc/glibc-functions/isspace_l.texi.
85260         * doc/posix-functions/isupper_l.texi: Renamed from
85261         doc/glibc-functions/isupper_l.texi.
85262         * doc/posix-functions/iswalnum_l.texi: Renamed from
85263         doc/glibc-functions/iswalnum_l.texi.
85264         * doc/posix-functions/iswalpha_l.texi: Renamed from
85265         doc/glibc-functions/iswalpha_l.texi.
85266         * doc/posix-functions/iswblank_l.texi: Renamed from
85267         doc/glibc-functions/iswblank_l.texi.
85268         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85269         doc/glibc-functions/iswcntrl_l.texi.
85270         * doc/posix-functions/iswctype_l.texi: Renamed from
85271         doc/glibc-functions/iswctype_l.texi.
85272         * doc/posix-functions/iswdigit_l.texi: Renamed from
85273         doc/glibc-functions/iswdigit_l.texi.
85274         * doc/posix-functions/iswgraph_l.texi: Renamed from
85275         doc/glibc-functions/iswgraph_l.texi.
85276         * doc/posix-functions/iswlower_l.texi: Renamed from
85277         doc/glibc-functions/iswlower_l.texi.
85278         * doc/posix-functions/iswprint_l.texi: Renamed from
85279         doc/glibc-functions/iswprint_l.texi.
85280         * doc/posix-functions/iswpunct_l.texi: Renamed from
85281         doc/glibc-functions/iswpunct_l.texi.
85282         * doc/posix-functions/iswspace_l.texi: Renamed from
85283         doc/glibc-functions/iswspace_l.texi.
85284         * doc/posix-functions/iswupper_l.texi: Renamed from
85285         doc/glibc-functions/iswupper_l.texi.
85286         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85287         doc/glibc-functions/iswxdigit_l.texi.
85288         * doc/posix-functions/isxdigit_l.texi: Renamed from
85289         doc/glibc-functions/isxdigit_l.texi.
85290         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85291         doc/glibc-functions/mbsnrtowcs.texi.
85292         * doc/posix-functions/mkdtemp.texi: Renamed from
85293         doc/glibc-functions/mkdtemp.texi.
85294         * doc/posix-functions/newlocale.texi: Renamed from
85295         doc/glibc-functions/newlocale.texi.
85296         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85297         doc/glibc-functions/nl_langinfo_l.texi.
85298         * doc/posix-functions/open_memstream.texi: Renamed from
85299         doc/glibc-functions/open_memstream.texi.
85300         * doc/posix-functions/opterr.texi: Renamed from
85301         doc/glibc-functions/opterr.texi.
85302         * doc/posix-functions/optind.texi: Renamed from
85303         doc/glibc-functions/optind.texi.
85304         * doc/posix-functions/optopt.texi: Renamed from
85305         doc/glibc-functions/optopt.texi.
85306         * doc/posix-functions/psignal.texi: Renamed from
85307         doc/glibc-functions/psignal.texi.
85308         * doc/posix-functions/scandir.texi: Renamed from
85309         doc/glibc-functions/scandir.texi.
85310         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85311         doc/glibc-functions/sched_get_priority_min.texi.
85312         * doc/posix-functions/signgam.texi: Renamed from
85313         doc/glibc-functions/signgam.texi.
85314         * doc/posix-functions/stpcpy.texi: Renamed from
85315         doc/glibc-functions/stpcpy.texi.
85316         * doc/posix-functions/stpncpy.texi: Renamed from
85317         doc/glibc-functions/stpncpy.texi.
85318         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85319         doc/glibc-functions/strcasecmp_l.texi.
85320         * doc/posix-functions/strcoll_l.texi: Renamed from
85321         doc/glibc-functions/strcoll_l.texi.
85322         * doc/posix-functions/strfmon_l.texi: Renamed from
85323         doc/glibc-functions/strfmon_l.texi.
85324         * doc/posix-functions/strftime_l.texi: Renamed from
85325         doc/glibc-functions/strftime_l.texi.
85326         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85327         doc/glibc-functions/strncasecmp_l.texi.
85328         * doc/posix-functions/strndup.texi: Renamed from
85329         doc/glibc-functions/strndup.texi.
85330         * doc/posix-functions/strnlen.texi: Renamed from
85331         doc/glibc-functions/strnlen.texi.
85332         * doc/posix-functions/strsignal.texi: Renamed from
85333         doc/glibc-functions/strsignal.texi.
85334         * doc/posix-functions/strxfrm_l.texi: Renamed from
85335         doc/glibc-functions/strxfrm_l.texi.
85336         * doc/posix-functions/timer_gettime.texi: Renamed from
85337         doc/glibc-functions/timer_gettime.texi.
85338         * doc/posix-functions/tolower_l.texi: Renamed from
85339         doc/glibc-functions/tolower_l.texi.
85340         * doc/posix-functions/toupper_l.texi: Renamed from
85341         doc/glibc-functions/toupper_l.texi.
85342         * doc/posix-functions/towctrans_l.texi: Renamed from
85343         doc/glibc-functions/towctrans_l.texi.
85344         * doc/posix-functions/towlower_l.texi: Renamed from
85345         doc/glibc-functions/towlower_l.texi.
85346         * doc/posix-functions/towupper_l.texi: Renamed from
85347         doc/glibc-functions/towupper_l.texi.
85348         * doc/posix-functions/uselocale.texi: Renamed from
85349         doc/glibc-functions/uselocale.texi.
85350         * doc/posix-functions/vdprintf.texi: Renamed from
85351         doc/glibc-functions/vdprintf.texi.
85352         * doc/posix-functions/wcpcpy.texi:
85353         Renamed from doc/glibc-functions/wcpcpy.texi.
85354         * doc/posix-functions/wcpncpy.texi: Renamed from
85355         doc/glibc-functions/wcpncpy.texi.
85356         * doc/posix-functions/wcscasecmp.texi: Renamed from
85357         doc/glibc-functions/wcscasecmp.texi.
85358         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85359         doc/glibc-functions/wcscasecmp_l.texi.
85360         * doc/posix-functions/wcscoll_l.texi: Renamed from
85361         doc/glibc-functions/wcscoll_l.texi.
85362         * doc/posix-functions/wcsdup.texi: Renamed from
85363         doc/glibc-functions/wcsdup.texi.
85364         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85365         doc/glibc-functions/wcsncasecmp.texi.
85366         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85367         doc/glibc-functions/wcsncasecmp_l.texi.
85368         * doc/posix-functions/wcsnlen.texi: Renamed from
85369         doc/glibc-functions/wcsnlen.texi.
85370         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85371         doc/glibc-functions/wcsnrtombs.texi.
85372         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85373         doc/glibc-functions/wcsxfrm_l.texi.
85374         * doc/posix-functions/wctrans_l.texi: Renamed from
85375         doc/glibc-functions/wctrans_l.texi.
85376         * doc/posix-functions/wctype_l.texi: Renamed from
85377         doc/glibc-functions/wctype_l.texi.
85378         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85379         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85380         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85381         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85382         these subsections.
85383         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85384         Remove sections.
85386 2008-12-14  Bruno Haible  <bruno@clisp.org>
85388         Update doc for POSIX:2008.
85389         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85391 2008-12-14  Bruno Haible  <bruno@clisp.org>
85393         Update doc for POSIX:2008.
85394         * doc/pastposix-functions/bcmp.texi: Renamed from
85395         doc/posix-functions/bcmp.texi.
85396         * doc/pastposix-functions/bcopy.texi: Renamed from
85397         doc/posix-functions/bcopy.texi.
85398         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85399         doc/posix-functions/bsd_signal.texi.
85400         * doc/pastposix-functions/bzero.texi: Renamed from
85401         doc/posix-functions/bzero.texi.
85402         * doc/pastposix-functions/ecvt.texi: Renamed from
85403         doc/posix-functions/ecvt.texi.
85404         * doc/pastposix-functions/fcvt.texi: Renamed from
85405         doc/posix-functions/fcvt.texi.
85406         * doc/pastposix-functions/ftime.texi: Renamed from
85407         doc/posix-functions/ftime.texi.
85408         * doc/pastposix-functions/gcvt.texi: Renamed from
85409         doc/posix-functions/gcvt.texi.
85410         * doc/pastposix-functions/getcontext.texi: Renamed from
85411         doc/posix-functions/getcontext.texi.
85412         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
85413         doc/posix-functions/gethostbyaddr.texi.
85414         * doc/pastposix-functions/gethostbyname.texi: Renamed from
85415         doc/posix-functions/gethostbyname.texi.
85416         * doc/pastposix-functions/getwd.texi: Renamed from
85417         doc/posix-functions/getwd.texi.
85418         * doc/pastposix-functions/h_errno.texi: Renamed from
85419         doc/posix-functions/h_errno.texi.
85420         * doc/pastposix-functions/index.texi: Renamed from
85421         doc/posix-functions/index.texi.
85422         * doc/pastposix-functions/makecontext.texi: Renamed from
85423         doc/posix-functions/makecontext.texi.
85424         * doc/pastposix-functions/mktemp.texi: Renamed from
85425         doc/posix-functions/mktemp.texi.
85426         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
85427         doc/posix-functions/pthread_attr_getstackaddr.texi.
85428         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
85429         doc/posix-functions/pthread_attr_setstackaddr.texi.
85430         * doc/pastposix-functions/rindex.texi: Renamed from
85431         doc/posix-functions/rindex.texi.
85432         * doc/pastposix-functions/scalb.texi: Renamed from
85433         doc/posix-functions/scalb.texi.
85434         * doc/pastposix-functions/setcontext.texi: Renamed from
85435         doc/posix-functions/setcontext.texi.
85436         * doc/pastposix-functions/swapcontext.texi: Renamed from
85437         doc/posix-functions/swapcontext.texi.
85438         * doc/pastposix-functions/ualarm.texi: Renamed from
85439         doc/posix-functions/ualarm.texi.
85440         * doc/pastposix-functions/usleep.texi: Renamed from
85441         doc/posix-functions/usleep.texi.
85442         * doc/pastposix-functions/vfork.texi: Renamed from
85443         doc/posix-functions/vfork.texi.
85444         * doc/pastposix-functions/wcswcs.texi: Renamed from
85445         doc/posix-functions/wcswcs.texi.
85446         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85447         (Function Substitutes): Update.
85449 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85451         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85452         m4/strerror.m4.
85454 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85455             Bruno Haible  <bruno@clisp.org>
85457         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85459 2008-12-13  Bruno Haible  <bruno@clisp.org>
85461         * modules/strtoull (Depends-on): Remove unistd.
85463 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85465         * modules/strtoull (Depends-on): Add stdlib.
85467 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85469         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85471 2008-12-10  Jim Meyering  <meyering@redhat.com>
85473         gl_ASSERT: don't say assertions are disabled when they're not
85474         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85475         "checking whether to enable assertions... no", when they are in
85476         fact enabled.  This is solely a bug in the output of configure.
85477         In spite of saying "no", NDEBUG was not defined in that case.
85478         Also, as noted by Eric Blake, leave assertions enabled upon
85479         --enable-assert=INVALID.
85481 2008-12-10  Bruno Haible  <bruno@clisp.org>
85483         Change MODULES.html to refer to POSIX:2008 where possible.
85484         * MODULES.html.sh (POSIX2008_URL): New variable.
85485         (posix_headers): Remove sys/timeb, ucontext.
85486         (posix2001_headers): New variable.
85487         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85488         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85489         index, makecontext, mktemp, pthread_attr_getstackaddr,
85490         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85491         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85492         (posix2001_functions): New variable.
85493         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85494         otherwise.
85496 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85498         add missing include to parse-duration.c
85499         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85500         * modules/parse-duration (Depends-on): Add xalloc.
85502         fix sed script reading maint.mk
85503         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85504         (syntax-check-rules): Use it.
85506 2008-12-09  Bruno Haible  <bruno@clisp.org>
85508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85509         MacOS X 10.4/PowerPC.
85510         Reported by Simon Josefsson.
85512 2008-12-08  Jim Meyering  <meyering@redhat.com>
85514         work around mingw's lack of some S_IF definitions
85515         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85516         Reported by Simon Josefsson.
85518 2008-12-08  Bruno Haible  <bruno@clisp.org>
85520         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85521         applied to variables. Needed on MacOS X 10.4/PowerPC.
85522         Reported by Simon Josefsson.
85524 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85525         and Eric Blake  <ebb9@byu.net>
85527         assert: honor --enable-assert
85528         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85529         order to honor --enable-assert, rather than treating it as a
85530         synonym for --disable-assert.
85532 2008-12-08  Jim Meyering  <meyering@redhat.com>
85534         * lib/posixtm.c: Remove now-useless declaration of mktime.
85536         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85538 2008-12-07  Bruno Haible  <bruno@clisp.org>
85540         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85541         test_once): Mark functions as static.
85542         * tests/test-tls.c (test_tls): Likewise.
85544 2008-12-07  Bruno Haible  <bruno@clisp.org>
85546         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85547         iconv_register_autodetect.
85549 2008-12-07  Jim Meyering  <meyering@redhat.com>
85551         posixtm.c: avoid a warning
85552         * lib/posixtm.c (posixtime): Don't initialize tm0.
85553         It's no longer needed to placate gcc4's -Wuninitialized,
85554         and the attempt to placate would elicit a new warning.
85556         unicodeio.c: mark unused parameters
85557         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85558         (fallback_failure_callback): Likewise.
85560 2008-12-07  Bruno Haible  <bruno@clisp.org>
85562         * gnulib-tool (func_create_testdir): When building the tests
85563         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85564         Reported by Simon Josefsson.
85566 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85568         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85570 2008-12-06  Bruno Haible  <bruno@clisp.org>
85572         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85573         Suggested by Eric Blake.
85575 2008-12-06  Bruno Haible  <bruno@clisp.org>
85577         Fix a c-stack test failure on MacOS X.
85578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85579         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85580         handler for SIGBUS as well.
85581         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85582         install a signal handler for SIGBUS as well.
85583         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85585 2008-12-06  Bruno Haible  <bruno@clisp.org>
85587         Advocacy documentation.
85588         * doc/gnulib-intro.texi (Benefits): New section.
85589         * doc/gnulib.texi: Update.
85591 2008-12-06  Bruno Haible  <bruno@clisp.org>
85593         Document the 'manywarnings' module.
85594         * doc/manywarnings.texi: New file.
85595         * doc/gnulib.texi: Include it.
85597 2008-12-05  Eric Blake  <ebb9@byu.net>
85599         tests: silence some gcc warnings
85600         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85601         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85602         type mismatches.
85604 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85605             Bruno Haible  <bruno@clisp.org>
85607         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85609 2008-11-29  Jim Meyering  <meyering@redhat.com>
85611         unicodeio.c: mark unused parameters
85612         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85613         (fallback_failure_callback): Likewise.
85615         fts: fix a thinko
85616         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85617         (set_stat_type): Return S_IF*-valued "type" directly.
85618         Prompted by James Youngman's spotting a related bug.
85619         Confirmed by further testing through find.
85621         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85622         * lib/fts.c (D_TYPE): Define.
85623         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85624         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85625         (s_ifmt_shift_bits): New function.
85626         (set_stat_type): New function.
85627         (fts_build): When not calling fts_stat, call set_stat_type
85628         to propagate dirent.d_type info to fts_read caller.
85629         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85630         fts_statp->st_mode type information may be valid.
85632 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85634         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85635         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85636         <sds@gnu.org>.
85638 2008-11-20  Bruno Haible  <bruno@clisp.org>
85640         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85641         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85642         INCLUDE_NEXT.
85643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85644         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85645         * modules/math (Makefile.am): Substitute
85646         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85649 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85650             Bruno Haible  <bruno@clisp.org>
85652         * lib/stdint.in.h: Define all type macros so that their expansion is
85653         a single typedef'ed token. Fixes a compilation failure in Boost which
85654         does "using ::int8_t;".
85656 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85658         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85659         gl_MANYWARN_ALL_GCC.
85660         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85661         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85662         * modules/manywarnings: New file.
85663         * MODULES.html.sh: Mention manywarnings module.
85665 2008-11-18  Bruno Haible  <bruno@clisp.org>
85667         * doc/gnulib-tool.texi (Unit tests): New section.
85669 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85671         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85672         paths like 'lib/po/foo.po'.
85674 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85676         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85677         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85679 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85681         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85682         parameter works.
85684 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85686         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85688 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85690         * modules/parse-duration-tests: New file.
85691         * tests/test-parse-duration.sh: New file.
85692         * tests/test-parse-duration.c: New file.
85694         New module 'parse-duration'.
85695         * lib/parse-duration.h: New file.
85696         * lib/parse-duration.c: New file.
85697         * modules/parse-duration: New file.
85699 2008-11-17  Bruno Haible  <bruno@clisp.org>
85701         * tests/test-select-out.sh: Comment out the first pipe test.
85702         Reported by Simon Josefsson.
85704 2008-11-17  Bruno Haible  <bruno@clisp.org>
85706         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85708         gl_HOSTENT.
85710 2008-11-17  Bruno Haible  <bruno@clisp.org>
85712         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85713         -lnetwork and -lnet. Needed for Haiku and BeOS.
85715 2008-11-16  Bruno Haible  <bruno@clisp.org>
85717         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85719 2008-11-16  Bruno Haible  <bruno@clisp.org>
85721         Avoid test failure on Haiku.
85722         * tests/test-fsync.c: Include <errno.h>.
85723         (main): Don't require that fsync (0) fails.
85725 2008-11-15  Bruno Haible  <bruno@clisp.org>
85727         New module 'hostent'.
85728         * modules/hostent: New file.
85729         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85731 2008-11-15  Bruno Haible  <bruno@clisp.org>
85733         New module 'servent'.
85734         * modules/servent: New file.
85735         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85737 2008-11-15  Bruno Haible  <bruno@clisp.org>
85739         Avoid generating same test program with two different rules.
85740         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85741         test-frexp to test-frexp-nolibm.
85742         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85743         test-frexpl to test-frexpl-nolibm.
85745 2008-11-15  Bruno Haible  <bruno@clisp.org>
85747         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85748         $(FREXPL_LIBM).
85750 2008-11-15  Bruno Haible  <bruno@clisp.org>
85752         * lib/netdb.in.h: Activate the definitions also when the system's
85753         <netdb.h> has 'struct addrinfo'.
85754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85755         EAI_OVERFLOW or AI_NUMERICSERV.
85756         * doc/posix-headers/netdb.texi: Document the problem.
85758 2008-11-15  Bruno Haible  <bruno@clisp.org>
85760         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85762         Make the 'sched' module work on platforms where <sched.h> exists but
85763         is incomplete (such as Haiku).
85764         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85765         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85766         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85767         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85768         HAVE_STRUCT_SCHED_PARAM.
85769         * modules/sched (Depends-on): Add include_next.
85770         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85771         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85772         * doc/posix-headers/sched.texi: Document the issue.
85774 2008-11-13  Jim Meyering  <meyering@redhat.com>
85776         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85777         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85778         test would fail due to the difference in the Report bugs to ...
85779         line.  The expected address is empty, "<>", while the actual
85780         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85782 2008-11-12  Bruno Haible  <bruno@clisp.org>
85784         lstat: don't compile lstat.c on systems lacking lstat
85785         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85786         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85787         Reported by Daniel P. Berrange via Jim Meyering.
85789 2008-11-12  Jim Meyering  <meyering@redhat.com>
85791         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85793 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85795         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85796         instead.
85798 2008-11-12  Bruno Haible  <bruno@clisp.org>
85800         * lib/unicodeio.c: Include unistr.h.
85801         (utf8_wctomb): Remove function.
85802         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85804 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85806         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85807         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85808         <bruno@clisp.org>.
85809         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85811 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85813         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85814         * doc/gnulib.texi: Add section for warnings.
85816 2008-11-11  Bruno Haible  <bruno@clisp.org>
85818         * lib/sockets.h: Add a comment.
85820 2008-11-11  Karl Berry  <karl@gnu.org>
85822         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85824 2008-11-11  Eric Blake  <ebb9@byu.net>
85826         fdl.texi: avoid git symlinks
85827         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85829 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85831         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85833 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85835         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85836         (gl_WARN_ADD): Substitute $2 if literal.
85838 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85840         * m4/warning.m4: Remove.
85842 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85844         * m4/warnings.m4: Almost complete rewrite. :-)
85846 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85848         * modules/warnings: New module.
85849         * m4/warnings.m4: New file.
85850         * MODULES.html.sh: Mention warnings module.
85851         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85852         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85854 2008-11-10  Eric Blake  <ebb9@byu.net>
85856         fdl.texi: make a symlink to the latest version
85857         * doc/standards.texi: Revert today's earlier change.
85858         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85859         * doc/fdl.texi: ...and replace this with a symlink to the newer
85860         fdl-1.3.texi.
85862 2008-11-10  Bruno Haible  <bruno@clisp.org>
85864         * tests/test-select-fd.c (main): Accept the result file name as fourth
85865         argument.
85866         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85867         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85869 2008-11-10  Bruno Haible  <bruno@clisp.org>
85871         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85872         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85873         as autoconf-substituted macros.
85874         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85876         gl_NETDB_H_DEFAULTS. Set these variables.
85877         * modules/netdb (Makefile.am): Substitute these variables.
85879 2008-11-10  Eric Blake  <ebb9@byu.net>
85881         standards.texi: include correct file for FDL 1.3
85882         * doc/standards.texi (GNU Free Documentation License): Change
85883         include file to pull in FDL 1.3, not 1.2.
85885         fdl.texi: revert accidental change to license
85886         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85888 2008-11-10  Bruno Haible  <bruno@clisp.org>
85890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85891         cross-compiling guesses also when the native compile gives no result.
85893 2008-11-10  Bruno Haible  <bruno@clisp.org>
85895         * lib/spawni.c (__spawni): Force variable into the stack.
85897 2008-11-10  Bruno Haible  <bruno@clisp.org>
85899         Add support for Haiku.
85900         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85901         glibc and BeOS, but also on Haiku.
85902         * lib/fpurge.c (fpurge): Likewise.
85903         * lib/freadable.c (freadable): Likewise.
85904         * lib/freadahead.c (freadahead): Likewise.
85905         * lib/freading.c (freading): Likewise.
85906         * lib/freadptr.c (freadptr): Likewise.
85907         * lib/freadseek.c (freadptrinc): Likewise.
85908         * lib/fseeko.c (rpl_fseeko): Likewise.
85909         * lib/fseterr.c (fseterr): Likewise.
85910         * lib/fwritable.c (fwritable): Likewise.
85911         * lib/fwriting.c (fwriting): Likewise.
85912         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85914 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85916         * lib/config.charset: Treat Haiku like BeOS.
85918 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85920         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85921         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85923 2008-11-08  Bruno Haible  <bruno@clisp.org>
85925         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85926         AC_CACHE_CHECK.
85928 2008-11-08  Bruno Haible  <bruno@clisp.org>
85930         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85932 2008-11-08  Bruno Haible  <bruno@clisp.org>
85934         * tests/test-select-fd.c: New file.
85935         * tests/test-select-in.sh: New file.
85936         * tests/test-select-out.sh: New file.
85937         * tests/test-select-stdin.c: New file.
85938         * modules/select-tests (Files): Add the new files.
85939         (Depends-on): Add gettimeofday.
85940         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85941         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85942         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85944 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85945             Bruno Haible  <bruno@clisp.org>
85947         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85949 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85951         * build-aux/pmccabe2html: Added support for C++ source files.
85953 2008-11-05  Ben Pfaff  <blp@gnu.org>
85955         Fix lib/close.c build on Windows.
85956         * modules/close (Files): Add lib/w32sock.h.
85958 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85960         Accept Bison's NEWS format.
85961         * build-aux/announce-gen (print_news_deltas): Tweak
85962         $re_prefix.
85964 2008-11-04  Bruno Haible  <bruno@clisp.org>
85966         * modules/random_r (Maintainer): Add glibc.
85968 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85970         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85971         by karl@freefriends.org (Karl Berry).
85972         * doc/alloca.texi: Likewise.
85973         * doc/c-ctype.texi: Likewise.
85974         * doc/c-strcase.texi: Likewise.
85975         * doc/c-strcaseeq.texi: Likewise.
85976         * doc/c-strcasestr.texi: Likewise.
85977         * doc/c-strstr.texi: Likewise.
85978         * doc/c-strtod.texi: Likewise.
85979         * doc/c-strtold.texi: Likewise.
85980         * doc/ctime.texi: Likewise.
85981         * doc/error.texi: Likewise.
85982         * doc/fdl.texi: Likewise.
85983         * doc/gcd.texi: Likewise.
85984         * doc/getdate.texi: Likewise.
85985         * doc/gnulib-intro.texi: Likewise.
85986         * doc/gnulib-tool.texi: Likewise.
85987         * doc/gnulib.texi: Likewise.
85988         * doc/inet_ntoa.texi: Likewise.
85989         * doc/maintain.texi: Likewise.
85990         * doc/make-stds.texi: Likewise.
85991         * doc/quote.texi: Likewise.
85992         * doc/regexprops-generic.texi: Likewise.
85993         * doc/standards.texi: Likewise.
85994         * doc/verify.texi: Likewise.
85995         * doc/visibility.texi: Likewise.
85996         * doc/gnulib.texi (GNU Free Documentation License): Include
85997         fdl-1.3.texi instead of fdl.texi.
85999 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86001         * doc/fdl-1.3.texi: New file, from
86002         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86003         * modules/fdl-1.3: Add.
86004         * MODULES.html.sh: Add fdl-1.3.
86006 2008-11-03  Bruno Haible  <bruno@clisp.org>
86008         Make determination of absolute name of header file work with AIX xlc.
86009         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86010         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86011         preprocessing.
86012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86013         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86015 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86017         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86018         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86019         <ludo@gnu.org>.
86021 2008-11-02  Bruno Haible  <bruno@clisp.org>
86023         Mark 'strpbrk' obsolete.
86024         * modules/strpbrk (Status, Notice): New sections.
86025         * modules/strtok_r (Depends-on): Add strpbrk.
86027 2008-11-02  Bruno Haible  <bruno@clisp.org>
86029         Mark 'strdup' obsolete.
86030         * modules/strdup (Status, Notice): New sections.
86031         * modules/findprog (Depends-on): Add strdup.
86032         * modules/getaddrinfo (Depends-on): Likewise.
86033         * modules/localename (Depends-on): Likewise.
86034         * modules/relocatable-lib (Depends-on): Likewise.
86035         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86036         * modules/relocatable-prog (Depends-on): Likewise.
86037         * modules/trim (Depends-on): Likewise.
86038         * modules/unictype/gen-ctype (Depends-on): Likewise.
86039         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86041 2008-11-02  Bruno Haible  <bruno@clisp.org>
86043         Mark 'strcspn' obsolete.
86044         * modules/strcspn (Status, Notice): New sections.
86046 2008-11-02  Bruno Haible  <bruno@clisp.org>
86048         Mark 'rmdir' obsolete.
86049         * modules/rmdir (Status, Notice): New sections.
86050         * modules/clean-temp (Depends-on): Add rmdir.
86051         * modules/openat (Depends-on): Likewise.
86053 2008-11-02  Bruno Haible  <bruno@clisp.org>
86055         Mark 'raise' obsolete.
86056         * modules/raise (Status, Notice): New sections.
86057         (Include): Specify <signal.h>.
86058         * modules/stdio (Depends-on): Add raise.
86059         * modules/write (Depends-on): Likewise.
86061 2008-11-02  Bruno Haible  <bruno@clisp.org>
86063         Mark 'memset' obsolete.
86064         * modules/memset (Status, Notice): New sections.
86066 2008-11-02  Bruno Haible  <bruno@clisp.org>
86068         Mark 'memmove' obsolete.
86069         * modules/memmove (Status, Notice): New sections.
86070         * modules/argp (Depends-on): Add memmove.
86071         * modules/argz (Depends-on): Likewise.
86072         * modules/canonicalize (Depends-on): Likewise.
86073         * modules/canonicalize-lgpl (Depends-on): Likewise.
86074         * modules/fts (Depends-on): Likewise.
86075         * modules/getcwd (Depends-on): Likewise.
86076         * modules/human (Depends-on): Likewise.
86077         * modules/regex (Depends-on): Likewise.
86078         * modules/striconveh (Depends-on): Likewise.
86079         * modules/trim (Depends-on): Likewise.
86080         * modules/unistr/u8-move (Depends-on): Likewise.
86081         * modules/unistr/u16-move (Depends-on): Likewise.
86082         * modules/unistr/u32-move (Depends-on): Likewise.
86084 2008-11-02  Bruno Haible  <bruno@clisp.org>
86086         Mark 'memcpy' obsolete.
86087         * modules/memcpy (Status, Notice): New sections.
86089 2008-11-02  Bruno Haible  <bruno@clisp.org>
86091         Mark 'memcmp' obsolete.
86092         * modules/memcmp (Status, Notice): New sections.
86093         * modules/argmatch (Depends-on): Add memchr.
86094         * modules/backupfile (Depends-on): Likewise.
86095         * modules/c-strcasestr (Depends-on): Likewise.
86096         * modules/crypto/des (Depends-on): Likewise.
86097         * modules/csharpcomp (Depends-on): Likewise.
86098         * modules/fnmatch (Depends-on): Likewise.
86099         * modules/git-merge-changelog (Depends-on): Likewise.
86100         * modules/isnand (Depends-on): Likewise.
86101         * modules/isnand-nolibm (Depends-on): Likewise.
86102         * modules/isnanf (Depends-on): Likewise.
86103         * modules/isnanf-nolibm (Depends-on): Likewise.
86104         * modules/isnanl (Depends-on): Likewise.
86105         * modules/isnanl-nolibm (Depends-on): Likewise.
86106         * modules/mbchar (Depends-on): Likewise.
86107         * modules/memcoll (Depends-on): Likewise.
86108         * modules/quotearg (Depends-on): Likewise.
86109         * modules/regex (Depends-on): Likewise.
86110         * modules/relocatable-prog (Depends-on): Likewise.
86111         * modules/same (Depends-on): Likewise.
86112         * modules/signbit (Depends-on): Likewise.
86113         * modules/strcasestr-simple (Depends-on): Likewise.
86114         * modules/unictype/gen-ctype (Depends-on): Likewise.
86115         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86116         * modules/uniname/uniname (Depends-on): Likewise.
86117         * modules/unistr/u8-cmp (Depends-on): Likewise.
86119 2008-11-02  Bruno Haible  <bruno@clisp.org>
86121         Mark 'memchr' obsolete.
86122         * modules/memchr (Status, Notice): New sections.
86123         * modules/argp (Depends-on): Add memchr.
86124         * modules/base64 (Depends-on): Likewise.
86125         * modules/c-strcasestr (Depends-on): Likewise.
86126         * modules/chdir-long (Depends-on): Likewise.
86127         * modules/fnmatch (Depends-on): Likewise.
86128         * modules/getsubopt (Depends-on): Likewise.
86129         * modules/git-merge-changelog (Depends-on): Likewise.
86130         * modules/glob (Depends-on): Likewise.
86131         * modules/strcasestr-simple (Depends-on): Likewise.
86132         * modules/strnlen (Depends-on): Likewise.
86134 2008-11-02  Bruno Haible  <bruno@clisp.org>
86136         Mark 'atexit' obsolete.
86137         * modules/atexit (Status, Notice): New sections.
86138         * modules/chdir-long (Depends-on): Add atexit.
86139         * modules/wait-process (Depends-on): Likewise.
86141 2008-11-02  Bruno Haible  <bruno@clisp.org>
86143         * gnulib-tool: New option --with-obsolete.
86144         (func_usage): Document it.
86145         (func_modules_transitive_closure): Drop obsolete dependencies if
86146         incobsolete is not true.
86147         (func_import): Read and save the incobsolete variable to the cache.
86149 2008-11-02  Bruno Haible  <bruno@clisp.org>
86151         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86152         * gnulib-tool: New option --extract-status.
86153         (func_usage): Document it.
86154         (sed_extract_prog): Recognize it.
86155         (func_get_status): New function.
86157 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86159         * modules/sockets (License): Change from LGPL to LGPLv2+.
86161 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86163         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86165 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86167         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86168         Mention times and sys_times.
86169         * modules/sys_times, modules/sys_times-tests: New modules.
86170         * modules/times, modules/times-tests: Likewise
86171         * m4/sys_times_h.m4: New file.
86172         * lib/sys_times.in.h: Likewise
86173         * lib/times.c: Likewise.
86174         * tests/test-sys_times.c: Likewise.
86175         * tests/test-times.c: Likewise.
86176         * doc/posix-headers/sys_times.texi: Update.
86177         * doc/posix-functions/times.texi: Update.
86179 2008-10-28  Jim Meyering  <meyering@redhat.com>
86181         * modules/tempname (Depends-on): Add lstat.
86183         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86185 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86187         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86188         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86189         using idiom used elsewhere in gnulib.
86191 2008-10-27  Jim Meyering  <meyering@redhat.com>
86193         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86195 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86197         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86198         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86199         programs.
86200         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86202 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86204         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86206 2008-10-27  Bruno Haible  <bruno@clisp.org>
86208         * tests/test-lstat.c: Include <stdio.h>.
86210 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86212         * modules/lstat-tests: New module.
86213         * tests/test-lstat.c: New file.
86215 2008-10-26  Jim Meyering  <meyering@redhat.com>
86217         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86219 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86220             Bruno Haible  <bruno@clisp.org>
86222         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86223         * modules/configmake (Include): Add a note that the include must come
86224         after all system headers.
86225         * lib/javaversion.c: Include configmake.h after all other includes.
86227 2008-10-26  Bruno Haible  <bruno@clisp.org>
86229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86230         HAVE_STRUCT_RANDOM_DATA to 1.
86231         (gl_STDLIB_H): Simplify.
86233 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86235         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86236         substitute HAVE_STRUCT_RANDOM_DATA.
86237         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86238         random_data.
86239         * modules/stdlib (Makefile.am): Substitute
86240         HAVE_STRUCT_RANDOM_DATA.
86242 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86244         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86245         * doc/gnulib-intro.texi (Copyright): Likewise.
86247 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86249         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86250         findings.
86252 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86253             Bruno Haible  <bruno@clisp.org>
86255         * lib/unistd.in.h: Include <winsock2.h>.
86256         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86257         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86258         Provide dummy declarations.
86259         (gethostname): Override.
86260         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86261         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86262         gl_PREREQ_SYS_H_WINSOCK2.
86263         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86264         * doc/posix-functions/gethostname.texi: More details.
86266 2008-10-25  Bruno Haible  <bruno@clisp.org>
86268         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86269         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86270         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86272         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86273         here ...
86274         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86275         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86276         gl_UNISTD_H_DEFAULTS.
86278 2008-10-25  Eric Blake  <ebb9@byu.net>
86280         signbit: avoid spurious compiler failure
86281         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86282         declarations inside function.
86284 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86285             Bruno Haible  <bruno@clisp.org>
86287         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86288         * modules/random_r (Depends-on): Add stdint.
86290 2008-10-24  Bruno Haible  <bruno@clisp.org>
86292         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86293         Eggert.
86294         * modules/strerror (License): Likewise.
86296 2008-10-24  Jim Meyering  <meyering@redhat.com>
86298         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86299         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86301 2008-10-24  Eric Blake  <ebb9@byu.net>
86303         getgroups: fix compilation when getgroups is available
86304         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86305         but with <config.h> override of getgroups disabled.
86307 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86309         * doc/gnulib.texi (Header files): Add note about C++ problems.
86310         Explained by Bruno Haible <bruno@clisp.org>.
86312 2008-10-23  Bruno Haible  <bruno@clisp.org>
86314         Define a dummy SA_NODEFER macro on Interix.
86315         * lib/signal.in.h (SA_NODEFER): Define fallback.
86316         Reported by Aleksey Cheusov <cheusov@tut.by> via
86317         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86319 2008-10-23  Bruno Haible  <bruno@clisp.org>
86321         * modules/freadahead (License): Change to LGPLv2+.
86322         Suggested by Simon Josefsson.
86324 2008-10-23  Jim Meyering  <meyering@redhat.com>
86326         random_r: new module
86327         * modules/random_r: New file.
86328         * m4/random_r.m4: New file.
86329         * lib/random_r.c: New file, from glibc.
86330         * modules/random_r-tests: New file.
86331         * tests/test-random_r.c: New file.
86332         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86333          Declare.
86334         (RAND_MAX): Define.
86335         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86336         * modules/stdlib: Substitute them, too.
86337         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86338         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86339         * doc/glibc-functions/random_r.texi: Likewise.
86340         * doc/glibc-functions/setstate_r.texi: Likewise.
86341         * doc/glibc-functions/srandom_r.texi: Likewise.
86342         * config/srclist.txt: Mention it.
86344 2008-10-23  David Lutterkort  <lutter@redhat.com>
86346         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86347         link requirement
86349 2008-10-23  Jim Meyering  <meyering@redhat.com>
86351         selinux-h: mark parameters of stub functions as intentionally unused
86352         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86353         * lib/se-context.in.h: Likewise.
86355 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86357         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86359 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86361         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86363 2008-10-22  Eric Blake  <ebb9@byu.net>
86365         glthread/thread: avoid compiler warning
86366         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86367         Add unreachable abort to silence compiler.
86369 2008-10-22  Eric Blake  <ebb9@byu.net>
86371         netdb: also supply struct addrinfo for cygwin 1.5.x
86372         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86373         older cygwin.
86374         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86375         cygwin.
86376         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86378 2008-10-22  Bruno Haible  <bruno@clisp.org>
86380         * users.txt: Update entry about pspp.
86382 2008-10-21  Bruno Haible  <bruno@clisp.org>
86384         Simplification.
86385         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86386         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86388         Simplification.
86389         * lib/ioctl.c (ioctl): Don't undefine.
86390         * lib/socket.c (socket): Don't undefine.
86392         Remove unused module indicator macros.
86393         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86394         GNULIB_$1 as a C macro.
86396         * doc/posix-functions/close.texi: Undo last change.
86397         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86398         Windows platforms.
86400 2008-10-21  Bruno Haible  <bruno@clisp.org>
86402         Add gethostname() declaration to <unistd.h>.
86403         * lib/unistd.in.h (gethostname): New declaration.
86404         * lib/gethostname.c: Include <unistd.h>.
86405         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86406         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86408         and HAVE_GETHOSTNAME.
86409         * modules/gethostname (Depends-on): Add unistd.
86410         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86411         (Include): Specify <unistd.h>.
86412         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
86413         HAVE_GETHOSTNAME.
86414         * tests/test-gethostname.c: Include <unistd.h> first.
86416 2008-10-21  Bruno Haible  <bruno@clisp.org>
86418         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
86419         * modules/select-tests (Depends-on): Likewise.
86420         Reported by Simon Josefsson.
86422 2008-10-21  Simon Josefsson  <simon@josefsson.org>
86424         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
86425         * lib/accept.c: New file, based on winsock.c.
86426         * lib/bind.c: New file, based on winsock.c.
86427         * lib/connect.c: New file, based on winsock.c.
86428         * lib/getpeername.c: New file, based on winsock.c.
86429         * lib/getsockname.c: New file, based on winsock.c.
86430         * lib/getsockopt.c: New file, based on winsock.c.
86431         * lib/ioctl.c: New file, based on winsock.c.
86432         * lib/listen.c: New file, based on winsock.c.
86433         * lib/recv.c: New file, based on winsock.c.
86434         * lib/recvfrom.c: New file, based on winsock.c.
86435         * lib/send.c: New file, based on winsock.c.
86436         * lib/sendto.c: New file, based on winsock.c.
86437         * lib/setsockopt.c: New file, based on winsock.c.
86438         * lib/shutdown.c: New file, based on winsock.c.
86439         * lib/socket.c: New file, based on winsock.c.
86440         * lib/w32sock.h: New file, based on winsock.c.
86441         * lib/winsock.c: Remove file.
86442         * modules/accept: Likewise.
86443         * modules/bind: Likewise.
86444         * modules/connect: Likewise.
86445         * modules/getpeername: Likewise.
86446         * modules/getsockname: Likewise.
86447         * modules/getsockopt: Likewise.
86448         * modules/ioctl: Likewise.
86449         * modules/listen: Likewise.
86450         * modules/recv: Likewise.
86451         * modules/recvfrom: Likewise.
86452         * modules/send: Likewise.
86453         * modules/sendto: Likewise.
86454         * modules/setsockopt: Likewise.
86455         * modules/shutdown: Likewise.
86456         * modules/socket: Use socket.c instead of winsock.c.
86457         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86458         * doc/posix-functions/accept.texi: Doc fix.
86459         * doc/posix-functions/bind.texi: Doc fix.
86460         * doc/posix-functions/close.texi: Doc fix.
86461         * doc/posix-functions/connect.texi: Doc fix.
86462         * doc/posix-functions/getpeername.texi: Doc fix.
86463         * doc/posix-functions/getsockname.texi: Doc fix.
86464         * doc/posix-functions/getsockopt.texi: Doc fix.
86465         * doc/posix-functions/ioctl.texi: Doc fix.
86466         * doc/posix-functions/listen.texi: Doc fix.
86467         * doc/posix-functions/recv.texi: Doc fix.
86468         * doc/posix-functions/recvfrom.texi: Doc fix.
86469         * doc/posix-functions/send.texi: Doc fix.
86470         * doc/posix-functions/sendto.texi: Doc fix.
86471         * doc/posix-functions/setsockopt.texi: Doc fix.
86472         * doc/posix-functions/shutdown.texi: Doc fix.
86473         * doc/posix-functions/socket.texi: Doc fix.
86475 2008-10-20  Bruno Haible  <bruno@clisp.org>
86477         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86478         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86479         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86480         as an alias for SIGABRT.
86481         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86482         (sigaction): Map it to SIGABRT.
86483         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86485 2008-10-20  Bruno Haible  <bruno@clisp.org>
86487         * lib/fts.c: Don't include lstat.h.
86488         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86490         Move the lstat() declaration to <sys/stat.h>.
86491         * lib/lstat.h: Remove file.
86492         * lib/sys_stat.in.h: Add special invocation convention.
86493         (lstat): New declaration.
86494         * lib/lstat.c (orig_lstat): New function.
86495         (rpl_lstat): Use orig_lstat instead of lstat.
86496         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86497         AC_C_INLINE. Set REPLACE_LSTAT.
86498         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86499         and REPLACE_LSTAT.
86500         * modules/lstat (Files): Remove lib/lstat.h.
86501         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86502         (Include): Specify <sys/stat.h> instead of lstat.h.
86503         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86504         REPLACE_LSTAT.
86505         * NEWS: Mention the change.
86507 2008-10-20  Bruno Haible  <bruno@clisp.org>
86509         * modules/posix_spawn-tests: New file.
86510         * tests/test-posix_spawn3.c: New file.
86512 2008-10-20  Bruno Haible  <bruno@clisp.org>
86514         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86515         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86516         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86517         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86518         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86520 2008-10-20  Bruno Haible  <bruno@clisp.org>
86522         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86523         of posix_spawn on AIX 5.3.
86525 2008-10-20  Bruno Haible  <bruno@clisp.org>
86527         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86529 2008-10-20  Bruno Haible  <bruno@clisp.org>
86531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86532         of AC_LANG_PROGRAM.
86534 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86536         * lib/netdb.in.h: Don't define GNU specific constants until they
86537         are supported or needed.  Reported by Bruno Haible
86538         <bruno@clisp.org>.
86540 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86542         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86544 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86546         * lib/getaddrinfo.h: Remove file.
86547         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86548         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86549         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86550         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86551         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86552         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86553         * tests/test-getaddrinfo.c: Likewise.
86554         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86555         * NEWS: Mention change.
86557 2008-10-19  Bruno Haible  <bruno@clisp.org>
86559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86561 2008-10-19  Bruno Haible  <bruno@clisp.org>
86563         * lib/wait-process.c: Include simply <sys/wait.h>.
86564         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86565         WIFSTOPPED): Remove fallback definitions.
86566         * modules/wait-process (Depends-on): Add sys_wait.
86568         New module 'sys_wait'.
86569         * modules/sys_wait: New file.
86570         * lib/sys_wait.in.h: New file, partially copied from
86571         lib/wait-process.c.
86572         * m4/sys_wait_h.m4: New file.
86573         * doc/posix-headers/sys_wait.texi: Mention the new module.
86575 2008-10-19  Bruno Haible  <bruno@clisp.org>
86577         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86579 2008-10-19  Bruno Haible  <bruno@clisp.org>
86581         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86582         * lib/wait-process.c (WAIT_T): Remove type.
86583         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86584         (wait_subprocess): Update.
86586 2008-10-19  Bruno Haible  <bruno@clisp.org>
86588         New module 'atoll'.
86589         * modules/atoll: New file.
86590         * lib/stdlib.in.h (atoll): New declaration.
86591         * lib/atoll.c: New file, from glibc with modifications.
86592         * m4/atoll.m4: New file.
86593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86594         HAVE_ATOLL.
86595         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86596         * doc/posix-functions/atoll.texi: Mention the new module.
86598 2008-10-19  Bruno Haible  <bruno@clisp.org>
86600         Add strtoull() declaration to <stdlib.h>.
86601         * lib/stdlib.in.h (strtoull): New declaration.
86602         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86603         Set HAVE_STRTOULL.
86604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86605         HAVE_STRTOULL.
86606         * modules/strtoull (Depends-on): Add stdlib.
86607         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86608         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86609         HAVE_STRTOULL.
86611 2008-10-19  Bruno Haible  <bruno@clisp.org>
86613         Add strtoll() declaration to <stdlib.h>.
86614         * lib/stdlib.in.h (strtoll): New declaration.
86615         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86616         Set HAVE_STRTOLL.
86617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86618         HAVE_STRTOLL.
86619         * modules/strtoll (Depends-on): Add stdlib.
86620         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86621         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86623 2008-10-19  Bruno Haible  <bruno@clisp.org>
86625         * modules/bcopy (Depends-on): Add strings.
86626         (Include): Specify <strings.h>.
86628 2008-10-19  Bruno Haible  <bruno@clisp.org>
86630         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86632 2008-10-19  Bruno Haible  <bruno@clisp.org>
86634         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86635         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86636         mingw.
86638 2008-10-19  Bruno Haible  <bruno@clisp.org>
86640         * lib/atanl.c: Don't include isnanl.h.
86641         * lib/cosl.c: Likewise.
86642         * lib/ldexpl.c: Likewise.
86643         * lib/logl.c: Likewise.
86644         * lib/sinl.c: Likewise.
86645         * lib/sqrtl.c: Likewise.
86646         * lib/tanl.c: Likewise.
86648         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86649         * lib/isnanf.h: Remove file.
86650         * lib/isnand.h: Remove file.
86651         * lib/isnanl.h: Remove file.
86652         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86653         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86654         macros.
86655         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86656         HAVE_ISNANF, don't define it as a C macro.
86657         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86658         HAVE_ISNAND, don't define it as a C macro.
86659         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86660         HAVE_ISNANL, don't define it as a C macro.
86661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86662         HAVE_ISNAN[FDL].
86663         * modules/isnanf (Files): Remove lib/isnanf.h.
86664         (Depends-on): Add math.
86665         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86666         (Include): Specify <math.h> instead of isnanf.h.
86667         * modules/isnand (Files): Remove lib/isnand.h.
86668         (Depends-on): Add math.
86669         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86670         (Include): Specify <math.h> instead of isnand.h.
86671         * modules/isnanl (Files): Remove lib/isnanl.h.
86672         (Depends-on): Add math.
86673         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86674         (Include): Specify <math.h> instead of isnanl.h.
86675         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86676         HAVE_ISNAN[FDL].
86677         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86678         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86679         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86680         * NEWS: Mention the change.
86682 2008-10-18  Bruno Haible  <bruno@clisp.org>
86684         Add getusershell(), setusershell(), endusershell() declarations to
86685         <unistd.h>.
86686         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86687         declarations.
86688         * lib/getusershell.c: Include unistd.h.
86689         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86690         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86691         HAVE_GETUSERSHELL.
86692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86693         and HAVE_GETUSERSHELL.
86694         * modules/getusershell (Depends-on): Add unistd, extensions.
86695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86696         (Include): Specify <unistd.h>.
86697         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86698         HAVE_GETUSERSHELL.
86700 2008-10-18  Bruno Haible  <bruno@clisp.org>
86702         Add a getloadavg() declaration to <stdlib.h>.
86703         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86704         getloadavg declaration.
86705         (getloadavg): New declaration.
86706         * lib/getloadavg.c: Include <stdlib.h> first.
86707         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86708         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86709         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86711         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86712         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86713         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86714         (Include): Specify <stdlib.h>.
86715         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86716         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86718 2008-10-18  Bruno Haible  <bruno@clisp.org>
86720         * lib/dirchownmod.c: Don't include lchmod.h.
86722         Move the lchmod() declaration to <sys/stat.h>.
86723         * lib/lchmod.h: Remove file.
86724         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86725         (lchmod): New declaration, moved here from lib/lchown.h.
86726         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86727         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86729         and HAVE_LCHMOD.
86730         * modules/lchmod (Files): Remove lib/lchmod.h.
86731         (Depends-on): Add sys_stat, extensions.
86732         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86733         (Include): Specify <sys/stat.h> instead of lchmod.h.
86734         * modules/sys_stat (Depends-on): Add link-warning.
86735         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86736         definition of GL_LINK_WARNING.
86737         * NEWS: Mention the change.
86739 2008-10-18  Bruno Haible  <bruno@clisp.org>
86741         * lib/fchdir.c: Don't include dirfd.h.
86742         * lib/fts.c: Likewise.
86743         * lib/getcwd.c: Likewise.
86744         * lib/glob.c: Likewise.
86746         Move the dirfd() declaration to <dirent.h>.
86747         * lib/dirfd.h: Remove file.
86748         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86749         (dirfd): New declaration.
86750         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86751         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86752         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86753         HAVE_DECL_DIRFD.
86754         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86755         HAVE_DECL_DIRFD.
86756         * modules/dirfd (Files): Remove lib/dirfd.h.
86757         (Depends-on): Add dirent, extensions.
86758         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86759         (Include): Specify <dirent.h> instead of dirfd.h.
86760         * modules/dirent (Depends-on): Add link-warning.
86761         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86762         definition of GL_LINK_WARNING.
86763         * NEWS: Mention the change.
86765 2008-10-18  Bruno Haible  <bruno@clisp.org>
86767         Move the euidaccess() declaration to <unistd.h>.
86768         * lib/euidaccess.h: Remove file.
86769         * lib/unistd.in.h (euidaccess): New declaration.
86770         * lib/euidaccess.c: Don't include euidaccess.h.
86771         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86772         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86774         and HAVE_EUIDACCESS.
86775         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86776         (Depends-on): Add unistd.
86777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86778         (Include): Specify <unistd.h> instead of euidaccess.h.
86779         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86780         HAVE_EUIDACCESS.
86781         * NEWS: Mention the change.
86783 2008-10-18  Bruno Haible  <bruno@clisp.org>
86785         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86787         Move the getdomainname() declaration to <unistd.h>.
86788         * lib/getdomainname.h: Remove file.
86789         * lib/unistd.in.h (getdomainname): New declaration.
86790         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86791         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86792         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86793         HAVE_GETDOMAINNAME.
86794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86795         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86796         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86797         (Depends-on): Add unistd, extensions.
86798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86799         (Includes): Specify <unistd.h> instead of getdomainname.h.
86800         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86801         HAVE_GETDOMAINNAME.
86802         * NEWS: Mention the change.
86804 2008-10-18  Bruno Haible  <bruno@clisp.org>
86806         * modules/dirent: New file.
86807         * m4/dirent_h.m4: New file.
86808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86809         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86810         * modules/fchdir (Files): Remove lib/dirent.in.h.
86811         (Depends-on): Add dirent.
86812         (Makefile.am): Move rules to modules/dirent.
86813         * doc/posix-headers/dirent.texi: Mention the new module.
86815 2008-10-18  Bruno Haible  <bruno@clisp.org>
86817         Avoid -Wunused-parameter warnings in public gnulib header files.
86818         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86819         macro.
86820         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86822 2008-10-18  Bruno Haible  <bruno@clisp.org>
86824         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86825         * doc/glibc-functions/error.texi: Mention the module 'error'.
86826         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86827         * doc/glibc-functions/getdomainname.texi: Mention the module
86828         'getdomainname'.
86829         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86830         * doc/glibc-functions/getpagesize.texi: Mention the module
86831         'getpagesize'.
86832         * doc/glibc-functions/getusershell.texi: Mention the module
86833         'getusershell'.
86834         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86835         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86836         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86837         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86838         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86839         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86840         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86841         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86842         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86843         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86844         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86845         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86846         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86847         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86849 2008-10-17  Bruno Haible  <bruno@clisp.org>
86851         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86852         HP-UX and IRIX, use -0.0L.
86853         * tests/test-ceill.c (minus_zero): Likewise.
86854         * tests/test-floorl.c (minus_zero): Likewise.
86855         * tests/test-frexpl.c (minus_zero): Likewise.
86856         * tests/test-isnan.c (minus_zerol): Likewise.
86857         * tests/test-isnanl.h (minus_zero): Likewise.
86858         * tests/test-ldexpl.c (minus_zero): Likewise.
86859         * tests/test-roundl.c (minus_zero): Likewise.
86860         * tests/test-signbit.c (minus_zerol): Likewise.
86861         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86862         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86863         * tests/test-truncl.c (minus_zero): Likewise.
86864         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86865         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86866         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86867         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86869 2008-10-17  Bruno Haible  <bruno@clisp.org>
86871         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86872         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86873         that it gets activated only for gcc >= 3.0.
86874         * lib/dirent.in.h: Likewise.
86875         * lib/errno.in.h: Likewise.
86876         * lib/fcntl.in.h: Likewise.
86877         * lib/float.in.h: Likewise.
86878         * lib/iconv.in.h: Likewise.
86879         * lib/inttypes.in.h: Likewise.
86880         * lib/locale.in.h: Likewise.
86881         * lib/math.in.h: Likewise.
86882         * lib/netdb.in.h: Likewise.
86883         * lib/netinet_in.in.h: Likewise.
86884         * lib/search.in.h: Likewise.
86885         * lib/signal.in.h: Likewise.
86886         * lib/spawn.in.h: Likewise.
86887         * lib/stdarg.in.h: Likewise.
86888         * lib/stdint.in.h: Likewise.
86889         * lib/stdio.in.h: Likewise.
86890         * lib/stdlib.in.h: Likewise.
86891         * lib/string.in.h: Likewise.
86892         * lib/strings.in.h: Likewise.
86893         * lib/sys_file.in.h: Likewise.
86894         * lib/sys_ioctl.in.h: Likewise.
86895         * lib/sys_select.in.h: Likewise.
86896         * lib/sys_socket.in.h: Likewise.
86897         * lib/sys_stat.in.h: Likewise.
86898         * lib/sys_time.in.h: Likewise.
86899         * lib/sysexits.in.h: Likewise.
86900         * lib/time.in.h: Likewise.
86901         * lib/unistd.in.h: Likewise.
86902         * lib/wchar.in.h: Likewise.
86903         * lib/wctype.in.h: Likewise.
86904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86906 2008-10-17  Jim Meyering  <meyering@redhat.com>
86908         ignore-value: don't depend on inline module
86909         * modules/ignore-value (Depends-on): Remove 'inline'.
86910         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86911         Suggestion from Bruno Haible.
86913 2008-10-17  Bruno Haible  <bruno@clisp.org>
86915         New implementation of condition variables for Win32.
86916         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86917         (gl_linked_waitqueue_t): New type.
86918         (gl_cond_t): Use it.
86919         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86920         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86921         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86922         (glthread_cond_init_func, glthread_cond_wait_func,
86923         glthread_cond_timedwait_func, glthread_cond_signal_func,
86924         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86925         Reimplemented on the basis of gl_linked_waitqueue_t.
86926         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86927         gl_waitqueue_t.
86928         (gl_rwlock_t): Update.
86929         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86931 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86933         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86934         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86936 2008-10-17  Jim Meyering  <meyering@redhat.com>
86938         ignore-value: new module
86939         * modules/ignore-value: New file.
86940         * lib/ignore-value.h: New file.
86941         * MODULES.html.sh (Compiler warning management): New section,
86942         just for this module.  More to come.
86944 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86946         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86947         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86948         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86950 2008-10-16  Jim Meyering  <meyering@redhat.com>
86952         openat-die.c: avoid 'no previous prototype' warning
86953         * lib/openat-die.c: Include "openat.h".
86954         Reported by Reuben Thomas <rrt@sc3d.org>.
86956 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86958         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86959         * lib/netdb.in.h: Fix typo.
86960         Reported by Bruno Haible  <bruno@clisp.org>
86962         * lib/netdb.in.h: Include sys/socket.h for platforms without
86963         netdb.h, to get structures like hostent on MinGW.
86964         * modules/netdb (Depends-on): Add sys_socket.
86966 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86968         * modules/netdb, modules/netdb-tests: New file.
86969         * m4/netdb_h.m4: New file.
86970         * lib/netdb.in.h: Add, currently just an empty file pending
86971         definitions.
86972         * tests/test-netdb.c: New file.
86973         * doc/posix-headers/netdb.texi: Mention that we replace it if
86974         needed.
86975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86976         netdb.
86978 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86980         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86981         with code.
86983 2008-10-13  Bruno Haible  <bruno@clisp.org>
86985         * lib/glthread/cond.c (glthread_cond_wait_func,
86986         glthread_cond_timedwait_func): Add a comment.
86988 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86990         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86991         * tests/test-select.c: Likewise,
86993 2008-10-13  Bruno Haible  <bruno@clisp.org>
86995         * lib/glthread/cond.c (glthread_cond_wait_func,
86996         glthread_cond_timedwait_func): Fix variable name.
86997         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86999 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87001         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87002         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87003         struct sockaddr.sa_len.
87004         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87006 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87008         * build-aux/pmccabe2html: Add css and css_url parameters.
87010 2008-10-12  Bruno Haible  <bruno@clisp.org>
87012         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87013         calling aclx_get.
87014         Reported by Rainer Tammer <tammer@tammer.net>.
87016 2008-10-12  Bruno Haible  <bruno@clisp.org>
87018         Use msvcrt aware primitives for creation/termination of Win32 threads.
87019         * lib/glthread/thread.c: Include <process.h>.
87020         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87021         (wrapper_func): Update signature.
87022         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87024 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87025             Bruno Haible  <bruno@clisp.org>
87027         Provide a Win32 implementation of the 'cond' module.
87028         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87029         * lib/glthread/cond.c (glthread_cond_init_func,
87030         glthread_cond_wait_func, glthread_cond_timedwait_func,
87031         glthread_cond_signal_func, glthread_cond_broadcast_func,
87032         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87033         * modules/cond (Dependencies): Add gettimeofday.
87035 2008-10-11  Bruno Haible  <bruno@clisp.org>
87037         Make sleep work on older versions of mingw.
87038         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87039         only whether it exists.
87040         * doc/posix-functions/sleep.texi: Mention the problem with older
87041         versions of mingw.
87043 2008-10-11  Bruno Haible  <bruno@clisp.org>
87045         New module 'shutdown'.
87046         * modules/shutdown: New file.
87047         * lib/sys_socket.in.h (shutdown): New declaration.
87048         * lib/winsock.c (shutdown): New function.
87049         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87050         GNULIB_SHUTDOWN.
87051         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87052         * doc/posix-functions/shutdown.texi: Document the new module.
87054 2008-10-11  Jim Meyering  <meyering@redhat.com>
87056         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87058 2008-10-11  Bruno Haible  <bruno@clisp.org>
87060         New module 'fclose'.
87061         * modules/fclose: New file.
87062         * lib/stdio.in.h (fclose): New declaration.
87063         * lib/fclose.c: New file.
87064         * m4/fclose.m4: New file.
87065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87066         REPLACE_FCLOSE.
87067         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87068         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87069         REPLACE_FCLOSE.
87070         * modules/close (Depends-on): fclose.
87071         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87073 2008-10-11  Bruno Haible  <bruno@clisp.org>
87075         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87076         set errno and don't call _close.
87078 2008-10-10  Bruno Haible  <bruno@clisp.org>
87080         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87081         ACL, not afterwards. Fixes test failure on Cygwin.
87083 2008-10-09  Ben Pfaff  <blp@gnu.org>
87085         * build-aux/announce-gen: Fix gnulib version related part of usage
87086         message.  Die with a useful error message if no tarballs are
87087         found.
87089 2008-10-10  Jim Meyering  <meyering@redhat.com>
87091         bootstrap: use git's --depth=N option only if it's supported
87092         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87093         recognize the --depth option.  Reported by Pádraig Brady.
87095 2008-10-09  Bruno Haible  <bruno@clisp.org>
87097         New module 'ioctl'.
87098         * modules/ioctl: New file.
87099         * lib/sys_socket.in.h (ioctl): Remove declaration.
87100         * lib/winsock.c: Include <sys/ioctl.h>.
87101         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87102         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87103         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87104         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87105         * doc/posix-functions/ioctl.texi: Mention the new module.
87107 2008-10-09  Bruno Haible  <bruno@clisp.org>
87109         New module 'sys_ioctl'.
87110         * lib/sys_ioctl.in.h: New file.
87111         * m4/sys_ioctl_h.m4: New file.
87112         * modules/sys_ioctl: New file.
87113         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87115 2008-10-09  Bruno Haible  <bruno@clisp.org>
87117         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87118         * lib/winsock.c: Include <stdarg.h>.
87119         (rpl_ioctl): Change to second argument 'int' and then varargs.
87121 2008-10-09  Bruno Haible  <bruno@clisp.org>
87123         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87124         when the sys_socket module is present and the system has <winsock2.h>.
87126 2008-10-09  Bruno Haible  <bruno@clisp.org>
87128         * doc/posix-functions/close.texi: Mention module 'close' instead of
87129         module 'sys_socket'.
87131 2008-10-09  Bruno Haible  <bruno@clisp.org>
87133         * doc/glibc-headers/sys_ioctl.texi: New file.
87134         * doc/gnulib.texi: Include it.
87136 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87137             Bruno Haible  <bruno@clisp.org>
87139         Combine the two replacements of 'close'.
87140         * lib/sys_socket.in.h (close): Define to a reminder to include
87141         <unistd.h>.
87142         (_gl_close_fd_maybe_socket): New declaration.
87143         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87144         * lib/winsock.c (close): Remove undefinition.
87145         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87146         needed for the gnulib module 'close'.
87147         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87148         define to an error symbol or to a warning, if suitable.
87149         * lib/close.c: Include <sys/socket.h>.
87150         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87151         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87152         UNISTD_H_HAVE_WINSOCK2_H.
87153         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87155         UNISTD_H_HAVE_WINSOCK2_H.
87156         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87157         (configure.ac): Set a module indicator.
87158         (Makefile.am): Substitute GNULIB_CLOSE.
87159         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87160         * modules/poll-tests (Depends-on): Add close.
87161         * modules/select-tests (Depends-on): Likewise.
87163 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87164             Bruno Haible  <bruno@clisp.org>
87166         New module 'close'.
87167         * modules/close: New file.
87168         * lib/unistd.in.h (close): Move declaration out of the
87169         FCHDIR_REPLACEMENT scope.
87170         (_gl_unregister_fd): New declaration.
87171         * lib/close.c: New file.
87172         * lib/fchdir.c (rpl_close): Remove function.
87173         * m4/close.m4: New file.
87174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87175         close.
87176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87177         REPLACE_CLOSE.
87178         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87179         REPLACE_CLOSE.
87180         * modules/fchdir (Depends-on): Add close.
87182 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87183             Bruno Haible  <bruno@clisp.org>
87185         * lib/fcntl.in.h (open): Simplify conditionals.
87186         (_gl_register_fd): New declaration.
87187         * lib/fchdir.c (rpl_open): Remove function.
87188         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87189         also.
87190         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87192         open.
87194 2008-10-09  Jim Meyering  <meyering@redhat.com>
87196         GNUmakefile: use the more name-space-friendly "_version"
87197         * top/GNUmakefile (_dummy): Update.
87198         (_version): Rename from "version".
87200 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87201             Bruno Haible  <bruno@clisp.org>
87203         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87204         rpl_close.
87205         (_gl_register_fd): New function, extracted from rpl_open.
87206         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87207         (rpl_open, rpl_opendir): Use _gl_register_fd.
87209 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87211         Fix organization of 'open' replacement.
87212         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87213         (gl_FUNC_OPEN): Use it.
87214         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87216 2008-10-08  Bruno Haible  <bruno@clisp.org>
87218         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87220 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87222         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87223         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87224         listen).
87226 2008-10-08  Eric Blake  <ebb9@byu.net>
87228         GNUmakefile: add 'make version' target
87229         * top/GNUmakefile (_curr-ver): Split version update rules...
87230         (version): ...into a target.
87232 2008-10-07  Bruno Haible  <bruno@clisp.org>
87234         Use a more portable replacement expression for -0.0L.
87235         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87236         instead of -0.0L. Fix m4 quotation.
87238         * tests/test-signbit.c: Include <float.h>.
87239         (minus_zero): New variable.
87240         (test_signbitl): Use minus_zero instead of -zero.
87241         * modules/signbit-tests (Depends-on): Add float.
87243         * tests/test-ceill.c: Include <float.h>.
87244         (zero): Remove variable.
87245         (minus_zero): New variable.
87246         (main): Use minus_zero instead of -zero.
87247         * modules/ceill-tests (Depends-on): Add float.
87249         * tests/test-floorl.c: Include <float.h>.
87250         (zero): Remove variable.
87251         (minus_zero): New variable.
87252         (main): Use minus_zero instead of -zero.
87253         * modules/floorl-tests (Depends-on): Add float.
87255         * tests/test-roundl.c: Include <float.h>.
87256         (zero): Remove variable.
87257         (minus_zero): New variable.
87258         (main): Use minus_zero instead of -zero.
87259         * modules/roundl-tests (Depends-on): Add float.
87261         * tests/test-truncl.c: Include <float.h>.
87262         (zero): Remove variable.
87263         (minus_zero): New variable.
87264         (main): Use minus_zero instead of -zero.
87265         * modules/truncl-tests (Depends-on): Add float.
87267         * tests/test-frexpl.c (zero): Remove variable.
87268         (minus_zero): New variable.
87269         (main): Use minus_zero instead of -zero.
87270         * modules/frexpl-tests (Depends-on): Add float.
87272         * tests/test-isnan.c (zerol): Remove variable.
87273         (minus_zerol): New variable.
87274         (test_long_double): Use minus_zerol instead of -zerol.
87275         * modules/isnan-tests (Depends-on): Add float.
87277         * tests/test-isnanl.h (zero): Remove variable.
87278         (minus_zero): New variable.
87279         (main): Use minus_zero instead of -zero.
87280         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87281         * modules/isnanl-tests (Depends-on): Add float.
87283         * tests/test-ldexpl.c (zero): Remove variable.
87284         (minus_zero): New variable.
87285         (main): Use minus_zero instead of -zero.
87286         * modules/ldexpl-tests (Depends-on): Add float.
87288         * tests/test-snprintf-posix.h (zerol): Remove variable.
87289         (minus_zerol): New variable.
87290         (test_function): Use minus_zerol instead of -zerol.
87291         * modules/snprintf-posix-tests (Depends-on): Add float.
87292         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87294         * tests/test-sprintf-posix.h (zerol): Remove variable.
87295         (minus_zerol): New variable.
87296         (test_function): Use minus_zerol instead of -zerol.
87297         * modules/sprintf-posix-tests (Depends-on): Add float.
87298         * modules/vsprintf-posix-tests (Depends-on): Add float.
87300         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87301         (minus_zerol): New variable.
87302         (test_function): Use minus_zerol instead of -zerol.
87303         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87305         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87306         (minus_zerol): New variable.
87307         (test_function): Use minus_zerol instead of -zerol.
87308         * modules/vasprintf-posix-tests (Depends-on): Add float.
87310 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87312         * MODULES.html.sh (Support for building documentation): Mention
87313         pmccabe2html.  Sort entries.
87315         Add pmccabe2html module, from gnupdf.
87316         * build-aux/pmccabe.css: New file.
87317         * build-aux/pmccabe2html: New file.
87318         * m4/pmccabe2html.m4: New file.
87319         * modules/pmccabe2html: New file.
87321 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87323         flock: new module
87324         * MODULES.html.sh: Add to list of modules.
87325         * lib/flock.c: flock implementation for Windows and Unix systems
87326         which have fcntl.
87327         * doc/glibc-functions/flock.texi: Update documentation.
87328         * lib/sys_file.in.h: <sys/file.h> header file.
87329         * m4/flock.m4: M4 macros.
87330         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87331         * modules/flock: flock module.
87332         * modules/flock-tests: flock tests module.
87333         * modules/sys_file: sys/file.h module.
87334         * tests/test-flock.c: test suite for flock.
87336 2008-10-06  Jim Meyering  <meyering@redhat.com>
87338         bootstrap: check for LT_INIT more portably still ;-)
87339         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87340         Spotted by Bruno Haible.
87342 2008-10-06  Eric Blake  <ebb9@byu.net>
87344         test-signbit: avoid tripping Irix cc bug on -0.0L
87345         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87346         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87347         entire testsuite consistent and avoids an Irix 6.2 bug.
87349 2008-10-05  Bruno Haible  <bruno@clisp.org>
87350             Jim Meyering  <jim@meyering.net>
87352         Add an option for ignoring EPIPE during close_stdout.
87353         * lib/closeout.h: Include <stdbool.h>.
87354         (close_stdout_set_ignore_EPIPE): New declaration.
87355         * lib/closeout.c: Include <stdbool.h>.
87356         (ignore_EPIPE): New variable.
87357         (close_stdout_set_ignore_EPIPE): New function.
87358         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87359         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87360         failure.
87361         * modules/closeout (Depends-on): Add stdbool.
87363 2008-10-05  Bruno Haible  <bruno@clisp.org>
87365         * modules/accept: New file.
87366         * modules/bind: New file.
87367         * modules/connect: New file.
87368         * modules/getpeername: New file.
87369         * modules/getsockname: New file.
87370         * modules/getsockopt: New file.
87371         * modules/listen: New file.
87372         * modules/recv: New file.
87373         * modules/recvfrom: New file.
87374         * modules/send: New file.
87375         * modules/sendto: New file.
87376         * modules/setsockopt: New file.
87377         * modules/socket: New file.
87378         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87379         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87380         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87381         the particular module is requested. Add a link warning when the
87382         particular module is not requested.
87383         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87384         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87385         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87386         the particular module is requested.
87387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87388         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87389         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87390         * modules/sys_socket (Depends-on): Add link-warning.
87391         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87392         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87393         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87394         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87395         GL_LINK_WARNING.
87396         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87397         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87398         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87399         * doc/posix-functions/getpeername.texi: Mention the new module
87400         'getpeername'.
87401         * doc/posix-functions/getsockname.texi: Mention the new module
87402         'getsockname'.
87403         * doc/posix-functions/getsockopt.texi: Mention the new module
87404         'getsockopt'.
87405         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87406         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87407         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87408         * doc/posix-functions/send.texi: Mention the new module 'send'.
87409         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87410         * doc/posix-functions/setsockopt.texi: Mention the new module
87411         'setsockopt'.
87412         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
87413         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
87414         listen, connect, accept.
87415         * modules/select-tests (Depends-on): Likewise.
87417 2008-10-05  Bruno Haible  <bruno@clisp.org>
87419         * lib/winsock.c (strerror): Remove unused #undef.
87420         (rpl_close): Remove unused local variable.
87422         * modules/sys_socket (Depends-on); Add errno.
87424 2008-10-05  Bruno Haible  <bruno@clisp.org>
87426         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
87427         (select): Add a link warning when the 'select' module is not used.
87428         * modules/sys_select (Depends-on): Add link-warning.
87429         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
87430         Suggested by Paolo Bonzini.
87432 2008-10-05  Jim Meyering  <meyering@redhat.com>
87434         bootstrap: check for LT_INIT more portably
87435         * build-aux/bootstrap: Avoid using grep -E, since it's not
87436         portable enough.  Suggestion from Bruno Haible.
87438 2008-10-05  Bruno Haible  <bruno@clisp.org>
87440         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87441         as being fixed by gnulib.
87443 2008-10-05  Bruno Haible  <bruno@clisp.org>
87445         * modules/select-tests: New file, mostly copied from
87446         modules/sys_select-tests.
87447         * tests/test-select.c: New file, mostly copied from
87448         tests/test-sys_select.c.
87449         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87450         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87451         (Makefile.am): Remove test_sys_select_LDADD.
87453         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87454         to an undefined symbol, for an error message.
87455         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87456         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87457         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87458         winsock-select.c here.
87459         * modules/sys_select (Files): Remove lib/winsock-select.c.
87460         (Depends-on): Remove alloca.
87461         (Makefile.am): Substitute GNULIB_SELECT.
87462         * modules/select: New file.
87463         * doc/posix-functions/select.texi: Update.
87465 2008-10-05  Bruno Haible  <bruno@clisp.org>
87467         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87468         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87469         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87470         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87471         getdtablesize.
87472         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87473         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87475 2008-10-05  Bruno Haible  <bruno@clisp.org>
87477         * modules/getdtablesize-tests: New file.
87478         * tests/test-getdtablesize.c: New file.
87480         New module 'getdtablesize'.
87481         * lib/unistd.in.h (getdtablesize): New declaration.
87482         * lib/getdtablesize.c: New file.
87483         * m4/getdtablesize.m4: New file.
87484         * modules/getdtablesize: New file.
87485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87486         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87487         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87488         HAVE_GETDTABLESIZE.
87489         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87491 2008-10-05  Bruno Haible  <bruno@clisp.org>
87493         * modules/sched (Makefile.am): Fix typo.
87494         Reported by Simon Josefsson.
87496 2008-10-05  Jim Meyering  <meyering@redhat.com>
87498         bootstrap: check for LT_INIT, too
87499         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87500         are deprecated.  Suggestion from Ralf Wildenhues.
87502 2008-10-05  Bruno Haible  <bruno@clisp.org>
87504         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87505         overriding them by ours.
87506         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87508 2008-10-05  Jim Meyering  <meyering@redhat.com>
87510         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87511         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87512         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87514 2008-10-04  Bruno Haible  <bruno@clisp.org>
87516         * modules/dup2 (License): Change to LGPLv2+.
87517         * modules/sleep (License): Likewise.
87518         * modules/perror (License): Likewise.
87519         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87520         Blake.
87521         * modules/signal (License): Likewise.
87522         * modules/sigprocmask (License): Likewise.
87523         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87524         Meyering.
87526 2008-10-04  Bruno Haible  <bruno@clisp.org>
87528         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87529         Reported by Rainer Tammer <tammer@tammer.net>.
87531 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87532             Bruno Haible  <bruno@clisp.org>
87534         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87535         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87536         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87538 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87540         filevercmp: new module
87541         * lib/filevercmp.h: New function filevercmp comparing version strings.
87542         * lib/filevercmp.c: Implementation of filevercmp function.
87543         * modules/filevercmp: Module metadata.
87544         * tests/test-filevercmp.c: Unit test for new module.
87545         * modules/filevercmp-tests: Unit test metadata.
87546         * MODULES.html.sh: Add filevercmp module.
87548 2008-10-03  Bruno Haible  <bruno@clisp.org>
87550         * lib/c-ctype.h: Add comment.
87551         Reported by Jim Meyering.
87553 2008-10-02  Bruno Haible  <bruno@clisp.org>
87555         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87557 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87559         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87560         name of bootstrap.conf accordingly.
87562 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87564         * build-aux/bootstrap: Install git-merge-changelog configuration
87565         items into .gitconfig if needed.
87567 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87569         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87570         git repository, and initialize/update it accordingly.
87572 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87574         * modules/fsync-tests: New file.
87575         * tests/test-fsync.c: New file.
87577         New module 'fsync'.
87578         * lib/fsync.c: New file.
87579         * m4/fsync.m4: New file.
87580         * modules/fsync: New file.
87581         * lib/unistd.in.h (fsync): New declaration.
87582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87583         GNULIB_FSYNC and HAVE_FSYNC.
87584         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87585         * MODULES.html.sh (posix_functions): Add fsync.
87586         * doc/posix-functions/fsync.texi: Mention the new module.
87588 2008-10-02  Jim Meyering  <meyering@redhat.com>
87590         fts.c: sync with similar code from coreutils' remove.c
87591         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87592         Guard also with "#if defined __linux__", since for now at least,
87593         this code is Linux-kernel-specific.
87595 2008-10-02  Jim Meyering  <meyering@redhat.com>
87597         fts: bug fixes
87598         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87599         Include <sys/vfs.h>, not <sys/statfs.h>.
87601         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87602         Include <sys/vfs.h>, not <sys/statfs.h>.
87604 2008-10-01  Bruno Haible  <bruno@clisp.org>
87606         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87607         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87608         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87609         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87610         * doc/posix-functions/posix_spawnp.texi: Likewise.
87611         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87612         whether posix_spawn actually works.
87613         * m4/pipe.m4 (gl_PIPE): Likewise.
87614         * modules/execute (Files): Add m4/posix_spawn.m4.
87615         * modules/pipe (Files): Add m4/posix_spawn.m4.
87616         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87618 2008-10-01  Jim Meyering  <meyering@redhat.com>
87620         remove trailing spaces
87621         * NEWS: Likewise.
87622         * lib/poll.c (poll): Likewise.
87623         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87624         * lib/winsock.c (rpl_close): Likewise.
87625         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87626         * modules/yield: Likewise.
87627         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87628         * tests/test-sys_select.c (connect_to_socket): Likewise.
87630         fts.c: adjust a new interface to be more generally useful
87631         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87632         (fts_build): Adjust caller.
87634 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87636         * modules/cond-tests: New file.
87637         * tests/test-cond.c: New file.
87639 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87640             Bruno Haible  <bruno@clisp.org>
87642         * modules/cond (Dependencies): Add errno, time.
87643         * lib/glthread/cond.h: Include <time.h>.
87644         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87645         across platforms.
87647 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87648             Bruno Haible  <bruno@clisp.org>
87650         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87652 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87653             Bruno Haible  <bruno@clisp.org>
87655         * modules/tls-tests (Depends-on): Add thread, yield.
87656         (configure.ac): Remove all checks.
87657         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87658         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87659         gl_thread_self): Remove definitions. Include glthread/thread.h and
87660         glthread/yield.h instead.
87661         (test_tls): Pass an additional NULL argument to gl_thread_join.
87663 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87664             Bruno Haible  <bruno@clisp.org>
87666         * modules/lock-tests (Depends-on): Add thread, yield.
87667         (configure.ac): Remove all checks.
87668         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87669         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87670         gl_thread_self): Remove definitions. Include glthread/thread.h and
87671         glthread/yield.h instead.
87672         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87673         additional NULL argument to gl_thread_join.
87675 2008-09-30  Bruno Haible  <bruno@clisp.org>
87677         Fix the Win32 implementation of the 'thread' module.
87678         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87679         pointer type.
87680         (gl_thread_self): Invoke gl_thread_self_func.
87681         (gl_thread_self_func): New declaration.
87682         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87683         (do_init_self_key, init_self_key): New functions.
87684         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87685         Remove some fields.
87686         (running_threads, running_lock): Remove variables.
87687         (get_current_thread_handle): New function.
87688         (gl_thread_self_func, wrapper_func, glthread_create_func,
87689         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87690         simplified.
87692 2008-09-30  Bruno Haible  <bruno@clisp.org>
87694         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87695         files.
87697 2008-09-30  Jim Meyering  <meyering@redhat.com>
87699         fts.m4: correct the test for statfs.f_type
87700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87701         when checking for statfs.f_type.
87703 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87705         tests: avoid some compiler warnings
87706         * tests/test-memchr.c (main): Pass NULL indirectly.
87707         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87709 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87711         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87712         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87713         exactly specified dayshifts.
87714         (dayshift): New rule.
87715         (rel): Add dayshift.
87716         (relative_time_table) [tomorrow, yesterday, today, now]:
87717         Use tDAY_SHIFT in place of tDAY_UNIT.
87718         * tests/test-getdate.c: Add tests for now-disallowed countable
87719         dayshifts, e.g., "4 yesterday ago".
87721 2008-09-29  Bruno Haible  <bruno@clisp.org>
87723         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87724         * tests/test-posix_spawn1.in.sh: Renamed from
87725         tests/test-posix_spawn.in.sh.
87726         * tests/test-posix_spawn2.c: New file.
87727         * tests/test-posix_spawn2.in.sh: New file.
87728         * modules/posix_spawnp-tests (Files): Update.
87729         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87731 2008-09-29  Bruno Haible  <bruno@clisp.org>
87733         Propagate effects of putenv/setenv/unsetenv to child processes.
87734         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87735         * lib/pipe.c (create_pipe): Likewise.
87737 2008-09-29  Bruno Haible  <bruno@clisp.org>
87739         Enable use of shell scripts as executables in mingw.
87740         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87741         run the program as a shell script.
87742         * lib/pipe.c (create_pipe): Likewise.
87743         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87744         resulting array.
87746 2008-09-29  Eric Blake  <ebb9@byu.net>
87748         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87750 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87752         * doc/posix-functions/accept.texi: Update mingw problems.
87753         * doc/posix-functions/bind.texi: Update mingw problems.
87754         * doc/posix-functions/close.texi: Update mingw problems.
87755         * doc/posix-functions/connect.texi: Update mingw problems.
87756         * doc/posix-functions/getpeername.texi: Update mingw problems.
87757         * doc/posix-functions/getsockname.texi: Update mingw problems.
87758         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87759         * doc/posix-functions/ioctl.texi: Update mingw problems.
87760         * doc/posix-functions/listen.texi: Update mingw problems.
87761         * doc/posix-functions/recv.texi: Update mingw problems.
87762         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87763         * doc/posix-functions/select.texi: Update mingw problems.
87764         * doc/posix-functions/send.texi: Update mingw problems.
87765         * doc/posix-functions/sendto.texi: Update mingw problems.
87766         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87767         * doc/posix-functions/socket.texi: Update mingw problems.
87769 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87770             Bruno Haible  <bruno@clisp.org>
87772         * lib/sys_select.in.h: Include sys/time.h.
87773         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87774         * modules/sys_select: Depend on sys_time.
87775         * tests/test-sys_select.c: Test that sys/select.h defines struct
87776         timeval fully.
87778 2008-09-29  Bruno Haible  <bruno@clisp.org>
87780         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87781         * lib/sys_select.in.h: Likewise.
87783 2008-09-29  Bruno Haible  <bruno@clisp.org>
87785         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87787 2008-09-29  Bruno Haible  <bruno@clisp.org>
87789         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87790         Set LIBSOCKET instead of augmenting LIBS.
87791         * modules/sockets (Link): New section.
87792         * modules/sockets-tests (test_sockets_LDADD): New variable.
87793         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87794         * modules/poll-tests (test_poll_LDADD): New variable.
87795         * NEWS: Document the change.
87797 2008-09-29  Bruno Haible  <bruno@clisp.org>
87799         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87800         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87801         ARPA_INET_H directly.
87802         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87804 2008-09-28  Bruno Haible  <bruno@clisp.org>
87806         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87807         from gl_HEADER_SYS_SOCKET.
87808         (gl_HEADER_SYS_SOCKET): Invoke it.
87809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87811 2008-09-28  Bruno Haible  <bruno@clisp.org>
87813         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87814         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87815         Needed on OSF/1 4.0.
87817 2008-09-28  Bruno Haible  <bruno@clisp.org>
87819         Override open more carefully.
87820         * lib/open.c (orig_open): New function.
87821         (rpl_open): Use orig_open instead of open.
87822         * lib/fcntl.in.h: Add special invocation convention.
87823         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87824         (gl_FUNC_OPEN): Invoke it.
87826         Override freopen more carefully.
87827         * lib/freopen.c (orig_freopen): New function.
87828         (rpl_freopen): Use orig_freopen instead of freopen.
87829         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87830         (gl_FUNC_FREOPEN): Invoke it.
87832         Override fopen more carefully.
87833         * lib/fopen.c (orig_fopen): New function.
87834         (rpl_fopen): Use orig_fopen instead of fopen.
87835         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87836         (gl_FUNC_FOPEN): Invoke it.
87837         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87839 2008-09-28  Bruno Haible  <bruno@clisp.org>
87841         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87842         SIGPIPE.
87844 2008-09-28  Bruno Haible  <bruno@clisp.org>
87846         * tests/test-sigaction.c (handler, main): Disable the check whether
87847         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87848         glibc systems with LinuxThreads.
87850 2008-09-28  Bruno Haible  <bruno@clisp.org>
87852         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87854         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87855         with AIX xlc.
87856         * lib/fcntl.in.h (open): Likewise.
87857         Reported by Rainer Tammer <tammer@tammer.net>.
87859 2008-09-28  Bruno Haible  <bruno@clisp.org>
87861         * modules/posix_spawnp-tests: New file.
87862         * tests/test-posix_spawn.c: New file.
87863         * tests/test-posix_spawn.in.sh: New file.
87865         New module 'posix_spawnp'.
87866         * modules/posix_spawnp: New file.
87867         * lib/spawnp.c: New file, from GNU libc with modifications.
87868         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87870         New module 'posix_spawn'.
87871         * modules/posix_spawn: New file.
87872         * lib/spawn.c: New file, from GNU libc with modifications.
87873         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87875         New module 'posix_spawnattr_destroy'.
87876         * modules/posix_spawnattr_destroy: New file.
87877         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87878         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87879         module.
87881         New module 'posix_spawnattr_setsigmask'.
87882         * modules/posix_spawnattr_setsigmask: New file.
87883         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87884         modifications.
87885         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87886         new module.
87888         New module 'posix_spawnattr_getsigmask'.
87889         * modules/posix_spawnattr_getsigmask: New file.
87890         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87891         modifications.
87892         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87893         new module.
87895         New module 'posix_spawnattr_setsigdefault'.
87896         * modules/posix_spawnattr_setsigdefault: New file.
87897         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87898         modifications.
87899         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87900         new module.
87902         New module 'posix_spawnattr_getsigdefault'.
87903         * modules/posix_spawnattr_getsigdefault: New file.
87904         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87905         modifications.
87906         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87907         new module.
87909         New module 'posix_spawnattr_setschedpolicy'.
87910         * modules/posix_spawnattr_setschedpolicy: New file.
87911         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87912         modifications.
87913         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87914         new module.
87916         New module 'posix_spawnattr_getschedpolicy'.
87917         * modules/posix_spawnattr_getschedpolicy: New file.
87918         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87919         modifications.
87920         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87921         new module.
87923         New module 'posix_spawnattr_setschedparam'.
87924         * modules/posix_spawnattr_setschedparam: New file.
87925         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87926         modifications.
87927         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87928         new module.
87930         New module 'posix_spawnattr_getschedparam'.
87931         * modules/posix_spawnattr_getschedparam: New file.
87932         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87933         modifications.
87934         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87935         new module.
87937         New module 'posix_spawnattr_setpgroup'.
87938         * modules/posix_spawnattr_setpgroup: New file.
87939         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87940         modifications.
87941         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87942         module.
87944         New module 'posix_spawnattr_getpgroup'.
87945         * modules/posix_spawnattr_getpgroup: New file.
87946         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87947         modifications.
87948         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87949         module.
87951         New module 'posix_spawnattr_setflags'.
87952         * modules/posix_spawnattr_setflags: New file.
87953         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87954         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87955         module.
87957         New module 'posix_spawnattr_getflags'.
87958         * modules/posix_spawnattr_getflags: New file.
87959         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87960         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87961         module.
87963         New module 'posix_spawnattr_init'.
87964         * modules/posix_spawnattr_init: New file.
87965         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87966         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87967         module.
87969         New module 'posix_spawn_file_actions_destroy'.
87970         * modules/posix_spawn_file_actions_destroy: New file.
87971         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87972         modifications.
87973         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87974         the new module.
87976         New module 'posix_spawn_file_actions_addopen'.
87977         * modules/posix_spawn_file_actions_addopen: New file.
87978         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87979         modifications.
87980         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87981         the new module.
87983         New module 'posix_spawn_file_actions_adddup2'.
87984         * modules/posix_spawn_file_actions_adddup2: New file.
87985         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87986         modifications.
87987         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87988         the new module.
87990         New module 'posix_spawn_file_actions_addclose'.
87991         * modules/posix_spawn_file_actions_addclose: New file.
87992         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87993         modifications.
87994         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87995         the new module.
87997         New module 'posix_spawn_file_actions_init'.
87998         * modules/posix_spawn_file_actions_init: New file.
87999         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88000         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88001         new module.
88003         New module 'posix_spawn-internal'.
88004         * modules/posix_spawn-internal: New file.
88005         * lib/spawn_int.h: New file, from GNU libc with modifications.
88006         * lib/spawni.c: New file, from GNU libc with modifications.
88007         * m4/posix_spawn.m4: New file.
88009         New module 'spawn'.
88010         * modules/spawn: New file.
88011         * lib/spawn.in.h: New file, from GNU libc with modifications.
88012         * m4/spawn_h.m4: New file.
88013         * doc/posix-headers/spawn.texi: Mention the new module.
88015 2008-09-28  Bruno Haible  <bruno@clisp.org>
88017         * modules/sched-tests: New file.
88018         * tests/test-sched.c: New file.
88020         New module 'sched'.
88021         * modules/sched: New file.
88022         * lib/sched.in.h: New file.
88023         * m4/sched_h.m4: New file.
88024         * doc/posix-headers/sched.texi: Mention the new module.
88026 2008-09-27  Eric Blake  <ebb9@byu.net>
88028         Fix previous patch, and tweak references to $0.
88029         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88030         (func_version, func_gnulib_dir): Don't call this program
88031         gnulib-tool.
88032         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88033         with using $0 in function.
88034         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88035         (func_fatal_error): Reuse the name the user invoked us with.
88037 2008-09-27  Bruno Haible  <bruno@clisp.org>
88039         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88040         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88041         (gl_ICONV_H): Not here.
88042         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88043         instead of assigning ICONV_H directly.
88045         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88047         WCHAR_H directly.
88049 2008-09-27  Bruno Haible  <bruno@clisp.org>
88051         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88052         * modules/arpa_inet (Depends-on): Add link-warning.
88053         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88054         * modules/unistd (Makefile.am): Likewise.
88056 2008-09-26  Bruno Haible  <bruno@clisp.org>
88058         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88059         variables.
88060         (func_version): Essentially copied from gnulib-tool.
88061         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88062         func_readlink): Copied from gnulib-tool.
88064 2008-09-26  Bruno Haible  <bruno@clisp.org>
88066         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88067         invoking git-version-gen.
88069 2008-09-26  Bruno Haible  <bruno@clisp.org>
88071         * posix-modules: Update to directory names changed on 2008-01-19.
88072         Remove commas in output before splitting into words. No more need to
88073         avoid 'ftruncate' since 2007-02-19.
88075 2008-09-26  Bruno Haible  <bruno@clisp.org>
88077         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88079 2008-09-26  Bruno Haible  <bruno@clisp.org>
88081         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88082         * modules/fwriteerror (Depends-on): Add errno.
88084 2008-09-26  Bruno Haible  <bruno@clisp.org>
88086         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88087         * tests/test-vc-list-files-cvs.sh: Likewise.
88089 2008-09-26  Bruno Haible  <bruno@clisp.org>
88091         * doc/posix-headers/sys_resource.texi: Reorder items.
88093 2008-09-26  Jim Meyering  <meyering@redhat.com>
88095         fts: tweak inode comparison function
88096         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88097         inode numbers, as documented.
88099         fts: sort dirent entries on inode number before traversing
88100         This avoids a quadratic, seek-related performance penalty when
88101         operating on a directory containing many entries (measurable at 10k;
88102         3.5 hours at 2 million entries with a cold cache) on certain types
88103         of file systems, including ext3 and ext4, but not tmpfs.
88104         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88105         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88106         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88107         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88108         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88109         (fts_build): Set the stat.st_ino member from D_INO.
88110         If it is likely to be useful, sort dirent entries on inode number.
88112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88113         and the struct statfs.f_type member.
88114         * modules/fts (Depends-on): Add d-ino.
88116 2008-09-26  Bruno Haible  <bruno@clisp.org>
88118         * modules/sigpipe-die (Depends-on): Add sigpipe.
88120         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88121         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88122         and GNULIB_STDIO_H_SIGPIPE are set.
88123         * lib/stdio-write.c: New file.
88124         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88125         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88126         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88127         REPLACE_STDIO_WRITE_FUNCS.
88128         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88129         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88130         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88131         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88132         * modules/stdio (Files): Add lib/stdio-write.c.
88133         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88134         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88135         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88136         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88137         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88138         REPLACE_FPRINTF_POSIX.
88139         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88140         REPLACE_PRINTF_POSIX.
88141         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88142         REPLACE_VFPRINTF_POSIX.
88143         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88144         REPLACE_VPRINTF_POSIX.
88145         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88146         SIGPIPE issue.
88147         * doc/posix-functions/fputc.texi: Likewise.
88148         * doc/posix-functions/fputs.texi: Likewise.
88149         * doc/posix-functions/fwrite.texi: Likewise.
88150         * doc/posix-functions/printf.texi: Likewise.
88151         * doc/posix-functions/putc.texi: Likewise.
88152         * doc/posix-functions/putchar.texi: Likewise.
88153         * doc/posix-functions/puts.texi: Likewise.
88154         * doc/posix-functions/vfprintf.texi: Likewise.
88155         * doc/posix-functions/vprintf.texi: Likewise.
88157         * modules/safe-write (Depends-on): Add write.
88159         * modules/sigpipe-tests: New file.
88160         * tests/test-sigpipe.c: New file.
88161         * tests/test-sigpipe.sh: New file.
88163         * modules/write: New file.
88164         * lib/unistd.in.h: Include <sys/types.h>.
88165         (write): New declaration.
88166         * lib/write.c: New file.
88167         * m4/write.m4: New file.
88168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88169         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88170         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88171         GNULIB_WRITE, REPLACE_WRITE.
88172         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88173         and the SIGPIPE issue.
88175         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88176         (raise): New declaration.
88177         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88178         (ext_signal): New function.
88179         (rpl_raise): New function.
88180         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88181         GNULIB_SIGNAL_H_SIGPIPE.
88182         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88183         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88185         * modules/sigpipe: New file.
88186         * m4/sigpipe.m4: New file.
88188 2008-09-25  Derek Price  <derek@ximbiot.com>
88189             Bruno Haible  <bruno@clisp.org>
88191         * gnulib-tool (func_import): Report all license incompatibilities, not
88192         just the first one.
88194 2008-09-25  Bruno Haible  <bruno@clisp.org>
88196         * gnulib-tool (func_import): When computing the edits, consider not
88197         only the Makefile.ams that exist but also those that will be generated.
88199 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88201         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88202         fixes gnulib-tool --test warning about duplicate dependency.
88204 2008-09-25  Bruno Haible  <bruno@clisp.org>
88206         * gnulib-tool: Don't ask the user to perform edits in the generated
88207         Makefile.ams.
88208         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88209         apply to the Makefile.am being generated.
88210         (func_emit_tests_Makefile_am): Execute edits that apply to the
88211         Makefile.am being generated.
88212         (func_import): Setup list of Makefile.am edits before emitting the
88213         Makefile.ams, not at the end.
88214         (func_create_testdir): Update.
88215         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88217 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88219         * gnulib-tool (func_import): Store the --tests-base option in the
88220         comment in gnulib-cache.m4.
88222 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88224         * NEWS: Document increased portability that sys_select now provides.
88226         * lib/sys_select.in.h: Install select wrapper.
88227         * lib/sys_socket.in.h: Use more descriptive name when there is no
88228         select wrapper.
88229         * lib/winsock-select.c: New.
88230         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88231         Require gl_HEADER_SYS_SOCKET.
88232         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88233         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88234         * tests/test-sys_select.c: Add functional tests.
88236 2008-09-24  Eric Blake  <ebb9@byu.net>
88238         open, fopen: close fd leak in last patch
88239         * lib/open.c (rpl_open): Close fd before returning error.
88240         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88241         * doc/posix-functions/open.texi (open): Document that Irix also
88242         has the bug.
88243         * doc/posix-functions/fopen.texi (fopen): Likewise.
88244         Reported by Paolo Bonzini.
88246 2008-09-24  Bruno Haible  <bruno@clisp.org>
88248         Ensure that a filename ending in a slash cannot be used to access a
88249         non-directory.
88250         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88251         to check whether it's really a directory.
88252         * lib/fopen.c: Include fcntl.h, unistd.h.
88253         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88254         and fdopen().
88255         * modules/fopen (Depends-on): Add unistd.
88256         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88257         * tests/test-fopen.c (main): Likewise.
88258         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88259         * doc/posix-functions/fopen.texi: Likewise.
88260         Reported by Eric Blake.
88262 2008-09-23  Eric Blake  <ebb9@byu.net>
88264         c-stack: avoid compiler optimizations when provoking overflow
88265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88266         recursion harder to optimize, to ensure a stack overflow occurs.
88267         * tests/test-c-stack.c (recurse): Likewise.
88268         Borrowed from libsigsegv.
88270         c-stack: work around Irix sigaltstack bug
88271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88272         whether sigaltstack uses wrong end of stack_t (copied in part from
88273         libsigsegv).
88274         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88275         Irix bug, without requiring an over-allocation.
88276         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88277         bug.
88279         fopen: document mingw bug on directories
88280         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88281         not allowing a stream visiting a directory, even though reading
88282         from such a stream is not portable.
88284 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88286         * lib/poll.c: Rewrite.
88287         * modules/poll: Depend on alloca.
88289 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88291         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88292         instead define prototypes for a full set of wrappers.  Ensure
88293         that Cygwin does not use the compatibility code, which is only
88294         for MinGW.
88295         * lib/winsock.c: New.
88296         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88297         * modules/sys_socket: Add lib/winsock.c.
88299         * modules/poll-tests: Add errno and perror.
88300         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88302 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88304         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88306 2008-09-23  Bruno Haible  <bruno@clisp.org>
88308         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88309         * doc/glibc-functions/*: Likewise.
88311 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88313         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88314         success.
88316 2008-09-22  Eric Blake  <ebb9@byu.net>
88317             Bruno Haible  <bruno@clisp.org>
88319         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88320         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88321         supply %A but mishandle pseudo-NaN.
88322         Reported by Simon Josefsson.
88324 2008-09-21  Bruno Haible  <bruno@clisp.org>
88326         * tests/test-lock.c (main): Tweak skip message.
88327         * tests/test-tls.c (main): Likewise.
88329 2008-09-21  Bruno Haible  <bruno@clisp.org>
88331         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88332         whether 'struct sigaction' has sa_sigaction here...
88333         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88334         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88336 2008-09-21  Bruno Haible  <bruno@clisp.org>
88338         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88339         section.
88340         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88341         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88342         the new section.
88343         (Support for obsolete systems lacking POSIX:2001): New section.
88344         (String handling <string.h>): Move strdup to the new section.
88345         Suggested by Simon Josefsson and Paolo Bonzini.
88347 2008-09-21  Bruno Haible  <bruno@clisp.org>
88349         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88350         exponents in %e and %g results on 'long double'. Needed for mingw's
88351         improved *printf functions.
88352         * tests/test-vasprintf-posix.c (test_function): Likewise.
88353         * tests/test-snprintf-posix.h (test_function): Likewise.
88354         * tests/test-sprintf-posix.h (test_function): Likewise.
88355         Reported by Eric Blake.
88357 2008-09-21  Bruno Haible  <bruno@clisp.org>
88359         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88360         * tests/test-sprintf-posix.h (test_function): Likewise.
88362 2008-09-21  Bruno Haible  <bruno@clisp.org>
88364         * modules/getpass (Depends-on): Add strdup-posix.
88366         New module 'strdup-posix'.
88367         * modules/strdup-posix: New file.
88368         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88369         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88371         REPLACE_STRDUP.
88372         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88373         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88375         strdup-posix.
88377         * modules/strdup (Depends-on): Remove malloc-posix.
88379 2008-09-20  Bruno Haible  <bruno@clisp.org>
88381         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88382         Wildenhues.
88384 2008-09-20  Bruno Haible  <bruno@clisp.org>
88386         Ensure that wint_t gets defined on IRIX 5.3.
88387         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88388         * lib/wctype.in.h (wint_t): Likewise.
88389         (__wctype_wint_t): Remove type.
88390         (isw*): Use wint_t instead of __wctype_wint_t.
88391         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88392         * modules/wchar (Files): Add m4/wint_t.m4.
88393         (Makefile.am): Substitute HAVE_WINT_T.
88394         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88395         * tests/test-wctype.c: Check that wint_t is defined.
88396         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88397         * doc/posix-headers/wctype.texi: Likewise.
88398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88400 2008-09-18  Bruno Haible  <bruno@clisp.org>
88402         * gnulib-tool (func_exit): Update comment.
88404 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88406         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88407         assumes strdup exists and does not depend on strdup to return
88408         ENOMEM on out of memory conditions.
88410 2008-09-18  Bruno Haible  <bruno@clisp.org>
88412         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
88413         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
88414         digits for the exponent.
88416 2008-09-18  Jim Meyering  <meyering@redhat.com>
88417             Bruno Haible  <bruno@clisp.org>
88419         * lib/vasnprintf.c (decimal_point_char): Define also if
88420         NEED_PRINTF_INFINITE_LONG_DOUBLE.
88422 2008-09-16  Bruno Haible  <bruno@clisp.org>
88423         and Eric Blake  <ebb9@byu.net>
88425         vasnprintf: support Irix 5.3
88426         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
88427         that mishandle long double infinity.
88428         Reported by Tom G. Christensen.
88430 2008-09-16  Bruno Haible  <bruno@clisp.org>
88432         * doc/glibc-functions/scandir.texi: Mention the function is missing on
88433         Solaris 9.
88434         * doc/glibc-functions/alphasort.texi: Likewise.
88435         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
88437 2008-09-16  Jim Meyering  <meyering@redhat.com>
88439         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88440         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88441         a umask modification leak out of a subshell.  Otherwise, the
88442         opensolaris /bin/sh would be accepted and thus cause unwarranted
88443         failures in the coreutils test suite.
88445 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88447         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88448         to succeed.
88450 2008-09-16  Jim Meyering  <meyering@redhat.com>
88452         avoid spurious test failure when library is built without ACL support
88453         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88454         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88455         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88456         * tests/test-copy-acl.sh: Likewise.
88458 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88460         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88461         based on character occurrence counts.
88463 2008-09-15  Eric Blake  <ebb9@byu.net>
88465         tests: avoid some compiler warnings
88466         * tests/test-memchr.c (main): Pass NULL indirectly.
88467         * tests/test-closein.c (main): Avoid unused variable.
88469 2008-09-15  Bruno Haible  <bruno@clisp.org>
88471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88472         are missing on OpenBSD 4.0 individually.
88473         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88475 2008-09-15  Bruno Haible  <bruno@clisp.org>
88477         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88478         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88479         * doc/posix-functions/perror.texi: Likewise.
88480         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88481         is missing.
88482         Reported by Eric Blake.
88484         * lib/errno.in.h: Use replacement values >= 2000.
88485         Reported by Eric Blake.
88487 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88489         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88490         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88491         limit.
88492         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88493         compareseq was aborted.
88495 2008-09-14  Bruno Haible  <bruno@clisp.org>
88497         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88498         yvec_edit_count.
88499         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88500         (fstrcmp_bounded): Simplify result computation accordingly.
88502 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88504         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88505         (fstrcmp): Define in terms of fstrcmp_bounded.
88506         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88507         lower_bound argument.
88508         Return quickly if the result is certainly < lower_bound.
88509         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88511 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88513         * lib/diffseq.h (EARLY_ABORT): New macro.
88514         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88515         evaluates to true.
88517 2008-09-14  Bruno Haible  <bruno@clisp.org>
88519         * modules/perror-tests: New file.
88520         * tests/test-perror.sh: New file.
88521         * tests/test-perror.c: New file.
88523         New module 'perror'.
88524         * lib/stdio.in.h (perror): New declaration.
88525         * lib/perror.c: New file.
88526         * m4/perror.m4: New file.
88527         * modules/perror: New file.
88528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88529         * doc/posix-functions/perror.texi: Mention the perror module.
88530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88531         REPLACE_PERROR.
88532         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88533         REPLACE_PERROR.
88535 2008-09-14  Bruno Haible  <bruno@clisp.org>
88537         * modules/stdio (Makefile.am): Reorder to match the order in
88538         lib/stdio.in.h.
88539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88541 2008-09-13  Bruno Haible  <bruno@clisp.org>
88543         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88545 2008-09-13  Bruno Haible  <bruno@clisp.org>
88547         Extend strerror to cover the added errno values.
88548         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88549         (rpl_strerror): Provide error messages for the added errno values and
88550         for the WSA* values.
88551         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88552         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88553         strerror.
88554         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88555         * modules/strerror (Depends-on): Add errno.
88556         * doc/posix-functions/strerror.texi: Document the change.
88557         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88558         and EOVERFLOW.
88560 2008-09-13  Bruno Haible  <bruno@clisp.org>
88562         * modules/EOVERFLOW: Remove file.
88563         * m4/eoverflow.m4: Remove file.
88564         * modules/EOVERFLOW-tests: Remove file.
88565         * tests/test-EOVERFLOW.c: Remove file.
88566         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88567         * modules/ftell (Depends-on): Likewise.
88568         * modules/getdelim (Depends-on): Likewise.
88569         * modules/getugroups (Depends-on): Likewise.
88570         * modules/poll (Depends-on): Likewise.
88571         * modules/snprintf (Depends-on): Likewise.
88572         * modules/sprintf-posix (Depends-on): Likewise.
88573         * modules/vasnprintf (Depends-on): Likewise.
88574         * modules/vasprintf (Depends-on): Likewise.
88575         * modules/vfprintf-posix (Depends-on): Likewise.
88576         * modules/vsnprintf (Depends-on): Likewise.
88577         * modules/vsprintf-posix (Depends-on): Likewise.
88578         * modules/xvasprintf (Depends-on): Likewise.
88579         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88580         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88581         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88582         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88584         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88585         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88586         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88587         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88588         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88589         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88590         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88592         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88593         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88594         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88595         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88596         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88597         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88598         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88599         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88600         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88601         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88602         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88603         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88605         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88606         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88607         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88608         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88609         * MODULES.html.sh: Remove EOVERFLOW.
88610         * NEWS: Mention the change.
88612 2008-09-13  Bruno Haible  <bruno@clisp.org>
88614         * modules/errno-tests: New file.
88615         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88617         * lib/errno.in.h: New file.
88618         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88619         * modules/errno: New file.
88620         * doc/posix-headers/errno.texi: Update documentation.
88621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88623 2008-09-13  Bruno Haible  <bruno@clisp.org>
88625         * tests/test-poll.c: Use #if for native Windows, rather than testing
88626         __MSVCRT__.
88628 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88629             Bruno Haible  <bruno@clisp.org>
88631         * lib/glob.c: Don't include <pwd.h> on native Windows.
88632         (WINDOWS32): New macro.
88633         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88635 2008-09-13  Bruno Haible  <bruno@clisp.org>
88637         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88638         (ETIMEDOUT): Remove macro.
88639         (glthread_cond_timedwait_multithreaded): New declaration.
88640         (glthread_cond_timedwait): Use it.
88641         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88642         (glthread_cond_timedwait_multithreaded): New function.
88644 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88646         * modules/poll-tests: Do not check for io.h.
88647         * tests/test-poll.c: Check for __MSVCRT__ instead.
88649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88651         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88652         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88653         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88655 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88657         * modules/poll-tests: New.
88658         * tests/test-poll.c: New.
88660 2008-09-12  Eric Blake  <ebb9@byu.net>
88662         frexp: test for NetBSD failure on -0.0
88663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88664         not all, bugs from NetBSD 3.0 have been fixed.
88665         * doc/posix-functions/frexp.texi (frexp): Document bug.
88666         Reported by Thomas Klausner.
88668         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88669         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88670         literal -0.0.
88671         Reported by Jonathan C. Patschke <jp@centtech.com>.
88673 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88675         * lib/glthread/cond.h: Use dummy implementation also if
88676         USE_WIN32_THREADS.
88678 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88680         * modules/fnmatch-posix (License): Change to LGPLv2+.
88681         * modules/fnmatch-gnu (License): Likewise.
88683 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88685         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88687 2008-09-11  Jim Meyering  <meyering@redhat.com>
88689         * users.txt: Add gtk-vnc.
88691 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88693         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88694         rotate amounts.
88696         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88697         required for 16-bit and 8-bit rotates.
88698         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88699         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88700         UINT8_MAX instead of hard-coded constants.
88701         Suggested by Paul Eggert.
88703 2008-09-07  Bruno Haible  <bruno@clisp.org>
88705         * tests/test-striconveh.c (main): Check behaviour when converting from
88706         UTF-7.
88708         Make striconveh work better with stateful encodings.
88709         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88710         that iconv does not increment the inptr when returning -1/EINVAL.
88712 2008-09-07  Bruno Haible  <bruno@clisp.org>
88714         * build-aux/config.rpath: Update according to libtool-2.2.6.
88715         * build-aux/config.libpath: Likewise.
88717 2008-09-06  Bruno Haible  <bruno@clisp.org>
88719         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88720         * lib/freadptr.c (freadptr): Likewise.
88721         * lib/freadseek.c (freadptrinc): Likewise.
88722         Reported by Simon Josefsson.
88724 2008-09-06  Bruno Haible  <bruno@clisp.org>
88726         * modules/freadptr (License): Change to LGPLv2+.
88727         * modules/freadseek (License): Likewise.
88728         Suggested by Eric Blake.
88730         * modules/memchr2 (License): Change to LGPLv2+.
88731         Approved by Eric Blake.
88733 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88734             Bruno Haible  <bruno@clisp.org>
88736         Make gnulib-tool work with native 'sed' on AIX.
88737         * gnulib-tool (sed_noop): New variable.
88738         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88739         func_add_or_update, func_create_testdir): Use it to initialize sed
88740         script variables.
88741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88743 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88744             Bruno Haible  <bruno@clisp.org>
88746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88747         also works after #include directives.
88749 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88751         getdate.y: reject an out-of-range timezone value
88752         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88753         the range [-24...+24].  When specified with only one or two digits,
88754         * tests/test-getdate.c: Tests for the fix.
88755         * doc/getdate.texi: Document this change.
88757 2008-09-03  Bruno Haible  <bruno@clisp.org>
88759         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88761 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88763         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88764         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88765         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88766         Blake <ebb9@byu.net>.
88768         * tests/test-bitrotate.c: Add more test vectors.
88770 2008-09-02  Eric Blake  <ebb9@byu.net>
88772         vasnprintf-posix: handle large precision via %.*d
88773         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88774         when handling it ourselves.
88775         * tests/test-vasnprintf-posix.c (test_function): Add test.
88776         * tests/test-snprintf-posix.h (test_function): Likewise.
88777         * tests/test-sprintf-posix.h (test_function): Likewise.
88778         * tests/test-vasprintf-posix.c (test_function): Likewise.
88779         Reported by Alain Guibert.
88781 2008-09-01  Eric Blake  <ebb9@byu.net>
88783         c-stack: make configure-time check more robust
88784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88785         successful sigaction call.
88786         Reported by Tom G. Christensen.
88788 2008-09-01  Bruno Haible  <bruno@clisp.org>
88790         New module 'findprog-lgpl'.
88791         * modules/findprog-lgpl: New file.
88792         * lib/findprog-lgpl.c: New file.
88793         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88794         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88795         to decide whether to use strdup or xstrdup, concatenated_filename or
88796         xconcatenated_filename.
88798 2008-09-01  Bruno Haible  <bruno@clisp.org>
88800         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88801         'xconcat-filename' (GPL).
88802         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88803         (License): Change to LGPLv2+.
88804         * modules/xconcat-filename: New file.
88805         * lib/concat-filename.h (concatenated_filename): Change specification.
88806         (xconcatenated_filename): New declaration.
88807         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88808         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88809         memory situations.
88810         * lib/xconcat-filename.c: New file.
88811         * NEWS: Mention the change.
88812         * lib/findprog.c: Include concat-filename.h, not filename.h.
88813         (find_in_path): Use xconcatenated_filename instead of
88814         concatenated_filename.
88815         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88816         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88817         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88818         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88819         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88820         instead of concatenated_filename.
88821         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88822         (execute_java_class): Use xconcatenated_filename instead of
88823         concatenated_filename.
88824         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88825         * modules/javacomp (Depends-on): Likewise.
88826         * modules/javaexec (Depends-on): Likewise.
88828 2008-09-01  Bruno Haible  <bruno@clisp.org>
88830         Split module 'filename' into 'filename' and 'concat-filename'.
88831         * modules/filename: Keep only lib/filename.h.
88832         (License): Change to LGPLv2+.
88833         * modules/concat-filename: New file, extracted from modules/filename.
88834         * lib/filename.h (concatenated_filename): Remove declaration.
88835         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88836         * lib/concat-filename.c: Include concat-filename.h.
88837         * NEWS: Mention the change.
88839 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88841         * lib/bitrotate.h (rotl8, rotr8): Add.
88843         * modules/bitrotate (configure.ac): Need
88844         AC_REQUIRE([AC_C_INLINE]).
88845         (Description): Mention stdint.h.  Reported by Bruno Haible
88846         <bruno@clisp.org>.
88848         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88849         Paolo Bonzini <bonzini@gnu.org>.
88851 2008-08-31  Bruno Haible  <bruno@clisp.org>
88853         Assume Solaris specific bi-arch conventions on Solaris systems.
88854         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88855         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88857         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88858         like acl_libdirstem.
88859         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88860         acl_libdirstem.
88861         * NEWS: Mention the change.
88862         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88864 2008-08-31  Jim Meyering  <meyering@redhat.com>
88866         * lib/strftime.h: Add comments describing the two added arguments.
88868         remove duplicate #include directives
88869         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88870         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88872 2008-08-31  Bruno Haible  <bruno@clisp.org>
88874         New module 'sigpipe-die'.
88875         * modules/sigpipe-die: New file.
88876         * lib/sigpipe-die.h: New file.
88877         * lib/sigpipe-die.c: New file.
88878         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88880 2008-08-31  Bruno Haible  <bruno@clisp.org>
88882         Don't override previously installed signal handlers.
88883         * lib/fatal-signal.c (saved_sigactions): New variable.
88884         (uninstall_handlers): Reset the signal to the saved handler, not
88885         to SIG_DFL (except when ignored).
88886         (install_handlers): Save the previous handlers.
88888 2008-08-30  Bruno Haible  <bruno@clisp.org>
88890         * gnulib-tool (func_reset_sigpipe): New function.
88891         (func_get_automake_snippet, func_modules_transitive_closure,
88892         func_import): Invoke it before a join command that reads from stdin,
88893         to avoid "echo: write error: Broken pipe" error messages on stderr.
88894         Reported by Sam Steingold <sds@gnu.org>.
88896 2008-08-30  Bruno Haible  <bruno@clisp.org>
88898         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88899         Code copied from m4/open.m4.
88900         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88901         access and the filename ends in a slash. Code copied from lib/open.c.
88902         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88903         * tests/test-fopen.c (main): Check against bug with trailing slash.
88905 2008-08-29  Bruno Haible  <bruno@clisp.org>
88907         Avoid some "gcc -pedantic" warnings.
88908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88909         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88910         * lib/dirent.in.h: Likewise.
88911         * lib/fcntl.in.h: Likewise.
88912         * lib/float.in.h: Likewise.
88913         * lib/iconv.in.h: Likewise.
88914         * lib/inttypes.in.h: Likewise.
88915         * lib/locale.in.h: Likewise.
88916         * lib/math.in.h: Likewise.
88917         * lib/netinet_in.in.h: Likewise.
88918         * lib/search.in.h: Likewise.
88919         * lib/signal.in.h: Likewise.
88920         * lib/stdarg.in.h: Likewise.
88921         * lib/stdint.in.h: Likewise.
88922         * lib/stdio.in.h: Likewise.
88923         * lib/stdlib.in.h: Likewise.
88924         * lib/string.in.h: Likewise.
88925         * lib/strings.in.h: Likewise.
88926         * lib/sys_select.in.h: Likewise.
88927         * lib/sys_socket.in.h: Likewise.
88928         * lib/sys_stat.in.h: Likewise.
88929         * lib/sys_time.in.h: Likewise.
88930         * lib/sysexits.in.h: Likewise.
88931         * lib/time.in.h: Likewise.
88932         * lib/unistd.in.h: Likewise.
88933         * lib/wchar.in.h: Likewise.
88934         * lib/wctype.in.h: Likewise.
88935         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88936         * modules/fchdir (Makefile.am): Likewise.
88937         * modules/fcntl (Makefile.am): Likewise.
88938         * modules/float (Makefile.am): Likewise.
88939         * modules/iconv_open (Makefile.am): Likewise.
88940         * modules/inttypes (Makefile.am): Likewise.
88941         * modules/locale (Makefile.am): Likewise.
88942         * modules/math (Makefile.am): Likewise.
88943         * modules/netinet_in (Makefile.am): Likewise.
88944         * modules/search (Makefile.am): Likewise.
88945         * modules/signal (Makefile.am): Likewise.
88946         * modules/stdarg (Makefile.am): Likewise.
88947         * modules/stdint (Makefile.am): Likewise.
88948         * modules/stdio (Makefile.am): Likewise.
88949         * modules/stdlib (Makefile.am): Likewise.
88950         * modules/string (Makefile.am): Likewise.
88951         * modules/strings (Makefile.am): Likewise.
88952         * modules/sys_select (Makefile.am): Likewise.
88953         * modules/sys_socket (Makefile.am): Likewise.
88954         * modules/sys_stat (Makefile.am): Likewise.
88955         * modules/sys_time (Makefile.am): Likewise.
88956         * modules/sysexits (Makefile.am): Likewise.
88957         * modules/time (Makefile.am): Likewise.
88958         * modules/unistd (Makefile.am): Likewise.
88959         * modules/wchar (Makefile.am): Likewise.
88960         * modules/wctype (Makefile.am): Likewise.
88961         Reported by Reuben Thomas <rrt@sc3d.org>.
88963 2008-08-29  Bruno Haible  <bruno@clisp.org>
88965         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88966         any more.
88968 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88970         * MODULES.html.sh (Misc): Add bitrotate.
88972         * modules/bitrotate: New file.
88974         * lib/bitrotate.h: New file.
88976         * modules/bitrotate-tests: New file.
88978         * tests/test-bitrotate.c: New file.
88980         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88981         on the bitrotate module.
88983         * lib/arctwo.c: Use new bitrotate module.
88985 2008-08-29  Jim Meyering  <meyering@redhat.com>
88987         bootstrap: merge changes from coreutils
88988         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88989         of copied files.  Remove a kludge, now that this is fixed.
88990         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88991         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88992         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88994 2008-08-29  Bruno Haible  <bruno@clisp.org>
88996         * MODULES.html.sh: Remove --cvs-urls option.
88998 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89000         maint.mk: adjust to file name change
89001         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89003 2008-08-28  Jim Meyering  <meyering@redhat.com>
89005         * modules/getndelim2 (License): Relicense to LGPLv2+.
89006         Approved by Richard Stallman for the version of 1995, and by
89007         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89009 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89011         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89012         dummy if one is not available.  Do not touch them if
89013         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89014         (getc_maybe_unlocked): New.
89015         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89017 2008-08-26  Eric Blake  <ebb9@byu.net>
89019         doc/INSTALL: resync from autoconf
89020         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89021         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89022         moving...
89023         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89024         * INSTALL: Regenerate.
89025         * INSTALL.ISO: New file.
89026         * INSTALL.UTF-8: Likewise.
89028 2008-08-26  Jim Meyering  <meyering@redhat.com>
89030         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89031         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89032         these definitions conditional, so that they may be overridden, too.
89034 2008-08-26  Bruno Haible  <bruno@clisp.org>
89036         Generate INSTALL file variants with prettier quotes.
89037         * doc/Makefile (INSTALL_PRELUDE): New macro.
89038         (INSTALL): Use it.
89039         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89041 2008-08-26  Bruno Haible  <bruno@clisp.org>
89043         Run makeinfo in an English locale.
89044         * doc/Makefile (MAKEINFO): New variable.
89046 2008-08-26  Bruno Haible  <bruno@clisp.org>
89048         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89049         Suggested by Eric Blake.
89051 2008-08-25  Bruno Haible  <bruno@clisp.org>
89053         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89055 2008-08-25  Eric Blake  <ebb9@byu.net>
89057         c-stack: test that stack overflow can be caught
89058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89059         that platform allows handling stack overflow; at least OS/2 EMX
89060         has sigaltstack, but crashes before transferring control to
89061         handler on stack overflow.
89062         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89063         check for HAVE_STACK_OVERFLOW_HANDLING.
89064         Reported by Elbert Pol.
89066 2008-08-25  Bruno Haible  <bruno@clisp.org>
89068         * doc/posix-functions/strftime.texi: Fix description of strftime
89069         module.
89071 2008-08-24  Bruno Haible  <bruno@clisp.org>
89073         * tests/uniwidth/test-uc_width2.c: New file.
89074         * tests/uniwidth/test-uc_width2.sh: New file.
89075         * modules/uniwidth/width-tests (Files): Add the new files.
89076         (TESTS): Add uniwidth/test-uc_width2.sh.
89077         (TESTS_ENVIRONMENT): New variable.
89078         (check_PROGRAMS): Add test-uc_width2.
89079         (test_uc_width2_SOURCES): New variable.
89081         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89082         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89083         not 0x00AB.
89084         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89086 2008-08-22  Eric Blake  <ebb9@byu.net>
89088         test-lock, test-tls: mention why a test is skipped
89089         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89090         skipped.
89091         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89093         count-one-bits: relax license
89094         * modules/count-one-bits (License): Relicense to LGPLv2+.
89095         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89097 2008-08-22  Andreas Schwab  <schwab@suse.de>
89099         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89100         Remove spurious space in assignment.
89102 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89104         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89105         Paul Eggert <eggert@CS.UCLA.EDU>.
89107 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89109         * modules/gettext: Add m4/threadlib.m4.
89111 2008-08-19  Eric Blake  <ebb9@byu.net>
89113         test-c-stack: fix compilation failure on FreeBSD 5.0
89114         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89115         headers before <sys/resource.h>.
89116         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89117         the bug.
89118         Reported by Nelson H. F. Beebe.
89120         strverscmp: migrate from "strverscmp.h" to <string.h>
89121         * modules/string (Makefile.am): Add new hooks.
89122         * modules/strverscmp (Files): Remove strverscmp.h.
89123         (Depends-on): Add string.
89124         (configure.ac): Add indicator.
89125         (Include): Mention new header.
89126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89127         defaults.
89128         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89129         results.
89130         * lib/strverscmp.h: Delete.
89131         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89132         * tests/test-strverscmp.c (includes): Adjust client.
89133         * lib/check-version.c (includes): Likewise.
89134         * NEWS: Document the change.
89136         strverscmp: add unit test
89137         * modules/strverscmp-tests: New file.
89138         * tests/test-strverscmp.c: Likewise.
89140 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89142         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89143         regarding Windows crypto stuff, from Mono.
89145 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89147         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89148         if present, for intel RND.  Return error on failures.
89150 2008-08-18  Ben Pfaff  <blp@gnu.org>
89152         gitlog-to-changelog: give better diagnostic for failed pipe-open
89153         * build-aux/gitlog-to-changelog: Improve error message: suggest
89154         that the version of Git may be too old.
89156 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89158         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89159         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89161 2008-08-18  Bruno Haible  <bruno@clisp.org>
89163         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89164         pthread_in_use().
89166 2008-08-18  Bruno Haible  <bruno@clisp.org>
89168         * lib/glthread/threadlib.c: Include <pthread.h>.
89170 2008-08-18  Bruno Haible  <bruno@clisp.org>
89172         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89173         glthread_recursive_lock_* macros.
89174         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89175         Fix syntax error.
89177 2008-08-18  Bruno Haible  <bruno@clisp.org>
89179         * lib/glthread/thread.c: Avoid forcing a context switch right after
89180         thread creation.
89182 2008-08-17  Bruno Haible  <bruno@clisp.org>
89184         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89185         * lib/glthread/thread.h: Provide Win32 specific implementation.
89186         * modules/thread (Files): Add lib/glthread/thread.c.
89187         (Depends-on): Add lock.
89188         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89190 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89192         New module 'yield'.
89193         * modules/yield: New file.
89194         * lib/glthread/yield.h: New file.
89195         * m4/yield.m4: New file.
89196         * MODULES.html.sh (Multithreading): Add yield.
89198 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89200         New module 'thread'.
89201         * modules/thread: New file.
89202         * lib/glthread/thread.h: New file.
89203         * m4/thread.m4: New file.
89204         * MODULES.html.sh (Multithreading): Add thread.
89206 2008-08-17  Bruno Haible  <bruno@clisp.org>
89208         * lib/glthread/lock.h: Include <stdlib.h> always.
89209         * lib/glthread/tls.h: Likewise.
89210         * lib/glthread/cond.h: Likewise.
89212 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89214         New module 'cond'.
89215         * modules/cond: New file.
89216         * lib/glthread/cond.h: New file.
89217         * lib/glthread/cond.c: New file.
89218         * m4/cond.m4: New file.
89219         * MODULES.html.sh (Multithreading): Add cond.
89221 2008-08-16  Eric Blake  <ebb9@byu.net>
89223         c-stack: fix regression on Irix 5.3 from 2008-06-21
89224         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89225         sa_sigaction...
89226         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89227         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89228         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89229         * modules/signal (Makefile.am): Use the value.
89230         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89231         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89232         * doc/posix-headers/signal.texi (signal.h): Document this
89233         portability issue.
89234         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89235         Reported by Tom G. Christensen.
89237 2008-08-17  Bruno Haible  <bruno@clisp.org>
89239         New module 'threadlib'.
89240         * modules/threadlib: New file.
89241         * lib/glthread/threadlib.c: New file, extracted from
89242         lib/glthread/lock.c.
89243         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89244         functions.
89245         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89246         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89247         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89248         macros.
89249         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89250         (gl_DISABLE_THREADS): Remove macro.
89251         * modules/lock (Files): Remove build-aux/config.rpath.
89252         (Depends-on): Remove havelib. Add threadlib.
89253         (configure.ac-early): Remove section.
89254         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89255         * modules/tls (Depends-on): Remove lock. Add threadlib.
89256         (Link): New section, copied from threadlib.
89257         * MODULES.html.sh (Multithreading): Add threadlib.
89259 2008-08-14  Bruno Haible  <bruno@clisp.org>
89261         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89262         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89263         glthread_rwlock_unlock, glthread_rwlock_destroy,
89264         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89265         glthread_recursive_lock_destroy): Define as macros always.
89266         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89267         glthread_lock_lock.
89268         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89269         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89270         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89271         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89272         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89273         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89274         (glthread_recursive_lock_lock_func): Renamed from
89275         glthread_recursive_lock_lock.
89276         (glthread_recursive_lock_unlock_func): Renamed from
89277         glthread_recursive_lock_unlock.
89278         (glthread_recursive_lock_destroy_func): Renamed from
89279         glthread_recursive_lock_destroy.
89281 2008-08-14  Bruno Haible  <bruno@clisp.org>
89283         * lib/glthread/lock.h: Renamed from lib/lock.h.
89284         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89285         * lib/glthread/tls.h: Renamed from lib/tls.h.
89286         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89287         * lib/fstrcmp.c: Update includes.
89288         * lib/strsignal.c: Update includes.
89289         * modules/lock (Files, Makefile.am): Update.
89290         (Include): Change to "glthread/lock.h".
89291         * modules/tls (Files, Makefile.am): Update.
89292         (Include): Change to "glthread/tls.h".
89293         * tests/test-lock.c: Update includes.
89294         * tests/test-tls.c: Update includes.
89295         * NEWS: Mention the renamed header files.
89297 2008-08-11  Jim Meyering  <meyering@redhat.com>
89299         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89301 2008-08-11  Eric Blake  <ebb9@byu.net>
89303         test-c-stack: avoid C99-ism
89304         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89305         before statement.
89306         Reported by Alain Guibert.
89308 2008-08-10  Jim Meyering  <meyering@redhat.com>
89310         ensure that return value of uinttostr et al are not ignored
89311         * lib/inttostr.h (__GNUC_PREREQ): Define.
89312         (__attribute_warn_unused_result__): Define.
89313         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89315 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89317         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89318         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89320 2008-08-07  Jim Meyering  <meyering@redhat.com>
89322         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89324         * modules/mkstemp (License): Relicense under LGPLv2+.
89325         * modules/tempname (License): Likewise.
89327 2008-08-06  Bruno Haible  <bruno@clisp.org>
89329         * lib/poll.c (poll): Further micro-optimization.
89331 2008-08-06  Jim Meyering  <meyering@redhat.com>
89333         inet_pton.c: use locale-independent tolower
89334         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89335         (inet_pton6): Use c_tolower rather than tolower.
89336         * modules/inet_pton (Depends-on): Add c-ctype.
89338 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89340         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89341         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89343 2008-08-06  Jim Meyering  <meyering@redhat.com>
89345         * modules/inet_pton (License): Relicense under LGPLv2+.
89347 2008-08-03  Bruno Haible  <bruno@clisp.org>
89349         Additional non-aborting API for lock and tls.
89350         * lib/lock.h: Include <errno.h>.
89351         (glthread_lock_init): New macro/function.
89352         (gl_lock_init): Define as wrapper around glthread_lock_init.
89353         (glthread_lock_lock): New macro/function.
89354         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89355         (glthread_lock_unlock): New macro/function.
89356         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89357         (glthread_lock_destroy): New macro/function.
89358         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89359         (glthread_rwlock_init): New macro/function.
89360         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89361         (glthread_rwlock_rdlock): New macro/function.
89362         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89363         (glthread_rwlock_wrlock): New macro/function.
89364         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89365         (glthread_rwlock_unlock): New macro/function.
89366         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89367         (glthread_rwlock_destroy): New macro/function.
89368         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89369         (glthread_recursive_lock_init): New macro/function.
89370         (gl_recursive_lock_init): Define as wrapper around
89371         glthread_recursive_lock_init.
89372         (glthread_recursive_lock_lock): New macro/function.
89373         (gl_recursive_lock_lock): Define as wrapper around
89374         glthread_recursive_lock_lock.
89375         (glthread_recursive_lock_unlock): New macro/function.
89376         (gl_recursive_lock_unlock): Define as wrapper around
89377         glthread_recursive_lock_unlock.
89378         (glthread_recursive_lock_destroy): New macro/function.
89379         (gl_recursive_lock_destroy): Define as wrapper around
89380         glthread_recursive_lock_destroy.
89381         (glthread_once): New macro/function.
89382         (gl_once): Define as wrapper around glthread_once.
89383         Update function declarations.
89384         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89385         glthread_rwlock_init. Return error code.
89386         (glthread_rwlock_rdlock_multithreaded): Renamed from
89387         glthread_rwlock_rdlock. Return error code.
89388         (glthread_rwlock_wrlock_multithreaded): Renamed from
89389         glthread_rwlock_wrlock. Return error code.
89390         (glthread_rwlock_unlock_multithreaded): Renamed from
89391         glthread_rwlock_unlock. Return error code.
89392         (glthread_rwlock_destroy_multithreaded): Renamed from
89393         glthread_rwlock_destroy. Return error code.
89394         (glthread_recursive_lock_init_multithreaded): Renamed from
89395         glthread_recursive_lock_init. Return error code.
89396         (glthread_recursive_lock_lock_multithreaded): Renamed from
89397         glthread_recursive_lock_lock. Return error code.
89398         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89399         glthread_recursive_lock_unlock. Return error code.
89400         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89401         glthread_recursive_lock_destroy. Return error code.
89402         (glthread_once_call): Make static.
89403         (glthread_once_multithreaded): Renamed from glthread_once.
89404         * lib/tls.h: Include <errno.h>.
89405         (glthread_tls_key_init): New macro/function.
89406         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89407         (glthread_tls_set): New macro/function.
89408         (gl_tls_set): Define as wrapper around glthread_tls_set.
89409         (glthread_tls_key_destroy): New macro/function.
89410         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89411         Update function declarations.
89412         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
89413         glthread_tls_get.
89414         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89416 2008-08-04  Eric Blake  <ebb9@byu.net>
89418         gnumakefile: use space, not TAB, outside of targets
89419         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
89421 2008-08-02  Jim Meyering  <meyering@redhat.com>
89423         getdate.y: avoid locale-dependent date parsing failure
89424         In Turkish locales, getdate would fail to recognize keywords
89425         containing a lowercase "i".  The solution is not to rely on
89426         locale-sensitive case-conversion.
89427         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
89428         (lookup_word): Use c_toupper in place of toupper.
89429         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
89430         Reported by Vefa Bicakci <bicave@superonline.com> in
89431         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
89432         * modules/getdate (Depends-on): Add c-ctype.
89434 2008-08-02  Bruno Haible  <bruno@clisp.org>
89436         * gnulib-tool (func_import): When updating or creating a .gitignore
89437         file, prepend each added line with a slash, and ignore leading slashes
89438         from the existing lines.
89439         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89441 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89443         Portability fix for GNU make 3.79.1.
89444         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89445         versions do not understand.
89447 2008-08-01  Bruno Haible  <bruno@clisp.org>
89449         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89450         * tests/test-isnanf.h (zero): New variable.
89451         (main): Avoid literal -0.0f.
89452         * tests/test-isnand.h (zero): New variable.
89453         (main): Avoid literal -0.0.
89454         * tests/test-isnanl.h (zero): New variable.
89455         (main): Avoid literal -0.0L.
89456         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89457         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89458         -0.0, -0.0L.
89459         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89460         (test_signbitd): Avoid literal -0.0.
89461         (test_signbitl): Avoid literal -0.0L.
89462         * tests/test-ceilf1.c (zero): New variable.
89463         (main): Avoid literal -0.0f.
89464         * tests/test-ceill.c (zero): New variable.
89465         (main): Avoid literal -0.0L.
89466         * tests/test-floorf1.c (zero): New variable.
89467         (main): Avoid literal -0.0f.
89468         * tests/test-floorl.c (zero): New variable.
89469         (main): Avoid literal -0.0L.
89470         * tests/test-roundf1.c (zero): New variable.
89471         (main): Avoid literal -0.0f.
89472         * tests/test-round1.c (zero): New variable.
89473         (main): Avoid literal -0.0.
89474         * tests/test-roundl.c (zero): New variable.
89475         (main): Avoid literal -0.0L.
89476         * tests/test-truncf1.c (zero): New variable.
89477         (main): Avoid literal -0.0f.
89478         * tests/test-trunc1.c (zero): New variable.
89479         (main): Avoid literal -0.0.
89480         * tests/test-truncl.c (zero): New variable.
89481         (main): Avoid literal -0.0L.
89482         * tests/test-frexp.c (zero): New variable.
89483         (main): Avoid literal -0.0.
89484         * tests/test-frexpl.c (zero): New variable.
89485         (main): Avoid literal -0.0L.
89486         * tests/test-ldexpl.c (zero): New variable.
89487         (main): Avoid literal -0.0L.
89488         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89489         (zerod, zerol): New variables.
89490         (test_function): Avoid literals -0.0, -0.0L.
89491         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89492         (zerod, zerol): New variables.
89493         (test_function): Avoid literals -0.0, -0.0L.
89494         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89495         (zerod, zerol): New variables.
89496         (test_function): Avoid literals -0.0, -0.0L.
89497         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89498         (zerod, zerol): New variables.
89499         (test_function): Avoid literals -0.0, -0.0L.
89500         * tests/test-strtod.c (zero): New variable.
89501         (main): Avoid literal -0.0.
89502         Reported by Jonathan C. Patschke <jp@centtech.com>.
89504 2008-07-31  Jim Meyering  <meyering@redhat.com>
89506         sha256.h: correct definition of SHA224_DIGEST_SIZE
89507         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89508         Reported by Paulie Pena IV <paulie4@gmail.com>.
89509         Define as 224 / 8, rather than as a literal.
89510         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89511         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89512         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89514 2008-07-31  Bruno Haible  <bruno@clisp.org>
89516         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89517         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89518         Reported by Jonathan Patschke <jp@centtech.com>.
89520 2008-07-31  Bruno Haible  <bruno@clisp.org>
89522         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89523         Reported by Paolo Bonzini <bonzini@gnu.org>.
89525 2008-07-30  Eric Blake  <ebb9@byu.net>
89527         test-strtod: allow compilation without -lm
89528         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89529         Reported by Dennis Clarke <blastwave@gmail.com>.
89531 2008-07-28  Jim Meyering  <meyering@redhat.com>
89533         bootstrap: work also when there are no .po files in po/
89534         * build-aux/bootstrap (update_po_files): Complete the change
89535         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89537 2008-07-27  Jim Meyering  <meyering@redhat.com>
89539         * users.txt: Add zile.
89541 2008-07-26  Ben Pfaff  <blp@gnu.org>
89543         Add missing dependencies on new m4/exponent[fdl].m4 files.
89544         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89545         * modules/isnand-nolibm: Add m4/exponentd.m4.
89546         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89547         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89548         m4/isnan[fdl].m4, because the macros actually used moved.
89549         Reported by Jim Meyering.
89551 2008-07-14  Ben Pfaff  <blp@gnu.org>
89553         Add isinf module.
89554         * lib/isinf.c: New file.
89555         * lib/math.in.h: Define isinf macro if we have decided to replace
89556         it.
89557         * m4/isinf.m4: New file.
89558         * m4/math_h.m4: Initialize and substitute variables for isinf
89559         module.
89560         * modules/isinf: New file.
89561         * modules/isinf-tests: New file.
89562         * modules/math: Add substitutions for new module.
89563         * tests/test-isinf.c: New file.
89564         * doc/posix-functions/isinf.texi: Mention new module.
89565         * MODULES.html.sh: Mention new module.
89567 2008-07-14  Ben Pfaff  <blp@gnu.org>
89569         Factor out some macros for use by additional modules.
89570         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89571         exponentf.m4.
89572         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89573         exponentd.m4.
89574         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89575         file exponentl.m4.
89576         * m4/exponentf.m4: New file.
89577         * m4/exponentd.m4: New file.
89578         * m4/exponentl.m4: New file.
89579         * modules/isnanf: Use new file m4/exponentf.m4.
89580         * modules/isnand: Use new file m4/exponentd.m4.
89581         * modules/isnanl: Use new file m4/exponentl.m4.
89583 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89585         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89586         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89587         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89588         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89590         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89591         readlink on platforms without PATH_MAX.
89593 2008-07-21  Eric Blake  <ebb9@byu.net>
89595         Warn, not fail, on stale version.
89596         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89598         Don't allow installation with stale devel version number.
89599         * top/GNUmakefile (_is-install-target): New macro.
89600         (_curr-ver): Forbid installation with stale version number.
89602 2008-07-20  Bruno Haible  <bruno@clisp.org>
89604         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89605         TESTS_ENVIRONMENT.
89606         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89608 2008-07-20  Bruno Haible  <bruno@clisp.org>
89610         * lib/c-stack.h (c_stack_action): Add documentation.
89611         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89613 2008-07-20  Bruno Haible  <bruno@clisp.org>
89615         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89616         * modules/readlink (License): Likewise.
89618 2008-07-17  Eric Blake  <ebb9@byu.net>
89620         * modules/c-stack (Link): Fix typo.
89622         Make c-stack use libsigsegv, when available.
89623         * modules/c-stack (Depends-on): Add libsigsegv.
89624         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89625         needed.
89626         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89627         (segv_handler, overflow_handler, c_stack_action)
89628         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89629         implementation when libsigsegv is available, but only when using
89630         the library is necessary.
89631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89632         comment, explaining why XSI check fails on Linux.
89633         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89634         * tests/test-c-stack2.sh: Tweak skip message.
89635         * NEWS: Document new link-time requirements.
89637 2008-07-16  Eric Blake  <ebb9@byu.net>
89639         c-stack: Expose false positives when not using libsigsegv.
89640         * modules/c-stack-tests (Files): Expand test.
89641         * tests/test-c-stack.c (main): Add means to conditionally trigger
89642         non-overflow SIGSEGV.
89643         * tests/test-c-stack2.sh: New file.
89645 2008-07-14  Bruno Haible  <bruno@clisp.org>
89647         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89648         Reported by Eric Blake.
89650 2008-07-14  Sam Steingold  <sds@gnu.org>
89651             Bruno Haible  <bruno@clisp.org>
89653         New module libsigsegv.
89654         * modules/libsigsegv: New file.
89655         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89656         modifications.
89657         * MODULES.html.sh (Signal handling): New section.
89659 2008-07-14  Bruno Haible  <bruno@clisp.org>
89661         * modules/unictype/ctype-* (Description): Add the word "function".
89662         Improves the resulting doc in MODULES.html.
89664 2008-07-12  Ben Pfaff  <blp@gnu.org>
89666         Add longlong module.
89667         * modules/longlong: New file.
89669 2008-07-12  Bruno Haible  <bruno@clisp.org>
89671         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89672         to empty.
89674 2008-07-10  Ben Pfaff  <blp@gnu.org>
89676         Add isnan module.
89677         * doc/posix-functions/isnan.texi: Mention new module.
89678         * lib/math.in.h: Define isnan macro if we have decided to replace
89679         it.
89680         * m4/isnan.m4: New file.
89681         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89682         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89683         also.
89684         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89685         redundancy.
89686         * m4/math_h.m4: Initialize and substitute variables for isnan
89687         module.
89688         * modules/isnan: New file.
89689         * modules/isnan-tests: New file.
89690         * modules/math: Add substitutions for new module.
89691         * tests/test-isnan.c: New file.
89692         * MODULES.html.sh: Mention new module.
89694 2008-07-10  Ben Pfaff  <blp@gnu.org>
89696         Add isnanf module.
89697         * lib/isnanf.m4: New file.
89698         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89699         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89700         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89701         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89702         * modules/isnanf: New file.
89703         * modules/isnanf-tests: New file.
89704         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89705         files.
89706         * tests/test-isnanf-nolibm.c: factored most of its contents into
89707         new file tests/test-isnanf.h.
89708         * tests/test-isnanf.h: New file.
89709         * tests/test-isnanf.c: New file.
89710         * MODULES.html.sh: Mention new module.
89711         * doc/glibc-functions/isnanf.texi: Mention new module.
89713 2008-07-10  Ben Pfaff  <blp@gnu.org>
89715         Add isnand module.
89716         * lib/isnand.h: New file.
89717         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89718         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89719         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89720         functionality also.
89721         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89722         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89723         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89724         * modules/isnand: New file.
89725         * modules/isnand-tests: New file.
89726         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89727         files.
89728         * tests/test-isnand-nolibm.c: factored most of its contents into
89729         new file tests/test-isnand.h.
89730         * tests/test-isnand.h: New file.
89731         * tests/test-isnand.c: New file.
89732         * MODULES.html.sh: Mention new module.
89734 2008-07-10  Ben Pfaff  <blp@gnu.org>
89736         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89737         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89738         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89739         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89740         * modules/isnanf-nolibm: Update references to renamed files.
89741         * modules/isnand-nolibm: Likewise.
89742         * modules/isnanf-nolibm-tests: Likewise.
89743         * modules/isnand-nolibm-tests: Likewise.
89744         * lib/frexp.c: Likewise.
89745         * lib/isfinite.c: Likewise.
89746         * lib/signbitd.c: Likewise.
89747         * lib/signbitf.c: Likewise.
89748         * lib/vasnprintf.c: Likewise.
89749         * tests/test-ceilf1.c: Likewise.
89750         * tests/test-ceilf2.c: Likewise.
89751         * tests/test-floorf1.c: Likewise.
89752         * tests/test-floorf2.c: Likewise.
89753         * tests/test-frexp.c: Likewise.
89754         * tests/test-round1.c: Likewise.
89755         * tests/test-round2.c: Likewise.
89756         * tests/test-roundf1.c: Likewise.
89757         * tests/test-strtod.c: Likewise.
89758         * tests/test-trunc1.c: Likewise.
89759         * tests/test-trunc2.c: Likewise.
89760         * tests/test-truncf1.c: Likewise.
89761         * tests/test-truncf2.c: Likewise.
89762         * NEWS: Mention the renamed header files.
89764 2008-07-11  Jim Meyering  <meyering@redhat.com>
89766         vc-list-files: make the last-resort awk code more portable
89767         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89768         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89769         does not support it.
89771 2008-07-10  Eric Blake  <ebb9@byu.net>
89773         Work with tar's bootstrap.
89774         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89775         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89776         an m4 comment.
89778 2008-07-09  Jim Meyering  <meyering@redhat.com>
89780         posix-shell.m4: fix typo that made this test malfunction
89781         * m4/posix-shell.m4: Remove capitalization in variable name.
89783 2008-07-08  Bruno Haible  <bruno@clisp.org>
89785         * m4/onceonly.m4: Update comments.
89786         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89788 2008-07-04  Jim Meyering  <meyering@redhat.com>
89790         * users.txt: Add vc-dwim.
89791         (bison, coreutils): Use the gitweb URL.
89793 2008-07-03  Jim Meyering  <meyering@redhat.com>
89795         * users.txt: Add libffcall.  From Sam Steingold.
89797 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89799         getdate.y: do not ignore TZ with relative day, month or year offset
89800         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89801         relative-date-handling, since otherwise, the latter would clobber the
89802         sole output (an updated Start value) of the tz-handling block.
89803         * tests/test-getdate.c: Tests for the fix
89805 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89807         Recognize 'foo_LIBRARIES += libgnu.a'.
89808         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89809         makefile snippet has already specified an installation location,
89810         also using '+='.
89812 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89814         getdate.y: factor out common actions
89815         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89816         Use them in place of open-coded actions.
89818 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89820         Add self-test for getdate module.
89821         * modules/getdate-tests: New file.
89822         * tests/test-getdate.c: New file.
89824 2008-06-29  Bruno Haible  <bruno@clisp.org>
89826         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89827         .gitignore.
89828         Reported by Sylvain Beucler <beuc@beuc.net>.
89830 2008-06-29  Bruno Haible  <bruno@clisp.org>
89832         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89833         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89835 2008-06-29  Bruno Haible  <bruno@clisp.org>
89837         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89838         EXTRA_DIST.
89839         Reported by Sylvain Beucler <beuc@beuc.net>.
89841 2008-06-26  Jim Meyering  <meyering@redhat.com>
89843         make several modules depend on the "open" module
89844         This provides slightly increased consistency when opening-for-write
89845         the name of a non-directory spelled with a trailing slash.
89846         * modules/chdir-safer: Likewise.
89847         * modules/chown: Likewise.
89848         * modules/clean-temp: Likewise.
89849         * modules/copy-file: Likewise.
89850         * modules/fchdir: Likewise.
89851         * modules/fcntl-safer: Likewise.
89852         * modules/pipe: Likewise.
89853         * modules/utime: Likewise.
89854         Prompted by Eric Blake and Bruno Haible.
89856 2008-06-24  Andreas Schwab  <schwab@suse.de>
89858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89859         literals can be used as initializers for global variables.
89861 2008-06-23  Eric Blake  <ebb9@byu.net>
89863         Make gnulib-cache.m4 easier to diff.
89864         * gnulib-tool (func_import): Allow newlines when reading cached
89865         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89867 2008-06-23  Bruno Haible  <bruno@clisp.org>
89869         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89870         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89871         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89872         m4/signalblocking.m4.
89873         (gl_PREREQ_SIGACTION): Don't invoke it.
89874         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89875         gl_PREREQ_SIG_HANDLER_H.
89876         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89877         Don't check for sigaction here.
89879 2008-06-23  Bruno Haible  <bruno@clisp.org>
89881         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89882         (install_handlers): Don't set the SA_RESETHAND flag.
89884 2008-06-23  Bruno Haible  <bruno@clisp.org>
89886         * m4/sigaction.m4: Comment fixes.
89887         * lib/signal.in.h: Likewise.
89889 2008-06-23  Eric Blake  <ebb9@byu.net>
89891         Fix typo.
89892         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89894         Avoid SA_ namespace.
89895         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89896         Reported by Ralf Wildenhues.
89898         Avoid test failure due to SA_RESTORER.
89899         * tests/test-sigaction.c (SA_MASK): New macro.
89900         (main): Avoid failing due to extension flags being set.
89901         Reported by Jim Meyering.
89903         Revert use of sig-handler.h in sigprocmask.c.
89904         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89905         it requires the existence of struct sigaction.
89906         * lib/sigprocmask.c (handler_t): Restore typedef.
89907         (rpl_signal, old_handlers): Use local type.
89909 2008-06-22  Bruno Haible  <bruno@clisp.org>
89911         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89912         conditionally.
89913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89915 2008-06-22  Bruno Haible  <bruno@clisp.org>
89917         * doc/posix-functions/siginterrupt.texi: Move note.
89919         * lib/signal.in.h (SA_RESTART): New macro.
89920         * lib/sigaction.c: Update comment.
89922         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89924         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89925         (gl_PREREQ_SIGPROCMASK): Invoke it.
89926         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89928         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89930         * lib/sigprocmask.c: Update a comment.
89932 2008-06-21  Eric Blake  <ebb9@byu.net>
89934         Use sigaction module rather than signal().
89935         * modules/c-stack (Depends-on): Add sigaction.
89936         * modules/fatal-signal (Depends-on): Likewise.
89937         * modules/nanosleep (Depends-on): Likewise.
89938         * modules/sigprocmask (Files): Add sig-handler.h.
89939         * modules/sigaction (Files): Likewise.
89940         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89941         Eggert.
89942         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89943         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89944         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89945         (init_fatal_signals): Likewise.
89946         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89947         (siginterrupt): Delete fallback.
89948         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89949         instead.
89950         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89951         siginterrupt.
89953         New module sigaction, for mingw.
89954         * modules/sigaction: New module...
89955         * modules/sigaction-tests: ...and its test.
89956         * m4/sigaction.m4: New file.
89957         * lib/sigaction.c: Likewise.
89958         * tests/test-sigaction.c: Likewise.
89959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89960         * modules/signal (Makefile.am): Likewise.
89961         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89962         needed.
89963         * doc/posix-headers/signal.texi (signal.h): Mention provided
89964         types.
89965         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89966         that sigaction is preferable.
89967         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89968         module.
89969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89970         sigaction.
89972         Improve robustness of sigprocmask by overriding signal.
89973         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89974         is in use.
89975         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89976         (SIGKILL, SIGSTOP): Provide fallbacks.
89977         (rpl_signal): Implement.
89978         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89979         signal can be called inside handlers.
89981         Fix nanosleep module on mingw.
89982         * modules/nanosleep (Depends-on): Add sys_select.
89983         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89985         Fix licensing of sigprocmask.
89986         * modules/raise (License): Relicense as LGPL.
89988 2008-06-21  Bruno Haible  <bruno@clisp.org>
89990         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89991         result if it contains question marks.
89992         Reported by Michael Geng <linux@michaelgeng.de>.
89994 2008-06-19  Bruno Haible  <bruno@clisp.org>
89996         Fix CVS-ism.
89997         * doc/gnulib.texi: Include updated-stamp.texi.
89998         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89999         (updated-stamp.texi): New rule.
90000         (gnulib.info): Depend on it.
90001         * doc/.gitignore: Add updated-stamp.texi.
90002         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90004 2008-06-19  Bruno Haible  <bruno@clisp.org>
90006         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90007         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90009 2008-06-19  Eric Blake  <ebb9@byu.net>
90011         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90012         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90013         Reported by Stepan Kasal.
90015 2008-06-18  Bruno Haible  <bruno@clisp.org>
90017         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90018         Reported by Eric Blake.
90020 2008-06-18  Eric Blake  <ebb9@byu.net>
90022         Work around cygwin 1.5.25 strsignal bug.
90023         * tests/test-strsignal.c: Allow for const char *.
90024         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90026 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90028         * users.txt: Update URL to article and add author/date
90029         information.
90031 2008-06-17  Bruno Haible  <bruno@clisp.org>
90033         New macro gl_DISABLE_THREADS.
90034         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90035         if the user did not pass --enable-threads or --disable-threads option.
90036         (gl_DISABLE_THREADS): New macro.
90037         Reported by Eric Blake <ebb9@byu.net>.
90039 2008-06-17  Bruno Haible  <bruno@clisp.org>
90041         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90042         when the macro ignores it.
90043         Based on a patch by Eric Blake <ebb9@byu.net>.
90045 2008-06-17  Bruno Haible  <bruno@clisp.org>
90047         * modules/tls (License): Change to LGPLv2+.
90048         Reported by Eric Blake.
90050 2008-06-17  Eric Blake  <ebb9@byu.net>
90052         Simplify c-stack prerequisites.
90053         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90055         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90056         check.
90057         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90058         <sys/resource.h>.
90060         Move c-stack test into testsuite.
90061         * modules/c-stack-tests: New file.
90062         * lib/c-stack.c [DEBUG]: Move test program...
90063         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90064         fail test if sigaltstack is lacking.
90065         * tests/test-c-stack.sh: New driver file.
90067 2008-06-16  Eric Blake  <ebb9@byu.net>
90069         Use raise module consistently.
90070         * modules/fatal-signal (Depends-on): Add raise.
90071         * modules/sigprocmask (Depends-on): Likewise.
90072         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90073         * lib/sigprocmask.c (sigprocmask): Likewise.
90074         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90075         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90077         Fix compliance bug in sigpending.
90078         * lib/sigprocmask.c (sigpending): Return pending array via
90079         parameter, not return value.
90081 2008-06-14  Eric Blake  <ebb9@byu.net>
90083         Improve obstack-printf test code.
90084         * tests/test-obstack-printf.c (test_function): Fix comment, and
90085         simplify usage of obstack_* in macros.  Add a test for coverage.
90086         Reported by Bruno Haible.
90088 2008-06-14  Bruno Haible  <bruno@clisp.org>
90090         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90091         array size as a constant, not as a const variable.
90092         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90093         AC_USE_SYSTEM_EXTENSIONS.
90094         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90095         Test whether the obstack_printf function actually exists.
90096         * modules/obstack-printf (Depends-on): Add extensions.
90097         (Include): Remove obstack.h.
90098         * modules/obstack-printf-posix (Depends-on): Add extensions.
90099         (Include): Remove obstack.h.
90101 2008-06-13  Eric Blake  <ebb9@byu.net>
90103         Add obstack-printf and obstack-printf-posix modules.
90104         * modules/obstack-printf: New file.
90105         * modules/obstack-printf-posix: Likewise.
90106         * MODULES.html.sh (Misc): Mention them.
90107         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90108         Likewise.
90109         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90110         Likewise.
90111         * modules/stdio (Makefile.am): Accomodate new modules.
90112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90113         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90114         Declare.
90115         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90116         functions.
90117         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90118         (gl_REPLACE_OBSTACK_PRINTF): New macros
90119         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90120         * tests/test-obstack-printf.c: New file.
90121         * modules/obstack-printf-tests: Likewise.
90122         * modules/obstack-printf-posix-tests: Likewise.
90124 2008-06-11  Bruno Haible  <bruno@clisp.org>
90126         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90127         * lib/open.c: Include errno.h.
90128         (open): Fail when attempting to write to a file that has a trailing
90129         slash.
90130         * tests/test-open.c (main): Test against trailing slash bug.
90131         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90133 2008-06-10  Bruno Haible  <bruno@clisp.org>
90135         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90136         for $? to work inside the trap command, with various /bin/sh-s.
90137         * tests/test-vc-list-files-cvs.sh: Likewise.
90139 2008-06-10  Bruno Haible  <bruno@clisp.org>
90141         * lib/acl-internal.h: Don't include gettext.h here.
90142         * lib/set-mode-acl.c: Include gettext.h here.
90143         * lib/copy-acl.c: Likewise.
90145 2008-06-10  Bruno Haible  <bruno@clisp.org>
90147         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90148         * lib/wait-process.c (wait_subprocess): Likewise.
90149         * lib/execute.h (execute): Add termsigp argument.
90150         * lib/execute.c (execute): Likewise.
90151         * lib/csharpcomp.c (compile_csharp_using_pnet,
90152         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90153         * lib/csharpexec.c (execute_csharp_using_pnet,
90154         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90155         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90156         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90157         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90158         is_jikes_present): Update.
90159         * lib/javaexec.c (execute_java_class): Update.
90160         * lib/javaversion.c (execute_and_read_line): Update.
90161         * NEWS: Document the changes.
90162         Reported by Eric Blake.
90164 2008-06-10  Eric Blake  <ebb9@byu.net>
90166         Add missing include.
90167         * tests/test-strstr.c (includes): Add <signal.h>.
90168         * tests/test-strcasestr.c (includes): Likewise.
90169         * tests/test-memmem.c (includes): Likewise.
90171 2008-06-10  Bruno Haible  <bruno@clisp.org>
90173         * lib/wait-process.c (wait_subprocess): Add an assertion.
90175 2008-06-10  Bruno Haible  <bruno@clisp.org>
90177         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90179 2008-06-10  Bruno Haible  <bruno@clisp.org>
90181         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90182         using alarm().
90183         * tests/test-strcasestr.c (main): Likewise.
90184         * tests/test-strstr.c (main): Likewise.
90186 2008-06-09  Bruno Haible  <bruno@clisp.org>
90188         Work around the Solaris 10 ACE ACLs ABI change.
90189         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90190         declare if ACL_NO_TRIVIAL is present.
90191         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90192         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90193         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90194         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90195         define if ACL_NO_TRIVIAL is present.
90196         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90197         and use the current ABI.
90198         (file_has_acl): Use same #if condition as elsewhere.
90199         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90200         in use, and use the current ABI.
90201         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90202         Reported by Jim Meyering.
90204 2008-06-09  Eric Blake  <ebb9@byu.net>
90206         Work around environments that (stupidly) ignore SIGALRM.
90207         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90208         before using alarm().
90209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90211         Reported by Ian Beckwith <ianb@erislabs.net>.
90213         Produce autobuild blurb earlier in log.
90214         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90216 2008-06-09  Jim Meyering  <meyering@redhat.com>
90217         and Ondřej Vašík  <ovasik@redhat.com>
90219         utimens.c: correct kernel bug work-around
90220         Ondřej Vašík found that the invalid return value of 280 indicates
90221         failure, not success, and the kernel bug we're trying to work
90222         around affects not just the utimensat call, but also the fallback
90223         futimens call.
90224         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90225         not success.
90226         [HAVE_FUTIMENS]: Use the same work-around, here.
90228 2008-06-09  Jim Meyering  <meyering@redhat.com>
90230         add more guards around definition of ACE_-related code
90231         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90232         ALLOW and ACE_OWNER are also defined.
90234 2008-06-08  Bruno Haible  <bruno@clisp.org>
90236         * lib/acl-internal.h: Add me as co-author.
90237         * lib/file-has-acl.c: Likewise.
90238         * lib/set-mode-acl.c: Likewise.
90239         * lib/copy-acl.c: Likewise.
90241 2008-06-08  Bruno Haible  <bruno@clisp.org>
90243         Add support for AIX ACLs.
90244         * lib/acl-internal.h (acl_nontrivial): New declaration.
90245         * lib/file-has-acl.c (acl_nontrivial): New function.
90246         (file_has_acl): Add implementation using AIX 4 ACL API.
90247         * lib/set-mode-acl.c (qset_acl): Likewise.
90248         * lib/copy-acl.c (qcopy_acl): Likewise.
90250 2008-06-08  Bruno Haible  <bruno@clisp.org>
90252         Add support for HP-UX ACLs.
90253         * lib/acl-internal.h (acl_nontrivial): New declaration.
90254         * lib/file-has-acl.c (acl_nontrivial): New function.
90255         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90256         * lib/set-mode-acl.c (qset_acl): Likewise.
90257         * lib/copy-acl.c (qcopy_acl): Likewise.
90259 2008-06-08  Bruno Haible  <bruno@clisp.org>
90261         Add support for Cygwin ACLs.
90262         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90263         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90264         the chmod_or_fchmod call.
90265         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90267 2008-06-08  Bruno Haible  <bruno@clisp.org>
90269         Fix bug with setuid modes in Solaris 10+ code.
90270         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90271         succeeded, when the mode contains some special bits.
90273 2008-06-08  Bruno Haible  <bruno@clisp.org>
90275         Add support for Solaris 7..10 ACLs.
90276         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90277         declarations.
90278         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90279         functions.
90280         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90281         * lib/set-mode-acl.c (qset_acl): Likewise.
90282         * lib/copy-acl.c (qcopy_acl): Likewise.
90284 2008-06-08  Bruno Haible  <bruno@clisp.org>
90286         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90287         declaration.
90288         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90289         (acl_access_nontrivial): Remove MacOS X case.
90290         (file_has_acl): Use acl_extended_nontrivial.
90291         * lib/copy-acl.c (qcopy_acl): Likewise.
90293 2008-06-08  Bruno Haible  <bruno@clisp.org>
90295         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90297 2008-06-08  Jim Meyering  <meyering@redhat.com>
90299         * modules/acl (Maintainer): Add Bruno Haible.
90301 2008-06-07  Bruno Haible  <bruno@clisp.org>
90303         Improve support for Tru64 ACLs.
90304         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90305         ACL on OSF/1.
90307 2008-06-07  Bruno Haible  <bruno@clisp.org>
90309         Add support for MacOS X ACLs.
90310         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90311         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90312         * lib/set-mode-acl.c (qset_acl): Likewise.
90313         * lib/copy-acl.c (qcopy_acl): Likewise.
90315 2008-06-07  Bruno Haible  <bruno@clisp.org>
90317         Fix memory leak introduced on 2008-05-22.
90318         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90319         use.
90321 2008-06-07  Bruno Haible  <bruno@clisp.org>
90323         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90324         to construct an empty ACL.
90326 2008-06-07  Bruno Haible  <bruno@clisp.org>
90328         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90329         precisely.
90330         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90332 2008-06-07  Bruno Haible  <bruno@clisp.org>
90334         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90335         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90337 2008-06-07  Bruno Haible  <bruno@clisp.org>
90339         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90340         regardless of POSIX.
90341         * doc/posix-functions/_longjmp.texi: Likewise.
90342         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90343         SystemV platform in this case.
90345 2008-06-06  Eric Blake  <ebb9@byu.net>
90347         Document abort() bugs.
90348         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90350         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90351         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90352         sigsetjmp.
90353         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90354         siglongjmp, but only as a macro.
90355         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90356         is obsolete.
90357         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90359         Tweak documentation to cover cygwin argz bugs.
90360         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90361         argz bug fix; no code change needed since no cygwin releases
90362         occurred between the last fix and the bug being tested.
90363         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90364         module and recently fixed cygwin bugs.
90365         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90366         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90367         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90368         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90369         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90370         Likewise.
90371         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90372         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90373         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90374         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90375         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90376         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90377         Likewise.
90379         Avoid gcc warning on cygwin.
90380         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90381         !ACL_NO_TRIVIAL]: Avoid unused variable.
90383 2008-06-05  Eric Blake  <ebb9@byu.net>
90385         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90386         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90387         git-version-gen fails to come up with a version.
90388         Reported by Simon Josefsson.
90390 2008-06-05  Jim Meyering  <meyering@redhat.com>
90391             Paul Eggert  <eggert@cs.ucla.edu>
90393         utimens.c: work around a probable Linux kernel bug
90394         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90395         appears to be a kernel bug that causes utimensat to return 280
90396         instead of 0, indicating success.
90398 2008-06-04  Bruno Haible  <bruno@clisp.org>
90400         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90401         2008-06-01 commit.
90403 2008-06-04  Bruno Haible  <bruno@clisp.org>
90405         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90406         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90407         (file_has_acl): Use it. Save errno afterwards.
90408         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90410 2008-06-03  Bruno Haible  <bruno@clisp.org>
90412         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
90413         draft code. Simplify #ifs.
90414         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
90415         Put Solaris code after POSIX-draft code. Fix comments regarding
90416         Solaris 10, HP-UX. Mention Cygwin.
90417         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
90419 2008-06-03  Eric Blake  <ebb9@byu.net>
90421         Provide fallback for older kernels.
90422         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
90423         Provide runtime fallback if kernel lacks support.
90424         Reported by Mike Frysinger.
90426 2008-06-02  Bruno Haible  <bruno@clisp.org>
90428         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
90429         it exists.
90431 2008-06-02  Bruno Haible  <bruno@clisp.org>
90433         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
90434         * lib/copy-acl.c (qcopy_acl): Update comment.
90436 2008-06-02  Bruno Haible  <bruno@clisp.org>
90438         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90439         like ACL APIs.
90441 2008-06-02  Bruno Haible  <bruno@clisp.org>
90443         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90444         * tests/test-set-mode-acl.sh: Likewise.
90445         * tests/test-copy-acl.sh: Likewise.
90446         * tests/test-copy-file.sh: Likewise.
90448 2008-06-02  Bruno Haible  <bruno@clisp.org>
90450         * tests/test-file-has-acl.sh: Remove unused code.
90452 2008-06-01  Bruno Haible  <bruno@clisp.org>
90454         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90455         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90456         messages.
90457         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90459 2008-06-01  Bruno Haible  <bruno@clisp.org>
90461         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90462         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90463         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90464         APIs.
90465         * modules/acl-tests (configure.ac): Remove tests now contained in
90466         m4/acl.m4.
90468 2008-06-02  Jim Meyering  <meyering@redhat.com>
90470         announce-gen: use a better key-server host name
90471         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90472         it may be more consistently reliable.  Suggested by Werner Koch
90473         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90475 2008-06-01  Bruno Haible  <bruno@clisp.org>
90477         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90478         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90480 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90482         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90484 2008-06-01  Bruno Haible  <bruno@clisp.org>
90486         New ACL tests.
90487         * tests/test-file-has-acl.sh: New file.
90488         * tests/test-file-has-acl.c: New file.
90489         * tests/test-set-mode-acl.sh: New file.
90490         * tests/test-set-mode-acl.c: New file.
90491         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90492         * tests/test-copy-acl.c: New file.
90493         * modules/acl-tests: New file, based on modules/copy-file-tests.
90494         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90495         (Depends-on): Add acl-tests.
90496         (configure.ac): Remove checks.
90497         (Makefile.am): Don't create test-sameacls program here any more.
90499 2008-06-01  Bruno Haible  <bruno@clisp.org>
90501         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90502         * tests/test-sameacls.c: Include progname.h.
90503         (main): Invoke set_program_name. Portability fixes for MacOS X,
90504         Solaris, HP-UX.
90506 2008-06-01  Bruno Haible  <bruno@clisp.org>
90508         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90509         function.
90510         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90512 2008-06-01  Bruno Haible  <bruno@clisp.org>
90514         * modules/rpmatch (Depends-on): Add strdup.
90516 2008-06-01  Bruno Haible  <bruno@clisp.org>
90518         * lib/pipe.c: Include unistd-safer.h.
90519         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90520         * modules/pipe (Depends-on): Add unistd-safer.
90522 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90524         * modules/autobuild (configure.ac): Call AB_INIT.
90526 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90528         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90529         Suggested by Bruno Haible <bruno@clisp.org>.
90531 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90533         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90534         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90535         <bruno@clisp.org>.
90537 2008-05-29  Eric Blake  <ebb9@byu.net>
90539         Prefer new POSIX 200x interfaces over futimesat.
90540         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90541         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90542         when available.
90543         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90545 2008-05-28  Bruno Haible  <bruno@clisp.org>
90547         * modules/stpcpy (License): Change to LGPLv2+.
90548         Requested by David Lutterkort <dlutter@redhat.com>.
90550 2008-05-27  Bruno Haible  <bruno@clisp.org>
90552         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90553         current mingw.
90554         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90556 2008-05-27  Bruno Haible  <bruno@clisp.org>
90558         * modules/iconv_open (Link): New section, from module 'iconv'.
90559         * modules/striconv (Link): Likewise.
90560         * modules/striconveh (Link): Likewise.
90561         * modules/xstriconv (Link): Likewise.
90562         * modules/unicodeio (Link): Likewise.
90563         * modules/propername (Link): Likewise.
90564         Reported by Jim Meyering.
90566 2008-05-26  Jim Meyering  <meyering@redhat.com>
90568         sha256: do not artificially restrict buffer length to be < 2^32
90569         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90570         uint32_t to size_t.
90571         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90572         to match.
90574         avoid unaligned access errors, e.g., on sparc
90575         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90576         direct access through a possibly-unaligned uint64* pointer.
90577         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90578         direct access through a possibly-unaligned uint32* pointer.
90579         Prompted by this patch from Tom "spot" Callaway:
90580         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90582         sha512.c: fix typo in comment
90583         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90585 2008-05-25  Bruno Haible  <bruno@clisp.org>
90587         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90588         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90589         (Makefile.am): Update lib_SOURCES.
90591 2008-05-25  Bruno Haible  <bruno@clisp.org>
90593         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90595 2008-05-25  Jim Meyering  <meyering@redhat.com>
90597         useless-if-before-free: freed expr may have white-space differences
90598         * build-aux/useless-if-before-free: Recognize cases in which the
90599         freed expression differs from the tested one in embedded white
90600         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90601         $1 was used, so we can't make any regexp shy.  Improved tests now
90602         detect this.
90604         useless-if-before-free: accept white space in the expression.
90605         * build-aux/useless-if-before-free: For now, any white space
90606         in the expression must be identical in the free argument.
90608         useless-if-before-free: efficiency tweak
90609         * build-aux/useless-if-before-free: Make the expression-matching
90610         regexp "shy".
90611         Make the *outer* regexp shy, not the expr-matching one.
90613         update code-in-comment to accept cast of free arg
90614         * build-aux/useless-if-before-free: Update regexp.
90616 2008-05-25  Bruno Haible  <bruno@clisp.org>
90618         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90619         * modules/copy-file-tests (Files, Makefile.am): Update.
90620         * tests/test-copy-file.c (func_test_copy): Update.
90622 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90624         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90626 2008-05-23  Bruno Haible  <bruno@clisp.org>
90628         Improve support for ACLs on OSF/1.
90629         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90630         Remove fallback for unknown flavors of ACLs.
90632 2008-05-22  Bruno Haible  <bruno@clisp.org>
90634         Add support for ACLs on OSF/1.
90635         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90636         replacements.
90637         (acl_free_text): New macro fallback.
90638         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90639         acl_free.
90640         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90641         acl_free_text function. Require AC_C_INLINE.
90643 2008-05-22  Bruno Haible  <bruno@clisp.org>
90645         Make copy_acl work on MacOS X 10.5.
90646         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90647         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90648         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90649         If MODE_INSIDE_ACL, don't assume that every system has the same text
90650         representation for ACLs as FreeBSD.
90651         * lib/copy-acl.c (copy_acl): Add support for platforms with
90652         !MODE_INSIDE_ACL.
90653         * lib/file-has-acl.c (file_has_acl): Likewise.
90654         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90655         FreeBSD, MacOS X, or IRIX, respectively.
90657 2008-05-22  Bruno Haible  <bruno@clisp.org>
90659         * lib/acl.h: Don't include <sys/acl.h>.
90660         (GETACLCNT): Move fallback to lib/acl-internal.h.
90661         * lib/acl-internal.h: Include <sys/acl.h> here.
90662         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90664 2008-05-22  Bruno Haible  <bruno@clisp.org>
90666         Split off copy_acl function to separate file.
90667         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90668         * lib/acl.c (copy_acl): Moved function to separate file.
90669         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90670         * modules/acl (Files): Add lib/copy-acl.c.
90671         (Makefiles.am): Augment lib_SOURCES.
90673 2008-05-22  Bruno Haible  <bruno@clisp.org>
90675         * modules/copy-file-tests: New file.
90676         * tests/test-copy-file.sh: New file.
90677         * tests/test-copy-file.c: New file.
90678         * tests/test-copy-file-sameacls.c: New file.
90680 2008-05-22  Eric Blake  <ebb9@byu.net>
90682         Avoid gcc warning.
90683         * tests/test-memcmp.c (main): Pass NULL indirectly.
90685 2008-05-21  Bruno Haible  <bruno@clisp.org>
90687         Add reference doc about ACLs.
90688         * doc/acl-resources.txt: New file.
90689         * doc/acl-cygwin.txt: New file.
90691 2008-05-21  Bruno Haible  <bruno@clisp.org>
90693         Avoid one more warning from gcc.
90694         * lib/vasnprintf.c (IF_LINT): Update comments.
90695         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90697 2008-05-21  Jim Meyering  <meyering@redhat.com>
90699         avoid a warning from gcc
90700         * lib/vasnprintf.c (IF_LINT): Define.
90701         (scale10_round_decimal_long_double):
90702         Use it to avoid a "may be used uninitialized" warning.
90703         (scale10_round_decimal_double): Likewise.
90705 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90707         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90708         declared.
90710 2008-05-20  Bruno Haible  <bruno@clisp.org>
90712         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90713         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90715 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90717         * modules/memcmp-tests: New file.
90718         * tests/test-memcmp.c: New file.
90720 2008-05-19  Bruno Haible  <bruno@clisp.org>
90722         * modules/propername (Notice, configure.ac): Put quoted "..." into
90723         --keyword option.
90724         * lib/propername.h: Update comments accordingly.
90725         Reported by Eric Blake.
90727 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90729         * modules/getpass-gnu (Depends-on): Add fseeko.
90731 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90733         * modules/base64-tests: New file.
90735 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90737         * lib/base64.c (base64_decode_ctx): If a decode context structure
90738         was passed in use it to ignore newlines.  If a context structure
90739         was _not_ passed in, continue to treat newlines as garbage (this
90740         is the historical behavior).  Formerly base64_decode.
90741         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90742         takes a decode context structure.
90743         * lib/base64.h (base64_decode): Macro for four-argument calls.
90744         (base64_decode_alloc): Likewise.
90745         * lib/base64.c (base64_decode_ctx): If a decode context structure
90746         was passed in use it to ignore newlines.  If a context structure
90747         was _not_ passed in, continue to treat newlines as garbage (this
90748         is the historical behavior).  Formerly base64_decode.
90749         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90750         takes a decode context structure.
90751         * lib/base64.h (base64_decode): Macro for four-argument calls.
90752         (base64_decode_alloc): Likewise.
90754 2008-05-19  Jim Meyering  <meyering@redhat.com>
90756         avoid a warning from gcc
90757         * lib/trim.c (IF_LINT): Define.
90758         (trim2): Use it to avoid a "may be used uninitialized" warning.
90760         Fix doc typo.
90761         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90763 2008-05-19  Bruno Haible  <bruno@clisp.org>
90765         * doc/glibc-functions/getpass.texi: Document limits of other
90766         implementations.
90768 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90769             Bruno Haible <bruno@clisp.org>
90771         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90773 2008-05-18  Bruno Haible  <bruno@clisp.org>
90775         * modules/propername: New file, from GNU gettext.
90776         * lib/propername.h: New file, from GNU gettext.
90777         * lib/propername.c: New file, from GNU gettext.
90778         * MODULES.html.sh (Internationalization functions): Add propername.
90780 2008-05-16  Jim Meyering  <meyering@redhat.com>
90781             Bruno Haible  <bruno@clisp.org>
90783         Avoid some warnings from "gcc -Wshadow".
90784         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90786 2008-05-15  Eric Blake  <ebb9@byu.net>
90788         Extend previous patch to cygwin 1.7.0.
90789         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90790         fast implementation in cygwin >= 1.7.0.
90791         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90794 2008-05-15  Bruno Haible  <bruno@clisp.org>
90796         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90797         implementation in glibc >= 2.9.
90798         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90801 2008-05-15  Bruno Haible  <bruno@clisp.org>
90803         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90804         (Unicode string functions): Add unilbrk/*.
90805         Reported by Karl Berry.
90807 2008-05-15  Eric Blake  <ebb9@byu.net>
90809         Fix violation of <stdbool.h> replacement in regex.
90810         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90811         * lib/regexec.c (re_search_internal): Likewise.
90812         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90814 2008-05-15  Jim Meyering  <meyering@redhat.com>
90816         avoid distracting test output when git or cvs is not found
90817         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90818         * tests/test-vc-list-files-git.sh: Likewise.
90820 2008-05-15  Eric Blake  <ebb9@byu.net>
90822         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90823         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90824         glibc version.
90825         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90826         * doc/posix-functions/strstr.texi (strstr): Likewise.
90827         * lib/str-two-way.h (MAX): Sychronize with glibc.
90829 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90831         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90832         opr.ctx_type.
90833         (calc_first): Initialize constraint field.
90834         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90835         Fix grammar.
90836         (duplicate_node): Merge constraint field for all node types.
90837         (calc_eclosure_iter): Look at constraint field for all node types.
90838         * lib/regex_internal.c (create_cd_newstate): Don't look at
90839         opr.ctx_type.
90841 2008-05-14  Bruno Haible  <bruno@clisp.org>
90843         Help GCC to do better code generation.
90844         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90845         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90846         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90847         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90848         Declare with attribute 'malloc' if supported.
90850 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90852         use "echo STR|wc -c" rather than unportable "expr length STR"
90853         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90854         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90856 2008-05-14  Jim Meyering  <meyering@redhat.com>
90858         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90859         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90860         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90861         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90862         via Collin Lasse.
90864 2008-05-14  Eric Blake  <ebb9@byu.net>
90866         Avoid quadratic growth in gl_LIBSOURCES.
90867         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90868         Suggested by Bruno Haible.
90870         Test xmemdup0.
90871         * modules/xmemdup0-tests: New file.
90872         * tests/test-xmemdup0.c: Likewise.
90874 2008-05-13  Eric Blake  <ebb9@byu.net>
90876         Split xmemdup0 into its own module.
90877         * modules/xmemdup0: New file.
90878         * lib/xmemdup0.h: Likewise.
90879         * lib/xmemdup0.c: Likewise.
90880         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90881         * lib/xalloc.h (xmemdup0): Remove.
90882         * lib/xmalloc.c (xmemdup0): Likewise.
90884 2008-05-13  Eric Blake  <ebb9@byu.net>
90885             Bruno Haible  <bruno@clisp.org>
90887         Reduce number of forks required during autoconf.
90888         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90889         and gl_LIBSOURCES_DIR.
90890         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90891         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90892         m4_syscmd per file.
90893         <m4_foreach_w>: Move...
90894         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90896 2008-05-13  Eric Blake  <ebb9@byu.net>
90898         * gnulib-tool: Fix various comment typos.
90900 2008-05-12  Bruno Haible  <bruno@clisp.org>
90902         Tailor the linebreaking algorithm.
90903         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90905 2008-05-12  Bruno Haible  <bruno@clisp.org>
90907         Update to Unicode 5.0.0.
90908         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90909         LBP_JV, LBP_JT. Redistribute values.
90910         (unilbrk_table): Change size.
90911         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90912         Unicode TR#14 rev. 22.
90913         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90914         LBP_JV, LBP_JT. Redistribute values.
90915         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90916         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90917         Update.
90918         * lib/unilbrk/lbrkprop1.h: Regenerated.
90919         * lib/unilbrk/lbrkprop2.h: Regenerated.
90920         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90921         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90922         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90923         Likewise.
90924         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90925         Likewise.
90926         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90927         result.
90928         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90929         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90930         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90931         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90932         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90933         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90935 2008-05-11  Bruno Haible  <bruno@clisp.org>
90937         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90939 2008-05-11  Bruno Haible  <bruno@clisp.org>
90941         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90942         * modules/unilbrk/gen-lbrk: New file.
90944 2008-05-11  Bruno Haible  <bruno@clisp.org>
90946         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90947         * m4/sha512.m4 (gl_SHA512): Likewise.
90949 2008-05-11  Jim Meyering  <meyering@redhat.com>
90951         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90952         * modules/crypto/sha256: New file.
90953         * modules/crypto/sha512: Likewise.
90954         * lib/sha256.c: Likewise.
90955         * lib/sha256.h: Likewise.
90956         * lib/sha512.c: Likewise.
90957         * lib/sha512.h: Likewise.
90958         * lib/u64.h: Likewise.
90959         * m4/sha256.m4: Likewise.
90960         * m4/sha512.m4: Likewise.
90961         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90963 2008-05-10  Bruno Haible  <bruno@clisp.org>
90965         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90966         (Input/Output <stdio.h>): Add xprintf.
90967         (Signal handling <signal.h>): Add strsignal.
90968         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90969         (Core language properties): Add func.
90970         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90971         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90972         strings.
90973         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90974         (Input/output): New section.
90975         (File system functions): Add openat-die, stat-macros.
90976         (Networking functions): Add sockets.
90977         (Unicode string functions): Add unictype/*.
90978         (Support for building libraries and executables): Add gperf.
90979         (Support for building documentation): Add agpl-3.0.
90980         (Misc): Add nocrash.
90982 2008-05-10  Bruno Haible  <bruno@clisp.org>
90984         * modules/unictype/gen-ctype: New file.
90986 2008-05-10  Jim Meyering  <meyering@redhat.com>
90988         Make chdir-safer.c more efficient on a system with no symlinks.
90989         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90990         also if ELOOP is zero.  Suggested by Bruno Haible.
90992         Make chdir-safer.c slightly safer.
90993         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90994         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90996         Avoid compile failure on systems without ELOOP (like mingw).
90997         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90998         Reported by Bruno Haible.
91000 2008-05-10  Bruno Haible  <bruno@clisp.org>
91002         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91003         (is_utf8_encoding): Use a case-insensitive comparison.
91004         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91005         streq.
91007 2008-05-10  Bruno Haible  <bruno@clisp.org>
91009         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91010         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91011         * lib/unilbrk/ulc-common.h (iconv_string_length,
91012         iconv_string_keeping_offsets): Remove declarations.
91013         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91014         Don't include <iconv.h>, streq.h, xsize.h.
91015         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91016         conversion.
91017         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91018         <iconv.h>, streq.h, xsize.h.
91019         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91020         conversion.
91021         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91022         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91023         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91024         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91026 2008-05-10  Bruno Haible  <bruno@clisp.org>
91028         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91029         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91031         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91032         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91034         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91035         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91037         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91038         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91040         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91041         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91043         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91044         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91046         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91047         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91049         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91050         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91052 2008-05-10  Bruno Haible  <bruno@clisp.org>
91054         Split up 'linebreak' module.
91055         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91056         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91057         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91058         modifications.
91059         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91060         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91061         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91062         lib/linebreak.c.
91063         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91064         lib/linebreak.c.
91065         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91066         lib/linebreak.c.
91067         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91068         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91069         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91070         lib/linebreak.c.
91071         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91072         lib/linebreak.c.
91073         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91074         lib/linebreak.c.
91075         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91076         lib/linebreak.c.
91077         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91078         lib/linebreak.c.
91079         * modules/unilbrk/base: New file.
91080         * modules/unilbrk/tables: New file.
91081         * modules/unilbrk/u8-possible-linebreaks: New file.
91082         * modules/unilbrk/u16-possible-linebreaks: New file.
91083         * modules/unilbrk/u32-possible-linebreaks: New file.
91084         * modules/unilbrk/ulc-common: New file.
91085         * modules/unilbrk/ulc-possible-linebreaks: New file.
91086         * modules/unilbrk/u8-width-linebreaks: New file.
91087         * modules/unilbrk/u16-width-linebreaks: New file.
91088         * modules/unilbrk/u32-width-linebreaks: New file.
91089         * modules/unilbrk/ulc-width-linebreaks: New file.
91090         * lib/linebreak.h: Remove file.
91091         * lib/linebreak.c: Remove file.
91092         * m4/linebreak.m4: Remove file.
91093         * modules/linebreak: Remove file.
91094         * NEWS: Mention the changes.
91096 2008-05-09  Eric Blake  <ebb9@byu.net>
91098         Add xmemdup0.
91099         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91100         implementation.
91101         * lib/xmalloc.c (xmemdup0): New C implementation.
91103 2008-05-08  Bruno Haible  <bruno@clisp.org>
91105         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91107 2008-05-07  Eric Blake  <ebb9@byu.net>
91109         Support cross-compilation of <wctype.h>.
91110         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91111         AC_CACHE_CHECK.
91113 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91115         * build-aux/vc-list-files: Add support for bzr.
91117 2008-05-03  Jim Meyering  <meyering@redhat.com>
91119         avoid failed assertion with tight malloc
91120         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91122 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91124         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91125         are needed from arpa/inet.h.
91126         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91127         Reported by Bruno Haible.
91129 2008-05-02  Jim Meyering  <meyering@redhat.com>
91131         avoid compilation error on FreeBSD 6
91132         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91134 2008-05-01  Jim Meyering  <meyering@redhat.com>
91136         useless-if-before-free: correct --help's exit status description
91137         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91138         for one or more matches, etc.  Reported by Bruno Haible.
91140         vc-list-files: make the stand-alone gnulib test work
91141         * modules/vc-list-files-tests (configure.ac):
91142         Define and AC_SUBST abs_aux_dir.
91143         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91144         $(abs_top_srcdir) to each script and having each of them
91145         duplicate the work of setting PATH, set PATH here, using
91146         the new variable, abs_aux_dir instead.
91147         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91148         * tests/test-vc-list-files-git.sh: Likewise.
91149         Reported by Bruno Haible.
91151 2008-05-01  Bruno Haible  <bruno@clisp.org>
91153         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91154         reallocation. Rename 'done' to 'found_delimiter'.
91156 2008-05-01  Jim Meyering  <meyering@redhat.com>
91158         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91159         * build-aux/vc-list-files: Use `...`, not $(...).
91161 2008-04-30  Jim Meyering  <meyering@redhat.com>
91163         add tests for vc-list-files
91164         * modules/vc-list-files-tests: New module.
91165         * tests/test-vc-list-files-cvs.sh: New file.
91166         * tests/test-vc-list-files-git.sh: New file.
91168         avoid a warning from gcc
91169         * lib/getndelim2.c (IF_LINT): Define.
91170         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91172         vc-list-files: work properly with build-aux/cvsu, too
91173         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91174         to all cvs-based clauses.
91176         vc-list-files: work properly in the CVS+awk case, too
91177         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91179         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91180         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91181         take more than one file argument, so .  Add quotes, just in case $dir
91182         ever contains a shell meta-character.  Prompted by Soren Hansen in
91183         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91185 2008-04-29  Eric Blake  <ebb9@byu.net>
91187         Optimize getndelim2 to use block operations when possible.
91188         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91189         freadseek, and memchr2.
91190         * lib/getndelim2.c (getndelim2): Use them for block reads.
91192 2008-04-29  Bruno Haible  <bruno@clisp.org>
91194         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91195         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91196         * modules/inet_ntop (Depends-on): Add extensions.
91197         * modules/inet_pton (Depends-on): Likewise.
91198         Reported by Simon Josefsson.
91200 2008-04-29  Jim Meyering  <meyering@redhat.com>
91202         When the is more than one match in a block, match all of them.
91203         * build-aux/useless-if-before-free: Iterate through each block
91204         until there are no more matches.
91206         Fix broken useless-if-before-free script.
91207         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91208         the expression to match cast of argument to free-like function.
91210 2008-04-29  Eric Blake  <ebb9@byu.net>
91212         Use new header.
91213         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91215 2008-04-29  Jim Meyering  <meyering@redhat.com>
91217         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91218         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91219         by gnulib to exist and to declare e.g., inet_ntop.
91220         Don't include "inet_ntop.h", now removed.
91222         * m4/arpa_inet_h.m4: Remove trailing blanks.
91224 2008-04-29  Eric Blake  <ebb9@byu.net>
91226         Silence valgrind on safe reads beyond potential array bounds.
91227         * lib/rawmemchr.valgrind: New file.
91228         * lib/strchrnul.valgrind: Likewise.
91229         * modules/rawmemchr (Files): Distribute new file.
91230         * modules/strchrnul (Files): Likewise.
91231         Suggested by Bruno Haible.
91233 2008-04-29  Bruno Haible  <bruno@clisp.org>
91235         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91236         (inet_ntop, inet_pton): Change portability warning's wording.
91237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91238         Invoke gl_CHECK_NEXT_HEADERS.
91239         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91240         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91241         set ARPA_INET_H.
91242         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91243         * modules/arpa_inet (Description): No longer only for systems that
91244         lack it.
91245         (Depends-on): Add include_next.
91246         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91247         HAVE_ARPA_INET_H.
91249 2008-04-29  Jim Meyering  <meyering@redhat.com>
91251         * modules/mkdir (License): Re-license as LGPLv2+.
91253 2008-04-29  Bruno Haible  <bruno@clisp.org>
91255         * modules/rawmemchr (Maintainer): Set to Eric.
91256         * modules/strchrnul (Maintainer): Likewise.
91258 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91260         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91261         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91263         * modules/arpa_inet (arpa/inet.h): Use them.
91265 2008-04-28  Eric Blake  <ebb9@byu.net>
91267         Test getndelim2.
91268         * modules/getndelim2-tests: New file.
91269         * tests/test-getndelim2.c: Likewise.
91270         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91271         stream.
91272         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91274         * MODULES.html.sh: Document new module.
91276 2008-04-20  Bruno Haible  <bruno@clisp.org>
91278         * lib/c-stack.c (die): Use raise.
91279         * modules/c-stack (Depends-on): Add raise.
91281 2008-04-28  Bruno Haible  <bruno@clisp.org>
91283         Expect rpmatch to be declared.
91284         * lib/yesno.c (rpmatch): Remove declaration.
91286         Declare rpmatch.
91287         * lib/stdlib.in.h (rpmatch): New declaration.
91288         * lib/rpmatch.c: Include <stdlib.h> first.
91289         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91290         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91292         HAVE_RPMATCH.
91293         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91295         (Include): Set to <stdlib.h>.
91296         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91297         HAVE_RPMATCH.
91298         * NEWS: Document the change.
91300 2008-04-28  Bruno Haible  <bruno@clisp.org>
91302         Change rpmatch to use nl_langinfo when appropriate.
91303         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91304         (N_): New macro.
91305         (localized_pattern): New function/macro.
91306         (try): Remove match, nomatch arguments. Copy the pattern into safe
91307         memory before caching it.
91308         (rpmatch): Use localized_pattern. Add translator comments.
91309         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91310         Suggested by Eric Blake.
91311         * modules/rpmatch (Depends-on): Add stdbool.
91313 2008-04-28  Eric Blake  <ebb9@byu.net>
91315         Add rawmemchr module, matching glibc.
91316         * modules/string (Makefile.am): New indicator.
91317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91318         * lib/string.in.h (rawmemchr): Declare when appropriate.
91319         * modules/rawmemchr: New file.
91320         * m4/rawmemchr.m4: Likewise.
91321         * lib/rawmemchr.c: Likewise.
91322         * modules/rawmemchr-tests: Likewise.
91323         * tests/test-rawmemchr.c: Likewise.
91324         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91325         module.
91326         * modules/strchrnul (Depends-on): Add rawmemchr.
91327         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91329         Whitespace cleanup.
91330         * tests/test-strchrnul.c: Reindent.
91331         * lib/strchrnul.c: Likewise.
91333         Optimize and test strchrnul.
91334         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91335         * modules/strchrnul-tests: New file.
91336         * tests/test-strchrnul.c: Likewise.
91338         Remove intprops dependency.
91339         * modules/memchr (Depends-on): Remove intprops.
91340         * modules/memrchr (Depends-on): Likewise.
91341         * modules/memchr2 (Depends-on): Likewise.
91342         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91343         * lib/memrchr.c (__memrchr): Likewise.
91344         * lib/memrchr2.c (memchr2): Likewise.
91345         Reported by Simon Josefsson.
91347 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91349         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91350         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91352 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91354         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91356         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91358         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91360         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91361         declarations.
91362         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91364         * m4/inet_pton.m4: Don't check for header files.
91366         * m4/inet_ntop.m4: Don't check for header files.
91368 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91370         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91371         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91372         trigger for cygwin).
91373         Reported by Bruno Haible  <bruno@clisp.org>.
91375 2008-04-28  Bruno Haible  <bruno@clisp.org>
91377         * doc/posix-functions/strdup.texi: Mention mingw problem.
91379 2008-04-27  Bruno Haible  <bruno@clisp.org>
91381         * modules/stat-time-tests (Depends-on): Add sleep.
91382         * tests/test-stat-time.c (force_unlink): New function.
91383         (cleanup): Use it.
91384         (test_mtime): Remove the ctime related tests.
91385         (test_ctime): New function, containing the ctime related tests.
91386         (main): Call test_ctime, except on native Windows platforms.
91388 2008-04-27  Bruno Haible  <bruno@clisp.org>
91390         * lib/rpmatch.c (rpmatch): Add some comments.
91391         Reported by James Youngman <jay@gnu.org>.
91393 2008-04-27  Bruno Haible  <bruno@clisp.org>
91395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91396         quiet NaNs.
91398 2008-04-27  Bruno Haible  <bruno@clisp.org>
91400         Make test-yesno.sh work on mingw.
91401         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91402         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91403         (main): Set stdin to binary mode.
91404         * modules/yesno-tests (Depends-on): Add binary-io.
91406 2008-04-27  Bruno Haible  <bruno@clisp.org>
91408         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91409         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91410         argument that lie outside the IEEE 854 domain.
91411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91412         (gl_ISFINITE): Use it.
91413         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
91415 2008-04-27  Bruno Haible  <bruno@clisp.org>
91417         Allow local renaming in config.h.
91418         * lib/memrchr.c (memrchr): Don't undefine outside libc.
91420 2008-04-27  Bruno Haible  <bruno@clisp.org>
91422         * lib/memchr.c (__memchr): Change type of 'i'.
91423         * lib/memchr2.c (memchr2): Likewise.
91425 2008-04-26  Eric Blake  <ebb9@byu.net>
91426         and Bruno Haible  <bruno@clisp.org>
91428         Optimize and test memrchr.
91429         * modules/memrchr (Depends-on): Add intprops.
91430         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
91431         * modules/memrchr-tests: New file.
91432         * tests/test-memrchr.c: New file.
91434 2008-04-26  Bruno Haible  <bruno@clisp.org>
91436         Add tentative support for DragonFly BSD.
91437         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91438         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91439         fp.
91440         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91441         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91442         * lib/fpurge.c (fpurge): Likewise.
91443         * lib/freadable.c (freaadable): Likewise.
91444         * lib/freadahead.c (freadahead): Likewise.
91445         * lib/freading.c (freading): Likewise.
91446         * lib/freadptr.c (freadptr): Likewise.
91447         * lib/freadseek.c (freadptrinc): Likewise.
91448         * lib/fseeko.c (fseeko): Likewise.
91449         * lib/fseterr.c (fseterr): Likewise.
91450         * lib/fwritable.c (fwritable): Likewise.
91451         * lib/fwriting.c (fwriting): Likewise.
91453 2008-04-26  Bruno Haible  <bruno@clisp.org>
91455         * lib/stdio-impl.h: New file.
91456         * lib/fbufmode.c: Include stdio-impl.h.
91457         (fbufmode): Use fp_, remove redundant #defines.
91458         * lib/fflush.c: Include stdio-impl.h.
91459         (clear_ungetc_buffer): Remove redundant #defines.
91460         * lib/fpurge.c: Include stdio-impl.h.
91461         (fpurge): Remove redundant #defines.
91462         * lib/freadable.c: Include stdio-impl.h.
91463         (freadable): Remove redundant #defines.
91464         * lib/freadahead.c: Include stdio-impl.h.
91465         (freadahead): Remove redundant #defines.
91466         * lib/freading.c: Include stdio-impl.h.
91467         (freading): Remove redundant #defines.
91468         * lib/freadptr.c: Include stdio-impl.h.
91469         (freadptr): Remove redundant #defines.
91470         * lib/freadseek.c: Include stdio-impl.h.
91471         (freadptrinc): Remove redundant #defines.
91472         * lib/fseeko.c: Include stdio-impl.h.
91473         (rpl_fseeko): Remove redundant #defines.
91474         * lib/fseterr.c: Include stdio-impl.h.
91475         (fseterr): Remove redundant #defines.
91476         * lib/fwritable.c: Include stdio-impl.h.
91477         (fwritable: Remove redundant #defines.
91478         * lib/fwriting.c: Include stdio-impl.h.
91479         (fwriting): Remove redundant #defines.
91480         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91481         * modules/fflush (Files): Likewise.
91482         * modules/fpurge (Files): Likewise.
91483         * modules/freadable (Files): Likewise.
91484         * modules/freadahead (Files): Likewise.
91485         * modules/freading (Files): Likewise.
91486         * modules/freadptr (Files): Likewise.
91487         * modules/freadseek (Files): Likewise.
91488         * modules/fseeko (Files): Likewise.
91489         * modules/fseterr (Files): Likewise.
91490         * modules/fwritable (Files): Likewise.
91491         * modules/fwriting (Files): Likewise.
91493 2008-04-26  Bruno Haible  <bruno@clisp.org>
91495         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91496         restore_seek_optimization, update_fpos_cache): New functions, extracted
91497         from rpl_fflush.
91498         (rpl_fflush): Use them.
91499         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91500         (gl_REPLACE_FFLUSH): Use it.
91502 2008-04-26  Bruno Haible  <bruno@clisp.org>
91504         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91505         on Solaris.
91506         * tests/test-xstrtoimax.sh: Likewise.
91507         * tests/test-xstrtoumax.sh: Likewise.
91508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91510 2008-04-26  Bruno Haible  <bruno@clisp.org>
91512         * modules/memchr-tests: New file.
91513         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91515 2008-04-26  Eric Blake  <ebb9@byu.net>
91516             Bruno Haible  <bruno@clisp.org>
91518         * lib/memchr.c: Include intprops.h.
91519         (__memchr): Optimize parallel detection of matching bytes. Rename local
91520         variables. Add explanatory comments.
91522 2008-04-26  Bruno Haible  <bruno@clisp.org>
91524         Fix module 'memchr', broken since 2000-10-28.
91525         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91527 2008-04-26  Bruno Haible  <bruno@clisp.org>
91529         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91530         comments.
91532 2008-04-25  Eric Blake  <ebb9@byu.net>
91534         Use native fstatat on cygwin 1.7.0.
91535         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91536         first.
91538 2008-04-23  Eric Blake  <ebb9@byu.net>
91540         Improve memchr2 performance.
91541         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91542         NUL bytes.
91543         * modules/memchr2 (Depends-on): Use intprops.h.
91545 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91547         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91548         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91549         <blp@cs.stanford.edu>.
91551 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91553         * lib/arpa_inet.in.h: New file.
91555         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91556         (Makefile.am): Sed in substitute header file.
91558         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91559         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91561         * modules/inet_ntop (configure.ac): Use
91562         gl_ARPA_INET_MODULE_INDICATOR.
91564         * modules/inet_pton (configure.ac): Use
91565         gl_ARPA_INET_MODULE_INDICATOR.
91567 2008-04-22  Jim Meyering  <meyering@redhat.com>
91569         * modules/verify (License): Re-license as LGPLv2+.
91571 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91573         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91574         parameter to void* as per POSIX standard (MinGW uses char*).
91576 2008-04-21  Bruno Haible  <bruno@clisp.org>
91578         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91579         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91580         Define to replacements if REPLACE_ISWCNTRL is 1.
91581         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91582         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91583         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91584         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91585         what it fixes.
91586         * doc/posix-functions/iswalpha.texi: Likewise.
91587         * doc/posix-functions/iswblank.texi: Likewise.
91588         * doc/posix-functions/iswcntrl.texi: Likewise.
91589         * doc/posix-functions/iswdigit.texi: Likewise.
91590         * doc/posix-functions/iswgraph.texi: Likewise.
91591         * doc/posix-functions/iswlower.texi: Likewise.
91592         * doc/posix-functions/iswprint.texi: Likewise.
91593         * doc/posix-functions/iswpunct.texi: Likewise.
91594         * doc/posix-functions/iswspace.texi: Likewise.
91595         * doc/posix-functions/iswupper.texi: Likewise.
91596         * doc/posix-functions/iswxdigit.texi: Likewise.
91597         Reported by Alain Guibert.
91599 2008-04-21  Bruno Haible  <bruno@clisp.org>
91601         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91602         Patch by Alain Guibert.
91604 2008-04-21  Bruno Haible  <bruno@clisp.org>
91606         Fix test failures on mingw.
91607         * tests/test-xstrtol.c (print_no_progname): New function.
91608         (main): Install it in error_print_progname hook.
91609         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91610         * tests/test-xstrtoimax.sh: Likewise.
91611         * tests/test-xstrtoumax.sh: Likewise.
91613 2008-04-21  Bruno Haible  <bruno@clisp.org>
91615         Fix test failure on mingw.
91616         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91618 2008-04-21  Bruno Haible  <bruno@clisp.org>
91620         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91621         Actually assign a value.
91623 2008-04-20  Bruno Haible  <bruno@clisp.org>
91625         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91626         take 2.
91627         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91628         'canonicalize-lgpl' module is also used.
91629         * lib/canonicalize-lgpl.c: Undo last change.
91630         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91632 2008-04-20  Bruno Haible  <bruno@clisp.org>
91634         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91635         config.h. Provide _mkdir based fallback for mingw.
91636         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91637         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91639         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91640         rather than defining mkdir in config.h.
91641         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91642         (gl_SYS_STAT_H_DEFAULTS): New macro.
91643         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91644         HAVE_IO_H any more.
91645         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91646         HAVE_DECL_MKDIR and HAVE_IO_H.
91648 2008-04-20  Bruno Haible  <bruno@clisp.org>
91650         * lib/isapipe.c: Port to native Windows platforms.
91652 2008-04-20  Bruno Haible  <bruno@clisp.org>
91654         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91656 2008-04-21  Eric Blake  <ebb9@byu.net>
91658         Work around preprocessors that don't handle UINTMAX_MAX.
91659         * lib/memchr2.c (memchr2): Avoid embedded #if.
91660         Reported by Alain Guibert, fix suggested by Bruno Haible.
91662 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91664         * doc/posix-functions/strftime.texi (strftime): Explain better
91665         Windows incompatibility.  Suggested by Micah Cowan
91666         <micah@cowan.name>.
91668 2008-04-20  Bruno Haible  <bruno@clisp.org>
91670         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91671         unistr/u8-mblen.
91673 2008-04-20  Bruno Haible  <bruno@clisp.org>
91675         Fix test failure on platforms with non-GNU iconv.
91676         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91677         (U_TO_U8): Use it, rather than u16_to_u8.
91678         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91679         units at the end of the input string.
91680         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91682 2008-04-20  Bruno Haible  <bruno@clisp.org>
91684         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91685         when the resulting length is 0.
91686         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91688 2008-04-20  Bruno Haible  <bruno@clisp.org>
91690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91691         works.
91692         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91694 2008-04-20  Bruno Haible  <bruno@clisp.org>
91696         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91697         * modules/tsearch-tests (configure.ac): Test for initstate function.
91699 2008-04-20  Bruno Haible  <bruno@clisp.org>
91701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91702         for nlink_t if missing.
91703         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91705 2008-04-19  Bruno Haible  <bruno@clisp.org>
91707         Work around snprintf bug on Linux libc5.
91708         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91710         gl_SNPRINTF_SIZE1.
91711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91712         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91713         that test failed.
91714         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91715         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91716         * modules/snprintf (Files): Add m4/printf.m4.
91717         * modules/vsnprintf (Files): Likewise.
91718         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91719         * doc/posix-functions/vsnprintf.texi: Likewise.
91721 2008-04-19  Bruno Haible  <bruno@clisp.org>
91723         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91724         from 0.0058 to less than 10^-7.
91726 2008-04-19  Bruno Haible  <bruno@clisp.org>
91728         Fix rounding when a precision is given.
91729         * lib/vasnprintf.c (is_borderline): New function.
91730         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91731         9...9x.
91732         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91733         %e, %g.
91734         * tests/test-vasprintf-posix.c (test_function): Likewise.
91735         * tests/test-snprintf-posix.h (test_function): Likewise.
91736         * tests/test-sprintf-posix.h (test_function): Likewise.
91737         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91738         * tests/test-printf-posix.h (test_function): Likewise.
91739         * tests/test-printf-posix.output: Update.
91740         Reported by John Darrington <john@darrington.wattle.id.au> via
91741         Ben Pfaff <blp@cs.stanford.edu>.
91743 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91745         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91746         Suggested by Bruno Haible <bruno@clisp.org>.
91748 2008-04-17  Bruno Haible  <bruno@clisp.org>
91750         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91751         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91752         implementation.
91753         Patch by Bruce Merry <bmerry@gmail.com>.
91755 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91757         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91758         doesn't work under Windows.
91760 2008-04-16  Bruno Haible  <bruno@clisp.org>
91762         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91763         New macros.
91764         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91765         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91766         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91767         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91768         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91769         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91770         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91771         macros.
91772         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91773         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91774         Northern Sotho, Uighur.
91776 2008-04-16  Bruno Haible  <bruno@clisp.org>
91778         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91779         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91780         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91781         Reported by Daniel Bergström <daniel@octocode.com>.
91783 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91784             Bruno Haible  <bruno@clisp.org>
91786         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91787         function.
91788         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91789         New functions, mostly extracted from gl_locale_name_default.
91790         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91792 2008-04-16  Eric Blake  <ebb9@byu.net>
91794         Adjust strtod detection to catch glibc 2.7 bug.
91795         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91796         Reported by John Gatewood Ham.
91798 2008-04-16  Bruno Haible  <bruno@clisp.org>
91800         Add tentative support for Linux libc5.
91801         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91802         * lib/fpurge.c (fpurge): Likewise.
91803         * lib/freadable.c (freadable): Likewise.
91804         * lib/freadahead.c (freadahead): Likewise.
91805         * lib/freading.c (freading): Likewise.
91806         * lib/freadptr.c (freadptr): Likewise.
91807         * lib/freadseek.c (freadptrinc): Likewise.
91808         * lib/fseeko.c (rpl_fseeko): Likewise.
91809         * lib/fseterr.c (fseterr): Likewise.
91810         * lib/fwritable.c (fwritable): Likewise.
91811         * lib/fwriting.c (fwriting): Likewise.
91812         Reported by Alain Guibert <alguibert+bts@free.fr>.
91814 2008-04-15  Bruno Haible  <bruno@clisp.org>
91816         * modules/mathl (configure.ac): Define module indicator.
91818 2008-04-15  Bruno Haible  <bruno@clisp.org>
91820         * lib/logl.c (logl): Remove unused variables.
91822 2008-04-15  Bruno Haible  <bruno@clisp.org>
91824         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91825         fails.
91827 2008-04-15  Bruno Haible  <bruno@clisp.org>
91829         * lib/trim.c (trim2): Fix argument of isspace() macro.
91831 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91833         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91834         to 0.
91835         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91837 2008-04-14  Bruno Haible  <bruno@clisp.org>
91839         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91840         AC_LANG_PROGRAM argument.
91841         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91842         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91845         * m4/math_h.m4 (gl_MATH_H): Likewise.
91846         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91848         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91849         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91850         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91851         * m4/regex.m4 (gl_REGEX): Likewise.
91852         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91853         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91856         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91857         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91861 2008-04-14  Jim Meyering  <meyering@redhat.com>
91863         test-strtod: fix typos: s/abs/fabs/
91864         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91866 2008-04-13  Bruno Haible  <bruno@clisp.org>
91868         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91869         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91870         module is also used and while not building the reloc-wrapper.
91872 2008-04-13  Bruno Haible  <bruno@clisp.org>
91874         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91876 2008-04-13  Bruno Haible  <bruno@clisp.org>
91878         Fix AIX compilation failure introduced on 2008-04-02.
91879         * tests/test-frexp.c (exp): Undefine before redefining.
91880         * tests/test-frexpl.c (exp): Likewise.
91882 2008-04-13  Bruno Haible  <bruno@clisp.org>
91884         Work around a HP-UX stdio bug.
91885         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91886         * tests/test-ftello.c (main): Likewise.
91887         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91888         * doc/posix-functions/ftello.texi: Likewise.
91890 2008-04-13  Bruno Haible  <bruno@clisp.org>
91892         Make test-signbit pass on HP-UX/hppa.
91893         * tests/test-signbit.c (minus_zerol): New variable.
91894         (test_signbitl): Use it.
91896 2008-04-13  Bruno Haible  <bruno@clisp.org>
91898         Make truncl work on OSF/1 4.0.
91899         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91900         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91901         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91903         HAVE_DECL_TRUNCL.
91904         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91905         HAVE_DECL_TRUNCL.
91906         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91908 2008-04-13  Bruno Haible  <bruno@clisp.org>
91910         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91912 2008-04-13  Bruno Haible  <bruno@clisp.org>
91914         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91915         expression, so as to avoid HP-UX 11 cc compiler bug.
91917 2008-04-13  Bruno Haible  <bruno@clisp.org>
91919         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91921 2008-04-13  Bruno Haible  <bruno@clisp.org>
91923         * lib/git-merge-changelog.c: Remove empty declaration outside of
91924         functions.
91926 2008-04-13  Bruno Haible  <bruno@clisp.org>
91928         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91930 2008-04-13  Bruno Haible  <bruno@clisp.org>
91932         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91933         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91935         also if it exists but lacks definitions of the SHUT_* macros.
91936         * modules/sys_socket (Description): Update.
91937         Reported by Elbert Pol <e.pol@chello.nl>.
91939 2008-04-13  Bruno Haible  <bruno@clisp.org>
91941         * lib/localcharset.c (OS2): Don't redefine if already defined.
91942         Reported by Elbert Pol <e.pol@chello.nl>.
91944 2008-04-13  Bruno Haible  <bruno@clisp.org>
91946         * lib/binary-io.h [__EMX__]: Include <io.h>.
91947         Reported by Elbert Pol <e.pol@chello.nl>.
91949 2008-04-12  Bruno Haible  <bruno@clisp.org>
91951         * lib/fpucw.h: Enable the definitions also for x86_64.
91952         Needed for NetBSD/x86_64.
91953         Reported by Thomas Klausner <tk@giga.or.at>.
91955 2008-04-12  Bruno Haible  <bruno@clisp.org>
91957         * tests/test-strtod.c: Include isnand.h.
91958         (main): Use isnand instead of isnan.
91959         Reported by Jim Meyering.
91961 2008-04-12  Bruno Haible  <bruno@clisp.org>
91963         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91966 2008-04-12  Jim Meyering  <meyering@redhat.com>
91968         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91970 2008-04-12  Bruno Haible  <bruno@clisp.org>
91972         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91973         Reported by Elbert Pol <e.pol@chello.nl>.
91975 2008-04-12  Eric Blake  <ebb9@byu.net>
91977         Work around Solaris 10 math.h bug.
91978         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91979         (gl_MATH_H_DEFAULTS): Set up default.
91980         * modules/math (Makefile.am): Replace new indicators.
91981         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91982         * tests/test-math.c (main): Test this.
91983         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91984         * doc/posix-headers/math.texi (math.h): Mention bug.
91985         Reported by Nelson H. F. Beebe and Jim Meyering.
91987 2008-04-11  Bruno Haible  <bruno@clisp.org>
91989         Adapt to future versions of Apple GCC.
91990         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91991         Reported by Peter O'Gorman <peter@pogma.com>.
91993 2008-04-11  Bruno Haible  <bruno@clisp.org>
91995         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91997 2008-04-11  Bruno Haible  <bruno@clisp.org>
91999         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92001         * modules/getaddrinfo-tests (Makefile.am): Define
92002         test_getaddrinfo_LDADD.
92004 2008-04-11  Bruno Haible  <bruno@clisp.org>
92006         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92007         (init): Fix syntax error.
92008         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92009         is declared.
92011 2008-04-11  Bruno Haible  <bruno@clisp.org>
92013         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92014         * modules/glob (Depends-on): Add stdbool.
92016 2008-04-11  Bruno Haible  <bruno@clisp.org>
92018         * lib/trim.c: Include <string.h>.
92020 2008-04-11  Eric Blake  <ebb9@byu.net>
92022         Avoid compile failure on OS/2.
92023         * lib/regex_internal.h (internal_function): Disable optimization
92024         on OS/2 (__EMX__), where it caused compiler error.
92025         Reported by Elbert Pol.
92027 2008-04-11  Bruno Haible  <bruno@clisp.org>
92029         Flush the standard error stream before aborting. Needed on mingw.
92030         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92031         * tests/test-array_list.c (ASSERT): Likewise.
92032         * tests/test-array_oset.c (ASSERT): Likewise.
92033         * tests/test-avltree_list.c (ASSERT): Likewise.
92034         * tests/test-avltree_oset.c (ASSERT): Likewise.
92035         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92036         * tests/test-binary-io.c (ASSERT): Likewise.
92037         * tests/test-byteswap.c (ASSERT): Likewise.
92038         * tests/test-c-ctype.c (ASSERT): Likewise.
92039         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92040         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92041         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92042         * tests/test-c-strstr.c (ASSERT): Likewise.
92043         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92044         * tests/test-canonicalize.c (ASSERT): Likewise.
92045         * tests/test-carray_list.c (ASSERT): Likewise.
92046         * tests/test-ceilf1.c (ASSERT): Likewise.
92047         * tests/test-ceilf2.c (ASSERT): Likewise.
92048         * tests/test-ceill.c (ASSERT): Likewise.
92049         * tests/test-count-one-bits.c (ASSERT): Likewise.
92050         * tests/test-fbufmode.c (ASSERT): Likewise.
92051         * tests/test-fflush2.c (ASSERT): Likewise.
92052         * tests/test-floorf1.c (ASSERT): Likewise.
92053         * tests/test-floorf2.c (ASSERT): Likewise.
92054         * tests/test-floorl.c (ASSERT): Likewise.
92055         * tests/test-fopen.c (ASSERT): Likewise.
92056         * tests/test-fpending.c (ASSERT): Likewise.
92057         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92058         * tests/test-fpurge.c (ASSERT): Likewise.
92059         * tests/test-freadable.c (ASSERT): Likewise.
92060         * tests/test-freadahead.c (ASSERT): Likewise.
92061         * tests/test-freading.c (ASSERT): Likewise.
92062         * tests/test-freadptr.c (ASSERT): Likewise.
92063         * tests/test-freadptr2.c (ASSERT): Likewise.
92064         * tests/test-freadseek.c (ASSERT): Likewise.
92065         * tests/test-freopen.c (ASSERT): Likewise.
92066         * tests/test-frexp.c (ASSERT): Likewise.
92067         * tests/test-frexpl.c (ASSERT): Likewise.
92068         * tests/test-fseek.c (ASSERT): Likewise.
92069         * tests/test-fseeko.c (ASSERT): Likewise.
92070         * tests/test-fstrcmp.c (ASSERT): Likewise.
92071         * tests/test-ftell.c (ASSERT): Likewise.
92072         * tests/test-ftello.c (ASSERT): Likewise.
92073         * tests/test-func.c (ASSERT): Likewise.
92074         * tests/test-fwritable.c (ASSERT): Likewise.
92075         * tests/test-fwriting.c (ASSERT): Likewise.
92076         * tests/test-getdelim.c (ASSERT): Likewise.
92077         * tests/test-getline.c (ASSERT): Likewise.
92078         * tests/test-i-ring.c (ASSERT): Likewise.
92079         * tests/test-iconv-utf.c (ASSERT): Likewise.
92080         * tests/test-iconv.c (ASSERT): Likewise.
92081         * tests/test-isfinite.c (ASSERT): Likewise.
92082         * tests/test-isnand.c (ASSERT): Likewise.
92083         * tests/test-isnanf.c (ASSERT): Likewise.
92084         * tests/test-isnanl.h (ASSERT): Likewise.
92085         * tests/test-ldexpl.c (ASSERT): Likewise.
92086         * tests/test-linked_list.c (ASSERT): Likewise.
92087         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92088         * tests/test-localename.c (ASSERT): Likewise.
92089         * tests/test-lseek.c (ASSERT): Likewise.
92090         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92091         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92092         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92093         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92094         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92095         * tests/test-mbschr.c (ASSERT): Likewise.
92096         * tests/test-mbscspn.c (ASSERT): Likewise.
92097         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92098         * tests/test-mbspbrk.c (ASSERT): Likewise.
92099         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92100         * tests/test-mbsrchr.c (ASSERT): Likewise.
92101         * tests/test-mbsspn.c (ASSERT): Likewise.
92102         * tests/test-mbsstr1.c (ASSERT): Likewise.
92103         * tests/test-mbsstr2.c (ASSERT): Likewise.
92104         * tests/test-mbsstr3.c (ASSERT): Likewise.
92105         * tests/test-memchr2.c (ASSERT): Likewise.
92106         * tests/test-memmem.c (ASSERT): Likewise.
92107         * tests/test-open.c (ASSERT): Likewise.
92108         * tests/test-printf-frexp.c (ASSERT): Likewise.
92109         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92110         * tests/test-printf-posix.c (ASSERT): Likewise.
92111         * tests/test-quotearg.c (ASSERT): Likewise.
92112         * tests/test-rbtree_list.c (ASSERT): Likewise.
92113         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92114         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92115         * tests/test-round1.c (ASSERT): Likewise.
92116         * tests/test-roundf1.c (ASSERT): Likewise.
92117         * tests/test-roundl.c (ASSERT): Likewise.
92118         * tests/test-signbit.c (ASSERT): Likewise.
92119         * tests/test-sleep.c (ASSERT): Likewise.
92120         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92121         * tests/test-snprintf.c (ASSERT): Likewise.
92122         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92123         * tests/test-stat-time.c (ASSERT): Likewise.
92124         * tests/test-strcasestr.c (ASSERT): Likewise.
92125         * tests/test-strerror.c (ASSERT): Likewise.
92126         * tests/test-striconv.c (ASSERT): Likewise.
92127         * tests/test-striconveh.c (ASSERT): Likewise.
92128         * tests/test-striconveha.c (ASSERT): Likewise.
92129         * tests/test-strsignal.c (ASSERT): Likewise.
92130         * tests/test-strstr.c (ASSERT): Likewise.
92131         * tests/test-strtod.c (ASSERT): Likewise.
92132         * tests/test-trunc1.c (ASSERT): Likewise.
92133         * tests/test-trunc2.c (ASSERT): Likewise.
92134         * tests/test-truncf1.c (ASSERT): Likewise.
92135         * tests/test-truncf2.c (ASSERT): Likewise.
92136         * tests/test-truncl.c (ASSERT): Likewise.
92137         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92138         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92139         * tests/test-vasnprintf.c (ASSERT): Likewise.
92140         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92141         * tests/test-vasprintf.c (ASSERT): Likewise.
92142         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92143         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92144         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92145         * tests/test-vsnprintf.c (ASSERT): Likewise.
92146         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92147         * tests/test-wcwidth.c (ASSERT): Likewise.
92148         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92149         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92150         * tests/test-xvasprintf.c (ASSERT): Likewise.
92151         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92152         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92153         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92154         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92155         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92156         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92157         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92158         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92159         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92160         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92161         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92162         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92163         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92164         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92165         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92166         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92167         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92168         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92169         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92170         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92171         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92172         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92173         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92174         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92175         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92176         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92177         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92178         * tests/unictype/test-combining.c (ASSERT): Likewise.
92179         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92180         * tests/unictype/test-digit.c (ASSERT): Likewise.
92181         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92182         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92183         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92184         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92185         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92186         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92187         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92188         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92189         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92190         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92191         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92192         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92193         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92194         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92195         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92196         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92197         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92198         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92199         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92200         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92201         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92202         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92203         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92204         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92205         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92206         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92207         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92208         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92209         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92210         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92211         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92212         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92213         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92214         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92215         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92216         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92217         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92218         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92219         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92220         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92221         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92222         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92223         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92224         Reported by Eric Blake.
92226 2008-04-11  Bruno Haible  <bruno@clisp.org>
92228         * lib/wchar.in.h: Tweak comment.
92230 2008-04-11  Bruno Haible  <bruno@clisp.org>
92232         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92233         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92234         gl_COMMON.
92235         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92237 2008-04-11  Bruno Haible  <bruno@clisp.org>
92239         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92241 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92243         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92244         of attempting to use non-existing /dev/*random.  Based on patch
92245         from Adam Strzelecki <ono@java.pl> in
92246         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92248 2008-04-08  Bruno Haible  <bruno@clisp.org>
92250         Add tentative support for emx+gcc.
92251         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92252         * lib/fpurge.c (fpurge): Likewise.
92253         * lib/freadable.c (freadable): Likewise.
92254         * lib/freadahead.c (freadahead): Likewise.
92255         * lib/freading.c (freading): Likewise.
92256         * lib/freadptr.c (freadptr): Likewise.
92257         * lib/freadseek.c (freadptrinc): Likewise.
92258         * lib/fseeko.c (rpl_fseeko): Likewise.
92259         * lib/fseterr.c (fseterr): Likewise.
92260         * lib/fwritable.c (fwritable): Likewise.
92261         * lib/fwriting.c (fwriting): Likewise.
92262         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92264 2008-04-09  Eric Blake  <ebb9@byu.net>
92266         Avoid some autoconf warnings.
92267         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92268         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92269         * m4/afs.m4 (gl_AFS): Likewise.
92270         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92271         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92273         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92274         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92275         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92276         (AC_CHECK_DECLS_ONCE): Likewise.
92277         Rename file...
92278         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92279         gnulib-tool requires autoconf 2.59 or better.
92280         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92282 2008-04-08  Eric Blake  <ebb9@byu.net>
92284         Use 'git describe --match' if present (added in git 1.5.5).
92285         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92286         if possible.
92288 2008-04-08  Bruno Haible  <bruno@clisp.org>
92290         Add tentative support for OpenServer.
92291         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92292         _ptr, _cnt.
92293         * lib/fpurge.c (fpurge): Likewise.
92294         * lib/freadable.c (freadable): Likewise.
92295         * lib/freadahead.c (freadahead): Likewise.
92296         * lib/freading.c (freading): Likewise.
92297         * lib/freadptr.c (freadptr): Likewise.
92298         * lib/freadseek.c (freadptrinc): Likewise.
92299         * lib/fseeko.c (rpl_fseeko): Likewise.
92300         * lib/fseterr.c (fseterr): Likewise.
92301         * lib/fwritable.c (fwritable): Likewise.
92302         * lib/fwriting.c (fwriting): Likewise.
92303         Reported by Roger Cornelius <rac@tenzing.org> and
92304         Brian K. White <brian@aljex.com>.
92306 2008-04-06  Jim Meyering  <meyering@redhat.com>
92308         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92310 2008-04-06  Bruno Haible  <bruno@clisp.org>
92312         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92313         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92314         * tests/test-printf-posix.sh: Likewise.
92315         * tests/test-vfprintf-posix.sh: Likewise.
92316         * tests/test-vprintf-posix.sh: Likewise.
92317         * tests/test-xprintf-posix.sh: Likewise.
92319 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92321         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92322         hide error from 'ls', needed on OS/2.
92323         Report by Elbert Pol <elbert.pol@gmail.com>.
92325 2008-04-04  Eric Blake  <ebb9@byu.net>
92327         Make test-fseeko.c failures meaningful.
92328         * tests/test-fseeko.c: Print line number on failure.
92329         * tests/test-fseek.c: Likewise.
92330         Reported by Nelson H. F. Beebe.
92332         Improve strtod bug detection check.
92333         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92334         required for Solaris 10.
92335         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92337 2008-04-04  Bruno Haible  <bruno@clisp.org>
92339         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92340         by m4/setenv.m4.
92342 2008-04-03  Eric Blake  <ebb9@byu.net>
92344         Ensure sane .version contents.
92345         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92346         version string.
92347         * build-aux/git-version-gen: Improve documentation.
92349         Make GNU make output nicer.
92350         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92351         MAKECMDGOALS to enforce message for all command line targets.  Set
92352         srcdir for use in maint.mk.
92354         Another maintainer tweak.
92355         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92356         a target that regenerates version.
92358 2008-04-03  Jim Meyering  <meyering@redhat.com>
92360         vc-list-files: don't cause coreutils "make po-check" failure
92361         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92363 2008-04-03  Eric Blake  <ebb9@byu.net>
92365         Allow VPATH usage of vc-list-files.
92366         * build-aux/vc-list-files (scriptversion): Add timestamp.
92367         (options): Add --help, --version, -C.
92368         (CVS): Support installed cvsu.
92370 2008-04-02  Bruno Haible  <bruno@clisp.org>
92372         Avoid some "statement with no effect" warnings from gcc.
92373         * tests/test-wctype.c (main): Explicitly ignore unused values.
92374         Reported by Jim Meyering.
92376 2008-04-02  Jim Meyering  <meyering@redhat.com>
92378         Avoid some warnings from "gcc -Wshadow".
92379         * tests/test-frexp.c (exp): Define to a different identifier.
92380         * tests/test-frexpl.c (exp): Likewise.
92382 2008-04-03  Jim Meyering  <meyering@redhat.com>
92384         bootstrap: remove dangling *.[ch] symlinks from lib
92385         * build-aux/bootstrap [dangling symlink removal]: Move find's
92386         -depth option to precede all others, to avoid a warning.
92387         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92389 2008-04-02  Bruno Haible  <bruno@clisp.org>
92391         Avoid some warnings from "gcc -Wshadow".
92392         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92393         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92394         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92395         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92396         Reported by Jim Meyering.
92398 2008-04-01  Bruno Haible  <bruno@clisp.org>
92400         Fix test to work on IRIX 6.5 with cc.
92401         * tests/test-math.c (numeric_equal): New function.
92402         (main): Use it.
92404 2008-04-01  Bruno Haible  <bruno@clisp.org>
92406         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92408 2008-04-01  Bruno Haible  <bruno@clisp.org>
92410         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92411         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92412         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
92413         (Depends-on): Remove math.
92415         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92416         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92417         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
92418         (Depends-on): Remove math.
92420         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
92421         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92422         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
92423         (Depends-on): Remove math.
92424         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
92425         (Depends-on): Remove math.
92427         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
92428         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92429         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
92430         (Depends-on): Remove math.
92431         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
92432         (Depends-on): Remove math.
92434         * tests/test-round1.c: Include nan.h.
92435         (main): Use NaNd instead of NAN.
92436         * modules/round-tests (Files): Add tests/nan.h.
92438         * tests/test-trunc1.c: Include nan.h.
92439         (main): Use NaNd instead of NAN.
92440         * modules/trunc-tests (Files): Add tests/nan.h.
92442         * tests/test-roundf1.c: Include nan.h.
92443         (main): Use NaNf instead of NAN.
92444         * modules/roundf-tests (Files): Add tests/nan.h.
92446         * tests/test-truncf1.c: Include nan.h.
92447         (main): Use NaNf instead of NAN.
92448         * modules/truncf-tests (Files): Add tests/nan.h.
92450         * tests/test-ceilf1.c: Include nan.h.
92451         (main): Use NaNf instead of NAN.
92452         * modules/ceilf-tests (Files): Add tests/nan.h.
92454         * tests/test-floorf1.c: Include nan.h.
92455         (main): Use NaNf instead of NAN.
92456         * modules/floorf-tests (Files): Add tests/nan.h.
92458         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92459         (main): Use NaNf instead of NAN.
92460         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92462         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92463         (main): Use NaNd instead of NAN.
92464         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92466         * tests/test-frexp.c: Include nan.h.
92467         (main): Use NaNd instead of NAN.
92468         * modules/frexp-tests (Files): Add tests/nan.h.
92470         * lib/isnan.c: Don't include <math.h>.
92471         (FUNC): Don't use NAN macro.
92472         * modules/isnand-nolibm (Depends-on): Remove math.
92473         * modules/isnanf-nolibm (Depends-on): Remove math.
92474         * modules/isnanl (Depends-on): Remove math.
92475         * modules/isnanl-nolibm (Depends-on): Remove math.
92477         * tests/nan.h: New file.
92479 2008-04-01  Eric Blake  <ebb9@byu.net>
92481         Fix typos.
92482         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92483         values to be the right type.
92485         For now, cater to gnulib strtod inaccuracies.
92486         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92487         fractional results.  While not as nice from a QoI perspective, it
92488         is a quicker patch than correctly implementing decimal to binary
92489         rounding.
92491 2008-03-31  Eric Blake  <ebb9@byu.net>
92493         Guarantee a definition of NAN.
92494         * lib/math.in.h (NAN): Define if missing.
92495         * tests/test-math.c (main): Test it.
92496         * doc/posix-headers/math.texi (math.h): Document this.
92497         * lib/isnan.c (rpl_isnand): Use it.
92498         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92499         * tests/test-floorf1.c (NaN): Likewise.
92500         * tests/test-frexp.c (NaN): Likewise.
92501         * tests/test-isnand.c (NaN): Likewise.
92502         * tests/test-isnanf.c (NaN): Likewise.
92503         * tests/test-round1.c (NaN): Likewise.
92504         * tests/test-roundf1.c (NaN): Likewise.
92505         * tests/test-snprintf-posix.h (NaN): Likewise.
92506         * tests/test-sprintf-posix.h (NaN): Likewise.
92507         * tests/test-trunc1.c (NaN): Likewise.
92508         * tests/test-truncf1.c (NaN): Likewise.
92509         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92510         * tests/test-vasprintf-posix.c (NaN): Likewise.
92511         * modules/isnand-nolibm (Depends-on): Add math.
92512         * modules/isnanf-nolibm (Depends-on): Likewise.
92513         * modules/isnanl (Depends-on): Likewise.
92514         * modules/isnanl-nolibm (Depends-on): Likewise.
92515         * modules/snprintf-posix-tests (Depends-on): Likewise.
92516         * modules/sprintf-posix-tests (Depends-on): Likewise.
92517         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92518         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92519         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92520         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92522 2008-03-31  Bruno Haible  <bruno@clisp.org>
92524         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92525         * doc/posix-functions/strtod.texi: Likewise.
92527 2008-03-31  Bruno Haible  <bruno@clisp.org>
92529         * tests/test-strtod.c (main): Don't use C99 syntax.
92531 2008-03-31  Bruno Haible  <bruno@clisp.org>
92533         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92534         Reported by Eric Blake.
92536 2008-03-31  Jim Meyering  <meyering@redhat.com>
92538         Don't compare actual signbit return values.
92539         * tests/test-strtod.c (main): Rather, compare only their
92540         zero/non-zero nature.
92542 2008-03-31  Eric Blake  <ebb9@byu.net>
92544         More strtod documentation.
92545         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92546         failures as distinct bugs.
92548 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92550         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92551         Problem reported by Erik Benada in
92552         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92554 2008-03-30  Bruno Haible  <bruno@clisp.org>
92556         * tests/test-strtod.c: Add comments about which assertion fails on which
92557         platform.
92558         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92560 2008-03-30  Eric Blake  <ebb9@byu.net>
92562         Test signbit behavior on zeros.
92563         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92564         (test_signbitd, test_signbitl): Likewise.
92566         More strtod touchups.
92567         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92568         sign of negative underflow, for now.  Use .5, not .1.
92569         * doc/posix-functions/strtod.texi (strtod): Mention these
92570         limitations.
92571         Reported by Jim Meyering.
92573 2008-03-30  Bruno Haible  <bruno@clisp.org>
92575         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92576         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92578 2008-03-30  Bruno Haible  <bruno@clisp.org>
92580         Avoid failure when attempting to return empty iconv results on some
92581         platforms.
92582         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92583         allocation, don't report ENOMEM when the resulting string is empty.
92585 2008-03-30  Bruno Haible  <bruno@clisp.org>
92587         Fix buffer overrun.
92588         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92589         Don't consider the width for tmp_length. Check count against tmp_length
92590         before doing the padding. Ensure enough allocation during padding.
92592 2008-03-30  Eric Blake  <ebb9@byu.net>
92594         strtod touchups.
92595         * lib/strtod.c (strtod): Avoid compiler warnings.
92596         Reported by Jim Meyering.
92598 2008-03-30  Bruno Haible  <bruno@clisp.org>
92600         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92601         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92602         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92603         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92604         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92605         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92606         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92607         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92609         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92610         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92611         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92612         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92613         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92614         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92615         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92616         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92618         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92619         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92620         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92621         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92622         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92623         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92624         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92625         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92627         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92628         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92630         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92631         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92633         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92634         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92636         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92638         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92640         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92642         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92644         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92646         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92648         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92650         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92652         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92655         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92656         (Depends-on): Add EOVERFLOW.
92657         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92658         (Depends-on): Add EOVERFLOW.
92659         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92660         (Depends-on): Add EOVERFLOW.
92661         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92662         (Depends-on): Add EOVERFLOW.
92663         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92664         (Depends-on): Add EOVERFLOW.
92665         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92666         (Depends-on): Add EOVERFLOW.
92667         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92668         (Depends-on): Add EOVERFLOW.
92669         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92670         (Depends-on): Add EOVERFLOW.
92672         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92674         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92676         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92678         * modules/snprintf (Depends-on): Add EOVERFLOW.
92680         * lib/poll.c (EOVERFLOW): Remove fallback.
92681         * modules/poll (Depends-on): Add EOVERFLOW.
92683         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92684         * modules/getugroups (Depends-on): Add EOVERFLOW.
92686         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92687         * modules/getdelim (Depends-on): Add EOVERFLOW.
92689         * lib/ftell.c (EOVERFLOW): Remove fallback.
92690         * modules/ftell (Depends-on): Add EOVERFLOW.
92692         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92694         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92696         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92698         * modules/EOVERFLOW-tests: New file.
92699         * tests/test-EOVERFLOW.c: New file.
92701         * modules/EOVERFLOW: New file.
92702         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92704 2008-03-30  Bruno Haible  <bruno@clisp.org>
92706         Fix bug introduced on 2007-06-10.
92707         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92708         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92710 2008-03-30  Bruno Haible  <bruno@clisp.org>
92712         Improve freadseek's efficiency after ungetc.
92713         * lib/freadseek.c: Include freadahead.h.
92714         (freadptrinc): New function, extracted from freadseek.
92715         (freadseek): Use it in a loop. Use freadahead to determine the number
92716         of loop iterations.
92717         * modules/freadseek (Depends-on): Add freadahead.
92718         (configure.ac): Require AC_C_INLINE.
92720 2008-03-30  Bruno Haible  <bruno@clisp.org>
92722         * lib/freadseek.c (freadseek): Don't ignore the return value of
92723         freadptr.
92725 2008-03-29  Eric Blake  <ebb9@byu.net>
92727         Add hex float support.
92728         * modules/strtod (Depends-on): Add c-ctype.
92729         (Link): Mention POW_LIB.
92730         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92731         whitespace between 'e' and exponent.
92732         * tests/test-strtod.c (main): Enable hex float tests.
92733         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92734         now provides.
92736         Document various strtod bugs, with some fixes.
92737         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92738         "-0x", "inf", "nan", and hex constants.
92739         * doc/posix-functions/atof.texi (atof): Likewise.
92740         * modules/stdlib (Makefile.am): Support strtod.
92741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92742         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92743         detect additional strtod bugs.
92744         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92745         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92746         bool where appropriate.  Parse 'inf' and 'nan'.
92747         * tests/test-strtod.c: New file.
92748         * modules/strtod (Depends-on): Add stdbool, stdlib.
92749         (configure.ac): Turn on module indicator.
92750         * modules/strtod-tests: New module.
92752 2008-03-29  Eric Blake  <ebb9@byu.net>
92754         Fix ftell on mingw.
92755         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92756         * modules/ftell-tests (Depends-on): Add binary-io.
92757         * modules/ftello-tests (Depends-on): Likewise.
92758         * tests/test-ftell.c (main): Enhance test to cover behavior after
92759         ungetc.  Enforce binary mode.
92760         * tests/test-ftello.c (main): Likewise.
92762         Pass test-freadseek on cygwin.
92763         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92764         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92765         ungetc buffer.
92767         * tests/test-fflush2.c (main): Fix typo.
92769 2008-03-29  Bruno Haible  <bruno@clisp.org>
92771         * tests/test-fflush2.c (main): Temporarily disable the contents of
92772         this test.
92773         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92774         Reported by Eric Blake.
92776 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92778         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92779         (GC_SHA224_DIGEST_SIZE): Add.
92781         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92782         (gc_hash_digest_length): Likewise.
92783         (gc_hash_buffer): Likewise.
92785 2008-03-25  Bruno Haible  <bruno@clisp.org>
92787         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92788         detail which gettext release to use.
92789         Reported by Simon Josefsson.
92791 2008-03-26  Jim Meyering  <meyering@redhat.com>
92793         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92794         * modules/gnumakefile (clean-GNUmakefile): Also, use
92795         test ... && ... || : syntax rather than if-then ... fi.
92797         gnumakefile: Don't double-quote-expand $(VPATH) value.
92798         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92800 2008-03-24  Eric Blake  <ebb9@byu.net>
92802         Alter GNUmakefile to install into top directory.
92803         * modules/maintainer-makefile: Split, and add dependency...
92804         * modules/gnumakefile: to this new module.
92805         * build-aux/GNUmakefile: Move...
92806         * top/GNUmakefile: ...here.
92807         * build-aux/maint.mk: Move...
92808         * top/maint.mk: ...here.
92809         * MODULES.html.sh (Support for maintaining...): Document new
92810         module.
92812 2008-03-23  Bruno Haible  <bruno@clisp.org>
92814         * gnulib-tool: New options --vc-files, --no-vc-files.
92815         (func_usage): Document them.
92816         (vc_files): New variable.
92817         (func_import): Consider vc_files.
92818         (func_create_testdir): Set vc_files to empty.
92819         Suggested by Jim Meyering and Karl Berry.
92821 2008-03-23  Bruno Haible  <bruno@clisp.org>
92823         Fix regex compilation error on HP-UX 11.
92824         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92825         * modules/regex (Files): Add m4/mbstate_t.m4.
92826         Reported by Ton Voon <ton.voon@altinity.com>.
92828 2008-03-23  Bruno Haible  <bruno@clisp.org>
92830         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92832 2008-03-23  Eric Blake  <ebb9@byu.net>
92833             Bruno Haible  <bruno@clisp.org>
92835         Install files from top/ in the destination directory.
92836         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92837         augmentation also for the files from top/.
92838         (func_import, func_create_testdir): Rewrite file names:
92839         top/filename -> filename.
92841 2008-03-23  Bruno Haible  <bruno@clisp.org>
92843         Tweak "gnulib --version" output.
92844         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92846 2008-03-23  Bruno Haible  <bruno@clisp.org>
92848         Tweak "gnulib --version" output.
92849         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92850         rather than contents of ChangeLog, when possible.
92852 2008-03-21  Eric Blake  <ebb9@byu.net>
92854         More --version tweaks.
92855         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92856         date of last ChangeLog entry.
92858 2008-03-21  Jim Meyering  <meyering@redhat.com>
92860         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92862 2008-03-20  Eric Blake  <ebb9@byu.net>
92864         VPATH fix.
92865         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92867 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92869         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92870         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92872 2008-03-20  Eric Blake  <ebb9@byu.net>
92874         Sync GNUmakefile with coreutils.
92875         * build-aux/GNUmakefile (have-Makefile): Rename...
92876         (_have-Makefile): ...to this, for namespace consideration.
92877         (GNUmakefile.cfg): Include, if present.
92878         (_autoreconf): Define a default.
92879         (_is-dist-target): New rule for rebuilds to pick up intra-release
92880         version.
92881         (maint-cfg.mk): Rename...
92882         (cfg.mk): ...to this.
92884 2008-03-18  Jim Meyering  <meyering@redhat.com>
92886         New script and module: mktempd
92887         * MODULES.html.sh (maint+release support): Add mktempd.
92888         * build-aux/mktempd: New file.
92889         * modules/mktempd: New file.
92891 2008-03-15  Jim Meyering  <meyering@redhat.com>
92893         Undo last change.
92894         * lib/sha1.c, lib/md5.c: 63 != ~63.
92895         Reported by Andreas Schwab.
92897         sha1.c, md5.c: Hoist a redundant expression.
92898         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92899         "ctx->buflen" only once, before calling *_process_block.
92900         * lib/md5.c (md5_process_bytes): Likewise.
92902 2008-03-14  Eric Blake  <ebb9@byu.net>
92904         Bump copyright year in files generated by gnulib-tool.
92905         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92906         gnulib-tool, rather than hard-coding it.
92908         Fix 'gnulib-tool --version' output to work with git.
92909         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92910         (startup): ...here.
92911         (func_version): Use it to invoke git-version-gen, rather than
92912         relying on CVS keyword expansion.  Modernize wording.
92913         (cvsdatestamp, last_checkin_date, version): Kill unused
92914         variables.
92916 2008-03-12  Jim Meyering  <meyering@redhat.com>
92918         Recognize optional cast of the argument to free.
92919         * build-aux/useless-if-before-free: Update regexps.
92921         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92923 2008-03-11  Bruno Haible  <bruno@clisp.org>
92925         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92926         by a single package.
92927         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92928         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92929         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92930         Reported by Sam Steingold <sds@gnu.org>.
92932 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92934         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92935         repositories.
92937 2008-03-11  Bruno Haible  <bruno@clisp.org>
92939         Avoid conflicts between local macro definitions.
92940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92941         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92943 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92944             Bruno Haible  <bruno@clisp.org>
92946         Make va_copy work with some version of xlc on AIX 5.1.
92947         * lib/stdarg.in.h: New file.
92948         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92949         On AIX, use a <stdarg.h> file substitute.
92950         * modules/stdarg (Files): Add lib/stdarg.in.h.
92951         (Depends-on): Add include_next.
92952         (Makefile.am): Build a stdarg.h substitute if requested.
92953         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92955 2008-03-10  Bruno Haible  <bruno@clisp.org>
92957         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92959         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92961 2008-03-10  Bruno Haible  <bruno@clisp.org>
92963         * modules/stdlib (Depends-on): Add include_next, remove
92964         absolute-header.
92966 2008-03-09  Bruno Haible  <bruno@clisp.org>
92968         * lib/freadahead.h (freadahead): Document more precisely.
92969         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92970         the sum of both buffer sizes.
92971         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92972         * NEWS: Document the change.
92974 2008-03-09  Bruno Haible  <bruno@clisp.org>
92976         Extend freadptr to return also the buffer size.
92977         * lib/freadptr.h (freadptr): Add sizep argument.
92978         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92979         (freadptr): Add sizep argument. Determine buffer size like freadahead
92980         does.
92981         * tests/test-freadptr.c: Don't include freadahead.h.
92982         (main): Adapt for new calling convention of freadptr.
92983         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92984         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92985         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92986         tests/test-freadptr2.sh.
92987         (Depends): Remove freadahead.
92988         (TESTS): Add test-freadptr2.sh.
92989         (check_PROGRAMS): Add test-freadptr2.
92991 2008-03-09  Bruno Haible  <bruno@clisp.org>
92993         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92994         Report and solution by Simon Josefsson.
92996 2008-03-06  Bruno Haible  <bruno@clisp.org>
92998         Make fflush after ungetc work on BSD platforms.
92999         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93000         * tests/test-fflush2.c: New file.
93001         * tests/test-fflush2.sh: New file.
93002         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93003         tests/test-fflush2.c.
93004         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93005         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93007 2008-03-06  Eric Blake  <ebb9@byu.net>
93009         Likewise for ftello.
93010         * modules/ftello (Dependencies): Add extensions.
93011         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93013 2008-03-06  Bruno Haible  <bruno@clisp.org>
93015         * modules/fseeko (Dependencies): Add extensions.
93016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93017         Needed on glibc systems.
93019 2008-03-06  Bruno Haible  <bruno@clisp.org>
93021         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93022         email address.
93023         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93025 2008-03-06  Bruno Haible  <bruno@clisp.org>
93027         * users.txt: Add libgnupdf.
93029 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93031         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93032         (Header File Substitutes, Function Substitutes,
93033         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93034         (Build robot for gnulib): Fix typo.
93036 2008-03-06  Bruno Haible  <bruno@clisp.org>
93038         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93039         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93041 2008-03-06  Bruno Haible  <bruno@clisp.org>
93043         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93044         * doc/gnulib.texi: Include it.
93046 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93048         * modules/func (License): Change license to unlimited; there was
93049         no LGPL parts in the module anyway.
93051 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93053         * modules/__func__: Renamed to modules/func.
93054         * modules/__func__-tests: Renamed to modules/func-tests.
93055         * tests/test-__func__.c: Renamed to tests/test-func.c.
93056         * m4/__func__.m4: Renamed to m4/func.m4.
93057         * doc/gnulib.texi (__func__): Section renamed to func.
93058         Suggested by Eric Blake <ebb9@byu.net>.
93060 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93062         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93063         about __func__.  Make example self-contained.  Suggested by Eric
93064         Blake <ebb9@byu.net>.
93066         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93067         Suggested by Eric Blake <ebb9@byu.net>.
93069 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93071         * modules/__func__: New file.
93072         * modules/__func__-tests: New file.
93073         * tests/test-__func__.c: New file.
93074         * m4/__func__.m4: New file.
93075         * doc/gnulib.texi (__func__): Document __func__ module.
93077 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93079         * modules/byteswap (License): Re-license as LGPLv2+.
93081 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93083         * doc/Makefile: Add pdf target.
93085 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93087         * modules/inline (License): Use 'unlimited', since there are only
93088         *.m4 files in this module.
93090 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93091             Bruno Haible  <bruno@clisp.org>
93093         Add support for HP C 7.1 on OpenVMS 8.3.
93094         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93096 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93098         Update VMS specifics.
93099         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93101 2008-03-02  Jim Meyering  <meyering@redhat.com>
93103         Remove the last dependency on the "free" module.
93104         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93105         Reported by Bob Proulx.
93107         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93109         Remove useless "if" tests before free.  Deprecate "free" module.
93110         * doc/posix-functions/free.texi: Mention that this
93111         module is no longer useful.
93112         * modules/free (Notice): Say this module is obsolete.
93113         * modules/readutmp (Depends-on): Remove free.
93114         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93115         * lib/putenv.c (putenv): Likewise.
93116         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93117         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93118         * tests/test-c-strcasestr.c (main): Likewise.
93119         * tests/test-c-strstr.c (main): Likewise.
93120         * tests/test-mbscasestr1.c (main): Likewise.
93121         * tests/test-mbscasestr2.c (main): Likewise.
93122         * tests/test-mbsstr1.c (main): Likewise.
93123         * tests/test-mbsstr2.c (main): Likewise.
93124         * tests/test-memmem.c (main): Likewise.
93125         * tests/test-strcasestr.c (main): Likewise.
93126         * tests/test-striconv.c (main): Likewise.
93127         * tests/test-striconveh.c (main): Likewise.
93128         * tests/test-striconveha.c (main): Likewise.
93129         * tests/test-strstr.c (main): Likewise.
93131         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93133         bootstrap: sync from coreutils again
93134         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93136 2008-03-01  Jim Meyering  <meyering@redhat.com>
93138         bootstrap: sync from coreutils
93139         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93140         also when the target doesn't exist.
93142 2008-03-01  Eric Blake  <ebb9@byu.net>
93144         Fix bugs in last patch.
93145         * lib/memchr2.c (memchr2): Fix typo.
93146         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93147         extension.
93148         Reported by Bruce Korb.
93150         New module 'memchr2'.
93151         * modules/memchr2: New file.
93152         * modules/memchr2-tests: Likewise.
93153         * lib/memchr2.h: Likewise.
93154         * lib/memchr2.c: Likewise, based on memchr.c.
93155         * tests/test-memchr2.c: New test.
93156         * MODULES.html.sh (String handling): Add memchr2.
93158 2008-02-29  Bruno Haible  <bruno@clisp.org>
93160         * modules/freadseek-tests: New file.
93161         * tests/test-freadseek.sh: New file.
93162         * tests/test-freadseek.c: New file.
93164         New module 'freadseek'.
93165         * modules/freadseek: New file.
93166         * lib/freadseek.h: New file.
93167         * lib/freadseek.c: New file.
93168         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93170 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93172         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93173         wydawca.
93175         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93176         program_invocation_name and program_invocation_short_name are
93177         present.
93179 2008-02-28  Bruno Haible  <bruno@clisp.org>
93181         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93182         * tests/test-freadptr.sh: Also test non-seekable stdin.
93184 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93186         * build-aux/bootstrap (source_base, m4_base)
93187         (doc_base, tests_base): New variables.
93188         (gnulib_tool_options): Do not hardcode base directories, use
93189         the above variables instead.
93191 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93193         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93195 2008-02-28  Bruno Haible  <bruno@clisp.org>
93197         * modules/freadptr-tests: New file.
93198         * tests/test-freadptr.sh: New file.
93199         * tests/test-freadptr.c: New file.
93201         New module 'freadptr'.
93202         * modules/freadptr: New file.
93203         * lib/freadptr.h: New file.
93204         * lib/freadptr.c: New file.
93205         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93207 2008-02-26  Karl Berry  <karl@freefriends.org>
93209         Sync from Libtool:
93210         * libltdl/argz.c (argz_add, argz_count): New functions.
93211         * libltdl/argz.in.h: Declare them.
93212         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93214 2008-02-22  Bruno Haible  <bruno@clisp.org>
93216         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93217         is a pointer type.  Needed for HP-UX 10.
93218         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93219         * doc/posix-functions/gmtime_r.texi: Likewise.
93220         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93222 2008-02-24  Bruno Haible  <bruno@clisp.org>
93224         * modules/environ-tests: New file.
93225         * tests/test-environ.c: New file.
93227         New module 'environ'.
93228         * modules/environ: New file.
93229         * lib/unistd.in.h (environ): New declaration.
93230         * m4/environ.m4: New file.
93231         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93232         after use.
93233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93234         HAVE_DECL_ENVIRON.
93235         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93236         HAVE_DECL_ENVIRON.
93237         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93238         wrong claim that 'environ' is missing on some systems.
93239         * modules/execute (Depends-on): Add environ.
93240         * lib/execute.c (environ): Remove fallback declaration.
93241         * modules/pipe (Depends-on): Add environ.
93242         * lib/pipe.c (environ): Remove fallback declaration.
93243         * modules/setenv (Depends-on): Add environ.
93244         * lib/setenv.c (environ): Remove fallback declaration.
93245         * modules/unsetenv (Depends-on): Add environ.
93246         * lib/unsetenv.c (environ): Remove fallback declaration.
93247         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93248         m4/environ.m4.
93249         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93250         (gl_PREREQ_UNSETENV): Likewise.
93252 2008-02-24  Bruno Haible  <bruno@clisp.org>
93254         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93256 2008-02-20  Bob Proulx  <bob@proulx.com>
93258         Enable use of older two part flavor 'git describe'.
93259         * build-aux/git-version-gen: If using the older two part flavor of
93260         git version then recreate the third part now present in the
93261         newer three part flavor of git describe.
93263 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93265         * lib/fts.c (fts_build): Typo correction to comment.
93267 2008-02-17  Bruno Haible  <bruno@clisp.org>
93269         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93270         generating no-op conflicts.
93272 2008-02-17  Bruno Haible  <bruno@clisp.org>
93274         Speed up by 10%.
93275         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93276         result_entries, rather than an index-based loop.
93278 2008-02-17  Bruno Haible  <bruno@clisp.org>
93280         Speed up by 25%.
93281         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93282         'hashcode_cached'.
93283         (entry_create): New function.
93284         (entry_hashcode): Use the cached hashcode if possible.
93285         (read_changelog_file, try_split_merged_entry): Use entry_create.
93287 2008-02-17  Bruno Haible  <bruno@clisp.org>
93289         Speed up from O(n^2) to O(n) for long ChangeLog files.
93290         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93291         (read_changelog_file): Change implementation of entries_reversed list
93292         to rbtreehash.
93293         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93295 2008-02-17  Bruno Haible  <bruno@clisp.org>
93297         New option --split-merged-entry.
93298         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93299         (find_paragraph_end, try_split_merged_entry): New functions.
93300         (long_options): Add option --split-merged-entry.
93301         (usage): Document option --split-merged-entry.
93302         (main): Implement option --split-merged-entry.
93303         Reported by Eric Blake.
93305 2008-02-17  Bruno Haible  <bruno@clisp.org>
93307         * lib/git-merge-changelog.c: Include c-strstr.h.
93308         (main): Support the "git pull --rebase" situation.
93309         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93310         Reported by Eric Blake.
93312 2008-02-16  Eric Blake  <ebb9@byu.net>
93314         Avoid doubling \ in common case of "c-maybe" quoting style.
93315         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93316         eliding outer quotes.
93317         * lib/quotearg.h: Document this.
93318         * tests/test-quotearg.c (result_strings, inputs, results_g)
93319         (flag_results, locale_results): Test it by adding a new string to
93320         each test group.
93321         (compare_strings): Test new string.
93323 2008-02-13  Eric Blake  <ebb9@byu.net>
93325         Avoid trigraph quoting in default output.
93326         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93327         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93328         unless explicitly requested.
93329         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93331 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93333         Don't rely on signed integer overflowing to negative value.
93334         * lib/getugroups.c (getugroups): Include <limits.h>.
93335         Instead, compare against INT_MAX, and increment only if the test passes.
93337 2008-02-13  Jim Meyering  <meyering@redhat.com>
93338         and Eric Blake  <ebb9@byu.net>
93340         Avoid shadowing warning and compile errors on Linux.
93341         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93342         forwarding macros on Linux.
93343         (dcgettext): Define a stub, for Linux.
93344         (results_g, main): Avoid warnings.
93346 2008-02-12  Eric Blake  <ebb9@byu.net>
93348         Silence warning in last patch.
93349         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93351         Quotearg part 4: add tests, fix c-maybe colon quoting.
93352         * lib/quotearg.h: Improve documentation.
93353         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93354         escapes when adding outer quotes.  When quoting trigraphs, use
93355         valid C notation.  When quoting NUL, omit extra characters if next
93356         character is not digit.  Alter prototype.
93357         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93358         callers.
93359         * modules/quotearg-tests: New module.
93360         * tests/test-quotearg.c: New test.
93362 2008-02-07  Eric Blake  <ebb9@byu.net>
93364         Quotearg part 3: add flag to control outer quote elision.
93365         * lib/quotearg.h (c_maybe_quoting_style): New style.
93366         (enum quoting_flags): Better documentation of flags.
93367         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93368         c-maybe style.
93369         (quotearg_buffer_restyled): Handle new flag to elide outer
93370         quotes.
93372         Quotearg part 2: add flag that can control NUL elision.
93373         * lib/quotearg.h (set_quoting_flags): New prototype.
93374         * lib/quotearg.c (struct quoting_options): Add flag field.
93375         (set_quoting_flags): New function.
93376         (quotearg_buffer_restyled): Add flags parameter.
93377         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93378         (quotearg_n_options): Set the flag, since length cannot be
93379         returned.
93380         (quoting_options_from_style): Default flags correctly.
93382         Quotearg part 1: more wrappers, restore quotearg_char state.
93383         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93384         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93385         (quotearg_colon_mem): New wrappers.
93386         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93387         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93388         functions.
93389         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93390         (quotearg_colon_mem): New functions.
93392 2008-02-11  Bruno Haible  <bruno@clisp.org>
93394         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93395         library in the current directory: it does not work with parallel make.
93396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93398 2008-02-11  Bruno Haible  <bruno@clisp.org>
93400         * .gitattributes: New file.
93402 2008-02-11  Jim Meyering  <meyering@redhat.com>
93404         useless-if-before-free: Fix reversed exit values.
93405         * build-aux/useless-if-before-free: Use correct values
93406         for EXIT_MATCH and EXIT_NO_MATCH.
93408         * build-aux/useless-if-before-free: Close stdout carefully.
93410 2008-02-10  Bruno Haible  <bruno@clisp.org>
93412         New module 'git-merge-changelog'.
93413         * modules/git-merge-changelog: New file.
93414         * lib/git-merge-changelog.c: New file.
93416 2008-02-10  Jim Meyering  <meyering@redhat.com>
93418         useless-if-before-free: New option: --list (-l).
93420         useless-if-before-free: Don't exit immediately upon open failure.
93421         * build-aux/useless-if-before-free: Exit 2 for errors.
93422         Upon failure to open a file, don't exit immediately.
93423         Rather, just warn and continue with any remaining files.
93425 2008-02-10  Bruno Haible  <bruno@clisp.org>
93427         New abstract list operation 'node_set_value'.
93428         * lib/gl_list.h (gl_list_node_set_value): New function.
93429         (struct gl_list_implementation): New field node_set_value.
93430         * lib/gl_list.c (gl_list_node_set_value): New function.
93431         * lib/gl_array_list.c (gl_array_node_set_value): New function.
93432         (gl_array_list_implementation): Update.
93433         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
93434         (gl_carray_list_implementation): Update.
93435         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
93436         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93437         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93438         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93439         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93440         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93441         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93442         Update.
93443         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93444         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93445         (gl_sublist_list_implementation): Update.
93447 2008-02-10  Bruno Haible  <bruno@clisp.org>
93449         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93450         Needed when ELEMENT is #defined to 'some_type *'.
93452 2008-02-10  Jim Meyering  <meyering@redhat.com>
93454         New script and module: useless-if-before-free
93455         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93456         * build-aux/useless-if-before-free: New file.
93457         * modules/useless-if-before-free: New file.
93459         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93461         xstrtol_error: Fix typo.
93462         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93463         s/exit_failure/exit_status/.
93465 2008-02-09  Jim Meyering  <meyering@redhat.com>
93467         New script and module: gitlog-to-changelog
93468         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93469         * modules/gitlog-to-changelog: New file.
93470         * build-aux/gitlog-to-changelog: New file.
93472 2008-02-08  Jim Meyering  <meyering@redhat.com>
93474         Avoid two "parameter unused" warnings.
93475         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93476         Mark "st" as used.
93478         Use "git COMMAND", not "git-COMMAND".
93479         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93480         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93481         * build-aux/git-version-gen: Use "git status", not "git-status".
93483 2008-02-07  Bruno Haible  <bruno@clisp.org>
93485         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93486         Avoids a crash on Windows Vista.
93487         Reported by Adam Strzelecki <ono@java.pl> via
93488         Simon Josefsson <simon@josefsson.org>.
93490 2008-02-06  Bruno Haible  <bruno@clisp.org>
93492         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93493         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93494         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93496         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93498         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93499         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93507         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93508         left-adjust flag.
93509         * tests/test-snprintf-posix.h (test_function): Likewise.
93510         * tests/test-sprintf-posix.h (test_function): Likewise.
93511         * tests/test-vasprintf-posix.c (test_function): Likewise.
93512         * doc/posix-functions/fprintf.texi: Update.
93513         * doc/posix-functions/printf.texi: Update.
93514         * doc/posix-functions/snprintf.texi: Update.
93515         * doc/posix-functions/sprintf.texi: Update.
93516         * doc/posix-functions/vfprintf.texi: Update.
93517         * doc/posix-functions/vprintf.texi: Update.
93518         * doc/posix-functions/vsnprintf.texi: Update.
93519         * doc/posix-functions/vsprintf.texi: Update.
93520         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93522 2008-02-06  Bruno Haible  <bruno@clisp.org>
93524         Fix bug introduced on 2008-01-26.
93525         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93527 2008-02-06  Bruno Haible  <bruno@clisp.org>
93529         Fix bug introduced on 2007-06-10.
93530         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93531         !NEED_PRINTF_FLAG_ZERO.
93533 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93535         getloadavg: use libperfstat on AIX5
93536         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93538 2008-02-03  Bruno Haible  <bruno@clisp.org>
93540         * lib/diffseq.h: Add comments about required #includes.
93541         Reported by Michael Biggs <gnulib@doubleplum.net>.
93543 2008-02-01  Bruno Haible  <bruno@clisp.org>
93545         * users.txt: Add gnuit.
93547 2008-01-31  Bruno Haible  <bruno@clisp.org>
93549         * lib/md4.c (set_uint32): Mark as inline.
93550         * lib/md5.c (set_uint32): Likewise.
93551         * lib/sha1.c (set_uint32): Likewise.
93552         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93553         * m4/md5.m4 (gl_MD5): Likewise.
93554         * m4/sha1.m4 (gl_SHA1): Likewise.
93556 2008-01-31  Jim Meyering  <meyering@redhat.com>
93558         Use "sizeof VAR", rather than a literal "4".
93559         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93560         * lib/md4.c (md4_read_ctx): Likewise.
93561         * lib/sha1.c (sha1_read_ctx): Likewise.
93563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93565         * tests/test-sha1.c: New file, based on test-md5.c.
93567         * modules/crypto/sha1-tests: New file.
93569 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93571         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93573 2008-01-31  Jim Meyering  <meyering@redhat.com>
93575         Prefer "sizeof v" over the equivalent "4".
93576         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93577         * lib/md5.c (set_uint32): Likewise.
93578         * lib/sha1.c (set_uint32): Likewise.
93580 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93582         * lib/sha1.c (set_uint32): Mark function as static.
93584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93586         md2: clarify comments to say that alignment is not required.
93587         * lib/md2.h: Remove warning about alignment in comment.
93588         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93589         never been required.
93591 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93593         md4: adapt alignment constraint fix from sha1.
93594         * lib/md4.c (set_uint32): New function, from sha1.c
93595         (md4_read_ctx): Use it.
93596         (md4_finish_ctx): Doc fix.
93597         * lib/md4.h: Doc fix.
93599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93601         md5: adapt alignment constraint fix from sha1.
93602         * lib/md5.c (set_uint32): New function, from sha1.c
93603         (md5_read_ctx): Use it.
93604         (md5_finish_ctx): Doc fix.
93605         * lib/md5.h: Doc fix.
93607 2008-01-30  Peter Palfrader  <weasel@debian.org>
93609         sha1: remove the result buffer alignment constraint
93610         * lib/sha1.c (set_uint32): New function.
93611         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93612         constraint.
93613         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93614         * lib/sha1.h: Likewise.
93616 2008-01-30  Andreas Schwab  <schwab@suse.de>
93617             Bruno Haible  <bruno@clisp.org>
93619         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93620         correct definition of LDBL_MIN_EXP.
93622 2008-01-30  Karl Berry  <karl@gnu.org>
93624         * config/srclist-update: try to preserve x bit on updates.
93625         * config/srclistvars.sh: update for karl.
93627 2008-01-29  Jim Meyering  <meyering@redhat.com>
93629         vasnprintf.c: Avoid warning about unused label
93630         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93631         "overflow" label definition and associated code with the
93632         same cpp condition that guards the sole use of that label.
93634 2008-01-26  Bruno Haible  <bruno@clisp.org>
93636         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93637         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93638         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93639         * lib/isnanl-nolibm.h (isnanl): Likewise.
93640         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93642 2008-01-26  Bruno Haible  <bruno@clisp.org>
93644         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93645         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93647 2008-01-26  Bruno Haible  <bruno@clisp.org>
93649         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93650         GCC >= 4.0 built-in.
93651         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93653 2008-01-26  Bruno Haible  <bruno@clisp.org>
93655         Rename isnan, applicable to 'double' only, to isnand.
93656         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93657         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93658         (configure.ac): Update.
93659         (Include): Replace "isnan.h" with "isnand.h".
93660         * m4/isnand.m4: Renamed from m4/isnan.m4.
93661         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93662         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93663         instead of isnan.c.
93664         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93665         instead of HAVE_ISNAN_IN_LIBC.
93666         (isnand): Renamed from isnan.
93667         * lib/isnand.c: New file.
93668         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93669         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93670         (Makefile.am): Update.
93671         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93672         Include isnand.h instead of isnan.h.
93673         (main): Test isnand instead of isnan.
93674         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93675         isnan-nolibm.
93676         * modules/frexp (Depends-on): Likewise.
93677         * modules/frexp-tests (Depends-on): Likewise.
93678         * modules/frexp-nolibm (Depends-on): Likewise.
93679         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93680         * modules/isfinite (Depends-on): Likewise.
93681         * modules/round-tests (Depends-on): Likewise.
93682         * modules/signbit (Depends-on): Likewise.
93683         * modules/signbit-tests (Depends-on): Likewise.
93684         * modules/snprintf-posix (Depends-on): Likewise.
93685         * modules/sprintf-posix (Depends-on): Likewise.
93686         * modules/trunc-tests (Depends-on): Likewise.
93687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93694         * modules/vasnprintf-posix (Depends-on): Likewise.
93695         * modules/vasprintf-posix (Depends-on): Likewise.
93696         * modules/vfprintf-posix (Depends-on): Likewise.
93697         * modules/vsnprintf-posix (Depends-on): Likewise.
93698         * modules/vsprintf-posix (Depends-on): Likewise.
93699         * lib/frexp.c: Include isnand.h instead of isnan.h.
93700         (ISNAN): Set to isnand instead of isnan.
93701         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93702         (gl_isfinited): Use isnand instead of isnan.
93703         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93704         (gl_signbitd): Use isnand instead of isnan.
93705         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93706         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93707         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93708         (main): Use isnand instead of isnan.
93709         * tests/test-round1.c: Include isnand.h.
93710         (main): Use isnand instead of isnan.
93711         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93712         (ISNAN): Set to isnand instead of isnan.
93713         * tests/test-trunc1.c: Include isnand.h.
93714         (main): Use isnand instead of isnan.
93715         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93716         (equal): Use isnand instead of isnan.
93717         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93718         isnand-nolibm.
93719         * NEWS: Mention the change.
93721 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93722             Bruno Haible  <bruno@clisp.org>
93724         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93725         the GCC builtins for signbits are present and set
93726         REPLACE_SIGNBIT_USING_GCC if so.
93727         * lib/math.in.h (signbit): Define using GCC builtins if
93728         REPLACE_SIGNBIT_USING_GCC is set.
93729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93730         REPLACE_SIGNBIT_USING_GCC.
93731         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93733 2008-01-25  Jim Meyering  <meyering@redhat.com>
93735         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93736         * lib/poll.c: Include <config.h>, not "config.h".
93737         * tests/test-getaddrinfo.c: Likewise.
93739 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93741         * modules/sockets-tests: New file.
93743 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93745         * modules/sockets: New module, can be used to call WSA_Startup and
93746         WSA_Cleanup when needed.
93748         * lib/sockets.h, lib/sockets.c: New files.
93750         * m4/sockets.m4: New file.
93752         * tests/test-sockets.c: New file.
93754 2008-01-19  Bruno Haible  <bruno@clisp.org>
93756         * doc/posix-headers: Renamed from doc/headers.
93757         * doc/posix-functions: Renamed from doc/functions.
93758         * doc/gnulib.texi: Update.
93760 2008-01-19  Bruno Haible  <bruno@clisp.org>
93762         * doc/glibc-functions/strcasestr.texi: Include contents of
93763         doc/functions/strcasestr.texi, fixing the list of platforms.
93764         * doc/functions/strcasestr.texi: Remove file.
93766 2008-01-19  Bruno Haible  <bruno@clisp.org>
93768         * doc/glibc-functions/memmem.texi: Include contents of
93769         doc/functions/memmem.texi.
93770         * doc/functions/memmem.texi: Remove file.
93772 2008-01-18  Bruno Haible  <bruno@clisp.org>
93774         * doc/glibc-functions/*.texi: New files.
93775         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93776         to use the new files.
93778 2008-01-17  Bruno Haible  <bruno@clisp.org>
93780         * tests/test-gethostname.c (main): Fix printf statement.
93782 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93784         * modules/gethostname-tests: New file.
93786         * tests/test-gethostname.c: New file.
93788 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93790         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93791         used by the UNAME case.  Reported by Bruno Haible
93792         <bruno@clisp.org>.
93794 2008-01-17  Eric Blake  <ebb9@byu.net>
93796         Convert c-strcasestr to be more efficient.
93797         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93798         (Depends-on): Add c-strcase, remove malloca, strnlen.
93799         * tests/test-c-strcasestr.c (main): Enhance test.
93800         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93802 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93804         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93805         Use it in creating po/Makevars.
93807 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93809         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93810         Applications that requires it should initialize libgcrypt
93811         manually.
93813 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93815         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93817 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93819         Fix problem with getdate on mingw32 reported by Simon Josefsson
93820         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93821         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93822         tzname", when deciding whether to declare tzname.
93823         * lib/strftime.c (tzname): Likewise.
93825 2008-01-15  Bruno Haible  <bruno@clisp.org>
93827         Work around a MacOS X 10.5 bug in frexpl().
93828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93829         * doc/functions/frexpl.texi: Document the bug.
93830         Reported by Elias Pipping <pipping@gentoo.org>.
93832 2008-01-14  Eric Blake  <ebb9@byu.net>
93834         Touch up previous patch.
93835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93836         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93838         Convert strcasestr module to use Two-Way algorithm.
93839         * modules/strcasestr-simple: New module, based on the old
93840         strcasestr, but with Two-Way rather than KMP.
93841         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93842         * lib/string.in.h (rpl_strcasestr): Declare.
93843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93844         performance.
93845         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93846         * modules/string (Makefile.am): Support strcasestr.
93847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93848         * modules/strcasestr-tests (Depends-on): Check for alarm.
93849         * tests/test-strcasestr.c: Augment test.
93850         * lib/str-two-way.h: Clean up stray macro.
93851         * NEWS: Document new module.
93852         * MODULES.html.sh (string handling): Likewise.
93853         * doc/functions/strcasestr.texi: New file.
93854         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93855         here, since it is not a POSIX function.
93857 2008-01-14  Colin Watson  <cjwatson@debian.org>
93858             Bruno Haible  <bruno@clisp.org>
93860         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93861         works fine; if not, set REPLACE_STRSIGNAL.
93862         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93864         REPLACE_STRSIGNAL.
93865         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93866         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93867         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93869 2008-01-14  Bruno Haible  <bruno@clisp.org>
93871         * modules/strsignal (Include): Change to <string.h>.
93873 2008-01-14  Colin Watson  <cjwatson@debian.org>
93875         * modules/argp (Notice): Add a notice recommending to change
93876         XGETTEXT_OPTIONS.
93877         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93879 2008-01-13  Colin Watson  <cjwatson@debian.org>
93881         * modules/strsignal-tests: New file.
93882         * tests/test-strsignal.c: New file.
93884         * lib/strsignal.c: New file, from glibc with modifications.
93885         * lib/siglist.h: New file, from glibc with modifications.
93886         * lib/string.in.h (strsignal): New declaration.
93887         * m4/strsignal.m4: New file.
93888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93889         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93890         * modules/strsignal: New file.
93891         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93892         HAVE_DECL_STRSIGNAL.
93894 2008-01-13  Bruno Haible  <bruno@clisp.org>
93896         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93897         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93898         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93901 2008-01-13  Bruno Haible  <bruno@clisp.org>
93903         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93904         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93905         * lib/argp.h (__attribute__): Likewise.
93906         * lib/c-stack.c (__attribute__): Likewise.
93907         * lib/error.h (__attribute__): Likewise.
93908         * lib/fts.c (__attribute__): Likewise.
93909         * lib/openat.h (__attribute__): Likewise.
93910         * lib/stdio.in.h (__attribute__): Likewise.
93911         * lib/string.in.h (__attribute__): Likewise.
93912         * lib/utimens.c (__attribute__): Likewise.
93913         * lib/vasnprintf.h (__attribute__): Likewise.
93914         * lib/xalloc.h (__attribute__): Likewise.
93915         * lib/xprintf.h (__attribute__): Likewise.
93916         * lib/xstrtol.h (__attribute__): Likewise.
93917         * lib/xvasprintf.h (__attribute__): Likewise.
93919 2008-01-12  Bruno Haible  <bruno@clisp.org>
93921         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93922         * doc/glibc-headers/a.out.texi: New file.
93923         * doc/glibc-headers/aliases.texi: New file.
93924         * doc/glibc-headers/alloca.texi: New file.
93925         * doc/glibc-headers/ar.texi: New file.
93926         * doc/glibc-headers/argp.texi: New file.
93927         * doc/glibc-headers/argz.texi: New file.
93928         * doc/glibc-headers/byteswap.texi: New file.
93929         * doc/glibc-headers/crypt.texi: New file.
93930         * doc/glibc-headers/endian.texi: New file.
93931         * doc/glibc-headers/envz.texi: New file.
93932         * doc/glibc-headers/err.texi: New file.
93933         * doc/glibc-headers/error.texi: New file.
93934         * doc/glibc-headers/execinfo.texi: New file.
93935         * doc/glibc-headers/fpu_control.texi: New file.
93936         * doc/glibc-headers/fstab.texi: New file.
93937         * doc/glibc-headers/fts.texi: New file.
93938         * doc/glibc-headers/getopt.texi: New file.
93939         * doc/glibc-headers/ieee754.texi: New file.
93940         * doc/glibc-headers/ifaddrs.texi: New file.
93941         * doc/glibc-headers/libintl.texi: New file.
93942         * doc/glibc-headers/mcheck.texi: New file.
93943         * doc/glibc-headers/mntent.texi: New file.
93944         * doc/glibc-headers/obstack.texi: New file.
93945         * doc/glibc-headers/paths.texi: New file.
93946         * doc/glibc-headers/printf.texi: New file.
93947         * doc/glibc-headers/pty.texi: New file.
93948         * doc/glibc-headers/resolv.texi: New file.
93949         * doc/glibc-headers/shadow.texi: New file.
93950         * doc/glibc-headers/sysexits.texi: New file.
93951         * doc/glibc-headers/ttyent.texi: New file.
93953 2008-01-12  Jim Meyering  <meyering@redhat.com>
93955         announce-gen: emit Gnulib's git-based version string.
93956         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93957         New option --gnulib-version=V, where V is expected to be
93958         the output of running git describe in the gnulib directory.
93959         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93960         not useful, and plan to stop publishing an xdelta file with each
93961         coreutils release.
93963         * build-aux/announce-gen: Also check for lzma-compressed files.
93965 2008-01-11  Bruno Haible  <bruno@clisp.org>
93967         * tests/test-memmem.c (main): Increase maximum allowed time.
93968         * tests/test-strstr.c (main): Likewise.
93970 2008-01-11  Bruno Haible  <bruno@clisp.org>
93972         * doc/functions/memmem.texi: Add more precisions about platforms.
93973         * doc/functions/strstr.texi: Likewise.
93975 2008-01-10  Eric Blake  <ebb9@byu.net>
93977         * m4/strstr.m4: Delete cruft from copy-n-paste.
93978         Reported by Bruno Haible.
93980 2008-01-10  Bruno Haible  <bruno@clisp.org>
93982         Make c-strstr rely on strstr.
93983         * lib/c-strstr.c: Don't include str-kmp.h.
93984         (c_strstr): Define in terms of strstr.
93985         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93986         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93988 2008-01-10  Bruno Haible  <bruno@clisp.org>
93990         * doc/gnulib.texi (String Functions in C Locale): New section.
93991         * doc/c-ctype.texi: New file.
93992         * doc/c-strcase.texi: New file.
93993         * doc/c-strcaseeq.texi: New file.
93994         * doc/c-strcasestr.texi: New file.
93995         * doc/c-strstr.texi: New file.
93996         * doc/c-strtod.texi: New file.
93997         * doc/c-strtold.texi: New file.
93999 2008-01-10  Eric Blake  <ebb9@byu.net>
94001         * lib/relocatable.h: Fix a comment.
94003 2008-01-10  Eric Blake  <ebb9@byu.net>
94005         Share two-way algorithm.
94006         * lib/str-two-way.h: New file, merged from...
94007         * lib/memmem.c: ...here...
94008         * lib/strstr.c: ...and here.
94009         * modules/memmem (Files): Use it.
94010         * modules/strstr (Files): Likewise.
94012         Avoid quadratic strstr implementations.
94013         * lib/strstr.c: New file.
94014         * m4/strstr.m4: Likewise.
94015         * modules/strstr: Likewise.
94016         * modules/strstr-tests: Likewise.
94017         * tests/test-strstr.c: Likewise.
94018         * lib/string.in.h (rpl_strstr): Declare.
94019         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94021         * modules/string (Makefile.am): Likewise.
94022         * MODULES.html.sh (string handling): Mention new module.
94023         * doc/functions/strstr.texi (strstr): Document the bug.
94025 2008-01-10  Bruno Haible  <bruno@clisp.org>
94027         * lib/relocatable.h (relocate): State whether result is freshly
94028         allocated or not.
94029         * lib/relocatable.c (relocate): Return a freshly allocated string
94030         instead of a pointer to a privately held string.
94031         Reported by Sylvain Beucler <beuc@gnu.org>.
94033 2008-01-10  Colin Watson  <cjwatson@debian.org>
94035         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94036         s/S_ISNLK/S_ISLNK/.
94038 2008-01-09  Bruno Haible  <bruno@clisp.org>
94040         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94041         and other files.
94042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94043         if it's only a guess.
94044         * modules/memmem: Simplify by depending on memmem-simple.
94046 2008-01-09  Bruno Haible  <bruno@clisp.org>
94048         Work around OpenBSD 4.0 tdelete() bug.
94049         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94050         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94051         macros and don't redefine the enum values.
94052         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94053         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94054         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94056 2008-01-09  Bruno Haible  <bruno@clisp.org>
94058         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94059         (main): Don't perform the tests if setlocale did not install a UTF-8
94060         locale. Needed on OpenBSD 4.0.
94061         * modules/wcwidth-tests (Depends-on): Add localcharset.
94063 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94065         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94066         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94067         * NEWS: announce this.
94068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94070 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94071         and Eric Blake  <ebb9@byu.net>
94073         Add memmem-simple module.
94074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94075         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94076         * modules/memmem-simple: New file.
94077         * modules/memmem (Description): Tweak.
94078         * MODULES.html.sh (string handling): Mention new module.
94079         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94080         addressed by memmem-simple.
94081         * NEWS: Document the difference.
94083 2008-01-09  Eric Blake  <ebb9@byu.net>
94085         Give gcc some memmem optimization hints.
94086         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94087         (strcasestr): Declare as pure.
94088         * modules/memmem (Maintainer): Claim my implementation.
94090 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94092         Support AIX 6.1 and higher.
94093         * build-aux/config.libpath: Likewise.
94094         * build-aux/config.rpath: Likewise.
94096 2008-01-08  Jim Meyering  <meyering@redhat.com>
94097             Bruno Haible  <bruno@clisp.org>
94099         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94100         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94101         Reported by Peter Fales in
94102         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94104 2008-01-08  Bruno Haible  <bruno@clisp.org>
94106         * modules/unictype/category-of (Depends-on): Add
94107         unictype/category-none.
94108         * modules/unictype/category-and-tests (Depends-on): Add
94109         unictype/category-{L,N,Lu,Nd}.
94110         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94111         * modules/unictype/category-or-tests (Depends-on): Add
94112         unictype/category-{L,N}.
94113         * modules/unictype/category-name-tests (Depends-on): Add
94114         unictype/category-{Z,Nl}.
94115         Reported by Simon Josefsson.
94117 2008-01-08  Bruno Haible  <bruno@clisp.org>
94119         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94120         convention better.
94121         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94122         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94123         Reported by Peter Miller <millerp@canb.auug.org.au>.
94125 2008-01-08  Eric Blake  <ebb9@byu.net>
94127         Rewrite memmem to guarantee linear complexity without malloc.
94128         * lib/memmem.c (memmem): Use Two-Way rather than
94129         Knuth-Morris-Pratt, to allow O(1) space usage.
94130         (critical_factorization, two_way_short_needle)
94131         (two_way_long_needle): New functions.
94132         (knuth_morris_pratt): Delete.
94133         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94134         Add stdint.
94135         * tests/test-memmem.c (main): Add tests for periodic needle and
94136         sublinear performance.
94137         * doc/functions/memmem.texi (memmem): Document other deficiencies
94138         in cygwin and older glibc.
94140 2008-01-08  Bruno Haible  <bruno@clisp.org>
94142         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94143         augmentation.
94145 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94147         Add a configure time option: --disable-acl.
94148         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94149         AC_ARG_ENABLE(acl).
94151 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94153         * tests/test-localename.c: Don't include obsolete "setenv.h".
94155         * modules/localename-tests (Depends-on): Need unsetenv.
94157 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94159         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94161 2008-01-06  Colin Watson  <cjwatson@debian.org>
94163         * users.txt: Add man-db.
94165 2008-01-07  Bruno Haible  <bruno@clisp.org>
94167         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94168         previous section name.
94170 2008-01-07  Bruno Haible  <bruno@clisp.org>
94172         * lib/progname.c (set_program_name): Don't strip off a leading
94173         "lt-" prefix outside a .libs directory.
94174         Suggested by Paul Eggert.
94176 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94177             Bruno Haible  <bruno@clisp.org>
94179         Improve memory cleanup in 'relocatable' module.
94180         * lib/relocatable.h (compute_curr_prefix): Change return type to
94181         'char *'.
94182         * lib/relocatable.c (compute_curr_prefix): Change return type to
94183         'char *'. Free curr_installdir after use.
94184         (relocate): Free curr_prefix_better after use.
94185         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94187 2008-01-01  Bruno Haible  <bruno@clisp.org>
94189         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94190         failure on older glibc systems.
94191         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94193 2008-01-05  Eric Blake  <ebb9@byu.net>
94195         Avoid quadratic system memmem.
94196         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94197         Reported by Ralf Wildenhues.
94199         Fix memmem test for mingw.
94200         * modules/memmem-tests (configure.ac): Check for alarm.
94201         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94202         it.
94203         * doc/functions/memmem.texi: New file.
94204         * doc/gnulib.texi (Function Substitutes): Add memmem.
94205         Reported by Bruno Haible.
94207 2008-01-04  Bruno Haible  <bruno@clisp.org>
94209         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94210         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94211         gl_HEADER_STRING_H_DEFAULTS.
94213 2008-01-04  Eric Blake  <ebb9@byu.net>
94215         Shorten duration of memmem test.
94216         * tests/test-memmem.c (main): Use alarm to declare failure if test
94217         is taking too long.
94218         Reported by Ralf Wildenhues.
94220 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94222         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94223         string, needed by strerror.
94225 2008-01-03  Colin Watson  <cjwatson@debian.org>
94226             Bruno Haible  <bruno@clisp.org>
94228         * doc/gnulib-tool.texi (Localization): New section.
94230 2008-01-02  Bruno Haible  <bruno@clisp.org>
94232         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94233         variables to 'unsigned char *' type.
94234         Reported by Paul Eggert.
94236 2008-01-02  Jim Meyering  <jim@meyering.net>
94238         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94240 2007-12-31  Jim Meyering  <jim@meyering.net>
94242         Avoid use of private FTS type name.
94243         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94245 2007-12-30  Karl Berry  <karl@gnu.org>
94247         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94248         work around defect in Texinfo and/or the standalone Info browser.
94250 2007-12-30  Bruno Haible  <bruno@clisp.org>
94252         Unify 5 copies of the KMP code.
94253         * lib/str-kmp.h: New file.
94254         * lib/c-strcasestr.c: Include str-kmp.h.
94255         (knuth_morris_pratt): Remove function.
94256         (c_strcasestr): Update.
94257         * lib/c-strstr.c: Include str-kmp.h.
94258         (knuth_morris_pratt): Remove function.
94259         (c_strcasestr): Update.
94260         * lib/mbscasestr.c: Include str-kmp.h.
94261         (knuth_morris_pratt_unibyte): Remove function.
94262         * lib/mbsstr.c: Include str-kmp.h.
94263         (knuth_morris_pratt_unibyte): Remove function.
94264         * lib/strcasestr.c: Include str-kmp.h.
94265         (knuth_morris_pratt): Remove function.
94266         (strcasestr): Update.
94267         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94268         * modules/c-strstr (Files): Likewise.
94269         * modules/mbscasestr (Files): Likewise.
94270         * modules/mbsstr (Files): Likewise.
94271         * modules/strcasestr (Files): Likewise.
94272         Suggested by Paul Eggert.
94274 2007-12-30  Bruno Haible  <bruno@clisp.org>
94276         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94277         defined.
94279 2007-12-30  Bruno Haible  <bruno@clisp.org>
94281         * lib/xmalloca.h: Include xalloc.h.
94282         (xnmalloca): New macro.
94284 2007-12-30  Bruno Haible  <bruno@clisp.org>
94286         * lib/malloca.h (nmalloca): New macro.
94287         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94288         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94289         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94290         knuth_morris_pratt_multibyte): Likewise.
94291         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94292         knuth_morris_pratt_multibyte): Likewise.
94293         * lib/memmem.c (knuth_morris_pratt): Likewise.
94294         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94296 2007-12-25  Bruno Haible  <bruno@clisp.org>
94298         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94299         * lib/glob.c: Don't include openat.h.
94300         (link_exists2_p): Add back the code that deals with the
94301         !GLOB_ALTDIRFUNC case.
94302         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94303         let it do the filename concatenation.
94304         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94305         * modules/glob (Depends-on): Remove openat.
94307 2007-12-31  Bruno Haible  <bruno@clisp.org>
94309         * modules/dirfd (License): Change to LGPLv2+.
94310         Approved by Jim Meyering.
94312 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94314         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94315         when multiplying M by sizeof (size_t).
94317 2007-12-10  Martin Lambers  <marlam@marlam.de>
94319         Override getpagesize on mingw.
94320         * lib/getpagesize.c: New file.
94321         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94322         * modules/getpagesize (Files): Add lib/getpagesize.c.
94323         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94325         REPLACE_GETPAGESIZE.
94326         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94328 2007-12-25  Bruno Haible  <bruno@clisp.org>
94330         * modules/localcharset (Notice): New field.
94331         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94332         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94334 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94335             Bruno Haible  <bruno@clisp.org>
94337         Avoid using the syntax symbol() in formatted documentation.
94338         * MODULES.html.sh (func_module): When replacing symbol() with a
94339         hyperlink, remove the parentheses. Show an error if some remain.
94340         Recognize and render the '...' syntax.
94341         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94342         Rework. Add paragraph about GCC's inlining.
94343         * doc/alloca.texi: Likewise.
94344         * doc/error.texi: Remove parentheses from symbol reference.
94345         * doc/gnulib-intro.texi: Likewise.
94346         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94347         * modules/fnmatch (Description): Reword to say "the ... function".
94348         * modules/full-read (Description): Likewise.
94349         * modules/full-write (Description): Likewise.
94350         * modules/safe-read (Description): Likewise.
94351         * modules/safe-write (Description): Likewise.
94352         * modules/strchrnul (Description): Likewise.
94353         * modules/trim (Description): Likewise.
94354         * modules/error (Description): Remove parentheses from symbol
94355         references.
94356         * modules/verror (Description): Likewise.
94357         Reported by Karl Berry.
94359 2007-12-25  Bruno Haible  <bruno@clisp.org>
94361         Fixup after 2007-10-16 commit.
94362         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94364 2007-12-24  Bruno Haible  <bruno@clisp.org>
94366         Make --enable-relocatable work with DESTDIR.
94367         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94368         to compute installdir from destprog.
94369         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94370         also set the RELOC_DESTDIR variable.
94371         Reported by Левашев Иван <octagram@bluebottle.com>.
94373 2007-12-24  Bruno Haible  <bruno@clisp.org>
94375         Fix link error due to xalloc_die().
94376         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94377         of xreadlink.
94378         * lib/relocwrapper.c: Update comments.
94379         * build-aux/install-reloc: Remove xreadlink.c from file list.
94380         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94381         xreadlink.c.
94382         Reported by Левашев Иван <octagram@bluebottle.com>.
94384 2007-12-24  Bruno Haible  <bruno@clisp.org>
94386         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94387         * lib/setenv.h: Remove file.
94388         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94389         lib/setenv.h.
94390         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94391         (Depends-on): Add stdlib.
94392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94393         gl_FUNC_UNSETENV.
94394         (Include): Replace setenv.h with <stdlib.h>.
94395         * modules/unsetenv: New file.
94396         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94397         * lib/unsetenv.c: Include <stdlib.h> first.
94398         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94399         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94400         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94401         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94402         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94403         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94405         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94406         * doc/functions/unsetenv.texi: Update.
94407         * modules/xsetenv (Depends-on): Add unsetenv.
94408         * modules/getdate (Depends-on): Likewise.
94409         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94410         * lib/xsetenv.c: Don't include setenv.h.
94411         * lib/getdate.y: Likewise.
94412         * lib/relocwrapper.c: Likewise.
94413         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
94414         (Depends-on): Add stdlib.
94415         * NEWS: Mention the changes.
94416         Reported by Левашев Иван <octagram@bluebottle.com>.
94418 2007-12-23  Bruno Haible  <bruno@clisp.org>
94420         * lib/memmem.c (memmem): Use lowercase variable names. Tab
94421         indentation.
94423 2007-12-23  Bruno Haible  <bruno@clisp.org>
94425         * lib/c-strcasestr.c: Add more comments.
94426         * lib/c-strstr.c: Likewise.
94427         * lib/mbscasestr.c: Likewise.
94428         * lib/mbsstr.c: Likewise.
94429         * lib/strcasestr.c: Likewise.
94430         * lib/memmem.c: Likewise.
94432 2007-12-23  Bruno Haible  <bruno@clisp.org>
94434         * tests/test-memmem.c: Include <string.h> first.
94436 2007-12-22  Bruno Haible  <bruno@clisp.org>
94438         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94439         the contents of $testsbase.
94440         Reported by Ralf Wildenhues.
94442 2007-12-22  Bruno Haible  <bruno@clisp.org>
94444         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94445         two variables local_ldadd_before, local_ldadd_last.
94447 2007-12-20  Eric Blake  <ebb9@byu.net>
94449         Work around circular library issue when cross-compiling.
94450         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94451         that progname.o does not need to pull in rpl_memcmp.
94453 2007-12-19  Eric Blake  <ebb9@byu.net>
94455         Fix memmem to avoid O(n^2) worst-case complexity.
94456         * lib/memmem.c (knuth_morris_pratt): New function.
94457         (memmem): Use it if first few naive iterations fail.
94458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94459         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94460         * modules/memchr (License): Likewise.
94461         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94462         malloca.
94463         * tests/test-memmem.c: Rewrite, borrowing ideas from
94464         test-mbsstr1.c; the old version wouldn't even compile!
94465         * modules/memmem-tests: New file.
94466         * lib/string.in.h (rpl_memmem): Add declaration.
94467         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94469         REPLACE_MEMMEM.
94471 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94473         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94474         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94475         before any system include files, and undef after them all.  This
94476         should fix a problem on VMS reported by John E. Malmberg in
94477         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94479 2007-12-17  Eric Blake  <ebb9@byu.net>
94481         Revert addition of verify, for BSD/OS.
94482         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94483         can't handle large files, for the sake of obsolete platforms.
94484         * modules/fseeko (Depends-on): Remove verify.
94485         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94486         * doc/functions/ftello.texi (ftello): Likewise.
94487         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94488         Reported by Larry Jones.
94490 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94492         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94493         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94495 2007-12-17  Jim Meyering  <meyering@redhat.com>
94497         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94498         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94499         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94500         * modules/getcwd (Depends-on): Add openat.
94501         Reported by Petr Salinger.
94503 2007-12-17  Bruno Haible  <bruno@clisp.org>
94505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94506         avoid a segmentation fault of the configure test on x86_64 systems.
94508 2007-12-15  Jim Meyering  <meyering@redhat.com>
94510         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94512 2007-12-13  Eric Blake  <ebb9@byu.net>
94514         Another fseek test.
94515         * tests/test-fseek.c (main): Also test ungetc handling.
94516         * tests/test-fseeko.c (main): Likewise.
94517         * modules/fseeko (Depends-on): Add verify.
94518         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94519         large.
94520         Reported by Larry Jones.
94522         Fix fseeko on mingw.
94523         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94524         seek.
94526         Beef up fseek tests.
94527         * tests/test-fseek.c (main): Also test eof handling.
94528         * tests/test-fseeko.c (main): Likewise.
94529         Reported by Larry Jones.
94531 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94533         Fix fseeko on BSD-based platforms.
94534         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94535         successful seek.
94537 2007-12-12  Eric Blake  <ebb9@byu.net>
94539         Allow circular dependency of separate libtests.a
94540         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94541         when use_libtests.
94543 2007-12-11  Eric Blake  <ebb9@byu.net>
94545         Fix bug with -0.0L in previous patch.
94546         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94547         * tests/test-isnan.c (main): Also test on zeroes.
94548         * tests/test-isnanf.c (main): Likewise.
94549         * tests/test-isnanl.h (main): Likewise.
94551         Detect pseudo-denormals on x86 even when cross-compiling.
94552         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94553         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94554         invalid bit patterns that happen to satisfy ==.
94556         Avoid link failures with separate libtests.a.
94557         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94558         last, to satisfy circular dependencies.
94560 2007-12-11  Eric Blake  <ebb9@byu.net>
94561         and Bruno Haible  <bruno@clisp.org>
94563         Fix OpenBSD 4.0 <float.h> handling of long double.
94564         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94565         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94566         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94568 2007-12-11  Jim Meyering  <meyering@redhat.com>
94570         * users.txt: Add libvirt.
94572         Support versions of autoconf prior to 2.59c.
94573         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94574         if it is not already defined.
94576 2007-12-09  Bruno Haible  <bruno@clisp.org>
94578         Let 'gnulib-tool --import' collect sources needed for the tests in
94579         tests/ rather than in lib/.
94580         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94581         argument. If true, add rules to generate libtests.a, and put libtests.a
94582         into $(LDADD). Consider source files in subdirectories and set
94583         uses_subdirs.
94584         (func_emit_initmacro_start, func_emit_initmacro_end,
94585         func_emit_initmacro_done): Pass all arguments explicitly.
94586         (func_import): Determine two module lists main_modules,
94587         testsrelated_modules. Determine use_libtests. Determine two variables
94588         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94589         instead of just sed_transform_lib_file. Determine two variables
94590         main_files and testsrelated_files. Compute 'files' as the union of
94591         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94592         func_add_or_update. In the generated gnulib-comp.m4, collect the
94593         object files for tests/ in different variables than those for lib/.
94594         Substitute LIBTESTS_LIBDEPS.
94595         (func_create_testdir): Combine the uses_subdirs results from
94596         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94598 2007-12-09  Bruno Haible  <bruno@clisp.org>
94600         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94601         the build-aux directory.
94603 2007-12-09  Bruno Haible  <bruno@clisp.org>
94605         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94606         introduced on 2006-09-09.
94608 2007-12-07  Jim Meyering  <meyering@redhat.com>
94610         Let these macros work also with autoconf-2.59.
94611         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94612         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94613         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94615 2007-12-06  Jim Meyering  <meyering@redhat.com>
94617         Avoid a configure-time syntax error in gl_FUNC_ACL.
94618         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94619         function in each branch, before testing the cache variable.
94621 2007-12-04  Eric Blake  <ebb9@byu.net>
94623         Make scripts executable.
94624         * build-aux/config.guess: Add execute permissions.
94625         * build-aux/config.sub: Likewise.
94626         * build-aux/gendocs.sh: Likewise.
94628         Fix frexp on mingw.
94629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94630         cross-compiling.
94631         * doc/functions/frexp.texi (frexp): Document the bug.
94633         Make cygwin fseeko check more reliable.
94634         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94635         version numbers, rather than unrelated feature check.
94636         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94637         * doc/functions/ftello.texi (ftello): Likewise.
94638         Reported by Bruno Haible.
94640         * m4/strerror.m4: Bump version number.
94642 2007-12-03  Bruno Haible  <bruno@clisp.org>
94644         * doc/functions/mprotect.texi: Mention the mingw problem.
94646 2007-12-03  Eric Blake  <ebb9@byu.net>
94648         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94649         REPLACE_STRERROR is initialized before this macro.
94651 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94653         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94654         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94655         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94656         put -lsec in even for programs other than 'ls'.  This fixes a problem
94657         for gettext reported by Bruno Haible in
94658         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94659         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94660         Add support for Solaris 10.  This isn't efficient, but should get the
94661         job done for now.
94663 2007-12-03  James Youngman  <jay@gnu.org>
94665         * doc/regexprops-generic.texi: change "an close-group" to "a
94666         close-group" and "illegal" to "not allowed".
94668 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94670         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94671         pr_byname.h. Needed for the rare case when the maintainer has done
94672         "make maintainer-clean" in the source directory and then attempts a
94673         build outside the source directory.
94674         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94675         scripts_byname.h.
94677 2007-12-02  Martin Lambers  <marlam@marlam.de>
94678             Bruno Haible  <bruno@clisp.org>
94680         * lib/getpagesize.h: Remove file.
94681         * lib/unistd.in.h: Include declaration of getpagesize here.
94682         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94683         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94684         HAVE_SYS_PARAM_H.
94685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94686         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94687         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94688         (Depends-on): Add unistd.
94689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94690         (Include): Use <unistd.h> instead of getpagesize.h.
94691         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94692         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94693         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94694         gl_GETPAGESIZE invocation, already handled by module dependency.
94695         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94697 2007-12-02  Bruno Haible  <bruno@clisp.org>
94699         * modules/strings-tests: New file.
94700         * tests/test-strings.c: New file.
94702         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94703         * lib/strings.in.h: New file.
94704         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94705         * m4/strings_h.m4: New file.
94706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94707         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94708         * modules/strings: New file.
94709         * modules/string (Makefile.am): Update.
94710         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94711         Reported by Karl Berry.
94713 2007-12-01  Eric Blake  <ebb9@byu.net>
94715         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94716         accommodate fix in cygwin 1.5.25.
94718 2007-12-01  Jim Meyering  <meyering@redhat.com>
94720         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94721         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94722         that would inhibit utf8-optimization of a regexp containing line-
94723         or buffer-anchors, e.g., `^', `$'.
94725 2007-11-30  Bruno Haible  <bruno@clisp.org>
94727         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94728         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94729         glthread_recursive_lock_init.
94730         * lib/lock.c (glthread_recursive_lock_init)
94731         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94732         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94734 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94736         New function qset_acl, like set_acl but with syscall semantics.
94737         * lib/acl.h (qset_acl): New decl.
94738         * lib/acl.c (qset_acl): New function.
94739         (set_acl): Use new function.  Use more-consistent diagnostics.
94741 2007-11-28  Jim Meyering  <meyering@redhat.com>
94743         * modules/physmem (License): Change from GPL to LGPLv2+.
94745 2007-11-26  Bruno Haible  <bruno@clisp.org>
94747         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94748         'long double' type has excess precision.
94749         Reported by Jim Meyering in
94750         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94752 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94754         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94755         Sync from <http://gnu.org/licenses>.
94756         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94757         with license text from same location.
94758         * doc/maintain.texi, doc/standards.texi:  Sync from
94759         <http://savannah.gnu.org/projects/gnustandards>.
94761 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94762         and Jim Meyering  <meyering@redhat.com>
94764         Adjust getdate' grammar to accept a slightly more regular language.
94765         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94766         Before, the former was rejected.
94767         * lib/getdate.y (digits_to_date_time): New function, factored
94768         out of ...
94769         (number): ...here.  Just call digits_to_date_time.
94770         (hybrid): New non-terminal to handle an <unsigned number,
94771         signed relative offset> sequence consistently.
94773 2007-11-18  Jim Meyering  <meyering@redhat.com>
94775         Pull my changes from coreutils:
94776         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94777         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94778         use of $gnulib_tool_option_extras, so that it's separated from the
94779         preceding argument.
94781         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94782         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94783         parent destination directories before copying a file into place.
94785 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94787         bootstrap: work also with 4-argument variant of AC_INIT
94788         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94790 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94792         Port test-getaddrinfo to Solaris.
94793         Problem reported by Bruno Haible in
94794         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94795         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94796         explanation of setting 'hints'.
94797         Don't reject an implementation merely because it returns EAI_SERVICE.
94798         (EAI_SERVICE): Define to 0 if not defined.
94800 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94802         The license of gnu-make and posix-shell is now "GPLed build tool".
94803         * modules/gnu-make (License): Likewise.
94804         * modules/posix-shell (License): Likewise.
94806         New module posix-shell, for determining a POSIX shell
94807         or perhaps something that is close enough to a POSIX shell.
94808         * m4/posix-shell.m4: New file.
94809         * modules/posix-shell: New file.
94811         * MODULES.html.sh: Mention new module.
94813         New module gnu-make, for determining whether we're using GNU Make.
94814         * m4/gnu-make.m4: New file.
94815         * modules/gnu-make: New file.
94816         * MODULES.html.sh: Mention new module.
94818 2007-11-14  Jim Meyering  <meyering@redhat.com>
94820         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94821         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94822         use this macro to create a function _definition_.
94823         Remove useless "#undef ARGMATCH_DIE".
94825 2007-11-14  Bruno Haible  <bruno@clisp.org>
94827         * lib/config.charset: Update for OpenBSD 4.1.
94828         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94830 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94832         Document 64-bit #if problems in stdint.texi.
94833         * doc/headers/stdint.texi (stdint.h): Mention problems with
94834         64-bit-#if, and how to work around them.
94836         Don't insist on 'long long int' support in the preprocessor.  It
94837         breaks too many things.  For example, PRIdMAX still uses a 'long
94838         long int' format with the latest Sun compiler, even though
94839         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94840         preprocessor problem.  This causes the latest coreutils to dump
94841         core on Solaris 10 sparc with the Sun C compiler.
94842         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94843         the troublesome expressions at configure-time, not at #if-time.
94844         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94845         preprocessor.
94846         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94847         compile-time C checks, done at 'configure'-time.
94848         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94849         * modules/inttypes (Makefile): Substitute the new symbols that
94850         gl_INTTYPES_H now generates.
94851         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94853 2007-11-12  Bruno Haible  <bruno@clisp.org>
94855         Tests for Unicode character classification functions.
94857         * modules/unictype/bidicategory-byname-tests: New file.
94858         * modules/unictype/bidicategory-name-tests: New file.
94859         * modules/unictype/bidicategory-of-tests: New file.
94860         * modules/unictype/bidicategory-test-tests: New file.
94861         * modules/unictype/block-list-tests: New file.
94862         * modules/unictype/block-of-tests: New file.
94863         * modules/unictype/block-test-tests: New file.
94864         * modules/unictype/category-C-tests: New file.
94865         * modules/unictype/category-Cc-tests: New file.
94866         * modules/unictype/category-Cf-tests: New file.
94867         * modules/unictype/category-Cn-tests: New file.
94868         * modules/unictype/category-Co-tests: New file.
94869         * modules/unictype/category-Cs-tests: New file.
94870         * modules/unictype/category-L-tests: New file.
94871         * modules/unictype/category-Ll-tests: New file.
94872         * modules/unictype/category-Lm-tests: New file.
94873         * modules/unictype/category-Lo-tests: New file.
94874         * modules/unictype/category-Lt-tests: New file.
94875         * modules/unictype/category-Lu-tests: New file.
94876         * modules/unictype/category-M-tests: New file.
94877         * modules/unictype/category-Mc-tests: New file.
94878         * modules/unictype/category-Me-tests: New file.
94879         * modules/unictype/category-Mn-tests: New file.
94880         * modules/unictype/category-N-tests: New file.
94881         * modules/unictype/category-Nd-tests: New file.
94882         * modules/unictype/category-Nl-tests: New file.
94883         * modules/unictype/category-No-tests: New file.
94884         * modules/unictype/category-P-tests: New file.
94885         * modules/unictype/category-Pc-tests: New file.
94886         * modules/unictype/category-Pd-tests: New file.
94887         * modules/unictype/category-Pe-tests: New file.
94888         * modules/unictype/category-Pf-tests: New file.
94889         * modules/unictype/category-Pi-tests: New file.
94890         * modules/unictype/category-Po-tests: New file.
94891         * modules/unictype/category-Ps-tests: New file.
94892         * modules/unictype/category-S-tests: New file.
94893         * modules/unictype/category-Sc-tests: New file.
94894         * modules/unictype/category-Sk-tests: New file.
94895         * modules/unictype/category-Sm-tests: New file.
94896         * modules/unictype/category-So-tests: New file.
94897         * modules/unictype/category-Z-tests: New file.
94898         * modules/unictype/category-Zl-tests: New file.
94899         * modules/unictype/category-Zp-tests: New file.
94900         * modules/unictype/category-Zs-tests: New file.
94901         * modules/unictype/category-and-not-tests: New file.
94902         * modules/unictype/category-and-tests: New file.
94903         * modules/unictype/category-byname-tests: New file.
94904         * modules/unictype/category-name-tests: New file.
94905         * modules/unictype/category-none-tests: New file.
94906         * modules/unictype/category-of-tests: New file.
94907         * modules/unictype/category-or-tests: New file.
94908         * modules/unictype/category-test-withtable-tests: New file.
94909         * modules/unictype/combining-class-tests: New file.
94910         * modules/unictype/ctype-alnum-tests: New file.
94911         * modules/unictype/ctype-alpha-tests: New file.
94912         * modules/unictype/ctype-blank-tests: New file.
94913         * modules/unictype/ctype-cntrl-tests: New file.
94914         * modules/unictype/ctype-digit-tests: New file.
94915         * modules/unictype/ctype-graph-tests: New file.
94916         * modules/unictype/ctype-lower-tests: New file.
94917         * modules/unictype/ctype-print-tests: New file.
94918         * modules/unictype/ctype-punct-tests: New file.
94919         * modules/unictype/ctype-space-tests: New file.
94920         * modules/unictype/ctype-upper-tests: New file.
94921         * modules/unictype/ctype-xdigit-tests: New file.
94922         * modules/unictype/decimal-digit-tests: New file.
94923         * modules/unictype/digit-tests: New file.
94924         * modules/unictype/mirror-tests: New file.
94925         * modules/unictype/numeric-tests: New file.
94926         * modules/unictype/property-alphabetic-tests: New file.
94927         * modules/unictype/property-ascii-hex-digit-tests: New file.
94928         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94929         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94930         * modules/unictype/property-bidi-block-separator-tests: New file.
94931         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94932         * modules/unictype/property-bidi-common-separator-tests: New file.
94933         * modules/unictype/property-bidi-control-tests: New file.
94934         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94935         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94936         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94937         * modules/unictype/property-bidi-european-digit-tests: New file.
94938         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94939         * modules/unictype/property-bidi-left-to-right-tests: New file.
94940         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94941         * modules/unictype/property-bidi-other-neutral-tests: New file.
94942         * modules/unictype/property-bidi-pdf-tests: New file.
94943         * modules/unictype/property-bidi-segment-separator-tests: New file.
94944         * modules/unictype/property-bidi-whitespace-tests: New file.
94945         * modules/unictype/property-byname-tests: New file.
94946         * modules/unictype/property-combining-tests: New file.
94947         * modules/unictype/property-composite-tests: New file.
94948         * modules/unictype/property-currency-symbol-tests: New file.
94949         * modules/unictype/property-dash-tests: New file.
94950         * modules/unictype/property-decimal-digit-tests: New file.
94951         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94952         * modules/unictype/property-deprecated-tests: New file.
94953         * modules/unictype/property-diacritic-tests: New file.
94954         * modules/unictype/property-extender-tests: New file.
94955         * modules/unictype/property-format-control-tests: New file.
94956         * modules/unictype/property-grapheme-base-tests: New file.
94957         * modules/unictype/property-grapheme-extend-tests: New file.
94958         * modules/unictype/property-grapheme-link-tests: New file.
94959         * modules/unictype/property-hex-digit-tests: New file.
94960         * modules/unictype/property-hyphen-tests: New file.
94961         * modules/unictype/property-id-continue-tests: New file.
94962         * modules/unictype/property-id-start-tests: New file.
94963         * modules/unictype/property-ideographic-tests: New file.
94964         * modules/unictype/property-ids-binary-operator-tests: New file.
94965         * modules/unictype/property-ids-trinary-operator-tests: New file.
94966         * modules/unictype/property-ignorable-control-tests: New file.
94967         * modules/unictype/property-iso-control-tests: New file.
94968         * modules/unictype/property-join-control-tests: New file.
94969         * modules/unictype/property-left-of-pair-tests: New file.
94970         * modules/unictype/property-line-separator-tests: New file.
94971         * modules/unictype/property-logical-order-exception-tests: New file.
94972         * modules/unictype/property-lowercase-tests: New file.
94973         * modules/unictype/property-math-tests: New file.
94974         * modules/unictype/property-non-break-tests: New file.
94975         * modules/unictype/property-not-a-character-tests: New file.
94976         * modules/unictype/property-numeric-tests: New file.
94977         * modules/unictype/property-other-alphabetic-tests: New file.
94978         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94979         * modules/unictype/property-other-grapheme-extend-tests: New file.
94980         * modules/unictype/property-other-id-continue-tests: New file.
94981         * modules/unictype/property-other-id-start-tests: New file.
94982         * modules/unictype/property-other-lowercase-tests: New file.
94983         * modules/unictype/property-other-math-tests: New file.
94984         * modules/unictype/property-other-uppercase-tests: New file.
94985         * modules/unictype/property-paired-punctuation-tests: New file.
94986         * modules/unictype/property-paragraph-separator-tests: New file.
94987         * modules/unictype/property-pattern-syntax-tests: New file.
94988         * modules/unictype/property-pattern-white-space-tests: New file.
94989         * modules/unictype/property-private-use-tests: New file.
94990         * modules/unictype/property-punctuation-tests: New file.
94991         * modules/unictype/property-quotation-mark-tests: New file.
94992         * modules/unictype/property-radical-tests: New file.
94993         * modules/unictype/property-sentence-terminal-tests: New file.
94994         * modules/unictype/property-soft-dotted-tests: New file.
94995         * modules/unictype/property-space-tests: New file.
94996         * modules/unictype/property-terminal-punctuation-tests: New file.
94997         * modules/unictype/property-test-tests: New file.
94998         * modules/unictype/property-titlecase-tests: New file.
94999         * modules/unictype/property-unassigned-code-value-tests: New file.
95000         * modules/unictype/property-unified-ideograph-tests: New file.
95001         * modules/unictype/property-uppercase-tests: New file.
95002         * modules/unictype/property-variation-selector-tests: New file.
95003         * modules/unictype/property-white-space-tests: New file.
95004         * modules/unictype/property-xid-continue-tests: New file.
95005         * modules/unictype/property-xid-start-tests: New file.
95006         * modules/unictype/property-zero-width-tests: New file.
95007         * modules/unictype/scripts-tests: New file.
95008         * modules/unictype/syntax-c-ident-tests: New file.
95009         * modules/unictype/syntax-c-whitespace-tests: New file.
95010         * modules/unictype/syntax-java-ident-tests: New file.
95011         * modules/unictype/syntax-java-whitespace-tests: New file.
95012         * tests/unictype/test-bidi_byname.c: New file.
95013         * tests/unictype/test-bidi_name.c: New file.
95014         * tests/unictype/test-bidi_of.c: New file.
95015         * tests/unictype/test-bidi_test.c: New file.
95016         * tests/unictype/test-block_list.c: New file.
95017         * tests/unictype/test-block_of.c: New file.
95018         * tests/unictype/test-block_test.c: New file.
95019         * tests/unictype/test-categ_and.c: New file.
95020         * tests/unictype/test-categ_and_not.c: New file.
95021         * tests/unictype/test-categ_byname.c: New file.
95022         * tests/unictype/test-categ_name.c: New file.
95023         * tests/unictype/test-categ_none.c: New file.
95024         * tests/unictype/test-categ_of.c: New file.
95025         * tests/unictype/test-categ_or.c: New file.
95026         * tests/unictype/test-categ_test_withtable.c: New file.
95027         * tests/unictype/test-combining.c: New file.
95028         * tests/unictype/test-decdigit.c: New file.
95029         * tests/unictype/test-digit.c: New file.
95030         * tests/unictype/test-mirror.c: New file.
95031         * tests/unictype/test-numeric.c: New file.
95032         * tests/unictype/test-pr_byname.c: New file.
95033         * tests/unictype/test-pr_test.c: New file.
95034         * tests/unictype/test-predicate-part1.h: New file.
95035         * tests/unictype/test-predicate-part2.h: New file.
95036         * tests/unictype/test-scripts.c: New file.
95037         * tests/unictype/test-sy_c_ident.c: New file.
95038         * tests/unictype/test-sy_java_ident.c: New file.
95040         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95041         for Unicode 5.0.0.
95042         * tests/unictype/test-categ_Cc.c: Likewise.
95043         * tests/unictype/test-categ_Cf.c: Likewise.
95044         * tests/unictype/test-categ_Cn.c: Likewise.
95045         * tests/unictype/test-categ_Co.c: Likewise.
95046         * tests/unictype/test-categ_Cs.c: Likewise.
95047         * tests/unictype/test-categ_L.c: Likewise.
95048         * tests/unictype/test-categ_Ll.c: Likewise.
95049         * tests/unictype/test-categ_Lm.c: Likewise.
95050         * tests/unictype/test-categ_Lo.c: Likewise.
95051         * tests/unictype/test-categ_Lt.c: Likewise.
95052         * tests/unictype/test-categ_Lu.c: Likewise.
95053         * tests/unictype/test-categ_M.c: Likewise.
95054         * tests/unictype/test-categ_Mc.c: Likewise.
95055         * tests/unictype/test-categ_Me.c: Likewise.
95056         * tests/unictype/test-categ_Mn.c: Likewise.
95057         * tests/unictype/test-categ_N.c: Likewise.
95058         * tests/unictype/test-categ_Nd.c: Likewise.
95059         * tests/unictype/test-categ_Nl.c: Likewise.
95060         * tests/unictype/test-categ_No.c: Likewise.
95061         * tests/unictype/test-categ_P.c: Likewise.
95062         * tests/unictype/test-categ_Pc.c: Likewise.
95063         * tests/unictype/test-categ_Pd.c: Likewise.
95064         * tests/unictype/test-categ_Pe.c: Likewise.
95065         * tests/unictype/test-categ_Pf.c: Likewise.
95066         * tests/unictype/test-categ_Pi.c: Likewise.
95067         * tests/unictype/test-categ_Po.c: Likewise.
95068         * tests/unictype/test-categ_Ps.c: Likewise.
95069         * tests/unictype/test-categ_S.c: Likewise.
95070         * tests/unictype/test-categ_Sc.c: Likewise.
95071         * tests/unictype/test-categ_Sk.c: Likewise.
95072         * tests/unictype/test-categ_Sm.c: Likewise.
95073         * tests/unictype/test-categ_So.c: Likewise.
95074         * tests/unictype/test-categ_Z.c: Likewise.
95075         * tests/unictype/test-categ_Zl.c: Likewise.
95076         * tests/unictype/test-categ_Zp.c: Likewise.
95077         * tests/unictype/test-categ_Zs.c: Likewise.
95078         * tests/unictype/test-ctype_alnum.c: Likewise.
95079         * tests/unictype/test-ctype_alpha.c: Likewise.
95080         * tests/unictype/test-ctype_blank.c: Likewise.
95081         * tests/unictype/test-ctype_cntrl.c: Likewise.
95082         * tests/unictype/test-ctype_digit.c: Likewise.
95083         * tests/unictype/test-ctype_graph.c: Likewise.
95084         * tests/unictype/test-ctype_lower.c: Likewise.
95085         * tests/unictype/test-ctype_print.c: Likewise.
95086         * tests/unictype/test-ctype_punct.c: Likewise.
95087         * tests/unictype/test-ctype_space.c: Likewise.
95088         * tests/unictype/test-ctype_upper.c: Likewise.
95089         * tests/unictype/test-ctype_xdigit.c: Likewise.
95090         * tests/unictype/test-decdigit.h: Likewise.
95091         * tests/unictype/test-digit.h: Likewise.
95092         * tests/unictype/test-numeric.h: Likewise.
95093         * tests/unictype/test-pr_alphabetic.c: Likewise.
95094         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95095         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95096         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95097         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95098         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95099         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95100         * tests/unictype/test-pr_bidi_control.c: Likewise.
95101         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95102         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95103         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95104         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95105         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95106         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95107         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95108         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95109         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95110         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95111         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95112         * tests/unictype/test-pr_combining.c: Likewise.
95113         * tests/unictype/test-pr_composite.c: Likewise.
95114         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95115         * tests/unictype/test-pr_dash.c: Likewise.
95116         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95117         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95118         * tests/unictype/test-pr_deprecated.c: Likewise.
95119         * tests/unictype/test-pr_diacritic.c: Likewise.
95120         * tests/unictype/test-pr_extender.c: Likewise.
95121         * tests/unictype/test-pr_format_control.c: Likewise.
95122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95125         * tests/unictype/test-pr_hex_digit.c: Likewise.
95126         * tests/unictype/test-pr_hyphen.c: Likewise.
95127         * tests/unictype/test-pr_id_continue.c: Likewise.
95128         * tests/unictype/test-pr_id_start.c: Likewise.
95129         * tests/unictype/test-pr_ideographic.c: Likewise.
95130         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95131         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95132         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95133         * tests/unictype/test-pr_iso_control.c: Likewise.
95134         * tests/unictype/test-pr_join_control.c: Likewise.
95135         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95136         * tests/unictype/test-pr_line_separator.c: Likewise.
95137         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95138         * tests/unictype/test-pr_lowercase.c: Likewise.
95139         * tests/unictype/test-pr_math.c: Likewise.
95140         * tests/unictype/test-pr_non_break.c: Likewise.
95141         * tests/unictype/test-pr_not_a_character.c: Likewise.
95142         * tests/unictype/test-pr_numeric.c: Likewise.
95143         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95144         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95145         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95146         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95147         * tests/unictype/test-pr_other_id_start.c: Likewise.
95148         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95149         * tests/unictype/test-pr_other_math.c: Likewise.
95150         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95151         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95152         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95153         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95154         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95155         * tests/unictype/test-pr_private_use.c: Likewise.
95156         * tests/unictype/test-pr_punctuation.c: Likewise.
95157         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95158         * tests/unictype/test-pr_radical.c: Likewise.
95159         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95160         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95161         * tests/unictype/test-pr_space.c: Likewise.
95162         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95163         * tests/unictype/test-pr_titlecase.c: Likewise.
95164         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95165         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95166         * tests/unictype/test-pr_uppercase.c: Likewise.
95167         * tests/unictype/test-pr_variation_selector.c: Likewise.
95168         * tests/unictype/test-pr_white_space.c: Likewise.
95169         * tests/unictype/test-pr_xid_continue.c: Likewise.
95170         * tests/unictype/test-pr_xid_start.c: Likewise.
95171         * tests/unictype/test-pr_zero_width.c: Likewise.
95172         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95173         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95175 2007-11-12  Bruno Haible  <bruno@clisp.org>
95177         Unicode character classification functions.
95178         * lib/unictype.h: New file.
95179         * modules/unictype/base: New file.
95180         * modules/unictype/category-L: New file.
95181         * modules/unictype/category-Lu: New file.
95182         * modules/unictype/category-Ll: New file.
95183         * modules/unictype/category-Lt: New file.
95184         * modules/unictype/category-Lm: New file.
95185         * modules/unictype/category-Lo: New file.
95186         * modules/unictype/category-M: New file.
95187         * modules/unictype/category-Mn: New file.
95188         * modules/unictype/category-Mc: New file.
95189         * modules/unictype/category-Me: New file.
95190         * modules/unictype/category-N: New file.
95191         * modules/unictype/category-Nd: New file.
95192         * modules/unictype/category-Nl: New file.
95193         * modules/unictype/category-No: New file.
95194         * modules/unictype/category-P: New file.
95195         * modules/unictype/category-Pc: New file.
95196         * modules/unictype/category-Pd: New file.
95197         * modules/unictype/category-Ps: New file.
95198         * modules/unictype/category-Pe: New file.
95199         * modules/unictype/category-Pi: New file.
95200         * modules/unictype/category-Pf: New file.
95201         * modules/unictype/category-Po: New file.
95202         * modules/unictype/category-S: New file.
95203         * modules/unictype/category-Sm: New file.
95204         * modules/unictype/category-Sc: New file.
95205         * modules/unictype/category-Sk: New file.
95206         * modules/unictype/category-So: New file.
95207         * modules/unictype/category-Z: New file.
95208         * modules/unictype/category-Zs: New file.
95209         * modules/unictype/category-Zl: New file.
95210         * modules/unictype/category-Zp: New file.
95211         * modules/unictype/category-C: New file.
95212         * modules/unictype/category-Cc: New file.
95213         * modules/unictype/category-Cf: New file.
95214         * modules/unictype/category-Cs: New file.
95215         * modules/unictype/category-Co: New file.
95216         * modules/unictype/category-Cn: New file.
95217         * modules/unictype/category-or: New file.
95218         * modules/unictype/category-of: New file.
95219         * modules/unictype/category-test: New file.
95220         * modules/unictype/category-test-withtable: New file.
95221         * modules/unictype/category-byname: New file.
95222         * modules/unictype/category-none: New file.
95223         * modules/unictype/category-and: New file.
95224         * modules/unictype/category-and-not: New file.
95225         * modules/unictype/category-name: New file.
95226         * modules/unictype/combining-class: New file.
95227         * modules/unictype/category-all: New file.
95228         * modules/unictype/bidicategory-all: New file.
95229         * modules/unictype/bidicategory-byname: New file.
95230         * modules/unictype/bidicategory-name: New file.
95231         * modules/unictype/bidicategory-of: New file.
95232         * modules/unictype/bidicategory-test: New file.
95233         * modules/unictype/decimal-digit: New file.
95234         * modules/unictype/digit: New file.
95235         * modules/unictype/numeric: New file.
95236         * modules/unictype/mirror: New file.
95237         * modules/unictype/property-white-space: New file.
95238         * modules/unictype/property-alphabetic: New file.
95239         * modules/unictype/property-other-alphabetic: New file.
95240         * modules/unictype/property-not-a-character: New file.
95241         * modules/unictype/property-default-ignorable-code-point: New file.
95242         * modules/unictype/property-other-default-ignorable-code-point: New
95243         file.
95244         * modules/unictype/property-deprecated: New file.
95245         * modules/unictype/property-logical-order-exception: New file.
95246         * modules/unictype/property-variation-selector: New file.
95247         * modules/unictype/property-private-use: New file.
95248         * modules/unictype/property-unassigned-code-value: New file.
95249         * modules/unictype/property-uppercase: New file.
95250         * modules/unictype/property-other-uppercase: New file.
95251         * modules/unictype/property-lowercase: New file.
95252         * modules/unictype/property-other-lowercase: New file.
95253         * modules/unictype/property-titlecase: New file.
95254         * modules/unictype/property-soft-dotted: New file.
95255         * modules/unictype/property-id-start: New file.
95256         * modules/unictype/property-other-id-start: New file.
95257         * modules/unictype/property-id-continue: New file.
95258         * modules/unictype/property-other-id-continue: New file.
95259         * modules/unictype/property-xid-start: New file.
95260         * modules/unictype/property-xid-continue: New file.
95261         * modules/unictype/property-pattern-white-space: New file.
95262         * modules/unictype/property-pattern-syntax: New file.
95263         * modules/unictype/property-join-control: New file.
95264         * modules/unictype/property-grapheme-base: New file.
95265         * modules/unictype/property-grapheme-extend: New file.
95266         * modules/unictype/property-other-grapheme-extend: New file.
95267         * modules/unictype/property-grapheme-link: New file.
95268         * modules/unictype/property-bidi-control: New file.
95269         * modules/unictype/property-bidi-left-to-right: New file.
95270         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95271         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95272         * modules/unictype/property-bidi-european-digit: New file.
95273         * modules/unictype/property-bidi-eur-num-separator: New file.
95274         * modules/unictype/property-bidi-eur-num-terminator: New file.
95275         * modules/unictype/property-bidi-arabic-digit: New file.
95276         * modules/unictype/property-bidi-common-separator: New file.
95277         * modules/unictype/property-bidi-block-separator: New file.
95278         * modules/unictype/property-bidi-segment-separator: New file.
95279         * modules/unictype/property-bidi-whitespace: New file.
95280         * modules/unictype/property-bidi-non-spacing-mark: New file.
95281         * modules/unictype/property-bidi-boundary-neutral: New file.
95282         * modules/unictype/property-bidi-pdf: New file.
95283         * modules/unictype/property-bidi-embedding-or-override: New file.
95284         * modules/unictype/property-bidi-other-neutral: New file.
95285         * modules/unictype/property-hex-digit: New file.
95286         * modules/unictype/property-ascii-hex-digit: New file.
95287         * modules/unictype/property-ideographic: New file.
95288         * modules/unictype/property-unified-ideograph: New file.
95289         * modules/unictype/property-radical: New file.
95290         * modules/unictype/property-ids-binary-operator: New file.
95291         * modules/unictype/property-ids-trinary-operator: New file.
95292         * modules/unictype/property-zero-width: New file.
95293         * modules/unictype/property-space: New file.
95294         * modules/unictype/property-non-break: New file.
95295         * modules/unictype/property-iso-control: New file.
95296         * modules/unictype/property-format-control: New file.
95297         * modules/unictype/property-dash: New file.
95298         * modules/unictype/property-hyphen: New file.
95299         * modules/unictype/property-punctuation: New file.
95300         * modules/unictype/property-line-separator: New file.
95301         * modules/unictype/property-paragraph-separator: New file.
95302         * modules/unictype/property-quotation-mark: New file.
95303         * modules/unictype/property-sentence-terminal: New file.
95304         * modules/unictype/property-terminal-punctuation: New file.
95305         * modules/unictype/property-currency-symbol: New file.
95306         * modules/unictype/property-math: New file.
95307         * modules/unictype/property-other-math: New file.
95308         * modules/unictype/property-paired-punctuation: New file.
95309         * modules/unictype/property-left-of-pair: New file.
95310         * modules/unictype/property-combining: New file.
95311         * modules/unictype/property-composite: New file.
95312         * modules/unictype/property-decimal-digit: New file.
95313         * modules/unictype/property-numeric: New file.
95314         * modules/unictype/property-diacritic: New file.
95315         * modules/unictype/property-extender: New file.
95316         * modules/unictype/property-ignorable-control: New file.
95317         * modules/unictype/property-test: New file.
95318         * modules/unictype/property-byname: New file.
95319         * modules/unictype/property-all: New file.
95320         * modules/unictype/scripts: New file.
95321         * modules/unictype/scripts-all: New file.
95322         * modules/unictype/block-of: New file.
95323         * modules/unictype/block-test: New file.
95324         * modules/unictype/block-list: New file.
95325         * modules/unictype/block-all: New file.
95326         * modules/unictype/syntax-c-whitespace: New file.
95327         * modules/unictype/syntax-java-whitespace: New file.
95328         * modules/unictype/syntax-c-ident: New file.
95329         * modules/unictype/syntax-java-ident: New file.
95330         * modules/unictype/ctype-alnum: New file.
95331         * modules/unictype/ctype-alpha: New file.
95332         * modules/unictype/ctype-cntrl: New file.
95333         * modules/unictype/ctype-digit: New file.
95334         * modules/unictype/ctype-graph: New file.
95335         * modules/unictype/ctype-lower: New file.
95336         * modules/unictype/ctype-print: New file.
95337         * modules/unictype/ctype-punct: New file.
95338         * modules/unictype/ctype-space: New file.
95339         * modules/unictype/ctype-upper: New file.
95340         * modules/unictype/ctype-xdigit: New file.
95341         * modules/unictype/ctype-blank: New file.
95342         * lib/unictype/bidi_byname.c: New file.
95343         * lib/unictype/bidi_name.c: New file.
95344         * lib/unictype/bidi_of.c: New file.
95345         * lib/unictype/bidi_test.c: New file.
95346         * lib/unictype/bitmap.h: New file.
95347         * lib/unictype/block_test.c: New file.
95348         * lib/unictype/blocks.c: New file.
95349         * lib/unictype/categ_C.c: New file.
95350         * lib/unictype/categ_Cc.c: New file.
95351         * lib/unictype/categ_Cf.c: New file.
95352         * lib/unictype/categ_Cn.c: New file.
95353         * lib/unictype/categ_Co.c: New file.
95354         * lib/unictype/categ_Cs.c: New file.
95355         * lib/unictype/categ_L.c: New file.
95356         * lib/unictype/categ_Ll.c: New file.
95357         * lib/unictype/categ_Lm.c: New file.
95358         * lib/unictype/categ_Lo.c: New file.
95359         * lib/unictype/categ_Lt.c: New file.
95360         * lib/unictype/categ_Lu.c: New file.
95361         * lib/unictype/categ_M.c: New file.
95362         * lib/unictype/categ_Mc.c: New file.
95363         * lib/unictype/categ_Me.c: New file.
95364         * lib/unictype/categ_Mn.c: New file.
95365         * lib/unictype/categ_N.c: New file.
95366         * lib/unictype/categ_Nd.c: New file.
95367         * lib/unictype/categ_Nl.c: New file.
95368         * lib/unictype/categ_No.c: New file.
95369         * lib/unictype/categ_P.c: New file.
95370         * lib/unictype/categ_Pc.c: New file.
95371         * lib/unictype/categ_Pd.c: New file.
95372         * lib/unictype/categ_Pe.c: New file.
95373         * lib/unictype/categ_Pf.c: New file.
95374         * lib/unictype/categ_Pi.c: New file.
95375         * lib/unictype/categ_Po.c: New file.
95376         * lib/unictype/categ_Ps.c: New file.
95377         * lib/unictype/categ_S.c: New file.
95378         * lib/unictype/categ_Sc.c: New file.
95379         * lib/unictype/categ_Sk.c: New file.
95380         * lib/unictype/categ_Sm.c: New file.
95381         * lib/unictype/categ_So.c: New file.
95382         * lib/unictype/categ_Z.c: New file.
95383         * lib/unictype/categ_Zl.c: New file.
95384         * lib/unictype/categ_Zp.c: New file.
95385         * lib/unictype/categ_Zs.c: New file.
95386         * lib/unictype/categ_and.c: New file.
95387         * lib/unictype/categ_and_not.c: New file.
95388         * lib/unictype/categ_byname.c: New file.
95389         * lib/unictype/categ_name.c: New file.
95390         * lib/unictype/categ_none.c: New file.
95391         * lib/unictype/categ_of.c: New file.
95392         * lib/unictype/categ_or.c: New file.
95393         * lib/unictype/categ_test.c: New file.
95394         * lib/unictype/combining.c: New file.
95395         * lib/unictype/ctype_alnum.c: New file.
95396         * lib/unictype/ctype_alpha.c: New file.
95397         * lib/unictype/ctype_blank.c: New file.
95398         * lib/unictype/ctype_cntrl.c: New file.
95399         * lib/unictype/ctype_digit.c: New file.
95400         * lib/unictype/ctype_graph.c: New file.
95401         * lib/unictype/ctype_lower.c: New file.
95402         * lib/unictype/ctype_print.c: New file.
95403         * lib/unictype/ctype_punct.c: New file.
95404         * lib/unictype/ctype_space.c: New file.
95405         * lib/unictype/ctype_upper.c: New file.
95406         * lib/unictype/ctype_xdigit.c: New file.
95407         * lib/unictype/decdigit.c: New file.
95408         * lib/unictype/digit.c: New file.
95409         * lib/unictype/identsyntaxmap.h: New file.
95410         * lib/unictype/mirror.c: New file.
95411         * lib/unictype/numeric.c: New file.
95412         * lib/unictype/pr_alphabetic.c: New file.
95413         * lib/unictype/pr_ascii_hex_digit.c: New file.
95414         * lib/unictype/pr_bidi_arabic_digit.c: New file.
95415         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
95416         * lib/unictype/pr_bidi_block_separator.c: New file.
95417         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
95418         * lib/unictype/pr_bidi_common_separator.c: New file.
95419         * lib/unictype/pr_bidi_control.c: New file.
95420         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
95421         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
95422         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
95423         * lib/unictype/pr_bidi_european_digit.c: New file.
95424         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
95425         * lib/unictype/pr_bidi_left_to_right.c: New file.
95426         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
95427         * lib/unictype/pr_bidi_other_neutral.c: New file.
95428         * lib/unictype/pr_bidi_pdf.c: New file.
95429         * lib/unictype/pr_bidi_segment_separator.c: New file.
95430         * lib/unictype/pr_bidi_whitespace.c: New file.
95431         * lib/unictype/pr_byname.c: New file.
95432         * lib/unictype/pr_byname.gperf: New file.
95433         * lib/unictype/pr_combining.c: New file.
95434         * lib/unictype/pr_composite.c: New file.
95435         * lib/unictype/pr_currency_symbol.c: New file.
95436         * lib/unictype/pr_dash.c: New file.
95437         * lib/unictype/pr_decimal_digit.c: New file.
95438         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95439         * lib/unictype/pr_deprecated.c: New file.
95440         * lib/unictype/pr_diacritic.c: New file.
95441         * lib/unictype/pr_extender.c: New file.
95442         * lib/unictype/pr_format_control.c: New file.
95443         * lib/unictype/pr_grapheme_base.c: New file.
95444         * lib/unictype/pr_grapheme_extend.c: New file.
95445         * lib/unictype/pr_grapheme_link.c: New file.
95446         * lib/unictype/pr_hex_digit.c: New file.
95447         * lib/unictype/pr_hyphen.c: New file.
95448         * lib/unictype/pr_id_continue.c: New file.
95449         * lib/unictype/pr_id_start.c: New file.
95450         * lib/unictype/pr_ideographic.c: New file.
95451         * lib/unictype/pr_ids_binary_operator.c: New file.
95452         * lib/unictype/pr_ids_trinary_operator.c: New file.
95453         * lib/unictype/pr_ignorable_control.c: New file.
95454         * lib/unictype/pr_iso_control.c: New file.
95455         * lib/unictype/pr_join_control.c: New file.
95456         * lib/unictype/pr_left_of_pair.c: New file.
95457         * lib/unictype/pr_line_separator.c: New file.
95458         * lib/unictype/pr_logical_order_exception.c: New file.
95459         * lib/unictype/pr_lowercase.c: New file.
95460         * lib/unictype/pr_math.c: New file.
95461         * lib/unictype/pr_non_break.c: New file.
95462         * lib/unictype/pr_not_a_character.c: New file.
95463         * lib/unictype/pr_numeric.c: New file.
95464         * lib/unictype/pr_other_alphabetic.c: New file.
95465         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95466         * lib/unictype/pr_other_grapheme_extend.c: New file.
95467         * lib/unictype/pr_other_id_continue.c: New file.
95468         * lib/unictype/pr_other_id_start.c: New file.
95469         * lib/unictype/pr_other_lowercase.c: New file.
95470         * lib/unictype/pr_other_math.c: New file.
95471         * lib/unictype/pr_other_uppercase.c: New file.
95472         * lib/unictype/pr_paired_punctuation.c: New file.
95473         * lib/unictype/pr_paragraph_separator.c: New file.
95474         * lib/unictype/pr_pattern_syntax.c: New file.
95475         * lib/unictype/pr_pattern_white_space.c: New file.
95476         * lib/unictype/pr_private_use.c: New file.
95477         * lib/unictype/pr_punctuation.c: New file.
95478         * lib/unictype/pr_quotation_mark.c: New file.
95479         * lib/unictype/pr_radical.c: New file.
95480         * lib/unictype/pr_sentence_terminal.c: New file.
95481         * lib/unictype/pr_soft_dotted.c: New file.
95482         * lib/unictype/pr_space.c: New file.
95483         * lib/unictype/pr_terminal_punctuation.c: New file.
95484         * lib/unictype/pr_test.c: New file.
95485         * lib/unictype/pr_titlecase.c: New file.
95486         * lib/unictype/pr_unassigned_code_value.c: New file.
95487         * lib/unictype/pr_unified_ideograph.c: New file.
95488         * lib/unictype/pr_uppercase.c: New file.
95489         * lib/unictype/pr_variation_selector.c: New file.
95490         * lib/unictype/pr_white_space.c: New file.
95491         * lib/unictype/pr_xid_continue.c: New file.
95492         * lib/unictype/pr_xid_start.c: New file.
95493         * lib/unictype/pr_zero_width.c: New file.
95494         * lib/unictype/scripts.c: New file.
95495         * lib/unictype/sy_c_ident.c: New file.
95496         * lib/unictype/sy_c_whitespace.c: New file.
95497         * lib/unictype/sy_java_ident.c: New file.
95498         * lib/unictype/sy_java_whitespace.c: New file.
95500         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95501         Unicode 5.0.0.
95502         * lib/unictype/blocks.h: Likewise.
95503         * lib/unictype/categ_C.h: Likewise.
95504         * lib/unictype/categ_Cc.h: Likewise.
95505         * lib/unictype/categ_Cf.h: Likewise.
95506         * lib/unictype/categ_Cn.h: Likewise.
95507         * lib/unictype/categ_Co.h: Likewise.
95508         * lib/unictype/categ_Cs.h: Likewise.
95509         * lib/unictype/categ_L.h: Likewise.
95510         * lib/unictype/categ_Ll.h: Likewise.
95511         * lib/unictype/categ_Lm.h: Likewise.
95512         * lib/unictype/categ_Lo.h: Likewise.
95513         * lib/unictype/categ_Lt.h: Likewise.
95514         * lib/unictype/categ_Lu.h: Likewise.
95515         * lib/unictype/categ_M.h: Likewise.
95516         * lib/unictype/categ_Mc.h: Likewise.
95517         * lib/unictype/categ_Me.h: Likewise.
95518         * lib/unictype/categ_Mn.h: Likewise.
95519         * lib/unictype/categ_N.h: Likewise.
95520         * lib/unictype/categ_Nd.h: Likewise.
95521         * lib/unictype/categ_Nl.h: Likewise.
95522         * lib/unictype/categ_No.h: Likewise.
95523         * lib/unictype/categ_P.h: Likewise.
95524         * lib/unictype/categ_Pc.h: Likewise.
95525         * lib/unictype/categ_Pd.h: Likewise.
95526         * lib/unictype/categ_Pe.h: Likewise.
95527         * lib/unictype/categ_Pf.h: Likewise.
95528         * lib/unictype/categ_Pi.h: Likewise.
95529         * lib/unictype/categ_Po.h: Likewise.
95530         * lib/unictype/categ_Ps.h: Likewise.
95531         * lib/unictype/categ_S.h: Likewise.
95532         * lib/unictype/categ_Sc.h: Likewise.
95533         * lib/unictype/categ_Sk.h: Likewise.
95534         * lib/unictype/categ_Sm.h: Likewise.
95535         * lib/unictype/categ_So.h: Likewise.
95536         * lib/unictype/categ_Z.h: Likewise.
95537         * lib/unictype/categ_Zl.h: Likewise.
95538         * lib/unictype/categ_Zp.h: Likewise.
95539         * lib/unictype/categ_Zs.h: Likewise.
95540         * lib/unictype/categ_of.h: Likewise.
95541         * lib/unictype/combining.h: Likewise.
95542         * lib/unictype/ctype_alnum.h: Likewise.
95543         * lib/unictype/ctype_alpha.h: Likewise.
95544         * lib/unictype/ctype_blank.h: Likewise.
95545         * lib/unictype/ctype_cntrl.h: Likewise.
95546         * lib/unictype/ctype_digit.h: Likewise.
95547         * lib/unictype/ctype_graph.h: Likewise.
95548         * lib/unictype/ctype_lower.h: Likewise.
95549         * lib/unictype/ctype_print.h: Likewise.
95550         * lib/unictype/ctype_punct.h: Likewise.
95551         * lib/unictype/ctype_space.h: Likewise.
95552         * lib/unictype/ctype_upper.h: Likewise.
95553         * lib/unictype/ctype_xdigit.h: Likewise.
95554         * lib/unictype/decdigit.h: Likewise.
95555         * lib/unictype/digit.h: Likewise.
95556         * lib/unictype/mirror.h: Likewise.
95557         * lib/unictype/numeric.h: Likewise.
95558         * lib/unictype/pr_alphabetic.h: Likewise.
95559         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95560         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95561         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95562         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95563         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95564         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95565         * lib/unictype/pr_bidi_control.h: Likewise.
95566         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95567         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95568         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95569         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95570         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95571         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95572         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95573         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95574         * lib/unictype/pr_bidi_pdf.h: Likewise.
95575         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95576         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95577         * lib/unictype/pr_combining.h: Likewise.
95578         * lib/unictype/pr_composite.h: Likewise.
95579         * lib/unictype/pr_currency_symbol.h: Likewise.
95580         * lib/unictype/pr_dash.h: Likewise.
95581         * lib/unictype/pr_decimal_digit.h: Likewise.
95582         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95583         * lib/unictype/pr_deprecated.h: Likewise.
95584         * lib/unictype/pr_diacritic.h: Likewise.
95585         * lib/unictype/pr_extender.h: Likewise.
95586         * lib/unictype/pr_format_control.h: Likewise.
95587         * lib/unictype/pr_grapheme_base.h: Likewise.
95588         * lib/unictype/pr_grapheme_extend.h: Likewise.
95589         * lib/unictype/pr_grapheme_link.h: Likewise.
95590         * lib/unictype/pr_hex_digit.h: Likewise.
95591         * lib/unictype/pr_hyphen.h: Likewise.
95592         * lib/unictype/pr_id_continue.h: Likewise.
95593         * lib/unictype/pr_id_start.h: Likewise.
95594         * lib/unictype/pr_ideographic.h: Likewise.
95595         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95596         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95597         * lib/unictype/pr_ignorable_control.h: Likewise.
95598         * lib/unictype/pr_iso_control.h: Likewise.
95599         * lib/unictype/pr_join_control.h: Likewise.
95600         * lib/unictype/pr_left_of_pair.h: Likewise.
95601         * lib/unictype/pr_line_separator.h: Likewise.
95602         * lib/unictype/pr_logical_order_exception.h: Likewise.
95603         * lib/unictype/pr_lowercase.h: Likewise.
95604         * lib/unictype/pr_math.h: Likewise.
95605         * lib/unictype/pr_non_break.h: Likewise.
95606         * lib/unictype/pr_not_a_character.h: Likewise.
95607         * lib/unictype/pr_numeric.h: Likewise.
95608         * lib/unictype/pr_other_alphabetic.h: Likewise.
95609         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95610         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95611         * lib/unictype/pr_other_id_continue.h: Likewise.
95612         * lib/unictype/pr_other_id_start.h: Likewise.
95613         * lib/unictype/pr_other_lowercase.h: Likewise.
95614         * lib/unictype/pr_other_math.h: Likewise.
95615         * lib/unictype/pr_other_uppercase.h: Likewise.
95616         * lib/unictype/pr_paired_punctuation.h: Likewise.
95617         * lib/unictype/pr_paragraph_separator.h: Likewise.
95618         * lib/unictype/pr_pattern_syntax.h: Likewise.
95619         * lib/unictype/pr_pattern_white_space.h: Likewise.
95620         * lib/unictype/pr_private_use.h: Likewise.
95621         * lib/unictype/pr_punctuation.h: Likewise.
95622         * lib/unictype/pr_quotation_mark.h: Likewise.
95623         * lib/unictype/pr_radical.h: Likewise.
95624         * lib/unictype/pr_sentence_terminal.h: Likewise.
95625         * lib/unictype/pr_soft_dotted.h: Likewise.
95626         * lib/unictype/pr_space.h: Likewise.
95627         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95628         * lib/unictype/pr_titlecase.h: Likewise.
95629         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95630         * lib/unictype/pr_unified_ideograph.h: Likewise.
95631         * lib/unictype/pr_uppercase.h: Likewise.
95632         * lib/unictype/pr_variation_selector.h: Likewise.
95633         * lib/unictype/pr_white_space.h: Likewise.
95634         * lib/unictype/pr_xid_continue.h: Likewise.
95635         * lib/unictype/pr_xid_start.h: Likewise.
95636         * lib/unictype/pr_zero_width.h: Likewise.
95637         * lib/unictype/scripts.h: Likewise.
95638         * lib/unictype/scripts_byname.gperf: Likewise.
95639         * lib/unictype/sy_c_ident.h: Likewise.
95640         * lib/unictype/sy_c_whitespace.h: Likewise.
95641         * lib/unictype/sy_java_ident.h: Likewise.
95642         * lib/unictype/sy_java_whitespace.h: Likewise.
95644         * lib/unictype/Makefile: New file.
95645         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95646         glibc.
95647         * lib/unictype/3level.h: New file, copied from glibc.
95648         * lib/unictype/3levelbit.h: New file.
95650 2007-11-11  Bruno Haible  <bruno@clisp.org>
95652         * modules/gperf: New file.
95653         * modules/iconv_open (Depends-on): Add it.
95654         (Makefile.am): Remove the GPERF definition.
95656 2007-11-11  Bruno Haible  <bruno@clisp.org>
95658         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95659         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95661 2007-11-11  Bruno Haible  <bruno@clisp.org>
95663         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95664         (usage): Remove function.
95666 2007-11-11  Bruno Haible  <bruno@clisp.org>
95668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95669         gl_FUNC_CEILF_LIBS.
95670         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95671         gl_FUNC_CEIL_LIBS.
95672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95673         gl_FUNC_CEILL_LIBS.
95674         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95675         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95676         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95678 2007-11-11  Bruno Haible  <bruno@clisp.org>
95680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95681         roundf were declared but do not exist on functions.
95682         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95683         roundl were declared but do not exist on functions.
95684         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95685         HAVE_FLOORL_AND_CEILL, respectively.
95686         Needed for Sun C on Solaris 10.
95688 2007-11-11  Bruno Haible  <bruno@clisp.org>
95690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95691         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95692         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95693         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95695         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95696         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95697         HAVE_DECL_ROUNDF.
95698         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95699         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95701         of HAVE_DECL_ROUND*.
95702         * modules/math (Makefile.am): Update.
95704 2007-11-10  Bruno Haible  <bruno@clisp.org>
95706         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95707         ptrdiff_t as m4/intl.m4.
95709 2007-11-10  Jim Meyering  <meyering@redhat.com>
95711         Avoid link failure for the argmatch test.
95712         * tests/test-argmatch.c (usage): Define function to avoid a link
95713         failure: argmatch_die requires a usage function.
95715 2007-11-09  Bruno Haible  <bruno@clisp.org>
95717         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95718         * doc/functions/vsnprintf.texi: Likewise.
95719         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95720         with a size argument < 2.
95722 2007-11-09  Bruno Haible  <bruno@clisp.org>
95724         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95725         buffer. Fixes an inefficiency introduced on 2007-11-03.
95727 2007-11-09  Bruno Haible  <bruno@clisp.org>
95729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95730         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95732 2007-11-08  Jim Meyering  <meyering@redhat.com>
95734         Change cache variable name prefix "jm_" to "gl_" everywhere.
95735         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95736         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95737         * m4/uptime.m4: s/gl_/jm_/
95739 2007-11-07  Bruno Haible  <bruno@clisp.org>
95741         Update to GNU gettext 0.17.
95742         * m4/intl.m4: Update to GNU gettext 0.17.
95743         * m4/po.m4: Likewise.
95744         * modules/gettext (Files): Remove m4/ulonglong.m4.
95745         (configure.ac): Require gettext infrastructure from version 0.17.
95747 2007-11-06  Bruno Haible  <bruno@clisp.org>
95749         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95750         symbolic values are not defined in a public header.
95751         * lib/freadable.c (freadable) [QNX]: Likewise.
95752         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95753         * lib/freading.c (freading) [QNX]: Likewise.
95754         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95755         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95756         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95757         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95758         Reported by Alain Magloire.
95760         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95762 2007-11-05  Bruno Haible  <bruno@clisp.org>
95764         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95765         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95766         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95767         Reported by Eric Blake.
95769 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95770             Bruno Haible  <bruno@clisp.org>
95772         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95773         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95774         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95775         (malloc): Undefine also before including <stdlib.h>.
95776         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95777         Needed on OSF/1 4.0.
95779 2007-11-05  Jim Meyering  <meyering@redhat.com>
95781         git-version-gen: sync from coreutils.
95782         * build-aux/git-version-gen: Add comments.
95783         Change the first '-' to '.' in the snapshot version string,
95784         e.g., 6.9-377-08144 -> 6.9.377-08144
95785         Remove first parameter.
95786         Don't declare a version "-dirty" merely because a time
95787         stamp has changed.
95789 2007-11-04  Bruno Haible  <bruno@clisp.org>
95791         * lib/lock.h: Protect all macro definitions containing an 'if'
95792         statement through a "do { ... } while (0)".
95793         * lib/tls.h: Likewise.
95795 2007-11-04  Bruno Haible  <bruno@clisp.org>
95797         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95799 2007-11-04  Bruno Haible  <bruno@clisp.org>
95801         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95802         * modules/fprintf-posix (Depends-on): Add nocrash.
95803         * modules/snprintf-posix (Depends-on): Likewise.
95804         * modules/sprintf-posix (Depends-on): Likewise.
95805         * modules/vasnprintf-posix (Depends-on): Likewise.
95806         * modules/vasprintf-posix (Depends-on): Likewise.
95807         * modules/vfprintf-posix (Depends-on): Likewise.
95808         * modules/vsnprintf-posix (Depends-on): Likewise.
95809         * modules/vsprintf-posix (Depends-on): Likewise.
95810         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95811         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95812         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95813         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95814         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95815         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95816         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95818 2007-11-04  Bruno Haible  <bruno@clisp.org>
95820         * modules/nocrash: New file.
95821         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95822         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95824 2007-11-04  Bruno Haible  <bruno@clisp.org>
95826         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95827         precision handling.
95828         * tests/test-vasprintf-posix.c (test_function): Likewise.
95829         * tests/test-snprintf-posix.h (test_function): Likewise.
95830         * tests/test-sprintf-posix.h (test_function): Likewise.
95832         Fix *printf behaviour for large precisions on mingw and BeOS.
95833         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95834         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95836         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95838         gl_PRINTF_PRECISION and test its result. Invoke
95839         gl_PREREQ_VASNPRINTF_PRECISION.
95840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95847         * doc/functions/fprintf.texi: Update.
95848         * doc/functions/printf.texi: Update.
95849         * doc/functions/snprintf.texi: Update.
95850         * doc/functions/sprintf.texi: Update.
95851         * doc/functions/vfprintf.texi: Update.
95852         * doc/functions/vprintf.texi: Update.
95853         * doc/functions/vsnprintf.texi: Update.
95854         * doc/functions/vsprintf.texi: Update.
95856 2007-11-04  Bruno Haible  <bruno@clisp.org>
95858         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95860 2007-11-04  Bruno Haible  <bruno@clisp.org>
95862         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95863         Reported by Sylvain Beucler <beuc@gnu.org>.
95865 2007-11-03  Bruno Haible  <bruno@clisp.org>
95867         * tests/test-fprintf-posix2.sh: New file.
95868         * tests/test-fprintf-posix2.c: New file.
95869         * modules/fprintf-posix-tests (Files): Add them.
95870         (TESTS): Add test-fprintf-posix2.sh.
95871         (configure.ac): Check for getrlimit and setrlimit.
95872         (check_PROGRAMS): Add test-fprintf-posix2.
95874         * tests/test-printf-posix2.sh: New file.
95875         * tests/test-printf-posix2.c: New file.
95876         * modules/printf-posix-tests (Files): Add them.
95877         (TESTS): Add test-printf-posix2.sh.
95878         (configure.ac): Check for getrlimit and setrlimit.
95879         (check_PROGRAMS): Add test-printf-posix2.
95881         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95882         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95883         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95884         (decode_double): New function, copied from decode_long_double.
95885         (scale10_round_decimal_decoded): New function, extracted from
95886         scale10_round_decimal_long_double.
95887         (scale10_round_decimal_long_double): Use it.
95888         (scale10_round_decimal_double): New function.
95889         (floorlog10): New function.
95890         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95892         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95894         gl_PRINTF_ENOMEM and test its result. Invoke
95895         gl_PREREQ_VASNPRINTF_ENOMEM.
95896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95903         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95904         * modules/snprintf-posix (Depends-on): Likewise.
95905         * modules/sprintf-posix (Depends-on): Likewise.
95906         * modules/vasnprintf-posix (Depends-on): Likewise.
95907         * modules/vasprintf-posix (Depends-on): Likewise.
95908         * modules/vfprintf-posix (Depends-on): Likewise.
95909         * modules/vsnprintf-posix (Depends-on): Likewise.
95910         * modules/vsprintf-posix (Depends-on): Likewise.
95911         * doc/functions/fprintf.texi: Update.
95912         * doc/functions/printf.texi: Update.
95913         * doc/functions/snprintf.texi: Update.
95914         * doc/functions/sprintf.texi: Update.
95915         * doc/functions/vfprintf.texi: Update.
95916         * doc/functions/vprintf.texi: Update.
95917         * doc/functions/vsnprintf.texi: Update.
95918         * doc/functions/vsprintf.texi: Update.
95920 2007-11-03  Bruno Haible  <bruno@clisp.org>
95922         * modules/frexp-nolibm-tests: New file.
95924         * modules/frexp-nolibm: New file.
95925         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95927 2007-11-03  Bruno Haible  <bruno@clisp.org>
95929         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95930         value is C99 compliant.
95931         Needed for OSF/1 5.1.
95933 2007-11-03  Bruno Haible  <bruno@clisp.org>
95935         Fix out-of-memory handling of vasnprintf.
95936         * lib/printf-parse.c: Include <errno.h>.
95937         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95938         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95939         is already set.
95941 2007-11-02  Eric Blake  <ebb9@byu.net>
95943         Fix tests on cygwin.
95944         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95946 2007-11-01  Bruno Haible  <bruno@clisp.org>
95948         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95949         warning.
95950         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95951         needed for POSIX compatibility.
95953 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95955         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95956         for compatibility with GNU.
95958 2007-11-01  Bruno Haible  <bruno@clisp.org>
95960         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95961         (putenv): Renamed from rpl_putenv. Change argument type from
95962         'const char *' to 'char *'.
95963         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95964         of defining putenv in config.h, just set REPLACE_PUTENV.
95965         * modules/putenv (Depends-on): Add stdlib.
95966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95967         (Include): Use <stdlib.h>.
95968         * lib/stdlib.in.h (putenv): New declaration.
95969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95970         REPLACE_PUTENV.
95971         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95972         REPLACE_PUTENV.
95973         Needed for MacOS X 10.5.0.
95974         Reported by Peter O'Gorman <peter@pogma.com>.
95976 2007-11-01  Jim Meyering  <meyering@redhat.com>
95978         Treat an empty date string exactly like "0".
95979         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95980         if the remaining date string (to be parsed) is empty, use "0".
95981         Reported by Mischa Molhoek and discussed in this thread:
95982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95984 2007-10-31  Bruno Haible  <bruno@clisp.org>
95986         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95987         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95988         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95989         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95990         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95991         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95993 2007-10-31  Bruno Haible  <bruno@clisp.org>
95995         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95996         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95997         (AC_TYPE_LONG_LONG_INT): Use it.
95998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95999         it as well.
96000         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96001         to m4/longlong.m4.
96002         * modules/stdint (Files): Remove m4/ulonglong.m4.
96003         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96004         m4/ulonglong.m4.
96005         * modules/strtoumax (Files): Likewise.
96007 2007-10-30  Bruno Haible  <bruno@clisp.org>
96009         * modules/xvasprintf-posix: New file.
96010         Suggested by Eric Blake.
96012 2007-10-30  Bruno Haible  <bruno@clisp.org>
96014         * modules/xprintf-posix-tests: New file.
96015         * tests/test-xprintf-posix.sh: New file.
96016         * tests/test-xprintf-posix.c: New file.
96017         * tests/test-xfprintf-posix.c: New file.
96019         * modules/xprintf-posix: New file.
96021 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96023         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96024         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96025         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96027 2007-10-29  Bruno Haible  <bruno@clisp.org>
96029         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96030         contain the special marker '_cv_'.
96031         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96032         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96034         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96035         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96036         Reported by Ralf Wildenhues.
96038 2007-10-29  Bruno Haible  <bruno@clisp.org>
96040         * gnulib-tool (func_import): When --lgpl is not specified, set
96041         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96042         GPLv3.
96043         Reported by Simon Josefsson.
96045 2007-10-28  Bruno Haible  <bruno@clisp.org>
96047         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96048         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96049         HAVE_DECL_ISFINITE.
96050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96051         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96052         HAVE_DECL_ISFINITE.
96054 2007-10-28  Bruno Haible  <bruno@clisp.org>
96056         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96057         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96059 2007-10-28  Bruno Haible  <bruno@clisp.org>
96061         Fix link errors with Sun C 5.0 on Solaris 10.
96062         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96063         function is declared but not present in the compiler's libm.
96064         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96065         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96066         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96067         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96068         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96069         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96070         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96072         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96073         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96074         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96075         HAVE_DECL_FLOORL.
96077 2007-10-28  Bruno Haible  <bruno@clisp.org>
96079         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96080         gl_FUNC_FLOORL. Cache the result.
96081         (gl_FUNC_FLOORL): Use it.
96082         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96083         gl_FUNC_CEILL. Cache the result.
96084         (gl_FUNC_CEILL): Use it.
96086         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96087         gl_FUNC_FLOOR. Cache the result.
96088         (gl_FUNC_FLOOR): Use it.
96089         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96090         gl_FUNC_CEIL. Cache the result.
96091         (gl_FUNC_CEIL): Use it.
96093         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96094         gl_FUNC_FLOORF. Cache the result.
96095         (gl_FUNC_FLOORF): Use it.
96096         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96097         gl_FUNC_CEILF. Cache the result.
96098         (gl_FUNC_CEILF): Use it.
96100 2007-10-28  Bruno Haible  <bruno@clisp.org>
96102         * gnulib-tool: Allow specifying the LGPL version number through
96103         --lgpl=2 or --lgpl=3.
96104         (func_usage): Document --lgpl with argument.
96105         Handle --lgpl=... arguments.
96106         (func_import): Recognize also gl_LGPL calls with an argument. When
96107         --lgpl=2 is used and the module's license is just LGPL, report an
96108         error. Set sed_transform_lib_file according to the lgpl variable. In
96109         the generated files, use --lgpl or gl_LGPL invocations with argument,
96110         if necessary.
96111         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96112         an LGPv2+ license.
96113         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96114         gl_LGPL macro.
96116 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96117             Bruno Haible  <bruno@clisp.org>
96119         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96120         (u16_uctomb_aux): Likewise.
96121         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96122         !HAVE_INLINE.
96123         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96125 2007-10-28  Bruno Haible  <bruno@clisp.org>
96127         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96128         Invoke AM_GETTEXT_OPTION if it exists.
96129         * modules/vasprintf: Likewise.
96130         * modules/verror: Likewise.
96131         * modules/xprintf: Likewise.
96132         * modules/xvasprintf: Likewise.
96134 2007-10-27  Ben Pfaff  <blp@gnu.org>
96136         * lib/math.in.h: Define isfinite macro and prototypes for
96137         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96138         implementations.
96139         * m4/math_h.m4: New substitutions for isfinite module.
96140         * lib/isfinite.c: New file.
96141         * m4/isfinite.m4: New file.
96142         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96143         * modules/isfinite: New file.
96144         * modules/isfinite-tests: New file.
96145         * tests/tests-isfinite.c: New file.
96146         * doc/functions/isfinite.texi: Mention isfinite module.
96147         * MODULES.html.sh: Mention new module.
96149 2007-10-27  Ben Pfaff  <blp@gnu.org>
96151         Ralf Wildenhues reported that Tru64 4.0D declares the round
96152         functions but does not have definitions.
96153         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96154         cannot be found in any library, set the output variable to
96155         "missing" instead of "".
96156         * m4/round.m4: Also use our substitute if we cannot find round in
96157         any library, even if it is declared.
96158         * m4/roundf.m4: Likewise for roundf.
96159         * m4/roundl.m4: Likewise for roundl.
96160         * lib/math.in.h: Undefine roundf, round, roundl before defining
96161         their replacements, to allow for hypothetical systems where these
96162         may be defined as macros but not available in libraries.
96164 2007-10-27  Bruno Haible  <bruno@clisp.org>
96166         * doc/gnulib.texi: Invoke @firstparagraphindent.
96167         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96168         changes in gnulib.
96169         (Source changes): New section.
96171 2007-10-26  Bruno Haible  <bruno@clisp.org>
96173         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96174         borrowed from autoconf.
96176 2007-10-26  Bruno Haible  <bruno@clisp.org>
96178         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96179         strerror returned the empty string. Needed on HP-UX 11.00.
96181 2007-10-24  Micah Cowan  <micah@cowan.name>
96183         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96184         * build-aux/bootstrap: Remove support for now-unnecessary option,
96185         --cvs-user, and envvars CVS_USER, CVS_RSH.
96187 2007-10-24  Jim Meyering  <meyering@redhat.com>
96189         Avoid diagnostics from sha1sum when there is no cached checksum.
96190         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96191         if the po.s1 file hasn't been created yet.
96193         * build-aux/bootstrap: Sync from coreutils:
96194         2007-10-24  Jim Meyering  <meyering@redhat.com>
96195         Get gnulib from the git repository, not from an obsolete cvs one.
96196         * build-aux/bootstrap: Suggestion from Micah Cowan.
96197         2007-10-04  Jim Meyering  <jim@meyering.net>
96198         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96199         (update_po_files): Work also when there are no .po files in po/.
96201 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96203         * README: Append ".git" to git and cg examples.
96204         Problem reported by Benoit Sigoure.
96206 2007-10-23  Micah Cowan  <micah@cowan.name>
96208         * users.txt: Add wget.
96210 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96212         Fix linking of some unistdio tests on FreeBSD.
96213         * modules/unistdio/u16-vsnprintf-tests
96214         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96215         * modules/unistdio/u16-vsprintf-tests
96216         (test_u16_vsnprintf1_LDADD): Likewise.
96217         * modules/unistdio/u32-vsnprintf-tests
96218         (test_u32_vsnprintf1_LDADD): Likewise.
96219         * modules/unistdio/u32-vsprintf-tests
96220         (test_u32_vsprintf1_LDADD): Likewise.
96221         * modules/unistdio/u8-vsnprintf-tests
96222         (test_u8_vsnprintf1_LDADD): Likewise.
96223         * modules/unistdio/u8-vsprintf-tests
96224         (test_u8_vsprintf1_LDADD): Likewise.
96225         * modules/unistdio/ulc-vsnprintf-tests
96226         (test_ulc_vsnprintf1_LDADD): Likewise.
96227         * modules/unistdio/ulc-vsprintf-tests
96228         (test_ulc_vsprintf1_LDADD): Likewise.
96230         Fix linking of some uniconv tests on FreeBSD.
96231         * modules/uniconv/u16-conv-from-enc-tests
96232         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96233         * modules/uniconv/u16-conv-to-enc-tests
96234         (test_u16_conv_to_enc_LDADD): Likewise.
96235         * modules/uniconv/u16-strconv-from-enc-tests
96236         (test_u16_strconv_from_enc_LDADD): Likewise.
96237         * modules/uniconv/u16-strconv-to-enc-tests
96238         (test_u16_strconv_to_enc_LDADD): Likewise.
96239         * modules/uniconv/u32-conv-from-enc-tests
96240         (test_u32_conv_from_enc_LDADD): Likewise.
96241         * modules/uniconv/u32-conv-to-enc-tests
96242         (test_u32_conv_to_enc_LDADD): Likewise.
96243         * modules/uniconv/u32-strconv-from-enc-tests
96244         (test_u32_strconv_from_enc_LDADD): Likewise.
96245         * modules/uniconv/u32-strconv-to-enc-tests
96246         (test_u32_strconv_to_enc_LDADD): Likewise.
96247         * modules/uniconv/u8-conv-from-enc-tests
96248         (test_u8_conv_from_enc_LDADD): Likewise.
96249         * modules/uniconv/u8-conv-to-enc-tests
96250         (test_u8_conv_to_enc_LDADD): Likewise.
96251         * modules/uniconv/u8-strconv-from-enc-tests
96252         (test_u8_strconv_from_enc_LDADD): Likewise.
96253         * modules/uniconv/u8-strconv-to-enc-tests
96254         (test_u8_strconv_to_enc_LDADD): Likewise.
96256 2007-10-22  Bruno Haible  <bruno@clisp.org>
96258         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96259         size.
96261 2007-10-22  Eric Blake  <ebb9@byu.net>
96263         Tweak x*printf documentation.
96264         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96265         variable name and comments.
96266         Suggested by Bruno Haible.
96268 2007-10-22  Bruno Haible  <bruno@clisp.org>
96270         * lib/acl.c (copy_acl): Fix file name in comment.
96272 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96274         Fix Tru64 problem with stdbool.h.
96275         * lib/stdbool.in.h (false, true):
96276         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96277         Don't declare as an enum in this situation; it runs afoul of Tru64.
96278         Problem reported by Steven M. Schweda in
96279         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96281 2007-10-22  Eric Blake  <ebb9@byu.net>
96283         Also wrap vf?printf.
96284         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96285         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96286         (xvprintf, xvfprintf): New functions.
96288 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96290         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96291         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96293         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96294         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96296 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96298         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96299         by Bruno Haible.
96301 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96303         * lib/getloadavg.c
96304         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96305         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96307         * tests/test-i-ring.c: Work for C89.
96309 2007-10-22  Bruno Haible  <bruno@clisp.org>
96311         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96312         -1u, in preprocessor expression, so that we don't test for the bug
96313         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96314         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96316 2007-10-22  Eric Blake  <ebb9@byu.net>
96318         * tests/test-yesno.sh: Silence stderr during test.
96320 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96322         * modules/crypto/gc-camellia: New file.
96324         * m4/gc-camellia.m4: New file.
96326         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96328         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96330 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96332         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96333         --help to stdout.  Reported by sms@antinode.org (Steven
96334         M. Schweda).
96336 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96338         * users.txt: Fix link to libksba.
96340 2007-10-21  Ben Pfaff  <blp@gnu.org>
96342         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96343         round.c roundf implementation that depends on floorf and ceilf to
96344         be tested unconditionally.
96346 2007-10-21  Ben Pfaff  <blp@gnu.org>
96348         * m4/check-libm-func.m4: Removed.
96349         * m4/check-math-lib.m4: New file.
96350         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96351         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96352         definition and lack of AC_LIBOBJ([roundf]).
96353         * m4/roundl.m4: Ditto, and similarly for roundl.
96354         * modules/round: Reference new m4 file.
96355         * modules/roundf: Ditto.
96356         * modules/roundl: Ditto.
96357         * tests/test-round2.c (main): Use ROUND instead of round.
96358         Bug report from Bruno Haible.
96360 2007-10-21  Bruno Haible  <bruno@clisp.org>
96362         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96363         context.
96365 2007-10-21  Bruno Haible  <bruno@clisp.org>
96367         * tests/test-wcwidth.c (main): Allow negative result for some control
96368         characters.
96370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96371         Needed on OSF/1 5.1.
96373 2007-10-21  Bruno Haible  <bruno@clisp.org>
96375         * tests/test-floorf1.c: Include isnanf.h.
96376         (main): Use isnanf() instead of isnan().
96377         * tests/test-ceilf1.c: Include isnanf.h.
96378         (main): Use isnanf() instead of isnan().
96379         * tests/test-truncf1.c: Include isnanf.h.
96380         (main): Use isnanf() instead of isnan().
96381         * tests/test-roundf1.c: Include isnanf.h.
96382         (main): Use isnanf() instead of isnan().
96384 2007-10-21  Eric Blake  <ebb9@byu.net>
96386         * users.txt: Update URL for m4.
96388 2007-10-21  Bruno Haible  <bruno@clisp.org>
96390         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96392 2007-10-21  Bruno Haible  <bruno@clisp.org>
96394         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96395         Git's management files if the CVS files are not present.
96397 2007-10-20  Bruno Haible  <bruno@clisp.org>
96399         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96400         gcc-3.4.x.
96402 2007-10-20  Ben Pfaff  <blp@gnu.org>
96404         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96405         implementations.
96406         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96407         * lib/round.c: New file.
96408         * lib/roundf.c: New file.
96409         * lib/roundl.c: New file.
96410         * m4/round.m4: New file.
96411         * m4/roundf.m4: New file.
96412         * m4/roundl.m4: New file.
96413         * m4/check-libm-func-m4: New file.
96414         * modules/math: Replace round, roundf, roundl related @VARS@ in
96415         math.in.h.
96416         * modules/round: New file.
96417         * modules/round-tests: New file.
96418         * modules/roundf: New file.
96419         * modules/roundf-tests: New file.
96420         * modules/roundl: New file.
96421         * modules/roundl-tests: New file.
96422         * tests/test-round1.c: New file.
96423         * tests/test-round2.c: New file.
96424         * tests/test-roundf1.c: New file.
96425         * tests/test-roundf2.c: New file.
96426         * tests/test-roundl.c: New file.
96427         * doc/functions/round.texi: Mention round module.
96428         * doc/functions/roundf.texi: Mention roundf module.
96429         * doc/functions/roundl.texi: Mention roundl module.
96430         * MODULES.html.sh: Mention new modules.
96431         Thanks to Bruno Haible for suggestions.
96433 2007-10-20  Jim Meyering  <meyering@redhat.com>
96435         * lib/xprintf.c: Include <config.h> unconditionally.
96437         Change xprintf's license to GPL.
96438         * modules/xprintf (License): s/LGPL/GPL/, since this module
96439         depends on modules (exit and exitfail) which are GPL.
96440         Suggestion from Bruno Haible.
96442         xprintf fixes.
96443         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96444         Use a clearer diagnostic.
96445         Patch from Bruno Haible.
96447 2007-10-20  Bruno Haible  <bruno@clisp.org>
96449         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96450         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96453 2007-10-20  Bruno Haible  <bruno@clisp.org>
96455         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96456         precision in the comparison result > x - 1 or similar.
96457         * tests/test-ceilf2.c (correct_result_p): Likewise.
96458         * tests/test-truncf2.c (correct_result_p): Likewise.
96459         * tests/test-trunc2.c (correct_result_p): Likewise.
96460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96462 2007-10-20  Bruno Haible  <bruno@clisp.org>
96464         * modules/ceil: New file.
96465         * m4/ceil.m4: New file.
96466         * doc/functions/ceil.texi: Mention the 'ceil' module.
96468 2007-10-20  Bruno Haible  <bruno@clisp.org>
96470         * modules/floor: New file.
96471         * m4/floor.m4: New file.
96472         * doc/functions/floor.texi: Mention the 'floor' module.
96474 2007-10-20  Bruno Haible  <bruno@clisp.org>
96476         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96477         of %a.
96478         * modules/floorf-tests (Depends-on): Likewise.
96479         * modules/truncf-tests (Depends-on): Likewise.
96480         * modules/trunc-tests (Depends-on): Likewise.
96481         Reported by Ben Pfaff.
96483 2007-10-19  Jim Meyering  <meyering@redhat.com>
96485         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96486         Don't bother testing specific errno values.  Just test ferror.
96488         New module: xprintf
96489         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96491 2007-10-19  Bruno Haible  <bruno@clisp.org>
96493         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96494         syntax.
96495         * modules/javaexec (Makefile.am): Likewise.
96496         * modules/relocatable-prog (Makefile.am): Likewise.
96497         Suggested by Jim Meyering.
96499 2007-10-18  Bruno Haible  <bruno@clisp.org>
96501         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96502         Reported by Jim Meyering.
96504 2007-10-18  Eric Blake  <ebb9@byu.net>
96506         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96508 2007-10-18  Bruno Haible  <bruno@clisp.org>
96510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96511         the format string into writable memory. Needed in Fortify conditions.
96513 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96514             Bruno Haible  <bruno@clisp.org>
96516         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96517         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96518         * modules/trim (Depends-on): Add mbchar.
96519         (configure.ac): Add gl_FUNC_MBRTOWC.
96520         (Makefile.am): Augment lib_SOURCES.
96522 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96524         Modify glob.c to use fstatat and dirfd, to simplify it.
96525         Suggested by Eric Blake.
96526         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96527         Don't include <stdbool.h>; not used.
96528         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96529         (link_exists_p): Simplify implementation, since we can now assume
96530         dirfd and fstatat.
96531         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96533 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96535         * gnulib-tool (func_get_dependencies): Fix sed script to
96536         match only tests.
96538 2007-10-17  Bruno Haible  <bruno@clisp.org>
96540         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96541         allow locale names without encoding suffix.
96542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96543         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96545 2007-10-16  Bruno Haible  <bruno@clisp.org>
96547         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96548         * lib/getgroups.c (getgroups): Likewise.
96549         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96551 2007-10-16  Bruno Haible  <bruno@clisp.org>
96553         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96554         * modules/malloc-posix (License): Likewise.
96555         * modules/realloc-posix (License): Likewise.
96556         * modules/calloc-posix (License): Likewise.
96557         * modules/intprops (License): Change from GPL to LGPL, with
96558         Paul Eggert's approval.
96560 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96562         Merge glibc changes into lib/glob.c.
96564         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96565         2007-10-15 04:59:03 UTC.  Here are the changes:
96567         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96569         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96571         * lib/glob.c: Add some branch prediction throughout.
96573         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96575         [BZ #5103]
96576         * lib/glob.c (glob): Recognize patterns starting \/.
96578         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96580         [BZ #3996]
96581         * lib/glob.c (attribute_hidden): Define if not defined.
96582         (glob): Unescape dirname, filename or username when needed and not
96583         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96584         is NULL.  Handle unescaped [ in pattern without closing ].
96585         Don't pass GLOB_CHECK down to recursive glob for directories.
96586         (__glob_pattern_type): New function.
96587         (__glob_pattern_p): Implement using __glob_pattern_type.
96588         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96589         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96590         Remove unreachable code.
96592         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96594         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96595         explain why there are no leaks.
96597         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96599         [BZ #3253]
96600         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96601         time, rather allocate increasingly bigger arrays of pointers, if
96602         possible with alloca, if too large with malloc.
96604 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96606         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96607         Problem reported by H.Merijn Brand in
96608         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96609         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96612 2007-10-15  Bruno Haible  <bruno@clisp.org>
96614         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96615         with explicit rpl_ prefix.
96616         * lib/fopen.c (fopen): Likewise.
96617         * lib/freopen.c (freopen): Likewise.
96618         * lib/iconv.c (iconv): Likewise.
96619         * lib/iconv_close.c (iconv_close): Likewise.
96621 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96623         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96625 2007-10-15  Bruno Haible  <bruno@clisp.org>
96627         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96628         <stddef.h> instead of <stdlib.h> since we only need NULL.
96629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96631 2007-10-15  Bruno Haible  <bruno@clisp.org>
96633         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96634         Replace paragraph talking about LIBOBJS.
96635         Reported by Colin Watson <cjwatson@debian.org>.
96637 2007-10-15  Bruno Haible  <bruno@clisp.org>
96639         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96640         <stdlib.h> before using NULL.
96642 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96644         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96645         Reported by Albert Chin <china@thewrittenword.com>.
96647 2007-10-14  Bruno Haible  <bruno@clisp.org>
96649         * modules/iconv_open-utf-tests: New file.
96650         * tests/test-iconv-utf.c: New file.
96652         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96653         * modules/iconv_open-utf: New file.
96654         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96655         (iconv, iconv_close): New declarations.
96656         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96657         be defined.
96658         (iconv_open): Add special handling of conversion between UTF-8 and
96659         UTF-{16,32}{BE,LE}.
96660         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96661         * lib/iconv_close.c: New file.
96662         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96663         gl_FUNC_ICONV_OPEN.
96664         (gl_FUNC_ICONV_OPEN): Use it.
96665         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96666         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96667         and REPLACE_ICONV_UTF.
96668         * modules/iconv_open (Depends-on): Add c-strcase.
96669         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96670         ICONV_CONST.
96671         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96673 2007-10-13  Albert Chin  <china@thewrittenword.com>
96674             Bruno Haible  <bruno@clisp.org>
96676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96677         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96679 2007-10-13  Bruno Haible  <bruno@clisp.org>
96681         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96682         defined, use the ISO C99 inline semantics.
96683         * lib/argp.h (ARGP_EI): Likewise.
96685 2007-10-13  Bruno Haible  <bruno@clisp.org>
96687         Handle 'inline' change in gcc 4.3.0.
96688         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96689         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96690         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96691         argp_fmtstream_point): Disable 'extern' declaration if the function
96692         definition is going to be provided inline.
96693         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96694         semantics, not the ISO C99 inline semantics.
96695         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96696         'extern' declaration if the function definition is going to be provided
96697         inline.
96698         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96699         the GNU C inline semantics, not the ISO C99 inline semantics. With
96700         GCC 4.2, avoid a warning.
96702 2007-10-13  Bruno Haible  <bruno@clisp.org>
96704         * lib/freading.h (freading): Enable the use of __freading for
96705         glibc >= 2.7.
96706         * lib/freading.c (freading): Likewise.
96708 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96710         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96711         "warning: C99 inline functions are not supported; using GNU89".
96713 2007-10-12  Bruno Haible  <bruno@clisp.org>
96715         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96716         of 2.
96717         * tests/test-ceilf2.c: New file.
96718         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96720         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96721         * modules/ceilf-tests: Update.
96723 2007-10-12  Bruno Haible  <bruno@clisp.org>
96725         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96726         of 2.
96727         * tests/test-floorf2.c: New file.
96728         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96730         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96731         * modules/floorf-tests: Update.
96733 2007-10-12  Bruno Haible  <bruno@clisp.org>
96735         * tests/test-trunc2.c: New file.
96736         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96738         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96739         * modules/trunc-tests: Update.
96741 2007-10-12  Bruno Haible  <bruno@clisp.org>
96743         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96744         of 2.
96745         * tests/test-truncf2.c: New file.
96746         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96748         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96749         * modules/truncf-tests: Update.
96751 2007-10-11  Eric Blake  <ebb9@byu.net>
96753         Don't claim strerror is broken on Interix.
96754         * doc/functions/strerror.texi (strerror): Known broken systems are
96755         now Solaris 8, and not Interix.
96756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96757         Interix on cross-compile.
96758         Reported by Martin Koeppe in
96759         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96761 2007-10-11  Bruno Haible  <bruno@clisp.org>
96763         * modules/i-ring-tests: New file.
96764         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96765         instead of assert.
96767 2007-10-11  Bruno Haible  <bruno@clisp.org>
96769         * modules/filenamecat-tests: New file.
96770         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96771         * lib/filenamecat.c: Remove test code.
96773 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96775         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96777         * lib/strerror.c: Include <string.h> always, to test interface,
96778         and to remove the need for the dummy.
96779         Include intprops.h to compute width instead of doing it ourselves
96780         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96781         (strerror): Define it to return NULL if there's no system strerror.
96782         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96783         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96784         ancient pre-strerror Unix systems well any more.  Saying "unknown
96785         system error" is enough.
96786         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96787         simpler strerror.c implementation.
96788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96789         Simplify the tests to reflect the simpler strerror implementation.
96790         * modules/strerror (Depends-on): Add intprops.
96792 2007-10-09  Eric Blake  <ebb9@byu.net>
96794         Silence test-fpending.
96795         * modules/fpending-tests (Files): Add wrapper script.
96796         * tests/test-fpending.sh: New file.
96798 2007-10-09  Bruno Haible  <bruno@clisp.org>
96800         * MODULES.html.sh (func_module): Don't create a hyperlink for
96801         function names like 'printf_frexp'.
96802         (Misc): Add crc, memxor.
96803         (Characteristics of floating types): New section.
96804         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96805         isnanf-nolibm, signbit, trunc, truncf, truncl.
96806         (Enhancements for ISO C 99 functions): New subsection Input/output.
96807         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96808         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96809         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96810         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96811         (Enhancements for POSIX:2001 functions): Add chdir-long.
96812         (File system functions): Add areadlink, chdir-safer, read-file.
96813         Remove cycle-check.
96814         (File system as inode set): New section.
96815         (Date and time): Add gethrxtime.
96816         (Multithreading): Add openmp.
96817         (Internationalization functions): Add localename.
96818         (Unicode string functions): Add unistr/u*-mbsnlen.
96819         (Support for maintaining and releasing projects): Add git-version-gen.
96820         (Lone files): Remove directories.
96822 2007-10-08  Ben Pfaff  <blp@gnu.org>
96824         * lib/xmalloca.h: Fix typo in comment.
96826 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96828         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96829         when avoiding problems with integer overflow.  Use a portable test
96830         instead.
96832 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96834         * modules/dummy (License): Change to LGPLv2+.
96835         * modules/float (License): Likewise
96836         * modules/realloc (License): Likewise
96837         * modules/stdlib (License): Likewise
96839 2007-10-07  Bruno Haible  <bruno@clisp.org>
96841         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96842         * floor.c (TWO_MANT_DIG): Likewise.
96843         * ceil.c (TWO_MANT_DIG): Likewise.
96844         Reported by Ben Pfaff.
96846 2007-10-07  Bruno Haible  <bruno@clisp.org>
96848         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96849         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96850         * lib/frexp.c (FUNC): Likewise.
96851         * lib/printf-frexp.h (printf_frexp): Likewise.
96852         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96853         * lib/printf-frexp.c (FUNC): Likewise.
96854         Suggested by Jim Meyering.
96856 2007-10-07  Jim Meyering  <meyering@redhat.com>
96858         Make xnanosleep's integer overflow test more robust.
96859         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96860         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96862 2007-10-07  Bruno Haible  <bruno@clisp.org>
96864         * NEWS: Mention the license change.
96866         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96867         abbreviations in the modules files.
96869         Change copyright notice from GPLv2+ to GPLv3+.
96870         * README: Change copyright notice.
96871         * MODULES.html.sh: Likewise.
96872         * build-aux/bootstrap.conf: Likewise.
96873         * build-aux/config.libpath: Likewise.
96874         * build-aux/csharpcomp.sh.in: Likewise.
96875         * build-aux/csharpexec.sh.in: Likewise.
96876         * build-aux/install-reloc: Likewise.
96877         * build-aux/javacomp.sh.in: Likewise.
96878         * build-aux/javaexec.sh.in: Likewise.
96879         * build-aux/ldd.sh.in: Likewise.
96880         * build-aux/reloc-ldflags: Likewise.
96881         * build-aux/relocatable.sh.in: Likewise.
96882         * build-aux/x-to-1.in: Likewise.
96883         * check-module: Likewise.
96884         * config/srclistvars.sh: Likewise.
96885         * gnulib-tool: Likewise.
96886         * lib/acl-internal.h: Likewise.
96887         * lib/acl.c: Likewise.
96888         * lib/acl.h: Likewise.
96889         * lib/acl_entries.c: Likewise.
96890         * lib/areadlink-with-size.c: Likewise.
96891         * lib/areadlink.c: Likewise.
96892         * lib/areadlink.h: Likewise.
96893         * lib/argmatch.c: Likewise.
96894         * lib/argmatch.h: Likewise.
96895         * lib/argp-ba.c: Likewise.
96896         * lib/argp-eexst.c: Likewise.
96897         * lib/argp-fmtstream.c: Likewise.
96898         * lib/argp-fmtstream.h: Likewise.
96899         * lib/argp-fs-xinl.c: Likewise.
96900         * lib/argp-help.c: Likewise.
96901         * lib/argp-namefrob.h: Likewise.
96902         * lib/argp-parse.c: Likewise.
96903         * lib/argp-pin.c: Likewise.
96904         * lib/argp-pv.c: Likewise.
96905         * lib/argp-pvh.c: Likewise.
96906         * lib/argp-xinl.c: Likewise.
96907         * lib/argp.h: Likewise.
96908         * lib/at-func.c: Likewise.
96909         * lib/atanl.c: Likewise.
96910         * lib/backupfile.c: Likewise.
96911         * lib/backupfile.h: Likewise.
96912         * lib/basename.c: Likewise.
96913         * lib/binary-io.h: Likewise.
96914         * lib/byteswap.in.h: Likewise.
96915         * lib/c-stack.c: Likewise.
96916         * lib/c-stack.h: Likewise.
96917         * lib/c-strcasestr.c: Likewise.
96918         * lib/c-strcasestr.h: Likewise.
96919         * lib/c-strstr.c: Likewise.
96920         * lib/c-strstr.h: Likewise.
96921         * lib/c-strtod.c: Likewise.
96922         * lib/calloc.c: Likewise.
96923         * lib/canon-host.c: Likewise.
96924         * lib/canon-host.h: Likewise.
96925         * lib/canonicalize-lgpl.c: Likewise.
96926         * lib/canonicalize.c: Likewise.
96927         * lib/canonicalize.h: Likewise.
96928         * lib/ceil.c: Likewise.
96929         * lib/ceilf.c: Likewise.
96930         * lib/ceill.c: Likewise.
96931         * lib/chdir-long.c: Likewise.
96932         * lib/chdir-long.h: Likewise.
96933         * lib/chdir-safer.c: Likewise.
96934         * lib/chdir-safer.h: Likewise.
96935         * lib/chown.c: Likewise.
96936         * lib/classpath.c: Likewise.
96937         * lib/classpath.h: Likewise.
96938         * lib/clean-temp.c: Likewise.
96939         * lib/clean-temp.h: Likewise.
96940         * lib/cloexec.c: Likewise.
96941         * lib/close-stream.c: Likewise.
96942         * lib/closein.c: Likewise.
96943         * lib/closein.h: Likewise.
96944         * lib/closeout.c: Likewise.
96945         * lib/closeout.h: Likewise.
96946         * lib/concat-filename.c: Likewise.
96947         * lib/copy-file.c: Likewise.
96948         * lib/copy-file.h: Likewise.
96949         * lib/count-one-bits.h: Likewise.
96950         * lib/crc.c: Likewise.
96951         * lib/crc.h: Likewise.
96952         * lib/creat-safer.c: Likewise.
96953         * lib/csharpcomp.c: Likewise.
96954         * lib/csharpcomp.h: Likewise.
96955         * lib/csharpexec.c: Likewise.
96956         * lib/csharpexec.h: Likewise.
96957         * lib/cycle-check.c: Likewise.
96958         * lib/cycle-check.h: Likewise.
96959         * lib/diacrit.c: Likewise.
96960         * lib/diacrit.h: Likewise.
96961         * lib/diffseq.h: Likewise.
96962         * lib/dirchownmod.c: Likewise.
96963         * lib/dirent.in.h: Likewise.
96964         * lib/dirfd.c: Likewise.
96965         * lib/dirfd.h: Likewise.
96966         * lib/dirname.c: Likewise.
96967         * lib/dirname.h: Likewise.
96968         * lib/dummy.c: Likewise.
96969         * lib/dup-safer.c: Likewise.
96970         * lib/dup2.c: Likewise.
96971         * lib/eealloc.h: Likewise.
96972         * lib/error.c: Likewise.
96973         * lib/error.h: Likewise.
96974         * lib/euidaccess.c: Likewise.
96975         * lib/exclude.c: Likewise.
96976         * lib/exclude.h: Likewise.
96977         * lib/execute.c: Likewise.
96978         * lib/execute.h: Likewise.
96979         * lib/exitfail.c: Likewise.
96980         * lib/exitfail.h: Likewise.
96981         * lib/expl.c: Likewise.
96982         * lib/fatal-signal.c: Likewise.
96983         * lib/fatal-signal.h: Likewise.
96984         * lib/fbufmode.c: Likewise.
96985         * lib/fbufmode.h: Likewise.
96986         * lib/fchdir.c: Likewise.
96987         * lib/fchmodat.c: Likewise.
96988         * lib/fchownat.c: Likewise.
96989         * lib/fcntl--.h: Likewise.
96990         * lib/fcntl-safer.h: Likewise.
96991         * lib/fcntl.in.h: Likewise.
96992         * lib/fd-safer.c: Likewise.
96993         * lib/fflush.c: Likewise.
96994         * lib/file-has-acl.c: Likewise.
96995         * lib/file-set.c: Likewise.
96996         * lib/file-type.c: Likewise.
96997         * lib/file-type.h: Likewise.
96998         * lib/fileblocks.c: Likewise.
96999         * lib/filemode.c: Likewise.
97000         * lib/filemode.h: Likewise.
97001         * lib/filename.h: Likewise.
97002         * lib/filenamecat.c: Likewise.
97003         * lib/filenamecat.h: Likewise.
97004         * lib/findprog.c: Likewise.
97005         * lib/findprog.h: Likewise.
97006         * lib/float.in.h: Likewise.
97007         * lib/floor.c: Likewise.
97008         * lib/floorf.c: Likewise.
97009         * lib/floorl.c: Likewise.
97010         * lib/fopen-safer.c: Likewise.
97011         * lib/fopen.c: Likewise.
97012         * lib/fpending.c: Likewise.
97013         * lib/fpending.h: Likewise.
97014         * lib/fprintf.c: Likewise.
97015         * lib/fprintftime.h: Likewise.
97016         * lib/fpucw.h: Likewise.
97017         * lib/fpurge.c: Likewise.
97018         * lib/fpurge.h: Likewise.
97019         * lib/freadable.c: Likewise.
97020         * lib/freadable.h: Likewise.
97021         * lib/freadahead.c: Likewise.
97022         * lib/freadahead.h: Likewise.
97023         * lib/freading.c: Likewise.
97024         * lib/freading.h: Likewise.
97025         * lib/free.c: Likewise.
97026         * lib/freopen.c: Likewise.
97027         * lib/frexp.c: Likewise.
97028         * lib/frexpl.c: Likewise.
97029         * lib/fseek.c: Likewise.
97030         * lib/fseterr.c: Likewise.
97031         * lib/fseterr.h: Likewise.
97032         * lib/fstatat.c: Likewise.
97033         * lib/fstrcmp.c: Likewise.
97034         * lib/fstrcmp.h: Likewise.
97035         * lib/fsusage.c: Likewise.
97036         * lib/fsusage.h: Likewise.
97037         * lib/ftell.c: Likewise.
97038         * lib/ftello.c: Likewise.
97039         * lib/fts-cycle.c: Likewise.
97040         * lib/fts.c: Likewise.
97041         * lib/fts_.h: Likewise.
97042         * lib/full-read.c: Likewise.
97043         * lib/full-read.h: Likewise.
97044         * lib/full-write.c: Likewise.
97045         * lib/full-write.h: Likewise.
97046         * lib/fwritable.c: Likewise.
97047         * lib/fwritable.h: Likewise.
97048         * lib/fwriteerror.c: Likewise.
97049         * lib/fwriteerror.h: Likewise.
97050         * lib/fwriting.c: Likewise.
97051         * lib/fwriting.h: Likewise.
97052         * lib/gcd.c: Likewise.
97053         * lib/gcd.h: Likewise.
97054         * lib/getcwd.c: Likewise.
97055         * lib/getdate.h: Likewise.
97056         * lib/getdate.y: Likewise.
97057         * lib/getdomainname.c: Likewise.
97058         * lib/getdomainname.h: Likewise.
97059         * lib/getgroups.c: Likewise.
97060         * lib/gethostname.c: Likewise.
97061         * lib/gethrxtime.c: Likewise.
97062         * lib/gethrxtime.h: Likewise.
97063         * lib/getloadavg.c: Likewise.
97064         * lib/getndelim2.c: Likewise.
97065         * lib/getndelim2.h: Likewise.
97066         * lib/getnline.c: Likewise.
97067         * lib/getnline.h: Likewise.
97068         * lib/getopt.c: Likewise.
97069         * lib/getopt.in.h: Likewise.
97070         * lib/getopt1.c: Likewise.
97071         * lib/getopt_int.h: Likewise.
97072         * lib/getpagesize.h: Likewise.
97073         * lib/getsubopt.c: Likewise.
97074         * lib/gettime.c: Likewise.
97075         * lib/getugroups.c: Likewise.
97076         * lib/getugroups.h: Likewise.
97077         * lib/getusershell.c: Likewise.
97078         * lib/gl_anyavltree_list1.h: Likewise.
97079         * lib/gl_anyavltree_list2.h: Likewise.
97080         * lib/gl_anyhash_list1.h: Likewise.
97081         * lib/gl_anyhash_list2.h: Likewise.
97082         * lib/gl_anylinked_list1.h: Likewise.
97083         * lib/gl_anylinked_list2.h: Likewise.
97084         * lib/gl_anyrbtree_list1.h: Likewise.
97085         * lib/gl_anyrbtree_list2.h: Likewise.
97086         * lib/gl_anytree_list1.h: Likewise.
97087         * lib/gl_anytree_list2.h: Likewise.
97088         * lib/gl_anytree_oset.h: Likewise.
97089         * lib/gl_anytreehash_list1.h: Likewise.
97090         * lib/gl_anytreehash_list2.h: Likewise.
97091         * lib/gl_array_list.c: Likewise.
97092         * lib/gl_array_list.h: Likewise.
97093         * lib/gl_array_oset.c: Likewise.
97094         * lib/gl_array_oset.h: Likewise.
97095         * lib/gl_avltree_list.c: Likewise.
97096         * lib/gl_avltree_list.h: Likewise.
97097         * lib/gl_avltree_oset.c: Likewise.
97098         * lib/gl_avltree_oset.h: Likewise.
97099         * lib/gl_avltreehash_list.c: Likewise.
97100         * lib/gl_avltreehash_list.h: Likewise.
97101         * lib/gl_carray_list.c: Likewise.
97102         * lib/gl_carray_list.h: Likewise.
97103         * lib/gl_linked_list.c: Likewise.
97104         * lib/gl_linked_list.h: Likewise.
97105         * lib/gl_linkedhash_list.c: Likewise.
97106         * lib/gl_linkedhash_list.h: Likewise.
97107         * lib/gl_list.c: Likewise.
97108         * lib/gl_list.h: Likewise.
97109         * lib/gl_oset.c: Likewise.
97110         * lib/gl_oset.h: Likewise.
97111         * lib/gl_rbtree_list.c: Likewise.
97112         * lib/gl_rbtree_list.h: Likewise.
97113         * lib/gl_rbtree_oset.c: Likewise.
97114         * lib/gl_rbtree_oset.h: Likewise.
97115         * lib/gl_rbtreehash_list.c: Likewise.
97116         * lib/gl_rbtreehash_list.h: Likewise.
97117         * lib/gl_sublist.c: Likewise.
97118         * lib/gl_sublist.h: Likewise.
97119         * lib/group-member.c: Likewise.
97120         * lib/group-member.h: Likewise.
97121         * lib/hard-locale.c: Likewise.
97122         * lib/hard-locale.h: Likewise.
97123         * lib/hash-pjw.c: Likewise.
97124         * lib/hash-pjw.h: Likewise.
97125         * lib/hash-triple.c: Likewise.
97126         * lib/hash.c: Likewise.
97127         * lib/hash.h: Likewise.
97128         * lib/human.c: Likewise.
97129         * lib/human.h: Likewise.
97130         * lib/i-ring.c: Likewise.
97131         * lib/i-ring.h: Likewise.
97132         * lib/idcache.c: Likewise.
97133         * lib/imaxabs.c: Likewise.
97134         * lib/imaxdiv.c: Likewise.
97135         * lib/inet_pton.c: Likewise.
97136         * lib/inet_pton.h: Likewise.
97137         * lib/intprops.h: Likewise.
97138         * lib/inttostr.c: Likewise.
97139         * lib/inttostr.h: Likewise.
97140         * lib/inttypes.in.h: Likewise.
97141         * lib/isapipe.c: Likewise.
97142         * lib/isdir.c: Likewise.
97143         * lib/isnan.c: Likewise.
97144         * lib/isnan.h: Likewise.
97145         * lib/isnanf.c: Likewise.
97146         * lib/isnanf.h: Likewise.
97147         * lib/isnanl-nolibm.h: Likewise.
97148         * lib/isnanl.c: Likewise.
97149         * lib/isnanl.h: Likewise.
97150         * lib/javacomp.c: Likewise.
97151         * lib/javacomp.h: Likewise.
97152         * lib/javaexec.c: Likewise.
97153         * lib/javaexec.h: Likewise.
97154         * lib/javaversion.c: Likewise.
97155         * lib/javaversion.h: Likewise.
97156         * lib/javaversion.java: Likewise.
97157         * lib/lbrkprop.h: Likewise.
97158         * lib/lchmod.h: Likewise.
97159         * lib/lchown.c: Likewise.
97160         * lib/ldexpl.c: Likewise.
97161         * lib/linebreak.c: Likewise.
97162         * lib/linebreak.h: Likewise.
97163         * lib/linebuffer.c: Likewise.
97164         * lib/linebuffer.h: Likewise.
97165         * lib/locale.in.h: Likewise.
97166         * lib/logl.c: Likewise.
97167         * lib/long-options.c: Likewise.
97168         * lib/long-options.h: Likewise.
97169         * lib/lstat.c: Likewise.
97170         * lib/lstat.h: Likewise.
97171         * lib/math.in.h: Likewise.
97172         * lib/mbchar.c: Likewise.
97173         * lib/mbchar.h: Likewise.
97174         * lib/mbfile.h: Likewise.
97175         * lib/mbiter.h: Likewise.
97176         * lib/mbscasecmp.c: Likewise.
97177         * lib/mbscasestr.c: Likewise.
97178         * lib/mbschr.c: Likewise.
97179         * lib/mbscspn.c: Likewise.
97180         * lib/mbslen.c: Likewise.
97181         * lib/mbsncasecmp.c: Likewise.
97182         * lib/mbsnlen.c: Likewise.
97183         * lib/mbspbrk.c: Likewise.
97184         * lib/mbspcasecmp.c: Likewise.
97185         * lib/mbsrchr.c: Likewise.
97186         * lib/mbssep.c: Likewise.
97187         * lib/mbsspn.c: Likewise.
97188         * lib/mbsstr.c: Likewise.
97189         * lib/mbstok_r.c: Likewise.
97190         * lib/mbswidth.c: Likewise.
97191         * lib/mbswidth.h: Likewise.
97192         * lib/mbuiter.h: Likewise.
97193         * lib/memcasecmp.c: Likewise.
97194         * lib/memcasecmp.h: Likewise.
97195         * lib/memchr.c: Likewise.
97196         * lib/memcmp.c: Likewise.
97197         * lib/memcoll.c: Likewise.
97198         * lib/memcoll.h: Likewise.
97199         * lib/memcpy.c: Likewise.
97200         * lib/memrchr.c: Likewise.
97201         * lib/mkancesdirs.c: Likewise.
97202         * lib/mkdir-p.c: Likewise.
97203         * lib/mkdir-p.h: Likewise.
97204         * lib/mkdir.c: Likewise.
97205         * lib/mkdirat.c: Likewise.
97206         * lib/mkdtemp.c: Likewise.
97207         * lib/mkstemp-safer.c: Likewise.
97208         * lib/mkstemp.c: Likewise.
97209         * lib/modechange.c: Likewise.
97210         * lib/modechange.h: Likewise.
97211         * lib/mountlist.c: Likewise.
97212         * lib/mountlist.h: Likewise.
97213         * lib/mpsort.c: Likewise.
97214         * lib/nanosleep.c: Likewise.
97215         * lib/obstack.c: Likewise.
97216         * lib/obstack.h: Likewise.
97217         * lib/open-safer.c: Likewise.
97218         * lib/open.c: Likewise.
97219         * lib/openat-die.c: Likewise.
97220         * lib/openat-priv.h: Likewise.
97221         * lib/openat-proc.c: Likewise.
97222         * lib/openat.c: Likewise.
97223         * lib/openat.h: Likewise.
97224         * lib/pagealign_alloc.c: Likewise.
97225         * lib/pagealign_alloc.h: Likewise.
97226         * lib/physmem.c: Likewise.
97227         * lib/physmem.h: Likewise.
97228         * lib/pipe-safer.c: Likewise.
97229         * lib/pipe.c: Likewise.
97230         * lib/pipe.h: Likewise.
97231         * lib/posixtm.c: Likewise.
97232         * lib/posixtm.h: Likewise.
97233         * lib/posixver.c: Likewise.
97234         * lib/printf-frexp.c: Likewise.
97235         * lib/printf-frexp.h: Likewise.
97236         * lib/printf-frexpl.c: Likewise.
97237         * lib/printf-frexpl.h: Likewise.
97238         * lib/printf.c: Likewise.
97239         * lib/progname.c: Likewise.
97240         * lib/progname.h: Likewise.
97241         * lib/progreloc.c: Likewise.
97242         * lib/putenv.c: Likewise.
97243         * lib/quote.c: Likewise.
97244         * lib/quote.h: Likewise.
97245         * lib/quotearg.c: Likewise.
97246         * lib/quotearg.h: Likewise.
97247         * lib/raise.c: Likewise.
97248         * lib/readline.c: Likewise.
97249         * lib/readline.h: Likewise.
97250         * lib/readlink.c: Likewise.
97251         * lib/readtokens.c: Likewise.
97252         * lib/readtokens.h: Likewise.
97253         * lib/readtokens0.c: Likewise.
97254         * lib/readtokens0.h: Likewise.
97255         * lib/readutmp.c: Likewise.
97256         * lib/readutmp.h: Likewise.
97257         * lib/realloc.c: Likewise.
97258         * lib/relocwrapper.c: Likewise.
97259         * lib/rename-dest-slash.c: Likewise.
97260         * lib/rename.c: Likewise.
97261         * lib/rmdir.c: Likewise.
97262         * lib/rpmatch.c: Likewise.
97263         * lib/safe-read.c: Likewise.
97264         * lib/safe-read.h: Likewise.
97265         * lib/safe-write.c: Likewise.
97266         * lib/safe-write.h: Likewise.
97267         * lib/same-inode.h: Likewise.
97268         * lib/same.c: Likewise.
97269         * lib/same.h: Likewise.
97270         * lib/save-cwd.c: Likewise.
97271         * lib/save-cwd.h: Likewise.
97272         * lib/savedir.c: Likewise.
97273         * lib/savedir.h: Likewise.
97274         * lib/savewd.c: Likewise.
97275         * lib/savewd.h: Likewise.
97276         * lib/search.in.h: Likewise.
97277         * lib/setenv.c: Likewise.
97278         * lib/setenv.h: Likewise.
97279         * lib/settime.c: Likewise.
97280         * lib/sh-quote.c: Likewise.
97281         * lib/sh-quote.h: Likewise.
97282         * lib/sig2str.c: Likewise.
97283         * lib/sig2str.h: Likewise.
97284         * lib/signal.in.h: Likewise.
97285         * lib/signbitd.c: Likewise.
97286         * lib/signbitf.c: Likewise.
97287         * lib/signbitl.c: Likewise.
97288         * lib/sigprocmask.c: Likewise.
97289         * lib/sincosl.c: Likewise.
97290         * lib/sleep.c: Likewise.
97291         * lib/sprintf.c: Likewise.
97292         * lib/sqrtl.c: Likewise.
97293         * lib/stat-time.h: Likewise.
97294         * lib/stdio--.h: Likewise.
97295         * lib/stdio-safer.h: Likewise.
97296         * lib/stdlib--.h: Likewise.
97297         * lib/stdlib-safer.h: Likewise.
97298         * lib/stdlib.in.h: Likewise.
97299         * lib/stpcpy.c: Likewise.
97300         * lib/stpncpy.c: Likewise.
97301         * lib/strchrnul.c: Likewise.
97302         * lib/strcspn.c: Likewise.
97303         * lib/strerror.c: Likewise.
97304         * lib/strftime.c: Likewise.
97305         * lib/strftime.h: Likewise.
97306         * lib/striconveh.c: Likewise.
97307         * lib/striconveh.h: Likewise.
97308         * lib/striconveha.c: Likewise.
97309         * lib/striconveha.h: Likewise.
97310         * lib/stripslash.c: Likewise.
97311         * lib/strnlen1.c: Likewise.
97312         * lib/strnlen1.h: Likewise.
97313         * lib/strtod.c: Likewise.
97314         * lib/strtoimax.c: Likewise.
97315         * lib/strtok_r.c: Likewise.
97316         * lib/strtol.c: Likewise.
97317         * lib/strtoll.c: Likewise.
97318         * lib/strtoul.c: Likewise.
97319         * lib/strtoull.c: Likewise.
97320         * lib/sysexits.in.h: Likewise.
97321         * lib/tempname.c: Likewise.
97322         * lib/tempname.h: Likewise.
97323         * lib/timespec.h: Likewise.
97324         * lib/tls.c: Likewise.
97325         * lib/tls.h: Likewise.
97326         * lib/tmpdir.c: Likewise.
97327         * lib/tmpdir.h: Likewise.
97328         * lib/tmpfile-safer.c: Likewise.
97329         * lib/tmpfile.c: Likewise.
97330         * lib/trigl.c: Likewise.
97331         * lib/trigl.h: Likewise.
97332         * lib/trim.c: Likewise.
97333         * lib/trim.h: Likewise.
97334         * lib/trunc.c: Likewise.
97335         * lib/truncf.c: Likewise.
97336         * lib/truncl.c: Likewise.
97337         * lib/tsearch.c: Likewise.
97338         * lib/unicodeio.c: Likewise.
97339         * lib/unicodeio.h: Likewise.
97340         * lib/unistd--.h: Likewise.
97341         * lib/unistd-safer.h: Likewise.
97342         * lib/unistdio/ulc-fprintf.c: Likewise.
97343         * lib/unistdio/ulc-vfprintf.c: Likewise.
97344         * lib/unlinkdir.c: Likewise.
97345         * lib/unlinkdir.h: Likewise.
97346         * lib/unlocked-io.h: Likewise.
97347         * lib/unsetenv.c: Likewise.
97348         * lib/userspec.c: Likewise.
97349         * lib/utime.c: Likewise.
97350         * lib/utimecmp.c: Likewise.
97351         * lib/utimecmp.h: Likewise.
97352         * lib/utimens.c: Likewise.
97353         * lib/verify.h: Likewise.
97354         * lib/verror.c: Likewise.
97355         * lib/verror.h: Likewise.
97356         * lib/version-etc-fsf.c: Likewise.
97357         * lib/version-etc.c: Likewise.
97358         * lib/version-etc.h: Likewise.
97359         * lib/vfprintf.c: Likewise.
97360         * lib/vprintf.c: Likewise.
97361         * lib/vsprintf.c: Likewise.
97362         * lib/w32spawn.h: Likewise.
97363         * lib/wait-process.c: Likewise.
97364         * lib/wait-process.h: Likewise.
97365         * lib/wcwidth.c: Likewise.
97366         * lib/write-any-file.c: Likewise.
97367         * lib/xalloc-die.c: Likewise.
97368         * lib/xalloc.h: Likewise.
97369         * lib/xasprintf.c: Likewise.
97370         * lib/xgetcwd.c: Likewise.
97371         * lib/xgetcwd.h: Likewise.
97372         * lib/xgetdomainname.c: Likewise.
97373         * lib/xgetdomainname.h: Likewise.
97374         * lib/xgethostname.c: Likewise.
97375         * lib/xmalloc.c: Likewise.
97376         * lib/xmalloca.c: Likewise.
97377         * lib/xmalloca.h: Likewise.
97378         * lib/xmemcoll.c: Likewise.
97379         * lib/xnanosleep.c: Likewise.
97380         * lib/xreadlink.c: Likewise.
97381         * lib/xreadlink.h: Likewise.
97382         * lib/xsetenv.c: Likewise.
97383         * lib/xsetenv.h: Likewise.
97384         * lib/xstriconv.c: Likewise.
97385         * lib/xstriconv.h: Likewise.
97386         * lib/xstrndup.c: Likewise.
97387         * lib/xstrndup.h: Likewise.
97388         * lib/xstrtod.c: Likewise.
97389         * lib/xstrtod.h: Likewise.
97390         * lib/xstrtol-error.c: Likewise.
97391         * lib/xstrtol.c: Likewise.
97392         * lib/xstrtol.h: Likewise.
97393         * lib/xtime.h: Likewise.
97394         * lib/xvasprintf.c: Likewise.
97395         * lib/xvasprintf.h: Likewise.
97396         * lib/yesno.c: Likewise.
97397         * lib/yesno.h: Likewise.
97398         * posix-modules: Likewise.
97399         * tests/test-alloca-opt.c: Likewise.
97400         * tests/test-arcfour.c: Likewise.
97401         * tests/test-arctwo.c: Likewise.
97402         * tests/test-argmatch.c: Likewise.
97403         * tests/test-argp-2.sh: Likewise.
97404         * tests/test-argp.c: Likewise.
97405         * tests/test-arpa_inet.c: Likewise.
97406         * tests/test-array_list.c: Likewise.
97407         * tests/test-array_oset.c: Likewise.
97408         * tests/test-atexit.c: Likewise.
97409         * tests/test-avltree_list.c: Likewise.
97410         * tests/test-avltree_oset.c: Likewise.
97411         * tests/test-avltreehash_list.c: Likewise.
97412         * tests/test-base64.c: Likewise.
97413         * tests/test-binary-io.c: Likewise.
97414         * tests/test-byteswap.c: Likewise.
97415         * tests/test-c-ctype.c: Likewise.
97416         * tests/test-c-strcasecmp.c: Likewise.
97417         * tests/test-c-strcasestr.c: Likewise.
97418         * tests/test-c-strncasecmp.c: Likewise.
97419         * tests/test-c-strstr.c: Likewise.
97420         * tests/test-canonicalize-lgpl.c: Likewise.
97421         * tests/test-canonicalize.c: Likewise.
97422         * tests/test-carray_list.c: Likewise.
97423         * tests/test-ceilf.c: Likewise.
97424         * tests/test-ceill.c: Likewise.
97425         * tests/test-count-one-bits.c: Likewise.
97426         * tests/test-crc.c: Likewise.
97427         * tests/test-dirname.c: Likewise.
97428         * tests/test-fbufmode.c: Likewise.
97429         * tests/test-fcntl.c: Likewise.
97430         * tests/test-fflush.c: Likewise.
97431         * tests/test-floorf.c: Likewise.
97432         * tests/test-floorl.c: Likewise.
97433         * tests/test-fopen.c: Likewise.
97434         * tests/test-fprintf-posix.c: Likewise.
97435         * tests/test-fprintf-posix.h: Likewise.
97436         * tests/test-fpurge.c: Likewise.
97437         * tests/test-freadable.c: Likewise.
97438         * tests/test-freadahead.c: Likewise.
97439         * tests/test-freading.c: Likewise.
97440         * tests/test-freopen.c: Likewise.
97441         * tests/test-frexp.c: Likewise.
97442         * tests/test-frexpl.c: Likewise.
97443         * tests/test-fseek.c: Likewise.
97444         * tests/test-fseeko.c: Likewise.
97445         * tests/test-fseterr.c: Likewise.
97446         * tests/test-fstrcmp.c: Likewise.
97447         * tests/test-ftell.c: Likewise.
97448         * tests/test-ftello.c: Likewise.
97449         * tests/test-fwritable.c: Likewise.
97450         * tests/test-fwriting.c: Likewise.
97451         * tests/test-getaddrinfo.c: Likewise.
97452         * tests/test-getpass.c: Likewise.
97453         * tests/test-gettimeofday.c: Likewise.
97454         * tests/test-hmac-md5.c: Likewise.
97455         * tests/test-hmac-sha1.c: Likewise.
97456         * tests/test-iconv.c: Likewise.
97457         * tests/test-iconvme.c: Likewise.
97458         * tests/test-inttypes.c: Likewise.
97459         * tests/test-isnan.c: Likewise.
97460         * tests/test-isnanf.c: Likewise.
97461         * tests/test-isnanl-nolibm.c: Likewise.
97462         * tests/test-isnanl.c: Likewise.
97463         * tests/test-isnanl.h: Likewise.
97464         * tests/test-ldexpl.c: Likewise.
97465         * tests/test-linked_list.c: Likewise.
97466         * tests/test-linkedhash_list.c: Likewise.
97467         * tests/test-locale.c: Likewise.
97468         * tests/test-localename.c: Likewise.
97469         * tests/test-lock.c: Likewise.
97470         * tests/test-lseek.c: Likewise.
97471         * tests/test-malloca.c: Likewise.
97472         * tests/test-math.c: Likewise.
97473         * tests/test-mbscasecmp.c: Likewise.
97474         * tests/test-mbscasestr1.c: Likewise.
97475         * tests/test-mbscasestr2.c: Likewise.
97476         * tests/test-mbscasestr3.c: Likewise.
97477         * tests/test-mbscasestr4.c: Likewise.
97478         * tests/test-mbschr.c: Likewise.
97479         * tests/test-mbscspn.c: Likewise.
97480         * tests/test-mbsncasecmp.c: Likewise.
97481         * tests/test-mbspbrk.c: Likewise.
97482         * tests/test-mbspcasecmp.c: Likewise.
97483         * tests/test-mbsrchr.c: Likewise.
97484         * tests/test-mbsspn.c: Likewise.
97485         * tests/test-mbsstr1.c: Likewise.
97486         * tests/test-mbsstr2.c: Likewise.
97487         * tests/test-mbsstr3.c: Likewise.
97488         * tests/test-md5.c: Likewise.
97489         * tests/test-memmem.c: Likewise.
97490         * tests/test-netinet_in.c: Likewise.
97491         * tests/test-open.c: Likewise.
97492         * tests/test-printf-frexp.c: Likewise.
97493         * tests/test-printf-frexpl.c: Likewise.
97494         * tests/test-printf-posix.c: Likewise.
97495         * tests/test-printf-posix.h: Likewise.
97496         * tests/test-rbtree_list.c: Likewise.
97497         * tests/test-rbtree_oset.c: Likewise.
97498         * tests/test-rbtreehash_list.c: Likewise.
97499         * tests/test-read-file.c: Likewise.
97500         * tests/test-rijndael.c: Likewise.
97501         * tests/test-search.c: Likewise.
97502         * tests/test-signbit.c: Likewise.
97503         * tests/test-sleep.c: Likewise.
97504         * tests/test-snprintf-posix.c: Likewise.
97505         * tests/test-snprintf-posix.h: Likewise.
97506         * tests/test-snprintf.c: Likewise.
97507         * tests/test-sprintf-posix.c: Likewise.
97508         * tests/test-sprintf-posix.h: Likewise.
97509         * tests/test-stat-time.c: Likewise.
97510         * tests/test-stdbool.c: Likewise.
97511         * tests/test-stdint.c: Likewise.
97512         * tests/test-stdio.c: Likewise.
97513         * tests/test-stdlib.c: Likewise.
97514         * tests/test-stpncpy.c: Likewise.
97515         * tests/test-strcasestr.c: Likewise.
97516         * tests/test-striconv.c: Likewise.
97517         * tests/test-striconveh.c: Likewise.
97518         * tests/test-striconveha.c: Likewise.
97519         * tests/test-string.c: Likewise.
97520         * tests/test-sys_select.c: Likewise.
97521         * tests/test-sys_socket.c: Likewise.
97522         * tests/test-sys_stat.c: Likewise.
97523         * tests/test-sys_time.c: Likewise.
97524         * tests/test-sysexits.c: Likewise.
97525         * tests/test-time.c: Likewise.
97526         * tests/test-tls.c: Likewise.
97527         * tests/test-trunc.c: Likewise.
97528         * tests/test-truncf.c: Likewise.
97529         * tests/test-truncl.c: Likewise.
97530         * tests/test-unistd.c: Likewise.
97531         * tests/test-vasnprintf-posix.c: Likewise.
97532         * tests/test-vasnprintf-posix2.c: Likewise.
97533         * tests/test-vasnprintf.c: Likewise.
97534         * tests/test-vasprintf-posix.c: Likewise.
97535         * tests/test-vasprintf.c: Likewise.
97536         * tests/test-verify.c: Likewise.
97537         * tests/test-vfprintf-posix.c: Likewise.
97538         * tests/test-vprintf-posix.c: Likewise.
97539         * tests/test-vsnprintf-posix.c: Likewise.
97540         * tests/test-vsnprintf.c: Likewise.
97541         * tests/test-vsprintf-posix.c: Likewise.
97542         * tests/test-wchar.c: Likewise.
97543         * tests/test-wctype.c: Likewise.
97544         * tests/test-wcwidth.c: Likewise.
97545         * tests/test-xstrtol.c: Likewise.
97546         * tests/test-xvasprintf.c: Likewise.
97547         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97548         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97549         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97550         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97551         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97552         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97553         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97554         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97555         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97556         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97557         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97558         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97559         * tests/uniname/test-uninames.c: Likewise.
97560         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97561         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97562         * tests/unistdio/test-u16-printf1.h: Likewise.
97563         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97564         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97565         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97566         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97567         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97568         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97569         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97570         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97571         * tests/unistdio/test-u32-printf1.h: Likewise.
97572         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97573         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97574         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97575         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97576         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97577         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97578         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97579         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97580         * tests/unistdio/test-u8-printf1.h: Likewise.
97581         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97582         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97583         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97584         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97585         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97586         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97587         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97588         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97589         * tests/unistdio/test-ulc-printf1.h: Likewise.
97590         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97591         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97592         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97593         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97594         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97595         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97596         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97597         * tests/uniwidth/test-u16-width.c: Likewise.
97598         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97599         * tests/uniwidth/test-u32-width.c: Likewise.
97600         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97601         * tests/uniwidth/test-u8-width.c: Likewise.
97602         * tests/uniwidth/test-uc_width.c: Likewise.
97603         * config/srclist-update: Likewise.
97604         (fixlicense): Update to GPLv3+.
97606         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97607         * tests/test-tsearch.c: Change copyright notice.
97609         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97610         * lib/c-strcaseeq.h: Change copyright notice.
97611         * lib/streq.h: Likewise.
97612         * lib/uniconv.h: Likewise.
97613         * lib/uniconv/u-conv-from-enc.h: Likewise.
97614         * lib/uniconv/u-conv-to-enc.h: Likewise.
97615         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97616         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97617         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97618         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97619         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97620         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97621         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97622         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97623         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97624         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97625         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97626         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97627         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97628         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97629         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97630         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97631         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97632         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97633         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97634         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97635         * lib/uniname.h: Likewise.
97636         * lib/uniname/uniname.c: Likewise.
97637         * lib/unistdio.h: Likewise.
97638         * lib/unistdio/u-asnprintf.h: Likewise.
97639         * lib/unistdio/u-asprintf.h: Likewise.
97640         * lib/unistdio/u-printf-args.c: Likewise.
97641         * lib/unistdio/u-printf-args.h: Likewise.
97642         * lib/unistdio/u-printf-parse.h: Likewise.
97643         * lib/unistdio/u-snprintf.h: Likewise.
97644         * lib/unistdio/u-sprintf.h: Likewise.
97645         * lib/unistdio/u-vasprintf.h: Likewise.
97646         * lib/unistdio/u-vsnprintf.h: Likewise.
97647         * lib/unistdio/u-vsprintf.h: Likewise.
97648         * lib/unistdio/u16-asnprintf.c: Likewise.
97649         * lib/unistdio/u16-asprintf.c: Likewise.
97650         * lib/unistdio/u16-printf-parse.c: Likewise.
97651         * lib/unistdio/u16-snprintf.c: Likewise.
97652         * lib/unistdio/u16-sprintf.c: Likewise.
97653         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97654         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97655         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97656         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97657         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97658         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97659         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97660         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97661         * lib/unistdio/u16-vasnprintf.c: Likewise.
97662         * lib/unistdio/u16-vasprintf.c: Likewise.
97663         * lib/unistdio/u16-vsnprintf.c: Likewise.
97664         * lib/unistdio/u16-vsprintf.c: Likewise.
97665         * lib/unistdio/u32-asnprintf.c: Likewise.
97666         * lib/unistdio/u32-asprintf.c: Likewise.
97667         * lib/unistdio/u32-printf-parse.c: Likewise.
97668         * lib/unistdio/u32-snprintf.c: Likewise.
97669         * lib/unistdio/u32-sprintf.c: Likewise.
97670         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97671         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97672         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97673         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97674         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97675         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97676         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97677         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97678         * lib/unistdio/u32-vasnprintf.c: Likewise.
97679         * lib/unistdio/u32-vasprintf.c: Likewise.
97680         * lib/unistdio/u32-vsnprintf.c: Likewise.
97681         * lib/unistdio/u32-vsprintf.c: Likewise.
97682         * lib/unistdio/u8-asnprintf.c: Likewise.
97683         * lib/unistdio/u8-asprintf.c: Likewise.
97684         * lib/unistdio/u8-printf-parse.c: Likewise.
97685         * lib/unistdio/u8-snprintf.c: Likewise.
97686         * lib/unistdio/u8-sprintf.c: Likewise.
97687         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97688         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97689         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97690         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97691         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97692         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97693         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97694         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97695         * lib/unistdio/u8-vasnprintf.c: Likewise.
97696         * lib/unistdio/u8-vasprintf.c: Likewise.
97697         * lib/unistdio/u8-vsnprintf.c: Likewise.
97698         * lib/unistdio/u8-vsprintf.c: Likewise.
97699         * lib/unistdio/ulc-asnprintf.c: Likewise.
97700         * lib/unistdio/ulc-asprintf.c: Likewise.
97701         * lib/unistdio/ulc-printf-parse.c: Likewise.
97702         * lib/unistdio/ulc-snprintf.c: Likewise.
97703         * lib/unistdio/ulc-sprintf.c: Likewise.
97704         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97705         * lib/unistdio/ulc-vasprintf.c: Likewise.
97706         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97707         * lib/unistdio/ulc-vsprintf.c: Likewise.
97708         * lib/unistr.h: Likewise.
97709         * lib/unistr/u-cpy-alloc.h: Likewise.
97710         * lib/unistr/u-cpy.h: Likewise.
97711         * lib/unistr/u-endswith.h: Likewise.
97712         * lib/unistr/u-move.h: Likewise.
97713         * lib/unistr/u-set.h: Likewise.
97714         * lib/unistr/u-startswith.h: Likewise.
97715         * lib/unistr/u-stpcpy.h: Likewise.
97716         * lib/unistr/u-stpncpy.h: Likewise.
97717         * lib/unistr/u-strcat.h: Likewise.
97718         * lib/unistr/u-strcpy.h: Likewise.
97719         * lib/unistr/u-strcspn.h: Likewise.
97720         * lib/unistr/u-strdup.h: Likewise.
97721         * lib/unistr/u-strlen.h: Likewise.
97722         * lib/unistr/u-strncat.h: Likewise.
97723         * lib/unistr/u-strncpy.h: Likewise.
97724         * lib/unistr/u-strnlen.h: Likewise.
97725         * lib/unistr/u-strpbrk.h: Likewise.
97726         * lib/unistr/u-strspn.h: Likewise.
97727         * lib/unistr/u-strstr.h: Likewise.
97728         * lib/unistr/u-strtok.h: Likewise.
97729         * lib/unistr/u16-check.c: Likewise.
97730         * lib/unistr/u16-chr.c: Likewise.
97731         * lib/unistr/u16-cmp.c: Likewise.
97732         * lib/unistr/u16-cpy-alloc.c: Likewise.
97733         * lib/unistr/u16-cpy.c: Likewise.
97734         * lib/unistr/u16-endswith.c: Likewise.
97735         * lib/unistr/u16-mblen.c: Likewise.
97736         * lib/unistr/u16-mbsnlen.c: Likewise.
97737         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97738         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97739         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97740         * lib/unistr/u16-mbtouc.c: Likewise.
97741         * lib/unistr/u16-mbtoucr.c: Likewise.
97742         * lib/unistr/u16-move.c: Likewise.
97743         * lib/unistr/u16-next.c: Likewise.
97744         * lib/unistr/u16-prev.c: Likewise.
97745         * lib/unistr/u16-set.c: Likewise.
97746         * lib/unistr/u16-startswith.c: Likewise.
97747         * lib/unistr/u16-stpcpy.c: Likewise.
97748         * lib/unistr/u16-stpncpy.c: Likewise.
97749         * lib/unistr/u16-strcat.c: Likewise.
97750         * lib/unistr/u16-strchr.c: Likewise.
97751         * lib/unistr/u16-strcmp.c: Likewise.
97752         * lib/unistr/u16-strcpy.c: Likewise.
97753         * lib/unistr/u16-strcspn.c: Likewise.
97754         * lib/unistr/u16-strdup.c: Likewise.
97755         * lib/unistr/u16-strlen.c: Likewise.
97756         * lib/unistr/u16-strmblen.c: Likewise.
97757         * lib/unistr/u16-strmbtouc.c: Likewise.
97758         * lib/unistr/u16-strncat.c: Likewise.
97759         * lib/unistr/u16-strncmp.c: Likewise.
97760         * lib/unistr/u16-strncpy.c: Likewise.
97761         * lib/unistr/u16-strnlen.c: Likewise.
97762         * lib/unistr/u16-strpbrk.c: Likewise.
97763         * lib/unistr/u16-strrchr.c: Likewise.
97764         * lib/unistr/u16-strspn.c: Likewise.
97765         * lib/unistr/u16-strstr.c: Likewise.
97766         * lib/unistr/u16-strtok.c: Likewise.
97767         * lib/unistr/u16-to-u32.c: Likewise.
97768         * lib/unistr/u16-to-u8.c: Likewise.
97769         * lib/unistr/u16-uctomb-aux.c: Likewise.
97770         * lib/unistr/u16-uctomb.c: Likewise.
97771         * lib/unistr/u32-check.c: Likewise.
97772         * lib/unistr/u32-chr.c: Likewise.
97773         * lib/unistr/u32-cmp.c: Likewise.
97774         * lib/unistr/u32-cpy-alloc.c: Likewise.
97775         * lib/unistr/u32-cpy.c: Likewise.
97776         * lib/unistr/u32-endswith.c: Likewise.
97777         * lib/unistr/u32-mblen.c: Likewise.
97778         * lib/unistr/u32-mbsnlen.c: Likewise.
97779         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97780         * lib/unistr/u32-mbtouc.c: Likewise.
97781         * lib/unistr/u32-mbtoucr.c: Likewise.
97782         * lib/unistr/u32-move.c: Likewise.
97783         * lib/unistr/u32-next.c: Likewise.
97784         * lib/unistr/u32-prev.c: Likewise.
97785         * lib/unistr/u32-set.c: Likewise.
97786         * lib/unistr/u32-startswith.c: Likewise.
97787         * lib/unistr/u32-stpcpy.c: Likewise.
97788         * lib/unistr/u32-stpncpy.c: Likewise.
97789         * lib/unistr/u32-strcat.c: Likewise.
97790         * lib/unistr/u32-strchr.c: Likewise.
97791         * lib/unistr/u32-strcmp.c: Likewise.
97792         * lib/unistr/u32-strcpy.c: Likewise.
97793         * lib/unistr/u32-strcspn.c: Likewise.
97794         * lib/unistr/u32-strdup.c: Likewise.
97795         * lib/unistr/u32-strlen.c: Likewise.
97796         * lib/unistr/u32-strmblen.c: Likewise.
97797         * lib/unistr/u32-strmbtouc.c: Likewise.
97798         * lib/unistr/u32-strncat.c: Likewise.
97799         * lib/unistr/u32-strncmp.c: Likewise.
97800         * lib/unistr/u32-strncpy.c: Likewise.
97801         * lib/unistr/u32-strnlen.c: Likewise.
97802         * lib/unistr/u32-strpbrk.c: Likewise.
97803         * lib/unistr/u32-strrchr.c: Likewise.
97804         * lib/unistr/u32-strspn.c: Likewise.
97805         * lib/unistr/u32-strstr.c: Likewise.
97806         * lib/unistr/u32-strtok.c: Likewise.
97807         * lib/unistr/u32-to-u16.c: Likewise.
97808         * lib/unistr/u32-to-u8.c: Likewise.
97809         * lib/unistr/u32-uctomb.c: Likewise.
97810         * lib/unistr/u8-check.c: Likewise.
97811         * lib/unistr/u8-chr.c: Likewise.
97812         * lib/unistr/u8-cmp.c: Likewise.
97813         * lib/unistr/u8-cpy-alloc.c: Likewise.
97814         * lib/unistr/u8-cpy.c: Likewise.
97815         * lib/unistr/u8-endswith.c: Likewise.
97816         * lib/unistr/u8-mblen.c: Likewise.
97817         * lib/unistr/u8-mbsnlen.c: Likewise.
97818         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97819         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97820         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97821         * lib/unistr/u8-mbtouc.c: Likewise.
97822         * lib/unistr/u8-mbtoucr.c: Likewise.
97823         * lib/unistr/u8-move.c: Likewise.
97824         * lib/unistr/u8-next.c: Likewise.
97825         * lib/unistr/u8-prev.c: Likewise.
97826         * lib/unistr/u8-set.c: Likewise.
97827         * lib/unistr/u8-startswith.c: Likewise.
97828         * lib/unistr/u8-stpcpy.c: Likewise.
97829         * lib/unistr/u8-stpncpy.c: Likewise.
97830         * lib/unistr/u8-strcat.c: Likewise.
97831         * lib/unistr/u8-strchr.c: Likewise.
97832         * lib/unistr/u8-strcmp.c: Likewise.
97833         * lib/unistr/u8-strcpy.c: Likewise.
97834         * lib/unistr/u8-strcspn.c: Likewise.
97835         * lib/unistr/u8-strdup.c: Likewise.
97836         * lib/unistr/u8-strlen.c: Likewise.
97837         * lib/unistr/u8-strmblen.c: Likewise.
97838         * lib/unistr/u8-strmbtouc.c: Likewise.
97839         * lib/unistr/u8-strncat.c: Likewise.
97840         * lib/unistr/u8-strncmp.c: Likewise.
97841         * lib/unistr/u8-strncpy.c: Likewise.
97842         * lib/unistr/u8-strnlen.c: Likewise.
97843         * lib/unistr/u8-strpbrk.c: Likewise.
97844         * lib/unistr/u8-strrchr.c: Likewise.
97845         * lib/unistr/u8-strspn.c: Likewise.
97846         * lib/unistr/u8-strstr.c: Likewise.
97847         * lib/unistr/u8-strtok.c: Likewise.
97848         * lib/unistr/u8-to-u16.c: Likewise.
97849         * lib/unistr/u8-to-u32.c: Likewise.
97850         * lib/unistr/u8-uctomb-aux.c: Likewise.
97851         * lib/unistr/u8-uctomb.c: Likewise.
97852         * lib/unitypes.h: Likewise.
97853         * lib/uniwidth.h: Likewise.
97854         * lib/uniwidth/cjk.h: Likewise.
97855         * lib/uniwidth/u16-strwidth.c: Likewise.
97856         * lib/uniwidth/u16-width.c: Likewise.
97857         * lib/uniwidth/u32-strwidth.c: Likewise.
97858         * lib/uniwidth/u32-width.c: Likewise.
97859         * lib/uniwidth/u8-strwidth.c: Likewise.
97860         * lib/uniwidth/u8-width.c: Likewise.
97861         * lib/uniwidth/width.c: Likewise.
97863 2007-10-07  Bruno Haible  <bruno@clisp.org>
97865         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97866         The file is still under LGPL (see modules/inttypes).
97868 2007-10-06  Bruno Haible  <bruno@clisp.org>
97870         * modules/trunc (Dependencies): Add 'extensions'.
97871         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97872         Reported by Ben Pfaff <blp@gnu.org>.
97874 2007-10-06  Bruno Haible  <bruno@clisp.org>
97876         * modules/freopen-tests: New file.
97877         * tests/test-freopen.c: New file.
97879         * modules/fopen-tests: New file.
97880         * tests/test-fopen.c: New file.
97882         * modules/fopen: New file.
97883         * lib/fopen.c: New file.
97884         * m4/fopen.m4: New file.
97885         * modules/freopen: New file.
97886         * lib/freopen.c: New file.
97887         * m4/freopen.m4: New file.
97888         * lib/stdio.in.h (fopen, freopen): New declarations.
97889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97890         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97891         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97892         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97893         * doc/functions/fopen.texi: Mention the 'fopen' module.
97894         * doc/functions/freopen.texi: Mention the 'freopen' module.
97896 2007-10-06  Bruno Haible  <bruno@clisp.org>
97898         * modules/open-tests: New file.
97899         * tests/test-open.c: New file.
97901         * modules/open: New file.
97902         * lib/open.c: New file.
97903         * m4/open.m4: New file.
97904         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97905         lib/open.c does.
97906         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97907         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97908         macros.
97909         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97910         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97911         REPLACE_OPEN.
97912         * doc/functions/open.texi: Mention the 'open' module.
97914 2007-10-04  Bruno Haible  <bruno@clisp.org>
97916         * modules/ceill-tests: New file.
97917         * tests/test-ceill.c: New file.
97919         * modules/ceill: New file.
97920         * lib/ceill.c: Replace entire file.
97921         * m4/ceill.m4: New file.
97922         * lib/math.in.h (ceill): Replace declaration.
97923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97924         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97925         * doc/functions/ceill.texi: Mention the 'ceill' module.
97926         * modules/mathl (Files): Remove lib/ceill.c.
97927         (Depends-on): Add ceill.
97929 2007-10-04  Bruno Haible  <bruno@clisp.org>
97931         * modules/ceilf-tests: New file.
97932         * tests/test-ceilf.c: New file.
97934         * modules/ceilf: New file.
97935         * lib/ceil.c: New file.
97936         * lib/ceilf.c: New file.
97937         * m4/ceilf.m4: New file.
97938         * lib/math.in.h (ceilf): New declaration.
97939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97940         HAVE_DECL_CEILF.
97941         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97942         HAVE_DECL_CEILF.
97943         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97945 2007-10-04  Bruno Haible  <bruno@clisp.org>
97947         * modules/floorl-tests: New file.
97948         * tests/test-floorl.c: New file.
97950         * modules/floorl: New file.
97951         * lib/floorl.c: Replace entire file.
97952         * m4/floorl.m4: New file.
97953         * lib/math.in.h (floorl): Replace declaration.
97954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97955         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97956         * doc/functions/floorl.texi: Mention the 'floorl' module.
97957         * modules/mathl (Files): Remove lib/floorl.c.
97958         (Depends-on): Add floorl.
97960 2007-10-04  Bruno Haible  <bruno@clisp.org>
97962         * modules/floorf-tests: New file.
97963         * tests/test-floorf.c: New file.
97965         * modules/floorf: New file.
97966         * lib/floor.c: New file.
97967         * lib/floorf.c: New file.
97968         * m4/floorf.m4: New file.
97969         * lib/math.in.h (floorf): New declaration.
97970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97971         HAVE_DECL_FLOORF.
97972         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97973         HAVE_DECL_FLOORF.
97974         * doc/functions/floorf.texi: Mention the 'floorf' module.
97976 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97977             Bruno Haible  <bruno@clisp.org>
97979         Advertise for the Git server instead of the CVS server.
97980         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97981         repository instead of the CVS one.
97982         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97983         about all VCS systems generically.
97984         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97986 2007-10-04  Bruno Haible  <bruno@clisp.org>
97988         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97989         means.
97990         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97992 2007-10-04  Bruno Haible  <bruno@clisp.org>
97994         * modules/truncl-tests: New file.
97995         * tests/test-truncl.c: New file.
97997         * modules/truncl: New file.
97998         * lib/truncl.c: New file.
97999         * m4/truncl.m4: New file.
98000         * lib/math.in.h (truncl): New declaration.
98001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98002         HAVE_DECL_TRUNCL.
98003         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98004         HAVE_DECL_TRUNCL.
98005         * doc/functions/truncl.texi: Mention the 'truncl' module.
98007 2007-10-04  Bruno Haible  <bruno@clisp.org>
98009         * modules/truncf-tests: New file.
98010         * tests/test-truncf.c: New file.
98012         * modules/truncf: New file.
98013         * lib/trunc.c: Make paramerizable through USE_* macros.
98014         * lib/truncf.c: New file.
98015         * m4/truncf.m4: New file.
98016         * lib/math.in.h (truncf): New declaration.
98017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98018         HAVE_DECL_TRUNCF.
98019         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98020         HAVE_DECL_TRUNCF.
98021         * doc/functions/truncf.texi: Mention the 'truncf' module.
98023 2007-10-03  Bruno Haible  <bruno@clisp.org>
98025         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98026         augmentation also for tests modules.
98027         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98028         * modules/atexit-tests (Makefile.am): Likewise.
98029         * modules/binary-io-tests (Makefile.am): Likewise.
98030         * modules/c-strcase-tests (Makefile.am): Likewise.
98031         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98032         * modules/canonicalize-tests (Makefile.am): Likewise.
98033         * modules/closein-tests (Makefile.am): Likewise.
98034         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98035         * modules/freadahead-tests (Makefile.am): Likewise.
98036         * modules/fseek-tests (Makefile.am): Likewise.
98037         * modules/fseeko-tests (Makefile.am): Likewise.
98038         * modules/ftell-tests (Makefile.am): Likewise.
98039         * modules/ftello-tests (Makefile.am): Likewise.
98040         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98041         * modules/isnanl-tests (Makefile.am): Likewise.
98042         * modules/lseek-tests (Makefile.am): Likewise.
98043         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98044         * modules/mbscasestr-tests (Makefile.am): Likewise.
98045         * modules/mbschr-tests (Makefile.am): Likewise.
98046         * modules/mbscspn-tests (Makefile.am): Likewise.
98047         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98048         * modules/mbspbrk-tests (Makefile.am): Likewise.
98049         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98050         * modules/mbsrchr-tests (Makefile.am): Likewise.
98051         * modules/mbsspn-tests (Makefile.am): Likewise.
98052         * modules/mbsstr-tests (Makefile.am): Likewise.
98053         * modules/printf-posix-tests (Makefile.am): Likewise.
98054         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98055         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98056         * modules/tsearch-tests (Makefile.am): Likewise.
98057         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98058         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98059         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98060         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98061         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98062         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98063         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98064         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98065         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98066         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98067         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98068         * modules/xstrtol-tests (Makefile.am): Likewise.
98069         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98070         * modules/yesno-tests (Makefile.am): Likewise.
98072 2007-10-03  Bruno Haible  <bruno@clisp.org>
98074         * modules/trunc-tests: New file.
98075         * tests/test-trunc.c: New file.
98077         * modules/trunc: New file.
98078         * lib/trunc.c: New file.
98079         * m4/trunc.m4: New file.
98080         * lib/math.in.h (trunc): New declaration.
98081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98082         HAVE_DECL_TRUNC.
98083         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98084         HAVE_DECL_TRUNC.
98085         * doc/functions/trunc.texi: Mention the 'trunc' module.
98087 2007-10-03  Bruno Haible  <bruno@clisp.org>
98089         * tests/test-fpending.c: New file, mostly copied
98090         from coreutils/lib/t-fpending.c.
98091         * modules/fpending-tests: New file.
98093 2007-10-03  Bruno Haible  <bruno@clisp.org>
98095         Port the stdio extensions to QNX (untested).
98096         * lib/fseterr.c (fseterr): Add support for QNX.
98097         * lib/fbufmode.c (fbufmode): Likewise.
98098         * lib/freadable.c (freadable): Likewise.
98099         * lib/fwritable.c (fwritable): Likewise.
98100         * lib/freading.c (freading): Likewise.
98101         * lib/fwriting.c (fwriting): Likewise.
98102         * lib/freadahead.c (freadahed): Likewise.
98103         * lib/fpurge.c (fpurge): Likewise.
98104         * lib/fseeko.c (rpl_fseeko): Likewise.
98106 2007-10-03  Bruno Haible  <bruno@clisp.org>
98107             Jim Meyering  <jim@meyering.net>
98108             Eric Blake  <ebb9@byu.net>
98110         * doc/relocatable.texi: Use @command instead of @program.
98112 2007-10-02  Jim Meyering  <jim@meyering.net>
98114         Perform one more "_.h" -> ".in.h" substitution.
98115         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98116         instead of unistd_.h here, too.
98118 2007-10-01  Bruno Haible  <bruno@clisp.org>
98120         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98121         Needed for the alloca-opt module.
98123 2007-09-30  Bruno Haible  <bruno@clisp.org>
98125         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98126         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98127         alloca_.h.
98128         * lib/argz.in.h: Renamed from lib/argz_.h.
98129         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98130         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98131         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98132         byteswap_.h.
98133         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98134         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98135         dirent_.h.
98136         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98137         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98138         fcntl_.h.
98139         * lib/float.in.h: Renamed from lib/float_.h.
98140         * modules/float (Files, Makefile.am): Use float.in.h instead of
98141         float_.h.
98142         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98143         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98144         fnmatch_.h.
98145         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98146         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98147         getopt_.h.
98148         * lib/glob.in.h: Renamed from lib/glob_.h.
98149         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98150         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98151         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98152         iconv_.h.
98153         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98154         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98155         inttypes_.h.
98156         * lib/locale.in.h: Renamed from lib/locale_.h.
98157         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98158         locale_.h.
98159         * lib/math.in.h: Renamed from lib/math_.h.
98160         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98161         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98162         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98163         of netinet_in_.h. Add dependency.
98164         * lib/poll.in.h: Renamed from lib/poll_.h.
98165         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98166         * lib/search.in.h: Renamed from lib/search_.h.
98167         * modules/search (Files, Makefile.am): Use search.in.h instead of
98168         search_.h.
98169         * lib/signal.in.h: Renamed from lib/signal_.h.
98170         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98171         _signal.h.
98172         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98173         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98174         stdbool_.h.
98175         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98176         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98177         stdint_.h.
98178         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98179         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98180         stdio_.h.
98181         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98182         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98183         stdlib_.h.
98184         * lib/string.in.h: Renamed from lib/string_.h.
98185         * modules/string (Files, Makefile.am): Use string.in.h instead of
98186         string_.h.
98187         * doc/gnulib-tool.texi (Initial import): Update.
98188         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98189         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98190         of sys_select_.h. Add dependency.
98191         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98192         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98193         of sys_socket_.h.
98194         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98195         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98196         sys_stat_.h.
98197         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98198         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98199         sys_time_.h.
98200         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98201         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98202         sysexits_.h.
98203         * lib/time.in.h: Renamed from lib/time_.h.
98204         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98205         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98206         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98207         unistd_.h.
98208         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98209         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98210         wchar_.h.
98211         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98212         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98213         wctype_.h.
98214         * build-aux/bootstrap (slurp): Update.
98215         * lib/.cppi-disable: Update.
98217 2007-09-30  Bruno Haible  <bruno@clisp.org>
98219         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98220         Needed on BeOS.
98222 2007-09-30  Bruno Haible  <bruno@clisp.org>
98224         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98226 2007-09-29  Bruno Haible  <bruno@clisp.org>
98228         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98230 2007-09-29  Bruno Haible  <bruno@clisp.org>
98232         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98233         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98234         * build-aux/install-reloc: Compile also areadlink.c.
98235         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98237 2007-09-29  Bruno Haible  <bruno@clisp.org>
98239         * gnulib-tool (func_emit_initmacro_done): Indentation.
98241 2007-09-29  Bruno Haible  <bruno@clisp.org>
98243         * README: Add CVS checkout update instructions.
98244         Info from Bob Proulx <bob@proulx.com>.
98246 2007-09-28  Eric Blake  <ebb9@byu.net>
98248         Provide move-if-change.
98249         * build-aux/move-if-change: New file, based on best practice
98250         rather than any canonical upstream location.
98252 2007-09-28  Jim Meyering  <jim@meyering.net>
98254         Fix canonicalize loop-detection corner case.
98255         Do not attempt to stat the symlink values stored via seen_triple.
98256         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98257         on linux-2.6.18, (but not 2.6.22).
98258         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98259         triple_compare.  The former compares dev,ino,filename, while the latter
98260         would actually stat dirname(filename) when dev and ino were equal.
98261         * lib/hash-triple.c: Install <string.h>.
98262         (STREQ): Define.
98263         (triple_compare_ino_str): New function.
98264         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98266 2007-09-28  Eric Blake  <ebb9@byu.net>
98268         Enforce that AC_REPLACE_FUNCS files exist.
98269         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98270         override check for typos.
98272         Fix test-closein on Solaris 10.
98273         * tests/test-closein.c (main): Don't assume stdin can be inherited
98274         closed on all systems.
98275         * tests/test-closein.sh: Likewise.
98276         Reported by Piotr Tarnowski.
98278 2007-09-28  Jim Meyering  <jim@meyering.net>
98280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98282 2007-09-27  Jim Meyering  <jim@meyering.net>
98284         canonicalize: Avoid a false-positive cycle failure.
98285         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98286         Sort.  Remove cycle-check.
98287         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98288         not cycle-check.h.
98289         (seen_triple): New function.
98290         (canonicalize_filename_mode): Use it instead of cycle-check.
98291         * tests/test-canonicalize.c: Add a test for this bug.
98292         * tests/test-canonicalize.sh: Set up and run the test.
98294         New module, file-set, from coreutils.
98295         * modules/file-set: Define it.
98296         * lib/file-set.c, lib/file-set.h: Implement.
98298         New module, hash-triple, from coreutils.
98299         * modules/hash-triple: Define it.
98300         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98302 2007-09-25  Eric Blake  <ebb9@byu.net>
98304         Fix strerror on Interix.
98305         * lib/string_.h (strerror): Declare replacement.
98306         * doc/functions/strerror.texi (strerror): Document the Interix
98307         shortcoming.
98308         * modules/string (Makefile.am): Support new hooks.
98309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98310         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98311         gl_FUNC_STRERROR_SEPARATE.
98312         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98313         * lib/strerror.c (rpl_strerror): Provide replacement.
98314         * modules/strerror (Depends-on): Add string.
98315         (configure.ac): Detect use of module.
98316         * tests/test-strerror.c: New file.
98317         * modules/strerror-tests: New test module.
98318         * modules/argp (Depends-on): Add strerror.
98319         * modules/error (Depends-on): Likewise.
98320         Reported by Martin Koeppe.
98322 2007-09-24  Bruno Haible  <bruno@clisp.org>
98324         * README: Update git instructions.
98326 2007-09-24  Eric Blake  <ebb9@byu.net>
98328         Revert fpending breakage from 2007-09-08.
98329         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98330         __fpending.c.
98332 2007-09-24  Jim Meyering  <jim@meyering.net>
98334         filenamecat.c: Add a test.
98335         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98336         showing how the function works when DIR is the empty string.
98338 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98340         * tests/test-canonicalize.sh: Turn on executable bit.
98342 2007-09-19  Eric Blake  <ebb9@byu.net>
98344         * README: Update CVS instructions.
98346 2007-09-18  Bruno Haible  <bruno@clisp.org>
98348         * modules/areadlink: New file.
98349         * lib/areadlink.h (areadlink): New declaration.
98350         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98352 2007-09-17  Jim Meyering  <jim@meyering.net>
98354         * lib/savewd.c (ESTALE) [!defined]: Define.
98355         Reported to be required on Interix by Martin Koeppe.
98357 2007-09-17  Bruno Haible  <bruno@clisp.org>
98359         * gnulib-tool (func_version): Use $version.
98361 2007-09-16  Bruno Haible  <bruno@clisp.org>
98363         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98364         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98365         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98366         Reported by Greg Schafer <gschafer@zip.com.au>.
98368 2007-09-15  Bruno Haible  <bruno@clisp.org>
98370         * gnulib-tool (sed): Try a little harder to make bash understand the
98371         alias.
98372         Reported by Bruce Korb <bruce.korb@gmail.com>.
98374 2007-09-13  Eric Blake  <ebb9@byu.net>
98376         * ChangeLog: Remove conflict markers.
98378 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98380         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98381         Reported by Bruno Haible <bruno@clisp.org>.
98383 2007-09-12  Bruno Haible  <bruno@clisp.org>
98385         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98386         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98387         is not defined.
98389 2007-09-12  Eric Blake  <ebb9@byu.net>
98391         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98393         Autoconf definition.
98394         * modules/euidaccess (Depends-on): Add extensions, for
98395         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98396         * modules/fnmatch (Depends-on): Likewise.
98397         * modules/getaddrinfo (Depends-on): Likewise.
98398         * modules/getdelim (Depends-on): Likewise.
98399         * modules/getline (Depends-on): Likewise.
98400         * modules/getsubopt (Depends-on): Likewise.
98401         * modules/gettext (Depends-on): Likewise.
98402         * modules/group-member (Depends-on): Likewise.
98403         * modules/mbchar (Depends-on): Likewise.
98404         * modules/memmem (Depends-on): Likewise.
98405         * modules/mempcpy (Depends-on): Likewise.
98406         * modules/memrchr (Depends-on): Likewise.
98407         * modules/pagealign_alloc (Depends-on): Likewise.
98408         * modules/readutmp (Depends-on): Likewise.
98409         * modules/stpcpy (Depends-on): Likewise.
98410         * modules/stpncpy (Depends-on): Likewise.
98411         * modules/strchrnul (Depends-on): Likewise.
98412         * modules/strndup (Depends-on): Likewise.
98413         * modules/strsep (Depends-on): Likewise.
98414         * modules/strverscmp (Depends-on): Likewise.
98415         * modules/vasprintf (Depends-on): Likewise.
98416         * modules/wcwidth (Depends-on): Likewise.
98417         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
98418         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
98419         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
98420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
98421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98422         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98423         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
98424         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98425         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
98426         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
98427         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
98428         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98430         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
98431         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
98432         * m4/readutmp.m4 (gl_READUTMP): Likewise.
98433         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98434         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98436         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98437         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98438         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98439         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98440         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98441         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98443         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98444         so that lock.m4 can be used in gettext without extensions module.
98446 2007-09-11  Bruno Haible  <bruno@clisp.org>
98448         * m4/isc-posix.m4: Remove file.
98449         Suggested by Eric Blake.
98451 2007-09-11  Eric Blake  <ebb9@byu.net>
98453         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98455 2007-09-10  Bruno Haible  <bruno@clisp.org>
98457         * posix-modules: Fix typo in error message.
98458         Reported by Matt <mkraai@beckman.com>.
98460 2007-09-09  Bruno Haible  <bruno@clisp.org>
98462         * doc/functions/getdelim.texi: Update list of platforms lacking the
98463         function.
98464         * doc/functions/getline.texi: Likewise.
98466 2007-09-09  Jim Meyering  <jim@meyering.net>
98468         * lib/hash.c (hash_initialize): Detect calloc failure.
98469         Reported by Bruno Haible.
98471 2007-09-09  Bruno Haible  <bruno@clisp.org>
98473         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98474         malloc or realloc fails.
98476 2007-09-09  Bruno Haible  <bruno@clisp.org>
98478         * modules/getcwd (Depends-on): Add malloc-posix.
98479         * modules/glob (Depends-on): Likewise.
98480         * modules/putenv (Depends-on): Likewise.
98481         * modules/strdup (Depends-on): Likewise.
98482         * modules/getdelim (Depends-on): Add realloc-posix.
98483         * modules/read-file (Depends-on): Likewise.
98485 2007-09-09  Bruno Haible  <bruno@clisp.org>
98487         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98488         (gl_FUNC_MALLOC_POSIX): Require it.
98489         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98490         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98491         * modules/realloc (Files): Add m4/malloc.m4.
98492         * modules/calloc (Files): Likewise.
98494 2007-09-09  Bruno Haible  <bruno@clisp.org>
98496         * modules/malloc-posix: New file.
98497         * modules/malloc (Depends-on): Add malloc-posix.
98498         * lib/malloc.c: Include errno.h.
98499         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98500         and a POSIX-compatible malloc into a single function. Set ENOMEM
98501         when returning NULL.
98502         * m4/malloc.m4: New file.
98503         * doc/functions/malloc.texi: Mention the malloc-posix module.
98504         * lib/stdlib_.h (malloc): New declaration.
98505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98506         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98507         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98508         and HAVE_MALLOC_POSIX.
98510 2007-09-09  Bruno Haible  <bruno@clisp.org>
98512         * modules/realloc-posix: New file.
98513         * modules/realloc (Depends-on): Add realloc-posix.
98514         * lib/realloc.c: Include errno.h.
98515         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98516         and a POSIX-compatible realloc into a single function. Set ENOMEM
98517         when returning NULL.
98518         * m4/realloc.m4: New file.
98519         * doc/functions/realloc.texi: Mention the realloc-posix module.
98520         * lib/stdlib_.h (realloc): New declaration.
98521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98522         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98523         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98524         and HAVE_REALLOC_POSIX.
98526 2007-09-09  Bruno Haible  <bruno@clisp.org>
98528         * modules/calloc-posix: New file.
98529         * modules/calloc (Depends-on): Add calloc-posix.
98530         * lib/calloc.c: Include errno.h.
98531         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98532         and a POSIX-compatible calloc into a single function. Set ENOMEM
98533         when returning NULL.
98534         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98535         * doc/functions/calloc.texi: Mention the calloc-posix module.
98536         * lib/stdlib_.h (calloc): New declaration.
98537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98538         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98539         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98540         and HAVE_CALLOC_POSIX.
98542 2007-09-09  Bruno Haible  <bruno@clisp.org>
98544         Allow for modules to show an arbitrary notice.
98545         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98546         * gnulib-tool: New option --extract-notice.
98547         (func_usage): Document it.
98548         (sed_extract_prog): Update.
98549         (func_get_notice): New function.
98550         (func_modules_notice): New function.
98551         (func_import, func_create_testdir): Invoke it.
98552         Suggested by Jim Meyering.
98554 2007-09-09  Bruno Haible  <bruno@clisp.org>
98556         * gnulib-tool: New options --verbose, --quiet.
98557         (func_usage): Document them.
98558         (verbose): New variable.
98559         (func_execute_command): New function.
98560         (func_import): Don't show the module list and the file list if
98561         $verbose < 0.
98562         (func_create_testdir): Likewise. Use func_execute_command.
98563         (func_create_megatestdir): Use func_execute_command.
98565 2007-09-08  Bruno Haible  <bruno@clisp.org>
98567         * gnulib-tool (func_import): Prefer rsync over wget when available,
98568         for fetching the PO files.
98570 2007-09-08  Bruno Haible  <bruno@clisp.org>
98572         * posix-modules: New file. Portions copied from gnulib-tool.
98573         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98575 2007-09-08  Jim Meyering  <jim@meyering.net>
98577         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98578         * lib/fpending.h: Rename from __fpending.h.
98579         * lib/fpending.c: Rename from __fpending.c.
98580         Include "fpending.h", not "__fpending.h".
98581         * lib/__fpending.h, lib/__fpending.c: Remove files.
98582         * modules/fpending (Files): Reflect new file names.
98583         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98585 2007-09-08  Bruno Haible  <bruno@clisp.org>
98587         * m4/inttypes-h.m4: Remove stub file.
98589 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98591         * doc/headers/stdint.texi: Discuss #include_next issue.
98593 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98595         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98597 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98599         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98600         in variable name.
98602 2007-09-03  Jim Meyering  <jim@meyering.net>
98604         New module: git-version-gen.
98605         * modules/git-version-gen: New file.
98607         Import changes from coreutils for bootstrap script.
98609         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98611         bootstrap: uses rsync to download the .po files
98612         * build-aux/bootstrap (po_download_command_format): New global.
98613         (download_po_files): Use rsync.
98614         (update_po_files): Don't remove .po files after download,
98615         so future rsync runs can take advantage of the copies.
98617         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98619         Solve the unnecessary-.po-file-regeneration problem once and for all.
98620         * build-aux/bootstrap (download_po_files): New function, renamed from
98621         get_translations.  Now, downloads, but doesn't update LINGUAS.
98622         (update_po_files): New function.
98624         bootstrap: Ignore more.
98625         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98626         uniwidth to e.g., lib/.gitignore.
98627         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98629         * build-aux/bootstrap: New setting: vc_ignore.
98630         (insert_sorted_if_absent): Create $file if absent.
98631         Adapt to new, possibly empty, list: $vc_ignore.
98633         bootstrap: generate more ignorable names
98634         * build-aux/bootstrap (slurp): When generating ignorable names,
98635         also map .sin to .sed, .gperf to .c, and .y to .c.
98637 2007-09-03  Jim Meyering  <jim@meyering.net>
98639         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98640         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98642 2007-09-02  Bruno Haible  <bruno@clisp.org>
98644         Fix mis-recognition of 'mcs' on QNX 6.
98645         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98646         output contains the string "Mono".
98647         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98648         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98650 2007-09-01  Bruno Haible  <bruno@clisp.org>
98652         Fix collision between uniwidth/* and linebreak modules.
98653         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98654         u32_width): Remove declarations.
98655         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98656         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98657         streq3, streq2, streq1, streq0): Remove functions.
98658         (STREQ): Remove macro.
98659         (is_cjk_encoding): Remove function.
98660         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98661         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98662         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98663         * NEWS: Document the change.
98665 2007-09-01  Bruno Haible  <bruno@clisp.org>
98667         * lib/streq.h: Add double-inclusion guard.
98669 2007-09-01  Karl Berry  <karl@gnu.org>
98671         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98673 2007-08-28  Jim Meyering  <jim@meyering.net>
98675         Rename mreadlink_with_size to areadlink_with_size.
98676         * NEWS: Document the change.
98677         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98678         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98679         * lib/mreadlink.h: Rename this to...
98680         * lib/areadlink.h: ...this.
98681         * modules/mreadlink-with-size: Rename this to...
98682         * modules/areadlink-with-size: ...this.
98683         * lib/canonicalize.c: Reflect the renaming.
98684         * modules/canonicalize: Likewise.
98686 2007-08-26  Bruno Haible  <bruno@clisp.org>
98688         * gnulib-tool (func_import): When deciding which files to remove,
98689         consider also dangling symbolic links.
98690         Reported by Eric Blake.
98692 2007-08-26  Bruno Haible  <bruno@clisp.org>
98694         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98696 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98698         * lib/readline.c: Don't include getline.h, the prototype is now
98699         found in stdio.h.
98701 2007-08-23  Jim Meyering  <jim@meyering.net>
98703         Getdelim touchup.
98704         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98705         around the funlockfile call, since funlockfile never sets errno.
98706         Don't set errno upon failed realloc.
98708 2007-08-22  Eric Blake  <ebb9@byu.net>
98710         Getline touchups.
98711         * lib/getdelim.c (getdelim): Revert regression that required *n to
98712         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98713         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98714         getdelim, rather than whether implementation is missing.
98715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98716         * lib/stdio_.h (getline): Also declare if replacement is
98717         required.
98718         * doc/functions/getdelim.texi: New file.
98719         * doc/functions/getline.texi: Likewise.
98720         * doc/gnulib.texi (Function Substitutes): Add new files.
98721         Reported by Bruno Haible.
98723 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98725         * users.txt: Add Guile.
98727 2007-08-22  Eric Blake  <ebb9@byu.net>
98729         * tests/test-getdelim.c (main): Use remove, not unlink.
98730         * tests/test-getline.c (main): Likewise.
98732         Move getline and getdelim into stdio.h, per POSIX 200x.
98733         * modules/getline (Files): Remove getline.h.
98734         (Depends-on): Add stdio.
98735         (configure.ac): Add module indicator.
98736         * modules/getdelim (Files): Remove getdelim.h.
98737         (Depends-on): Add stdio.
98738         (configure.ac): Add module indicator.
98739         * modules/stdio (Makefile.am): Work with new indicators.
98740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98741         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98743         * lib/getdelim.h: Delete.
98744         * lib/getline.h: Delete.
98745         * lib/stdio_.h (getdelim, getline): Declare.
98746         * modules/getdelim-tests: New module.
98747         * modules/getline-tests: Likewise.
98748         * tests/test-getdelim.c: New file.
98749         * tests/test-getline.c: Likewise.
98750         * NEWS: Document the change.
98751         * lib/getline.c: Update choice of header.
98752         * lib/csharpcomp.c: Likewise.
98753         * lib/getpass.c: Likewise.
98754         * lib/javacomp.c: Likewise.
98755         * lib/javaversion.c: Likewise.
98756         * lib/yesno.c: Likewise.
98757         * lib/getdelim.c: Likewise.
98758         (getdelim): Set errno on failure, and avoid memory leak.
98760 2007-08-19  Bruno Haible  <bruno@clisp.org>
98762         * modules/closein (Depends-on): Add freadahead.
98763         * lib/closein.c: Include freadahead.h.
98764         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98765         is zero.
98767 2007-08-19  Bruno Haible  <bruno@clisp.org>
98769         * modules/freadahead-tests: New file.
98770         * tests/test-freadahead.sh: New file.
98771         * tests/test-freadahead.c: New file.
98773         * modules/freadahead: New file.
98774         * lib/freadahead.h: New file.
98775         * lib/freadahead.c: New file.
98776         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98777         fbufmode, fpurge, freadable, fwritable.
98779 2007-08-19  Eric Blake  <ebb9@byu.net>
98781         Test yesno in combination with closein.
98782         * lib/yesno.c (yesno): Document use of stdin.
98783         * modules/yesno-tests (Files): New module.
98784         * tests/test-yesno.c (main): New file.
98785         * tests/test-yesno.sh: Likewise.
98787 2007-08-19  Bruno Haible  <bruno@clisp.org>
98789         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98790         * lib/fseeko.c (rpl_fseeko): Likewise.
98791         * lib/fseterr.c (fseterr): Likewise.
98793 2007-08-19  Bruno Haible  <bruno@clisp.org>
98795         * tests/test-lseek.c (main): Disable a test for BeOS.
98796         * doc/functions/lseek.texi: Document the BeOS bug.
98798 2007-08-19  Bruno Haible  <bruno@clisp.org>
98799             Eric Blake  <ebb9@byu.net>
98801         * lib/lseek.c: Include <sys/stat.h>.
98802         (rpl_lseek): Add workaround code also for Unix platforms.
98803         Needed for BeOS.
98804         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98805         * doc/functions/lseek.texi: Document BeOS definiency.
98807 2007-08-18  Bruno Haible  <bruno@clisp.org>
98809         * modules/fstrcmp-tests: New file.
98810         * tests/test-fstrcmp.c: New file.
98812 2007-08-18  Bruno Haible  <bruno@clisp.org>
98814         * modules/fstrcmp: New file, from GNU gettext with modifications.
98815         * lib/fstrcmp.h: New file, from GNU gettext.
98816         * lib/fstrcmp.c: New file, from GNU gettext.
98817         * MODULES.html.sh (String handling): Add fstrcmp.
98819 2007-08-18  Bruno Haible  <bruno@clisp.org>
98821         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98822         'bool'.
98823         (diag, compareseq): Remove const from the ctxt argument.
98824         (USE_HEURISTIC): Undefine at the end.
98826 2007-08-18  Jim Meyering  <jim@meyering.net>
98828         New file: lib/idcache.h
98829         * NEWS: Mention the addition.
98830         * modules/idcache (Files): Add lib/idcache.h
98831         * lib/idcache.c: Include "idcache.h".
98832         Don't include <sys/types.h>.
98833         Add a FIXME comment.
98834         Move file-scoped "static" declarations to the top.
98835         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98837 2007-08-17  Bruno Haible  <bruno@clisp.org>
98838         and Paul Eggert  <eggert@cs.ucla.edu>
98840         * MODULES.html.sh: Add diffseq.
98841         * modules/diffseq: New file.
98842         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98843         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98845 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98847         Import changes from coreutils for bootstrap script.
98849         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98851         * build-aux/bootstrap (slurp): Work even in environments where
98852         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98853         current code does not slurp files whose names start with ".", and
98854         this looks like it might be a troublesome area.
98856         2007-07-11  Jim Meyering  <jim@meyering.net>
98858         If there's a GPL vN copyright comment, require that N == 3.
98860         2007-07-08  Jim Meyering  <jim@meyering.net>
98862         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98863         * build-aux/bootstrap (mam_template): Move definition out of loop.
98865         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98867         * build-aux/bootstrap (symlink_to_dir): Rename function from
98868         symlink_to_gnulib.  Add a directory parameter.  Update all
98869         callers.
98870         (cp_mark_as_generated): Also check for -- and link to -- files in
98871         gl/.
98873         2007-07-08  Jim Meyering  <jim@meyering.net>
98875         Adapt to deeper hierarchy in gnulib.
98876         * build-aux/bootstrap (symlink_to_dir): If the destination
98877         directory doesn't exist, create it. This is required at least for
98878         "lib/uniwidth/cjk.h".
98880         2007-05-15  Jim Meyering  <jim@meyering.net>
98882         * build-aux/bootstrap: Now that generated Makefile.am files
98883         are no longer under version control, they must be created at
98884         bootstrap time.
98886 2007-08-14  Ben Pfaff  <blp@gnu.org>
98888         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98890 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98892         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98893         given the changes below.
98894         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98895         even on hosts that have padding bits beyond the supported 64.
98897 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98899         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98900         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98901         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98902         depends on it.
98903         (xstrtol_error): Remove.
98904         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98905         but with a different signature.
98906         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98907         * lib/xstrtol-error.c: Include exitfail.h.
98908         (xstrtol_fatal): New function, with a different signature from the
98909         old xstrtol_error, so that the caller need not worry about passing
98910         in an exit status, or about storage management of the option argument.
98911         (xstrtol_error): Now a static function.  Redo signature to
98912         implement xstrtol_fatal.  Output the correct number of hyphens in
98913         front of the option so that the caller need not worry about
98914         storage management.
98915         (N_): New macro.
98916         (_): Remove; not used now.
98917         * modules/xstrtol: Depend on getopt.
98918         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98919         of old STRTOL_FATAL_ERROR macro.
98920         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98921         of test program.
98922         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98923         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98925 2007-08-08  Eric Blake  <ebb9@byu.net>
98927         * lib/xstrtol-error.c: Add missing include.
98929         Move xstrtol messages into gnulib domain, when --pobase is used.
98930         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98931         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98932         * modules/xstrtol (Files): Distribute new file.
98933         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98934         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98935         * tests/test-xstrtol.c: ...into new file.
98936         * tests/test-xstrtoul.c: Also test xstrtoul.
98937         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98938         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98939         * tests/test-xstrtol.sh: Drive the tests.
98940         * tests/test-xstrtoimax.sh: Likewise.
98941         * tests/test-xstrtoumax.sh: Likewise.
98942         * modules/xstrtol-tests: New module.
98943         * modules/xstrtoimax-tests: Likewise.
98944         * modules/xstrtoumax-tests: Likewise.
98946 2007-08-08  Jim Meyering  <jim@meyering.net>
98948         New function: mfile_name_concat.
98949         * lib/filenamecat.c (mfile_name_concat): New function, just like
98950         file_name_concat, but return NULL upon failure rather than exiting
98951         with a diagnostic.
98952         * lib/filenamecat.h: Declare it.
98954 2007-08-07  Bruno Haible  <bruno@clisp.org>
98956         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98957         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98958         warning from gcc.
98959         Reported by Eric Blake.
98961 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98963         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98964         * modules/crypto/arcfour (License): Likewise.
98965         * modules/crypto/des-tests (License): Likewise.
98966         * modules/crypto/gc-arctwo-tests (License): Likewise.
98967         * modules/crypto/gc-des-tests (License): Likewise.
98968         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98969         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98970         * modules/crypto/gc-md2-tests (License): Likewise.
98971         * modules/crypto/gc-md4-tests (License): Likewise.
98972         * modules/crypto/gc-md5-tests (License): Likewise.
98973         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98974         * modules/crypto/gc-rijndael-tests (License): Likewise.
98975         * modules/crypto/gc-sha1-tests (License): Likewise.
98976         * modules/crypto/gc-tests (License): Likewise.
98977         * modules/crypto/hmac-md5 (License): Likewise.
98978         * modules/crypto/hmac-sha1 (License): Likewise.
98979         * modules/crypto/md2-tests (License): Likewise.
98980         * modules/crypto/md4-tests (License): Likewise.
98981         * modules/crypto/md5 (License): Likewise.
98982         * modules/crypto/rijndael (License): Likewise.
98983         * modules/crypto/sha1 (License): Likewise.
98984         * modules/memxor (License): Likewise.
98986 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98987         and Bruno Haible  <bruno@clisp.org>
98989         * NEWS: Describe interface changes to human, xstrtol.
98990         * lib/human.h: Include <xstrtol.h>.
98991         (human_options): Return enum strtol_error, not int.  Remove
98992         bool arg; take int * instead.
98993         * lib/human.c: Don't include "gettext.h".
98994         (_): Remove; no longer used.
98995         Don't include <xstrtol.h>, since human.h does it.
98996         (human_options): Adjust to abovementioned interface changes.
98997         Do not report error to stderr; that's now the caller's
98998         responsibility.
98999         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99000         interface change.
99001         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99002         Str, Argument_type_string.  All uses changed.  Put " argument"
99003         in diagnostics to make them clearer.  Change wording of suffix
99004         message for clarity.
99005         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99006         Argument_type_string.
99007         (STRTOL_FATAL_WARN): Remove; no longer used.
99008         * modules/human (Depends-on): Remove gettext-h.
99010 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99012         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99014 2007-07-31  Bruno Haible  <bruno@clisp.org>
99016         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99017         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99018         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99020 2007-07-31  Bruno Haible  <bruno@clisp.org>
99022         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99023         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99025 2007-07-30  Bruno Haible  <bruno@clisp.org>
99027         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99028         * modules/c-ctype (License): Likewise.
99029         * modules/c-strcase (License): Likewise.
99030         * modules/check-version (License): Likewise.
99031         * modules/iconv (License): Likewise.
99032         * modules/iconv_open (License): Likewise.
99033         * modules/read-file (License): Likewise.
99034         * modules/striconv (License): Likewise.
99035         * modules/strverscmp (License): Likewise.
99036         * modules/vasprintf (License): Likewise.
99037         * modules/crypto/des (License): Likewise.
99038         * modules/crypto/gc (License): Likewise.
99039         * modules/crypto/gc-arcfour (License): Likewise.
99040         * modules/crypto/gc-arctwo (License): Likewise.
99041         * modules/crypto/gc-des (License): Likewise.
99042         * modules/crypto/gc-hmac-md5 (License): Likewise.
99043         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99044         * modules/crypto/gc-md2 (License): Likewise.
99045         * modules/crypto/gc-md4 (License): Likewise.
99046         * modules/crypto/gc-md5 (License): Likewise.
99047         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99048         * modules/crypto/gc-random (License): Likewise.
99049         * modules/crypto/gc-rijndael (License): Likewise.
99050         * modules/crypto/gc-sha1 (License): Likewise.
99051         * modules/crypto/md2 (License): Likewise.
99052         * modules/crypto/md4 (License): Likewise.
99054 2007-07-30  Jim Meyering  <jim@meyering.net>
99056         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99057         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99058         it has valid stat data.  This bug would cause du not to count the
99059         sizes of inaccessible directories.
99060         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99061         in <http://bugzilla.redhat.com/250077>.
99063 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99064             Bruno Haible  <bruno@clisp.org>
99066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99067         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99068         #include_next, gives a diagnostic about it, but reports no error in
99069         the exit code.
99070         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99072 2007-07-24  Ben Pfaff  <blp@gnu.org>
99074         Improve name: "count-one-bits" is better than "popcount".
99075         * MODULES.html.sh: Update name.
99076         * lib/popcount.h: Renamed lib/count-one-bits.h.
99077         (popcount): Renamed count_one_bits.
99078         (popcountl): Renamed count_one_bits_l.
99079         (popcountll): Renamed count_one_bits_ll.
99080         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99081         * modules/popcount: Renamed module/count-one-bits.
99082         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99083         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99085 2007-07-23  Ben Pfaff  <blp@gnu.org>
99087         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99088         better code generation, and add U to large constants to avoid
99089         warnings, in non-GCC case.
99090         Suggested by Bruno Haible.
99092 2007-07-23  Ben Pfaff  <blp@gnu.org>
99094         * lib/popcount.h: Use verify_true instead of if...abort.
99095         * modules/popcount: Depend on verify module.
99096         Suggested by Jim Meyering.
99098 2007-07-23  Bruno Haible  <bruno@clisp.org>
99100         * gnulib-tool (func_import): Create a .cvsignore file also when the
99101         directory is not yet in CVS but the toplevel directory is. When
99102         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99103         Reported by Karl Berry.
99105 2007-07-22  Ben Pfaff  <blp@gnu.org>
99107         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99108         case.
99109         Suggested by Eric Blake.
99111 2007-07-22  Ben Pfaff  <blp@gnu.org>
99113         New module: popcount.
99114         * MODULES.html.sh: Add popcount.
99115         * modules/popcount: New file.
99116         * modules/popcount-tests: New file.
99117         * tests/test-popcount.c: New file.
99118         * lib/popcount.h: New file.
99119         * m4/popcount.m4: New file.
99121 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99123         * build-aux/announce-gen: Update to GPLv3.
99125         * build-aux/config.guess: Update from config.
99127 2007-07-21  Bruno Haible  <bruno@clisp.org>
99129         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99130         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99132 2007-07-20  Jim Meyering  <jim@meyering.net>
99134         * check-module: Diagnose a self-dependency.
99136 2007-07-19  Bruno Haible  <bruno@clisp.org>
99138         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99139         empty.
99140         Reported by Eric Blake.
99142 2007-07-18  Bruno Haible  <bruno@clisp.org>
99144         * gnulib-tool: New options --po-base, --po-domain.
99145         (func_usage): Document them.
99146         (pobase, po_domain): New variables.
99147         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99148         DEFAULT_TEXT_DOMAIN.
99149         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99150         (func_import): Consider pobase and po_domain. Create a po/ directory.
99151         (func_create_testdir): Set pobase and po_domain to empty.
99152         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99153         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99155 2007-07-18  Bruno Haible  <bruno@clisp.org>
99157         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99158         EXTRA_DIST augmentation for files in build-aux/.
99160 2007-07-16  Bruno Haible  <bruno@clisp.org>
99162         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99163         * modules/getdelim (License): Likewise.
99165 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99167         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99168         * modules/d-type (License): Likewise.
99169         * modules/extensions (License): Likewise.
99170         * modules/fnmatch (License): Likewise.
99171         * modules/fseeko (License): Likewise.
99172         * modules/getaddrinfo (License): Likewise.
99173         * modules/getline (License): Likewise.
99174         * modules/getlogin_r (License): Likewise.
99175         * modules/getpass (License): Likewise.
99176         * modules/gettimeofday (License): Likewise.
99177         * modules/glob (License): Likewise.
99178         * modules/inet_ntop (License): Likewise.
99179         * modules/malloc (License): Likewise.
99180         * modules/malloca (License): Likewise.
99181         * modules/memmem (License): Likewise.
99182         * modules/mempcpy (License): Likewise.
99183         * modules/memset (License): Likewise.
99184         * modules/minmax (License): Likewise.
99185         * modules/mktime (License): Likewise.
99186         * modules/netinet_in (License): Likewise.
99187         * modules/pathmax (License): Likewise.
99188         * modules/poll (License): Likewise.
99189         * modules/regex (License): Likewise.
99190         * modules/snprintf (License): Likewise.
99191         * modules/stdbool (License): Likewise.
99192         * modules/stdint (License): Likewise.
99193         * modules/stdio (License): Likewise.
99194         * modules/strcase (License): Likewise.
99195         * modules/strcasestr (License): Likewise.
99196         * modules/strdup (License): Likewise.
99197         * modules/string (License): Likewise.
99198         * modules/strndup (License): Likewise.
99199         * modules/strnlen (License): Likewise.
99200         * modules/strpbrk (License): Likewise.
99201         * modules/strptime (License): Likewise.
99202         * modules/strsep (License): Likewise.
99203         * modules/sys_select (License): Likewise.
99204         * modules/sys_socket (License): Likewise.
99205         * modules/sys_stat (License): Likewise.
99206         * modules/sys_time (License): Likewise.
99207         * modules/time (License): Likewise.
99208         * modules/time_r (License): Likewise.
99209         * modules/timegm (License): Likewise.
99210         * modules/unistd (License): Likewise.
99211         * modules/vsnprintf (License): Likewise.
99212         * modules/wctype (License): Likewise.
99214 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99216         * modules/argz (License): LGPLv2+.
99218 2007-07-15  Karl Berry  <karl@gnu.org>
99220         * doc/gnulib.texi: revise node structure per new fdl.texi.
99222 2007-07-14  Bruno Haible  <bruno@clisp.org>
99224         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99225         the output file.
99226         * lib/uniname/uninames.h: Regenerated.
99228 2007-07-14  Karl Berry  <karl@gnu.org>
99230         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99231         omitting sectioning and index commands.
99233 2007-07-13  Bruno Haible  <bruno@clisp.org>
99235         New gnulib-tool option --more-symlinks.
99236         * gnulib-tool (func_usage): Document --more-symlinks.
99237         (do_copyrights): New variable.
99238         Recognize option --more-symlinks.
99239         (func_import): Don't add a copyright notice transform to
99240         sed_transform_lib_file if do_copyrights is empty.
99242 2007-07-13  Bruno Haible  <bruno@clisp.org>
99244         * lib/vasnprintf.c (decimal_point_char): Define also if
99245         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99246         && !NEED_PRINTF_DIRECTIVE_A.
99247         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99248         Gary V. Vaughan <gary@gnu.org>.
99250 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99252         * lib/inttypes_.h: Undo previous change, since it was fixed
99253         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99255 2007-07-13  Bruno Haible  <bruno@clisp.org>
99257         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99258         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99260 2007-07-13  Jim Meyering  <jim@meyering.net>
99262         df: Don't fail for Tru64's "file-on-file mount".
99263         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99264         so we fall through and use statfs instead.  Details here:
99265         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99266         Reported by Albert Chin.
99268 2007-07-13  Bruno Haible  <bruno@clisp.org>
99270         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99271         * modules/configmake (License): Likewise.
99272         * modules/gettext (License): Likewise.
99273         * modules/gettext-h (License): Likewise.
99274         * modules/include_next (License): Likewise.
99275         * modules/link-warning (License): Likewise.
99276         * modules/localcharset (License): Likewise.
99277         * modules/localename (License): Likewise.
99278         * modules/lock (License): Likewise.
99279         * modules/relocatable-lib-lgpl (License): Likewise.
99280         * modules/size_max (License): Likewise.
99281         * modules/vasnprintf (License): Likewise.
99282         * modules/wchar (License): Likewise.
99283         * modules/xsize (License): Likewise.
99285 2007-07-13  Bruno Haible  <bruno@clisp.org>
99287         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99288         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99290 2007-07-12  Bruno Haible  <bruno@clisp.org>
99292         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99293         in the modules files.
99295 2007-07-11  Karl Berry  <karl@gnu.org>
99297         * MODULES.html.sh (func_module): use
99298          sed -e '\|^'"${includefile}"'$|d'
99299          instead of /.../d, to avoid errors on $includefile's containing /.
99301 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99303         * gnulib-tool (func_import): Avoid duplication of --avoid
99304         statements
99305         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99306         names to `_' in variable names.
99308 2007-07-10  Eric Blake  <ebb9@byu.net>
99310         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99311         * NEWS: Document this change.
99313 2007-07-08  Bruno Haible  <bruno@clisp.org>
99315         Update to Unicode 5.0.
99316         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99317         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99318         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99319         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99320         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99321         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99322         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99323         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99324         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99325         U+10A3F, U+1D242..U+1D244.
99326         (nonspacing_table_ind): Update.
99327         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99328         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99330 2007-07-08  Bruno Haible  <bruno@clisp.org>
99332         Update to Unicode 5.0.
99333         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99334         code transform. Extend the name index field of unicode_name_to_code and
99335         unicode_code_to_name from 16 to 24 bits.
99336         * lib/uniname/uniname.c (unicode_character_name,
99337         unicode_name_character): Add the range 0x12xxx to the code transform.
99338         * lib/uniname/uninames.h: Regenerated.
99339         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99341 2007-07-07  Bruno Haible  <bruno@clisp.org>
99343         * modules/wcwidth-tests: New file.
99344         * tests/test-wcwidth.c: New file.
99346         Work around MacOS X wcwidth() bug.
99347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99348         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99349         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99350         original wcwidth in non-UTF-8 locales.
99351         * modules/wcwidth (Depends-on): Add localcharset, streq,
99352         uniwidth/width.
99353         * doc/functions/wcwidth.texi: Update.
99355 2007-07-07  Bruno Haible  <bruno@clisp.org>
99357         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99358         (wcwidth): New declaration.
99359         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99360         macros.
99361         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99362         here. Prepare for creating <wchar.h> unconditionally.
99363         * modules/wchar (Depends-on): Add link-warning.
99364         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99365         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99366         * lib/wcwidth.h: Remove file.
99367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99368         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99369         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99370         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99371         (Include): Replace wcwidth.h with <wchar.h>.
99372         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99373         * lib/mbchar.h: Don't include wcwidth.h.
99374         * lib/mbswidth.c: Likewise.
99375         * NEWS: Mention the change.
99377 2007-07-07  Bruno Haible  <bruno@clisp.org>
99379         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99380         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99381         definition with an external declaration.
99382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99383         defined as a function. Remove AC_C_INLINE requirement.
99384         * modules/wcwidth (Files): Add lib/wcwidth.c.
99385         (Makefile.am): Remove redundant statement.
99387 2007-07-07  Bruno Haible  <bruno@clisp.org>
99389         * MODULES.html.sh (Unicode string functions): Add the new modules.
99391         * tests/uniwidth/test-u32-strwidth.c: New file.
99392         * modules/uniwidth/u32-strwidth-tests: New file.
99394         * lib/uniwidth/u32-strwidth.c: New file.
99395         * modules/uniwidth/u32-strwidth: New file.
99397         * tests/uniwidth/test-u16-strwidth.c: New file.
99398         * modules/uniwidth/u16-strwidth-tests: New file.
99400         * lib/uniwidth/u16-strwidth.c: New file.
99401         * modules/uniwidth/u16-strwidth: New file.
99403         * tests/uniwidth/test-u8-strwidth.c: New file.
99404         * modules/uniwidth/u8-strwidth-tests: New file.
99406         * lib/uniwidth/u8-strwidth.c: New file.
99407         * modules/uniwidth/u8-strwidth: New file.
99409         * tests/uniwidth/test-u32-width.c: New file.
99410         * modules/uniwidth/u32-width-tests: New file.
99412         * lib/uniwidth/u32-width.c: New file.
99413         * modules/uniwidth/u32-width: New file.
99415         * tests/uniwidth/test-u16-width.c: New file.
99416         * modules/uniwidth/u16-width-tests: New file.
99418         * lib/uniwidth/u16-width.c: New file.
99419         * modules/uniwidth/u16-width: New file.
99421         * tests/uniwidth/test-u8-width.c: New file.
99422         * modules/uniwidth/u8-width-tests: New file.
99424         * lib/uniwidth/u8-width.c: New file.
99425         * modules/uniwidth/u8-width: New file.
99427         * tests/uniwidth/test-uc_width.c: New file.
99428         * modules/uniwidth/width-tests: New file.
99430         * lib/uniwidth/width.c: New file, from GNU libiconv.
99431         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
99432         * modules/uniwidth/width: New file.
99434         * lib/uniwidth.h: New file, from GNU libiconv.
99435         * modules/uniwidth/base: New file.
99437 2007-07-07  Bruno Haible  <bruno@clisp.org>
99439         * lib/uniname.h: New file, from GNU gettext.
99440         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99441         * lib/uniname/uninames.h: New file, from GNU gettext.
99442         * lib/uniname/uniname.c: New file, from GNU gettext.
99443         * tests/uniname/test-uninames.sh: New file.
99444         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99445         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99446         * modules/uniname/base: New file.
99447         * modules/uniname/uniname: New file.
99448         * modules/uniname/uniname-tests: New file.
99449         * MODULES.html.sh (Unicode string functions): Add the new modules.
99451 2007-07-06  Bruno Haible  <bruno@clisp.org>
99453         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99455 2007-07-06  Bruno Haible  <bruno@clisp.org>
99457         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99458         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99459         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99460         include <sys/time.h>.
99461         Reported by Eric Blake.
99463 2007-07-06  Eric Blake  <ebb9@byu.net>
99465         Fix testing canonicalize on cygwin.
99466         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99467         Revert patch from 2007-06-19.
99468         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99469         canonicalize module is also in use.
99470         * tests/test-canonicalize.c: New file.
99471         * tests/test-canonicalize.sh: Likewise.
99472         * modules/canonicalize-tests: Likewise.
99474 2007-07-06  Jim Meyering  <jim@meyering.net>
99476         * lib/getugroups.c (getugroups): Detect getgrent failure.
99477         Adjust comment to reflect reality: this function may return -1.
99479 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99481         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99482         the new TP address.
99483         (usage): Fix typo
99484         (gnulib_mk): New variable.
99486 2007-07-05  Jim Meyering  <jim@meyering.net>
99488         Don't let endgrent clobber errno, no matter how improbable.
99489         * lib/getugroups.c (getugroups): Save and restore errno around
99490         endgrent call.
99492         Close the group DB even when failing with 2^31 or more members.
99493         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99495 2007-07-04  Jim Meyering  <jim@meyering.net>
99497         * lib/getugroups.h: New file.
99498         * lib/getugroups.c: Include "getugroups.h".
99499         Remove uses of "register" keyword.
99500         Move local variable, "cp", down into scope where used.
99501         Give "username" parameter the "const" attribute.
99502         * modules/getugroups (Files): Add lib/getugroups.h
99504 2007-07-04  Karl Berry  <karl@gnu.org>
99506         * MODULES.html.sh (func_all_modules): Complete rename of
99507         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99509 2007-07-02  Bruno Haible  <bruno@clisp.org>
99511         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99512         mode, when inttypes.h comes from gnulib.
99513         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99515 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99517         * NEWS: Mention lgpl module name change.
99519         * modules/lgpl-2.1: Renamed from lgpl.
99521         * NEWS: Mention gpl module name change.
99523         * modules/gpl-3.0: New file, based on gpl-2.0.
99525         * modules/gpl-2.0: Renamed from gpl.
99527         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99528         doc/gpl-2.0.texi.
99530 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99532         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99533         #define __STDC_LIMIT_MACROS temporarily while including
99534         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99535         Problem reported by Joel E. Denny in
99536         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99538 2007-07-01  Bruno Haible  <bruno@clisp.org>
99540         * lib/unistdio.h: New file.
99541         * lib/unistdio/u-asnprintf.h: New file.
99542         * lib/unistdio/u-asprintf.h: New file.
99543         * lib/unistdio/u-printf-args.c: New file.
99544         * lib/unistdio/u-printf-args.h: New file.
99545         * lib/unistdio/u-printf-parse.h: New file.
99546         * lib/unistdio/u-snprintf.h: New file.
99547         * lib/unistdio/u-sprintf.h: New file.
99548         * lib/unistdio/u-vasprintf.h: New file.
99549         * lib/unistdio/u-vsnprintf.h: New file.
99550         * lib/unistdio/u-vsprintf.h: New file.
99551         * lib/unistdio/ulc-asnprintf.c: New file.
99552         * lib/unistdio/ulc-asprintf.c: New file.
99553         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99554         * lib/unistdio/ulc-printf-parse.c: New file.
99555         * lib/unistdio/ulc-snprintf.c: New file.
99556         * lib/unistdio/ulc-sprintf.c: New file.
99557         * lib/unistdio/ulc-vasnprintf.c: New file.
99558         * lib/unistdio/ulc-vasprintf.c: New file.
99559         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99560         * lib/unistdio/ulc-vsnprintf.c: New file.
99561         * lib/unistdio/ulc-vsprintf.c: New file.
99562         * lib/unistdio/u8-asnprintf.c: New file.
99563         * lib/unistdio/u8-asprintf.c: New file.
99564         * lib/unistdio/u8-printf-parse.c: New file.
99565         * lib/unistdio/u8-snprintf.c: New file.
99566         * lib/unistdio/u8-sprintf.c: New file.
99567         * lib/unistdio/u8-vasnprintf.c: New file.
99568         * lib/unistdio/u8-vasprintf.c: New file.
99569         * lib/unistdio/u8-vsnprintf.c: New file.
99570         * lib/unistdio/u8-vsprintf.c: New file.
99571         * lib/unistdio/u8-u8-asnprintf.c: New file.
99572         * lib/unistdio/u8-u8-asprintf.c: New file.
99573         * lib/unistdio/u8-u8-snprintf.c: New file.
99574         * lib/unistdio/u8-u8-sprintf.c: New file.
99575         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99576         * lib/unistdio/u8-u8-vasprintf.c: New file.
99577         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99578         * lib/unistdio/u8-u8-vsprintf.c: New file.
99579         * lib/unistdio/u16-asnprintf.c: New file.
99580         * lib/unistdio/u16-asprintf.c: New file.
99581         * lib/unistdio/u16-printf-parse.c: New file.
99582         * lib/unistdio/u16-snprintf.c: New file.
99583         * lib/unistdio/u16-sprintf.c: New file.
99584         * lib/unistdio/u16-vasnprintf.c: New file.
99585         * lib/unistdio/u16-vasprintf.c: New file.
99586         * lib/unistdio/u16-vsnprintf.c: New file.
99587         * lib/unistdio/u16-vsprintf.c: New file.
99588         * lib/unistdio/u16-u16-asnprintf.c: New file.
99589         * lib/unistdio/u16-u16-asprintf.c: New file.
99590         * lib/unistdio/u16-u16-snprintf.c: New file.
99591         * lib/unistdio/u16-u16-sprintf.c: New file.
99592         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99593         * lib/unistdio/u16-u16-vasprintf.c: New file.
99594         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99595         * lib/unistdio/u16-u16-vsprintf.c: New file.
99596         * lib/unistdio/u32-asnprintf.c: New file.
99597         * lib/unistdio/u32-asprintf.c: New file.
99598         * lib/unistdio/u32-printf-parse.c: New file.
99599         * lib/unistdio/u32-snprintf.c: New file.
99600         * lib/unistdio/u32-sprintf.c: New file.
99601         * lib/unistdio/u32-vasnprintf.c: New file.
99602         * lib/unistdio/u32-vasprintf.c: New file.
99603         * lib/unistdio/u32-vsnprintf.c: New file.
99604         * lib/unistdio/u32-vsprintf.c: New file.
99605         * lib/unistdio/u32-u32-asnprintf.c: New file.
99606         * lib/unistdio/u32-u32-asprintf.c: New file.
99607         * lib/unistdio/u32-u32-snprintf.c: New file.
99608         * lib/unistdio/u32-u32-sprintf.c: New file.
99609         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99610         * lib/unistdio/u32-u32-vasprintf.c: New file.
99611         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99612         * lib/unistdio/u32-u32-vsprintf.c: New file.
99613         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99614         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99615         * tests/unistdio/test-ulc-printf1.h: New file.
99616         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99617         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99618         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99619         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99620         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99621         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99622         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99623         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99624         * tests/unistdio/test-u8-asnprintf1.c: New file.
99625         * tests/unistdio/test-u8-asnprintf1.h: New file.
99626         * tests/unistdio/test-u8-printf1.h: New file.
99627         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99628         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99629         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99630         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99631         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99632         * tests/unistdio/test-u8-vasprintf1.c: New file.
99633         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99634         * tests/unistdio/test-u8-vsprintf1.c: New file.
99635         * tests/unistdio/test-u16-asnprintf1.c: New file.
99636         * tests/unistdio/test-u16-asnprintf1.h: New file.
99637         * tests/unistdio/test-u16-printf1.h: New file.
99638         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99639         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99640         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99641         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99642         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99643         * tests/unistdio/test-u16-vasprintf1.c: New file.
99644         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99645         * tests/unistdio/test-u16-vsprintf1.c: New file.
99646         * tests/unistdio/test-u32-asnprintf1.c: New file.
99647         * tests/unistdio/test-u32-asnprintf1.h: New file.
99648         * tests/unistdio/test-u32-printf1.h: New file.
99649         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99650         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99651         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99652         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99653         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99654         * tests/unistdio/test-u32-vasprintf1.c: New file.
99655         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99656         * tests/unistdio/test-u32-vsprintf1.c: New file.
99657         * modules/unistdio/base: New file.
99658         * modules/unistdio/u-printf-args: New file.
99659         * modules/unistdio/ulc-asnprintf: New file.
99660         * modules/unistdio/ulc-asprintf: New file.
99661         * modules/unistdio/ulc-fprintf: New file.
99662         * modules/unistdio/ulc-printf-parse: New file.
99663         * modules/unistdio/ulc-snprintf: New file.
99664         * modules/unistdio/ulc-sprintf: New file.
99665         * modules/unistdio/ulc-vasnprintf: New file.
99666         * modules/unistdio/ulc-vasprintf: New file.
99667         * modules/unistdio/ulc-vfprintf: New file.
99668         * modules/unistdio/ulc-vsnprintf: New file.
99669         * modules/unistdio/ulc-vsprintf: New file.
99670         * modules/unistdio/u8-asnprintf: New file.
99671         * modules/unistdio/u8-asprintf: New file.
99672         * modules/unistdio/u8-printf-parse: New file.
99673         * modules/unistdio/u8-snprintf: New file.
99674         * modules/unistdio/u8-sprintf: New file.
99675         * modules/unistdio/u8-vasnprintf: New file.
99676         * modules/unistdio/u8-vasprintf: New file.
99677         * modules/unistdio/u8-vsnprintf: New file.
99678         * modules/unistdio/u8-vsprintf: New file.
99679         * modules/unistdio/u8-u8-asnprintf: New file.
99680         * modules/unistdio/u8-u8-asprintf: New file.
99681         * modules/unistdio/u8-u8-snprintf: New file.
99682         * modules/unistdio/u8-u8-sprintf: New file.
99683         * modules/unistdio/u8-u8-vasnprintf: New file.
99684         * modules/unistdio/u8-u8-vasprintf: New file.
99685         * modules/unistdio/u8-u8-vsnprintf: New file.
99686         * modules/unistdio/u8-u8-vsprintf: New file.
99687         * modules/unistdio/u16-asnprintf: New file.
99688         * modules/unistdio/u16-asprintf: New file.
99689         * modules/unistdio/u16-printf-parse: New file.
99690         * modules/unistdio/u16-snprintf: New file.
99691         * modules/unistdio/u16-sprintf: New file.
99692         * modules/unistdio/u16-vasnprintf: New file.
99693         * modules/unistdio/u16-vasprintf: New file.
99694         * modules/unistdio/u16-vsnprintf: New file.
99695         * modules/unistdio/u16-vsprintf: New file.
99696         * modules/unistdio/u16-u16-asnprintf: New file.
99697         * modules/unistdio/u16-u16-asprintf: New file.
99698         * modules/unistdio/u16-u16-snprintf: New file.
99699         * modules/unistdio/u16-u16-sprintf: New file.
99700         * modules/unistdio/u16-u16-vasnprintf: New file.
99701         * modules/unistdio/u16-u16-vasprintf: New file.
99702         * modules/unistdio/u16-u16-vsnprintf: New file.
99703         * modules/unistdio/u16-u16-vsprintf: New file.
99704         * modules/unistdio/u32-asnprintf: New file.
99705         * modules/unistdio/u32-asprintf: New file.
99706         * modules/unistdio/u32-printf-parse: New file.
99707         * modules/unistdio/u32-snprintf: New file.
99708         * modules/unistdio/u32-sprintf: New file.
99709         * modules/unistdio/u32-vasnprintf: New file.
99710         * modules/unistdio/u32-vasprintf: New file.
99711         * modules/unistdio/u32-vsnprintf: New file.
99712         * modules/unistdio/u32-vsprintf: New file.
99713         * modules/unistdio/u32-u32-asnprintf: New file.
99714         * modules/unistdio/u32-u32-asprintf: New file.
99715         * modules/unistdio/u32-u32-snprintf: New file.
99716         * modules/unistdio/u32-u32-sprintf: New file.
99717         * modules/unistdio/u32-u32-vasnprintf: New file.
99718         * modules/unistdio/u32-u32-vasprintf: New file.
99719         * modules/unistdio/u32-u32-vsnprintf: New file.
99720         * modules/unistdio/u32-u32-vsprintf: New file.
99721         * modules/unistdio/ulc-asnprintf-tests: New file.
99722         * modules/unistdio/ulc-vasnprintf-tests: New file.
99723         * modules/unistdio/ulc-vasprintf-tests: New file.
99724         * modules/unistdio/ulc-vsnprintf-tests: New file.
99725         * modules/unistdio/ulc-vsprintf-tests: New file.
99726         * modules/unistdio/u8-asnprintf-tests: New file.
99727         * modules/unistdio/u8-vasnprintf-tests: New file.
99728         * modules/unistdio/u8-vasprintf-tests: New file.
99729         * modules/unistdio/u8-vsnprintf-tests: New file.
99730         * modules/unistdio/u8-vsprintf-tests: New file.
99731         * modules/unistdio/u16-asnprintf-tests: New file.
99732         * modules/unistdio/u16-vasnprintf-tests: New file.
99733         * modules/unistdio/u16-vasprintf-tests: New file.
99734         * modules/unistdio/u16-vsnprintf-tests: New file.
99735         * modules/unistdio/u16-vsprintf-tests: New file.
99736         * modules/unistdio/u32-asnprintf-tests: New file.
99737         * modules/unistdio/u32-vasnprintf-tests: New file.
99738         * modules/unistdio/u32-vasprintf-tests: New file.
99739         * modules/unistdio/u32-vsnprintf-tests: New file.
99740         * modules/unistdio/u32-vsprintf-tests: New file.
99741         * MODULES.html.sh (Unicode string functions): Add the new modules.
99743 2007-07-01  Bruno Haible  <bruno@clisp.org>
99745         * lib/sprintf.c (sprintf): Limit the available length estimation,
99746         to avoid address wraparound.
99747         * lib/vsprintf.c (vsprintf): Likewise.
99748         * modules/sprintf-posix (Dependencies): Add stdint.
99749         * modules/vsprintf-posix (Dependencies): Likewise.
99751 2007-07-01  Bruno Haible  <bruno@clisp.org>
99753         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99754         Windows PATH as well. Conservative double-quoting. Comments.
99756 2007-07-01  Bruno Haible  <bruno@clisp.org>
99757             Eric Blake  <ebb9@byu.net>
99758             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99760         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99761         empty components in $PATH, denoting '.'.
99763 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99765         * gnulib-tool: Fix indentation.
99766         (func_create_megatestdir): Likewise.
99767         Report by Bruno Haible.
99769 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99771         Sync from Automake.
99772         * build-aux/gnupload: Fix shell portability issues with for loops.
99773         Report by Karl Berry.
99775 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99777         * build-aux/maint.mk (POURL): Use translationproject.org.
99779 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99780             Bruno Haible  <bruno@clisp.org>
99782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99783         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99784         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99785         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99786         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99788 2007-06-27  Bruno Haible  <bruno@clisp.org>
99790         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99791         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99793 2007-06-26  Karl Berry  <karl@gnu.org>
99795         * MODULES.html.sh: remove xreadlink-with-size.
99797 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99799         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99800         method that I hope also handles the double-include problem noted
99801         by Bruno Haible in
99802         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99804 2007-06-23  Bruno Haible  <bruno@clisp.org>
99806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99807         Don't let the 'mostlyclean' target fail if the last subdirectory could
99808         not be removed.
99809         Reported by Karl Berry.
99811 2007-06-23  Bruno Haible  <bruno@clisp.org>
99813         * gnulib-tool (echo): Add a speedier workaround for ksh.
99814         * tests/test-echo.sh: Likewise.
99816 2007-06-23  Bruno Haible  <bruno@clisp.org>
99818         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99819         * tests/test-echo.sh: Likewise.
99821 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99823         * gnulib-tool (IFS): Initialize early, so we don't set it to
99824         empty later.
99825         (self_abspathname): Rewrite algorithm to set it, reindent.
99826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99827         (func_create_megatestdir): Merge some sed scripts.
99829 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99831         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99832         exposed by Sun Studio 11 cc on Solaris 8.
99834 2007-06-22  Bruno Haible  <bruno@clisp.org>
99836         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99837         backslashes.
99838         * tests/test-echo.sh: New file.
99840 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99842         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99843         simplify `sed_replace_build_aux' scripts, they are portable but
99844         echoing them with `echo' is not.
99845         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99847 2007-06-21  Karl Berry  <karl@gnu.org>
99849         * config/srclist.txt: guess we can't handle the licenses via
99850         srclist at the moment.
99852 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99854         * MODULES.html.sh: Add include_next.
99855         * modules/include_next: New file.
99857 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99859         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99860         INCLUDE_NEXT.
99861         (gl_CHECK_NEXT_HEADERS): New macro.
99862         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99863         the obsolescent gl_ABSOLUTE_HEADER.
99864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99865         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99866         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99867         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99868         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99869         * m4/math_h.m4 (gl_MATH_H): Likewise.
99870         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99872         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99873         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99874         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99875         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99876         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99881         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99882         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99883         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99884         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99885         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99886         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99887         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99888         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99889         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99890         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99891         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99892         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99893         * lib/float_.h: Likewise.
99894         * lib/inttypes_.h: Likewise.
99895         * lib/math_.h: Likewise.
99896         * lib/search_.h: Likewise.
99897         * lib/signal_.h: Likewise.
99898         * lib/stdint_.h: Likewise.
99899         * lib/stdio_.h: Likewise.
99900         * lib/stdlib_.h: Likewise.
99901         * lib/string_.h: Likewise.
99902         * lib/sys_stat_.h: Likewise.
99903         * lib/sys_time_.h: Likewise.
99904         * lib/time_.h: Likewise.
99905         * lib/unistd_.h: Likewise.
99906         * lib/wchar_.h: Likewise.
99907         * lib/wctype_.h: Likewise.
99908         * lib/dirent_.h: Likewise.
99909         * lib/iconv_.h: Likewise.
99910         * lib/locale_.h: Likewise.
99911         * lib/netinet_in_.h: Likewise.
99912         * lib/sys_select_.h: Likewise.
99913         * lib/sys_socket_.h: Likewise.
99914         * lib/sysexits_.h: Likewise.
99915         * modules/fcntl (Depends-on): Depend on include_next, not
99916         absolute_header.
99917         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99918         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99919         * modules/fchdir: Likewise.
99920         * modules/float: Likewise.
99921         * modules/iconv_open: Likewise.
99922         * modules/inttypes: Likewise.
99923         * modules/locale: Likewise.
99924         * modules/math: Likewise.
99925         * modules/netinet_in: Likewise.
99926         * modules/search: Likewise.
99927         * modules/signal: Likewise.
99928         * modules/stdint: Likewise.
99929         * modules/stdio: Likewise.
99930         * modules/stdlib: Likewise.
99931         * modules/string: Likewise.
99932         * modules/sys_select: Likewise.
99933         * modules/sys_socket: Likewise.
99934         * modules/sys_stat: Likewise.
99935         * modules/sys_time: Likewise.
99936         * modules/sysexits: Likewise.
99937         * modules/time: Likewise.
99938         * modules/unistd: Likewise.
99939         * modules/wchar: Likewise.
99940         * modules/wctype: Likewise.
99941         * modules/sys_stat: Change maintainer to "all".
99942         * modules/unistd: Likewise.
99944 2007-06-20  Karl Berry  <karl@gnu.org>
99946         * config/srclist.txt: track www changes in license files.
99948 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99950         * build-aux/bootstrap: Remove stray dot.
99951         Make sure build_aux settings are honored when linking
99952         gnulib_extra_files.
99954 2007-06-19  Eric Blake  <ebb9@byu.net>
99956         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99957         Allow compilation on cygwin.
99959 2007-06-19  Jim Meyering  <jim@meyering.net>
99961         xreadlink-with-size: Remove module.  No longer used.
99962         Ex-callers now use xreadlink or mreadlink-with-size.
99963         * modules/xreadlink-with-size: Remove module.
99964         * lib/xreadlink-with-size.c: Remove file.
99965         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99966         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99967         just before the function definition *is* accurate.
99969         Eliminate one way canonicalize_filename_mode could exit.
99970         * lib/canonicalize.c (canonicalize_filename_mode):
99971         Use mreadlink_with_size, not xreadlink_with_size.
99973 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99975         Detect porting problems to FreeBSD/arm, which has time_t wider than
99976         long int.  Original problem reported for GNU diff by Xin Li in
99977         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99978         * modules/getdate (Depends-on): Add intprops, verify.
99979         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99980         is an integer type no wider than long int.
99982 2007-06-18  Jim Meyering  <jim@meyering.net>
99984         New module: mreadlink-with-size.
99985         * MODULES.html.sh: Add mreadlink-with-size.
99986         * modules/mreadlink-with-size: New module
99987         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99988         not xreadlink-with-size.
99989         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99991 2007-06-16  Bruno Haible  <bruno@clisp.org>
99993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99994         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99995         Reported by Gary V. Vaughan <gary@gnu.org>.
99997 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99999         Revamp lchown so that it lives in unistd.h where it belongs.
100000         * lib/lchown.h: Remove.
100001         * lib/dirchownmod.c: Don't include lib/lchown.h.
100002         * lib/fchownat.c: Likewise.
100003         * lib/openat.c: Likewise.
100004         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100005         does not follow symlinks.
100006         (EOPNOTSUPP): Define if not defined.
100007         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100008         is defined to 0.
100009         (lchown): New decl.
100010         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100011         Do not check for lchown decl.
100012         Set REPLACE_LCHOWN.
100013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100014         REPLACE_LCHOWN.
100015         * modules/chown: Make it clear it follows symlinks.
100016         * modules/lchown: Make it clear it doesn't follow symlinks.
100017         (Files): Remove lib/lchown.h
100018         (Depends-on): Add unistd.
100019         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100020         (Include): Include <unistd.h>, not "lchown.h".
100021         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100022         REPLACE_LCHOWN.
100024 2007-06-15  Jim Meyering  <jim@meyering.net>
100026         Change license (GPL to LGPL) of fsusage and dependents.
100027         * modules/fsusage (License): Change to LGPL.
100028         * modules/full-read (License): Likewise.
100029         * modules/full-write (License): Likewise.
100030         * modules/safe-read (License): Likewise.
100031         * modules/safe-write (License): Likewise.
100033 2007-06-14  Ben Pfaff  <blp@gnu.org>
100035         Missing part of allocsa -> malloca transition.
100036         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100037         gl_MALLOCA.
100039 2007-06-12  Bruno Haible  <bruno@clisp.org>
100041         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100042         to ia64, x86_64, i386.
100043         Reported by Eric Blake.
100045 2007-06-12  Bruno Haible  <bruno@clisp.org>
100047         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100048         cross-compiling to x86_64.
100050 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100053         glitch reported by Ralf Wildenhues in
100054         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100056         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100057         Vin Shelton.
100059 2007-06-11  Bruno Haible  <bruno@clisp.org>
100061         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100062         replacement string.
100063         Reported by Eric Blake.
100065 2007-06-10  Bruno Haible  <bruno@clisp.org>
100067         Prepare vasnprintf code for use with Unicode strings.
100068         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100069         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100070         TYPE_U32_STRING.
100071         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100072         a_u32_string variants.
100073         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100074         * lib/printf-args.c: Don't include config.h and the specification
100075         header if PRINTF_FETCHARGS is already defined.
100076         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100077         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100078         TYPE_U16_STRING, TYPE_U32_STRING.
100079         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100080         u16_directive, u16_directives, u32_directive, u32_directives): New
100081         types.
100082         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100083         New declarations.
100084         * lib/printf-parse.c: Don't include config.h and the specification
100085         header if PRINTF_PARSE is already defined. Eliminate the set of
100086         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100087         them now. Include c-ctype.h.
100088         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100089         directive and CHAR_T_ONLY_ASCII.
100090         * lib/vasnprintf.c: Don't include config.h and the specification header
100091         if VASNPRINTF is already defined.
100092         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100093         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100094         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100095         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100096         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100097         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100098         code accordingly.
100099         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100100         pad_ourselves also in this case, with the 'c' and 's' directives, and
100101         with a different notion of "width".
100102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100104 2007-06-10  Bruno Haible  <bruno@clisp.org>
100106         * modules/unistr/u32-mbsnlen: New file.
100107         * lib/unistr/u32-mbsnlen.c: New file.
100109         * modules/unistr/u16-mbsnlen: New file.
100110         * lib/unistr/u16-mbsnlen.c: New file.
100112         * modules/unistr/u8-mbsnlen: New file.
100113         * lib/unistr/u8-mbsnlen.c: New file.
100115         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100116         declarations.
100118 2007-06-10  Bruno Haible  <bruno@clisp.org>
100120         * lib/string_.h (mbsnlen): New declaration.
100121         * lib/mbsnlen.c: New file.
100122         * m4/mbsnlen.m4: New file.
100123         * modules/mbsnlen: New file.
100124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100125         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100126         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100128 2007-06-10  Bruno Haible  <bruno@clisp.org>
100130         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100132 2007-06-10  Bruno Haible  <bruno@clisp.org>
100134         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100135         * lib/mbuiter.h: Likewise.
100137 2007-06-10  Bruno Haible  <bruno@clisp.org>
100139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100140         declaration.
100142 2007-06-10  Karl Berry  <karl@gnu.org>
100144         * config/srclist.txt: remove gettext entries, Bruno prefers
100145         to update individually.
100147 2007-06-10  Bruno Haible  <bruno@clisp.org>
100149         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100150         'maxlen'. Ensure only length + width bytes are allocated, not
100151         length + 1 + width.
100153 2007-06-09  Bruno Haible  <bruno@clisp.org>
100155         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100156         (CHAR_T): Remove macro.
100157         (VASNPRINTF): Update.
100159 2007-06-09  Bruno Haible  <bruno@clisp.org>
100161         * MODULES.html.sh (Unicode string functions): Add the new modules.
100163         * modules/uniconv/u32-conv-to-enc: New file.
100164         * lib/uniconv/u32-conv-to-enc.c: New file.
100165         * modules/uniconv/u32-conv-to-enc-tests: New file.
100166         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100168         * modules/uniconv/u16-conv-to-enc: New file.
100169         * lib/uniconv/u16-conv-to-enc.c: New file.
100170         * lib/uniconv/u-conv-to-enc.h: New file.
100171         * modules/uniconv/u16-conv-to-enc-tests: New file.
100172         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100174         * modules/uniconv/u8-conv-to-enc: New file.
100175         * lib/uniconv/u8-conv-to-enc.c: New file.
100176         * modules/uniconv/u8-conv-to-enc-tests: New file.
100177         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100179         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100180         u32_conv_to_encoding): New declarations.
100182 2007-06-09  Bruno Haible  <bruno@clisp.org>
100184         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100186 2007-06-09  Bruno Haible  <bruno@clisp.org>
100188         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100189         * modules/malloca: Renamed from modules/allocsa, updated.
100190         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100191         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100192         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100193         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100194         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100195         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100196         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100197         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100198         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100199         * modules/c-strcasestr (Depends-on): Update.
100200         * lib/c-strcasestr.c: Update.
100201         * modules/c-strstr (Depends-on): Update.
100202         * lib/c-strstr.c: Update.
100203         * modules/canonicalize-lgpl (Depends-on): Update.
100204         * lib/canonicalize-lgpl.c: Update.
100205         * modules/clean-temp (Depends-on): Update.
100206         * lib/clean-temp.c: Update.
100207         * modules/csharpcomp (Depends-on): Update.
100208         * lib/csharpcomp.c: Update.
100209         * modules/csharpexec (Depends-on): Update.
100210         * lib/csharpexec.c: Update.
100211         * modules/javacomp (Depends-on): Update.
100212         * lib/javacomp.c: Update.
100213         * modules/javaexec (Depends-on): Update.
100214         * lib/javaexec.c: Update.
100215         * modules/mbscasestr (Depends-on): Update.
100216         * lib/mbscasestr.c: Update.
100217         * modules/mbsstr (Depends-on): Update.
100218         * lib/mbsstr.c: Update.
100219         * modules/setenv (Depends-on): Update.
100220         * lib/setenv.c: Update.
100221         * modules/strcasestr (Depends-on): Update.
100222         * lib/strcasestr.c: Update.
100223         * modules/striconveha (Depends-on): Update.
100224         * lib/striconveha.c: Update.
100225         * modules/relocatable-prog-wrapper (Files): Update.
100226         * lib/relocwrapper.c: Update.
100227         * build-aux/install-reloc: Update.
100228         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100230 2007-06-08  Bruno Haible  <bruno@clisp.org>
100232         Port to uClibc.
100233         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100234         * lib/fpurge.c (fpurge): Likewise.
100235         * lib/freading.c (freading): Likewise.
100236         * lib/fseeko.c (rpl_fseeko): Likewise.
100237         * lib/fseterr.c (fseterr): Likewise.
100238         * lib/fwriting.c (fwriting): Likewise.
100239         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100241 2007-06-08  Bruno Haible  <bruno@clisp.org>
100243         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100244         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100245         * modules/gettext (Files): Add m4/intlmacosx.m4.
100247 2007-06-07  Bruno Haible  <bruno@clisp.org>
100249         * modules/localename-tests: New file.
100250         * tests/test-localename.c: New file.
100252         New module 'localename'.
100253         * lib/localename.h: New file.
100254         * lib/localename.c: New file, from GNU gettext.
100255         * m4/localename.m4: New file.
100256         * modules/localename: New file.
100258 2007-06-07  Bruno Haible  <bruno@clisp.org>
100260         Work around the lack of <wchar.h> on some builds of uClibc.
100261         * doc/headers/wchar.texi: Update.
100262         * lib/wchar_.h: Include <wchar.h> only if it exists.
100263         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100264         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100265         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100266         doesn't exist.
100267         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100268         * modules/mbfile (Depends-on): Add wchar.
100269         * modules/mbiter (Depends-on): Likewise.
100270         * modules/mbuiter (Depends-on): Likewise.
100271         Reported by Simon Josefsson.
100273 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100275         Work around problem reported by Steven M. Schweda in
100276         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100277         Tru64 5.1B with the Compaq compiler environment installed declares
100278         an 'isblank' function but does not define it in the C library.
100279         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100280         * lib/regex_internal.h (isblank): Likewise.
100281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100282         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100284 2007-06-05  Bruno Haible  <bruno@clisp.org>
100286         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100287         ia64.
100288         * modules/printf-safe: New file.
100289         * modules/fprintf-posix (Depends-on): Add printf-safe.
100290         * modules/printf-posix (Depends-on): Likewise.
100291         * modules/snprintf-posix (Depends-on): Likewise.
100292         * modules/sprintf-posix (Depends-on): Likewise.
100293         * modules/vasnprintf-posix (Depends-on): Likewise.
100294         * modules/vasprintf-posix (Depends-on): Likewise.
100295         * modules/vfprintf-posix (Depends-on): Likewise.
100296         * modules/vprintf-posix (Depends-on): Likewise.
100297         * modules/vsnprintf-posix (Depends-on): Likewise.
100298         * modules/vsprintf-posix (Depends-on): Likewise.
100299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100300         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100301         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100302         "no" on i386, x86_64, ia64.
100303         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100304         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100305         on i386, x86_64, ia64.
100306         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100307         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100308         on i386, x86_64, ia64.
100309         * tests/test-vasnprintf-posix.c: Include float.h.
100310         (LDBL80_WORDS): New macro.
100311         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100312         on i386, x86_64, ia64.
100313         * tests/test-vasprintf-posix.c: Include float.h.
100314         (LDBL80_WORDS): New macro.
100315         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100316         on i386, x86_64, ia64.
100317         * tests/test-snprintf-posix.c: Include float.h.
100318         * tests/test-sprintf-posix.c: Likewise.
100319         * tests/test-vsnprintf-posix.c: Likewise.
100320         * tests/test-vsprintf-posix.c: Likewise.
100322 2007-06-05  Bruno Haible  <bruno@clisp.org>
100324         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100325         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100326         non-IEEE numbers on i386, x86_64, ia64.
100327         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100328         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100329         * tests/test-isnanl.h: Include float.h.
100330         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100332 2007-06-05  Bruno Haible  <bruno@clisp.org>
100334         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100335         also the %a / %A. Handle the %a / %A code before this extra handling.
100337 2007-06-05  Bruno Haible  <bruno@clisp.org>
100339         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100340         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100342 2007-06-05  Bruno Haible  <bruno@clisp.org>
100344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100345         typo in variable name.
100347 2007-06-05  Eric Blake  <ebb9@byu.net>
100349         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100350         Reported by Simon Josefsson.
100352 2007-06-04  Bruno Haible  <bruno@clisp.org>
100354         Avoid test failures on some PowerPC platforms.
100355         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100356         Define differently for PowerPC.
100357         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100358         Reported by Gary V. Vaughan <gary@gnu.org>.
100360 2007-06-02  Bruno Haible  <bruno@clisp.org>
100362         Fix test-stdint failure on FreeBSD/ia64.
100363         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100364         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100365         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100366         * doc/headers/stdint.texi: Update.
100368 2007-06-01  Bruno Haible  <bruno@clisp.org>
100370         * tests/test-binary-io.c (main): Pass a third argument to open().
100371         Reported by Gary V. Vaughan <gary@gnu.org>.
100373 2007-06-01  Bruno Haible  <bruno@clisp.org>
100375         * doc/functions/frexpl.texi: Update for mingw.
100377 2007-06-01  Bruno Haible  <bruno@clisp.org>
100379         * tests/test-lseek.c (main): Disable test of errno for invalid third
100380         argument.
100381         * doc/functions/lseek.texi: Update.
100382         Reported by Gary V. Vaughan <gary@gnu.org>.
100384 2007-05-28  Bruno Haible  <bruno@clisp.org>
100386         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100388 2007-05-31  Eric Blake  <ebb9@byu.net>
100390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100391         cross compiling.
100393 2007-05-30  Eric Blake  <ebb9@byu.net>
100394         and Bruno Haible  <bruno@clisp.org>
100396         Work around mingw test failures exposed by m4-1.4.9b.
100397         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100398         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100399         moment.
100401 2007-05-30  Bruno Haible  <bruno@clisp.org>
100403         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100404         assuming that they are closed. Needed on HP-UX 11.
100406 2007-05-29  Bruno Haible  <bruno@clisp.org>
100408         Fix a problem with #include_next.
100409         * lib/dirent_.h: Split the double-inclusion guard.
100410         * lib/fcntl_.h: Likewise.
100411         * lib/float_.h: Likewise.
100412         * lib/iconv_.h: Likewise.
100413         * lib/inttypes_.h: Likewise.
100414         * lib/locale_.h: Likewise.
100415         * lib/math_.h: Likewise.
100416         * lib/netinet_in_.h: Likewise.
100417         * lib/search_.h: Likewise.
100418         * lib/signal_.h: Likewise.
100419         * lib/stdint_.h: Likewise.
100420         * lib/stdio_.h: Likewise.
100421         * lib/stdlib_.h: Likewise.
100422         * lib/string_.h: Likewise.
100423         * lib/sys_select_.h: Likewise.
100424         * lib/sys_socket_.h: Likewise.
100425         * lib/sys_stat_.h: Likewise.
100426         * lib/sys_time_.h: Likewise.
100427         * lib/sysexits_.h: Likewise.
100428         * lib/time_.h: Likewise.
100429         * lib/unistd_.h: Likewise.
100430         * lib/wchar_.h: Likewise.
100431         * lib/wctype_.h: Likewise.
100433 2007-05-29  Bruno Haible  <bruno@clisp.org>
100435         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
100436         for the moment.
100438 2007-05-29  Bruno Haible  <bruno@clisp.org>
100440         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100441         invocation.
100442         Reported by Eric Blake.
100444 2007-05-29  Bruno Haible  <bruno@clisp.org>
100446         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100447         compiling case.
100449 2007-05-29  Eric Blake  <ebb9@byu.net>
100450             Bruno Haible  <bruno@clisp.org>
100452         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100453         cross compiles.
100455 2007-05-28  Eric Blake  <ebb9@byu.net>
100457         * modules/closein-tests (test_closein_LDADD): Support test on
100458         cygwin with libtool.
100460 2007-05-28  Bruno Haible  <bruno@clisp.org>
100462         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100463         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100464         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100465         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100466         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100467         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100468         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100469         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100470         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100472 2007-05-28  Eric Blake  <ebb9@byu.net>
100474         Unconditionally include <config.h> in unit tests.
100475         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100476         * tests/test-allocsa.c, tests/test-arcfour.c,
100477         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100478         tests/test-array_list.c, tests/test-array_oset.c,
100479         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100480         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100481         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100482         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100483         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100484         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100485         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100486         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100487         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100488         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100489         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100490         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100491         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100492         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100493         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100494         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100495         test-md5.c, test-memmem.c, test-printf-posix.c,
100496         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100497         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100498         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100499         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100500         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100501         test-vasnprintf-posix2.c, test-vasnprintf.c,
100502         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100503         test-vfprintf-posix.c, test-vprintf-posix.c,
100504         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100505         test-xvasprintf.c: Likewise.
100507 2007-05-28  Bruno Haible  <bruno@clisp.org>
100509         * gnulib-tool (func_import): Remember the --with-tests command-line
100510         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100511         Reported by Eric Blake.
100513 2007-05-28  Bruno Haible  <bruno@clisp.org>
100515         * modules/ftell-tests: New file.
100516         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100517         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100519         * lib/ftell.c: New file.
100520         * modules/ftell: New file.
100521         * m4/ftell.m4: New file.
100522         * doc/functions/ftell.texi: Update.
100523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100524         REPLACE_FTELL.
100525         * lib/stdio_.h (rpl_ftell): New declaration.
100526         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100527         REPLACE_FTELL.
100529 2007-05-28  Eric Blake  <ebb9@byu.net>
100531         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100533 2007-05-28  Bruno Haible  <bruno@clisp.org>
100535         * modules/fseek-tests: New file.
100536         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100537         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100539         * lib/fseek.c: New file.
100540         * modules/fseek: New file.
100541         * m4/fseek.m4: New file.
100542         * doc/functions/fseek.texi: Update.
100543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100544         REPLACE_FSEEK.
100545         * lib/stdio_.h (rpl_fseek): New declaration.
100546         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100547         REPLACE_FSEEK.
100549 2007-05-28  Bruno Haible  <bruno@clisp.org>
100551         * lib/stdio_.h (fflush): More comments.
100553 2007-05-28  Bruno Haible  <bruno@clisp.org>
100555         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100556         runtime test.
100558 2007-05-28  Eric Blake  <ebb9@byu.net>
100560         Improve lseek module.
100561         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100562         * lib/unistd_.h (lseek): Scale back link warning message.
100563         * tests/test-lseek.c: Beef up test.
100564         * tests/test-lseek.sh: Exercise more facets of lseek.
100565         Reported by Bruno Haible.
100567 2007-05-28  Bruno Haible  <bruno@clisp.org>
100569         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100570         to define.
100572 2007-05-27  Bruno Haible  <bruno@clisp.org>
100574         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100576 2007-05-27  Bruno Haible  <bruno@clisp.org>
100578         * modules/openmp: New file.
100579         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100580         Noah Misch.
100582 2007-05-26  Bruno Haible  <bruno@clisp.org>
100584         * modules/chdir-long (Depends-on): Add fchdir.
100585         * modules/chdir-safer (Depends-on): Likewise.
100586         * modules/fts (Depends-on): Likewise.
100587         * modules/fts-lgpl (Depends-on): Likewise.
100588         * modules/openat (Depends-on): Likewise.
100589         * modules/savewd (Depends-on): Likewise.
100591 2007-05-24  Eric Blake  <ebb9@byu.net>
100593         Fix lseek on mingw.
100594         * modules/lseek: New module.
100595         * m4/lseek.m4: New file.
100596         * lib/lseek.c: New file.
100597         * modules/lseek-tests: New file.
100598         * tests/test-lseek.c: New file.
100599         * tests/test-lseek.sh: New file.
100600         * MODULES.html.sh: Document lseek module.
100601         * modules/fflush (Depends-on): Add lseek, fseeko.
100602         * modules/fseeko (Depends-on): Likewise.
100603         * modules/ftello (Depends-on): Likewise.
100604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100605         broken.
100606         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100607         broken.
100608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100609         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100610         * lib/ftello.c (rpl_ftello): Likewise.
100611         * tests/test-fseeko.c (main): Test this.
100612         * tests/test-fseeko.sh: Likewise.
100613         * tests/test-ftello.c (main): Likewise.
100614         * tests/test-ftello.sh: Likewise.
100615         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100616         implies replacing fseek.
100617         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100618         HAVE_FTELLO.
100619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100620         * modules/unistd (Makefile.am): Likewise.
100621         * lib/unistd_.h (lseek): Declare a replacement.
100622         * doc/functions/lseek.texi (lseek): Document this fix.
100623         * doc/functions/fseek.texi (fseek): Likewise.
100624         * doc/functions/ftell.texi (ftell): Likewise.
100626 2007-05-24  Bruno Haible  <bruno@clisp.org>
100628         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100629         in the printed representation of a NaN.
100630         * tests/test-vasprintf-posix.c (test_function): Likewise.
100631         * tests/test-snprintf-posix.h (test_function): Likewise.
100632         * tests/test-sprintf-posix.h (test_function): Likewise.
100633         Reported by Eric Blake.
100635 2007-05-23  Eric Blake  <ebb9@byu.net>
100637         Fix fseeko/ftello on cygwin 1.5.24.
100638         * doc/functions/fseeko.texi (fseeko): Document the fix.
100639         * doc/functions/ftello.texi (ftello): Document the fix.
100640         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100641         * doc/functions/stdout.text (stdout): New file.
100642         * doc/functions/stderr.text (stderr): New file.
100643         * doc/gnulib.texi (Function Substitutes): Use new files.
100644         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100645         prior to 1.7.0.
100646         * tests/test-ftello.c (main): Likewise for ftello.
100647         * tests/test-fseeko.sh: New file.
100648         * tests/test-ftello.sh: New file.
100649         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100650         with seekable stdin.
100651         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100653         (gl_REPLACE_FSEEKO): New macro.
100654         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100655         * modules/fseeko (Files): Distribute fseeko.c.
100656         * modules/ftello (Files): Distribute ftello.c.
100657         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100658         mode.
100659         * lib/ftello.c (rpl_ftello): New file.
100660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100661         fseeko, ftello.
100662         (gl_STDIN_LARGE_OFFSET): New macro.
100663         * modules/stdio (Makefile.am): Perform the replacement.
100664         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100666 2007-05-23  Bruno Haible  <bruno@clisp.org>
100668         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100669         GNULIB_POSIXCHECK is defined.
100671 2007-05-21  Bruno Haible  <bruno@clisp.org>
100673         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100674         Check also the output for NaN arguments. When cross-compiling, guess
100675         no on IRIX.
100676         * lib/vasnprintf.c: Update comments.
100677         * tests/test-vasnprintf-posix.c (strisnan): New function.
100678         (test_function): Use it.
100679         * tests/test-vasprintf-posix.c (strisnan): New function.
100680         (test_function): Use it.
100681         * tests/test-snprintf-posix.h (strisnan): New function.
100682         (test_function): Use it.
100683         * tests/test-sprintf-posix.h (strisnan): New function.
100684         (test_function): Use it.
100685         Reported by Eric Blake.
100687 2007-05-20  Bruno Haible  <bruno@clisp.org>
100689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100690         numbers that fails on BeOS.
100691         * doc/functions/frexpl.texi: Update.
100693 2007-05-20  Jim Meyering  <jim@meyering.net>
100695         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100696         forced upon us by glibc-2.6.
100698 2007-05-20  Bruno Haible  <bruno@clisp.org>
100700         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100701         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100702         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100703         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100704         NEED_PRINTF_INFINITE.
100705         (is_infinitel): New function.
100706         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100708         gl_PREREQ_VASNPRINTF_INFINITE.
100709         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100711         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100712         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100713         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100714         gl_PREREQ_VASNPRINTF_INFINITE.
100715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100716         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100722         * doc/functions/fprintf.texi: Update.
100723         * doc/functions/printf.texi: Update.
100724         * doc/functions/snprintf.texi: Update.
100725         * doc/functions/sprintf.texi: Update.
100726         * doc/functions/vfprintf.texi: Update.
100727         * doc/functions/vprintf.texi: Update.
100728         * doc/functions/vsnprintf.texi: Update.
100729         * doc/functions/vsprintf.texi: Update.
100731 2007-05-20  Bruno Haible  <bruno@clisp.org>
100733         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100734         was not found in libc.
100735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100737 2007-05-20  Bruno Haible  <bruno@clisp.org>
100739         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100740         printed as "-nan" instead of "nan".
100741         * tests/test-vasprintf-posix.c (test_function): Likewise.
100742         * tests/test-snprintf-posix.h (test_function): Likewise.
100743         * tests/test-sprintf-posix.h (test_function): Likewise.
100744         Needed for HP-UX 11.
100746 2007-05-20  Jim Meyering  <jim@meyering.net>
100748         Fix buggy test for the fchownat-deref bug.
100749         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100750         symlink required for the run-test.  Without it, this test would
100751         always declare that fchownat doesn't work, and client code would
100752         unnecessarily use the replacement function with fixed libc.
100753         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100754         Reported by Greg Schafer.
100756 2007-05-19  Bruno Haible  <bruno@clisp.org>
100758         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100759         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100760         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100761         Needed for IRIX 6.5 and Solaris 2.5.1.
100763 2007-05-19  Bruno Haible  <bruno@clisp.org>
100765         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100766         (test_function): Skip tests involving -0.0 on platforms where
100767         -0.0 = 0.0.
100768         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100769         (test_function): Skip tests involving -0.0 on platforms where
100770         -0.0 = 0.0.
100771         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100772         (test_function): Skip tests involving -0.0 on platforms where
100773         -0.0 = 0.0.
100774         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100775         (test_function): Skip tests involving -0.0 on platforms where
100776         -0.0 = 0.0.
100777         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100778         tests.
100779         * tests/test-printf-posix.h (test_function): Likewise.
100780         * tests/test-printf-posix.output: Remove all -0.0 related results.
100781         Needed for IRIX 6.5.
100783 2007-05-19  Bruno Haible  <bruno@clisp.org>
100785         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100786         printed as "nan0x7fffffff" instead of "nan".
100787         * tests/test-vasprintf-posix.c (test_function): Likewise.
100788         * tests/test-snprintf-posix.h (test_function): Likewise.
100789         * tests/test-sprintf-posix.h (test_function): Likewise.
100790         * tests/test-fprintf-posix.h (NaN): Remove macro.
100791         (test_function): Remove all NaN related tests.
100792         * tests/test-printf-posix.h (NaN): Remove macro.
100793         (test_function): Remove all NaN related tests.
100794         * tests/test-printf-posix.output: Remove all NaN related results.
100795         Needed for IRIX 6.5.
100797 2007-05-19  Bruno Haible  <bruno@clisp.org>
100799         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100802 2007-05-19  Bruno Haible  <bruno@clisp.org>
100804         * lib/float_.h: New file.
100805         * m4/float_h.m4: New file.
100806         * modules/float: New file.
100807         * modules/isnanl (Dependencies): Add float.
100808         * modules/isnanl-nolibm (Dependencies): Likewise.
100809         * modules/mathl (Dependencies): Likewise.
100810         * modules/printf-frexpl (Dependencies): Likewise.
100811         * modules/signbit (Dependencies): Likewise.
100812         * modules/vasnprintf (Dependencies): Likewise.
100813         * doc/headers/float.texi: Update.
100815 2007-05-19  Jim Meyering  <jim@meyering.net>
100817         * lib/utimens.c (gl_futimens): Rename from futimens,
100818         now that glibc-2.6 declares futimens.
100819         * lib/utimens.h: Likewise.
100821 2007-05-19  Bruno Haible  <bruno@clisp.org>
100823         Avoid test failures on mingw.
100824         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100825         * tests/test-printf-posix.sh: Likewise.
100826         * tests/test-vfprintf-posix.sh: Likewise.
100827         * tests/test-vprintf-posix.sh: Likewise.
100829 2007-05-19  Bruno Haible  <bruno@clisp.org>
100831         Fix *printf result for NaN, Inf, -0.0 on mingw.
100832         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100833         * lib/vasnprintf.c: Include math.h and isnan.h.
100834         (is_infinite_or_zero): New function.
100835         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100836         values in the %f, %F, %e, %E, %g, %G directives.
100837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100839         gl_PRINTF_INFINITE and test its result. Invoke
100840         gl_PREREQ_VASNPRINTF_INFINITE.
100841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100848         * doc/functions/fprintf.texi: Update.
100849         * doc/functions/printf.texi: Update.
100850         * doc/functions/snprintf.texi: Update.
100851         * doc/functions/sprintf.texi: Update.
100852         * doc/functions/vfprintf.texi: Update.
100853         * doc/functions/vprintf.texi: Update.
100854         * doc/functions/vsnprintf.texi: Update.
100855         * doc/functions/vsprintf.texi: Update.
100857 2007-05-19  Bruno Haible  <bruno@clisp.org>
100859         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100860         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100861         Instead of multiplying with 10^k, set extra_zeroes to k.
100862         (scale10_round_long_double): Remove function.
100864 2007-05-18  Bruno Haible  <bruno@clisp.org>
100866         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100867         introduced on 2007-05-06.
100869 2007-05-18  Bruno Haible  <bruno@clisp.org>
100871         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100872         %g directives.
100873         * tests/test-vasprintf-posix.c (test_function): Likewise.
100874         * tests/test-snprintf-posix.h (test_function): Likewise.
100875         * tests/test-sprintf-posix.h (test_function): Likewise.
100877 2007-05-18  Bruno Haible  <bruno@clisp.org>
100879         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100880         (strmatch): New function.
100881         (test_function): Test the %f directive on numbers of various exponents.
100882         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100883         (strmatch): New function.
100884         (test_function): Test the %f directive on numbers of various exponents.
100885         * tests/test-snprintf-posix.h (strmatch): New function.
100886         (test_function): Test the %f directive on numbers of various exponents.
100887         * tests/test-sprintf-posix.h (strmatch): New function.
100888         (test_function): Test the %f directive on numbers of various exponents.
100889         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100890         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100891         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100892         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100894 2007-05-18  Bruno Haible  <bruno@clisp.org>
100896         Add support for 'long double' number output.
100897         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100898         * lib/vasnprintf.c: Include math.h and float+.h.
100899         (mp_limb_t): New type.
100900         (GMP_LIMB_BITS): New macro.
100901         (mp_twolimb_t): New type.
100902         (GMP_TWOLIMB_BITS): New macro.
100903         (mpn_t): New type.
100904         (multiply, divide, convert_to_decimal, decode_long_double,
100905         scale10_round_long_double, scale10_round_decimal_long_double,
100906         floorlog10l): New functions.
100907         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100908         for the %f, %F, %e, %E, %g, %G directives.
100909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100911         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100912         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100920         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100921         * modules/snprintf-posix (Depends-on): Likewise.
100922         * modules/sprintf-posix (Depends-on): Likewise.
100923         * modules/vasnprintf-posix (Depends-on): Likewise.
100924         * modules/vasprintf-posix (Depends-on): Likewise.
100925         * modules/vfprintf-posix (Depends-on): Likewise.
100926         * modules/vsnprintf-posix (Depends-on): Likewise.
100927         * modules/vsprintf-posix (Depends-on): Likewise.
100928         * modules/vasnprintf (Files): Add lib/float+.h.
100929         * doc/functions/fprintf.texi: Update.
100930         * doc/functions/printf.texi: Update.
100931         * doc/functions/snprintf.texi: Update.
100932         * doc/functions/sprintf.texi: Update.
100933         * doc/functions/vfprintf.texi: Update.
100934         * doc/functions/vprintf.texi: Update.
100935         * doc/functions/vsnprintf.texi: Update.
100936         * doc/functions/vsprintf.texi: Update.
100938 2007-05-18  Bruno Haible  <bruno@clisp.org>
100940         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100942 2007-05-18  Bruno Haible  <bruno@clisp.org>
100944         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100945         for printing 64-bit integers. Needed for mingw.
100947 2007-05-18  Bruno Haible  <bruno@clisp.org>
100949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100950         gl_FUNC_FREXPL_WORKS.
100951         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100953 2007-05-18  Bruno Haible  <bruno@clisp.org>
100955         * modules/frexpl-nolibm-tests: New file.
100957         * modules/frexpl-nolibm: New file.
100958         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100960 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100962         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100963         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100964         GCC 4.2, which otherwise issues a lot of warnings.
100965         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100966         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100967         Likewise.
100968         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100969         * modules/iconv_open (iconv.h): Likewise.
100970         * modules/locale (locale.h): Likewise.
100971         * modules/netinet_in (netinet/in.h): Likewise.
100972         * modules/sys_select (sys_select.h): Likewise.
100973         * modules/sys_socket (sys/socket.h): Likewise.
100974         * modules/sys_stat (sys/stat.h): Likewise.
100975         * modules/sysexits (sysexits.h): Likewise.
100976         * modules/unistd (unistd.h): Likewise.
100978 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100980         * modules/closein-tests (Makefile.am): Distribute
100981         `test-closein.sh'.
100983 2007-05-17  Bruno Haible  <bruno@clisp.org>
100985         * tests/test-printf-posix.output: Renamed from
100986         tests/test-fprintf-posix.out.
100987         * modules/fprintf-posix-tests: Update.
100988         * modules/printf-posix-tests: Update.
100989         * modules/vfprintf-posix-tests: Update.
100990         * modules/vprintf-posix-tests: Update.
100991         * tests/test-fprintf-posix.sh: Update.
100992         * tests/test-printf-posix.sh: Update.
100993         * tests/test-vfprintf-posix.sh: Update.
100994         * tests/test-vprintf-posix.sh: Update.
100995         Reported by Ralf Wildenhues.
100997 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100999         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101000         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101001         GCC 4.2, which otherwise issues a lot of warnings.
101002         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101003         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101004         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101005         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101006         it should no longer be needed.
101007         * lib/string_.h: Likewise.
101008         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101009         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101010         * modules/inttypes (inttypes.h): Likewise.
101011         * modules/math (math.h): Likewise.
101012         * modules/search (search.h): Likewise.
101013         * modules/signal (signal.h): Likewise.
101014         * modules/stdint (stdint.h): Likewise.
101015         * modules/stdio (stdio.h): Likewise.
101016         * modules/stdlib (stdlib.h): Likewise.
101017         * modules/string (string.h): Likewise.
101018         * modules/sys_time (sys/time.h): Likewise.
101019         * modules/time (time.h): Likewise.
101020         * modules/wchar (wchar.h): Likewise.
101021         * modules/wctype (wtype.h): Likewise.
101023 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101025         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101027 2007-05-13  Bruno Haible  <bruno@clisp.org>
101029         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101030         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101031         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101032         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101033         (gl_PREREQ_STRTOK_R): Don't require it here.
101035 2007-05-13  Bruno Haible  <bruno@clisp.org>
101037         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101038         when used in C++ mode.
101040 2007-05-12  Bruno Haible  <bruno@clisp.org>
101042         * lib/linebuffer.h: Tweak doc.
101043         * lib/linebuffer.c: Likewise.
101045 2007-05-12  James Youngman  <jay@gnu.org>
101047         * lib/linebuffer.c (readlinebuffer_delim): New function,
101048         like readlinebuffer, but use a caller-specified delimiter.
101049         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101050         as the delimiter.
101051         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101053 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101055         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101056         * modules/openat (Files): Remove openat-die.c.
101057         (Depends-on): Add openat-die.
101058         * modules/openat-die: New module.
101060 2007-05-06  Bruno Haible  <bruno@clisp.org>
101062         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101063         Update with info about Cygwin.
101064         * doc/functions/fprintf.texi: Update.
101065         * doc/functions/printf.texi: Update.
101066         * doc/functions/snprintf.texi: Update.
101067         * doc/functions/sprintf.texi: Update.
101068         * doc/functions/vfprintf.texi: Update.
101069         * doc/functions/vprintf.texi: Update.
101070         * doc/functions/vsnprintf.texi: Update.
101071         * doc/functions/vsprintf.texi: Update.
101072         Reported by Eric Blake.
101074 2007-05-06  Bruno Haible  <bruno@clisp.org>
101076         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101077         padding ourselves for the floating-point directives.
101078         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101081         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101082         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101085         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101087         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101090         * tests/test-snprintf-posix.h (test_function): Also check the width
101091         and some flags in the %f directive.
101092         * tests/test-sprintf-posix.h (test_function): Likewise.
101093         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101094         * tests/test-vasprintf-posix.c (test_function): Likewise.
101095         * doc/functions/fprintf.texi: Update.
101096         * doc/functions/printf.texi: Update.
101097         * doc/functions/snprintf.texi: Update.
101098         * doc/functions/sprintf.texi: Update.
101099         * doc/functions/vfprintf.texi: Update.
101100         * doc/functions/vprintf.texi: Update.
101101         * doc/functions/vsnprintf.texi: Update.
101102         * doc/functions/vsprintf.texi: Update.
101104 2007-05-06  Bruno Haible  <bruno@clisp.org>
101106         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101107         pass the ' flag character to sprintf or snprintf.
101108         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101111         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101112         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101120         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101121         flag.
101122         * tests/test-sprintf-posix.h (test_function): Likewise.
101123         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101124         * tests/test-vasprintf-posix.c (test_function): Likewise.
101125         * doc/functions/fprintf.texi: Update.
101126         * doc/functions/printf.texi: Update.
101127         * doc/functions/snprintf.texi: Update.
101128         * doc/functions/sprintf.texi: Update.
101129         * doc/functions/vfprintf.texi: Update.
101130         * doc/functions/vprintf.texi: Update.
101131         * doc/functions/vsnprintf.texi: Update.
101132         * doc/functions/vsprintf.texi: Update.
101134 2007-05-01  Bruno Haible  <bruno@clisp.org>
101136         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101138 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101140         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101141         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101143 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101145         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101146         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101147         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101149 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101151         * lib/argp-help.c (struct hol_entry): New member `ord'.
101152         (HOL_ENTRY_PTRCMP): Use ord for comparison
101153         (hol_sort): Initialize ord.
101155 2007-05-01  Bruno Haible  <bruno@clisp.org>
101157         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101158         Reported by Eric Blake.
101159         * doc/gnulib.texi (Function Substitutes): Update.
101161 2007-05-01  Bruno Haible  <bruno@clisp.org>
101163         * doc/functions.texi: Remove file, now redundant through
101164         doc/functions/*.texi.
101166 2007-05-01  Bruno Haible  <bruno@clisp.org>
101168         * modules/argp (Depends-on): Add sleep.
101170 2007-05-01  Bruno Haible  <bruno@clisp.org>
101172         * modules/sleep-tests: New file.
101173         * tests/test-sleep.c: New file.
101175         * modules/sleep: New file.
101176         * lib/sleep.c: New file.
101177         * m4/sleep.m4: New file.
101178         * lib/unistd_.h (sleep): New declaration.
101179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101180         HAVE_SLEEP.
101181         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101182         * doc/functions/sleep.texi: Document the sleep module.
101184 2007-05-01  Bruno Haible  <bruno@clisp.org>
101186         * lib/sigprocmask.h: Remove file.
101187         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101188         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101190         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101191         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101192         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101193         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101194         HAVE_SIGSET_T as a shell variable.
101195         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101196         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101197         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101198         (Depends-on): Add signal. Remove verify.
101199         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101200         (Include): Mention <signal.h> instead of sigprocmask.h.
101201         * NEWS: Mention the change.
101202         * lib/fatal-signal.c: Don't include sigprocmask.h.
101204 2007-05-01  Bruno Haible  <bruno@clisp.org>
101206         * modules/signal: New file.
101207         * lib/signal_.h: New file.
101208         * m4/signal_h.m4: New file.
101210 2007-05-01  Bruno Haible  <bruno@clisp.org>
101212         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101213         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101214         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101215         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101217 2007-05-01  Bruno Haible  <bruno@clisp.org>
101219         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101220         configure time.
101221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101222         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101223         * modules/sys_stat (Makefile.am): Substitute their values into
101224         sys/stat.h.
101226 2007-05-01  Bruno Haible  <bruno@clisp.org>
101228         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101229         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101230         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101232 2007-05-01  Bruno Haible  <bruno@clisp.org>
101234         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101235         'assert' module here.
101237 2007-05-01  Bruno Haible  <bruno@clisp.org>
101239         * doc/functions/*.texi: New files.
101240         * doc/functions/google-ranking.txt: New file.
101241         * doc/gnulib.texi (Function Substitutes): New chapter.
101242         (ctime, inet_ntoa): Remove sections.
101243         * doc/ctime.texi: Remove file.
101244         * doc/inet_ntoa.texi: Remove file.
101245         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101246         dependencies.
101247         (%.info): New rule, specifying a --reference-limit.
101249 2007-05-01  Bruno Haible  <bruno@clisp.org>
101251         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101253 2007-05-01  Bruno Haible  <bruno@clisp.org>
101255         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101256         the portability of 'mkdir' to mingw systems.
101258 2007-05-01  Bruno Haible  <bruno@clisp.org>
101260         * doc/headers/google-ranking.txt: New file.
101262 2007-04-30  Eric Blake  <ebb9@byu.net>
101264         Prefer fseeko to fseek.
101265         * modules/getpass (Depends-on): Add fseeko.
101266         * lib/getpass.c (getpass): Use fseeko, not fseek.
101268 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101270         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101271         assumes the sorting is stable, while most qsort implementations
101272         are not.  Use argument addresses to ensure they never compare as
101273         equal.
101275         * tests/test-argp-2.sh (usage-indent test): Fix output
101276         (func_compare): Restore diff options
101277         * tests/test-argp.c: Restore #include "progname.h"
101279 2007-04-29  Bruno Haible  <bruno@clisp.org>
101281         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101283         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101285         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101286         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101287         (TESTS, check_PROGRAMS): Add test-snprintf.
101288         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101289         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101290         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101291         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101292         assertions that fail on HP-UX, OSF/1, or IRIX.
101293         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101295 2007-04-29  Bruno Haible  <bruno@clisp.org>
101297         * MODULES.html.sh (posix_functions): Remove 'contents'.
101299 2007-04-29  Karl Berry  <karl@gnu.org>
101301         * config/srclist.txt (gendocs_template_min): new entry.
101303 2007-04-29  Bruno Haible  <bruno@clisp.org>
101305         Work around fpurge bug on BSD systems.
101306         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101307         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101308         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101309         fpurge to rpl_fpurge if the system already has this function.
101310         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101311         the case where the system already has this function. Correct invariants
101312         on BSD systems.
101313         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101314         BSD systems.
101316 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101318         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101319         proposed by Sven Verdoolaege.
101321         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101322         options.
101323         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101324         (usage and help tests): Update
101326 2007-04-29  Bruno Haible  <bruno@clisp.org>
101328         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101329         Print more information in case of failure. Disable a test on BeOS.
101331 2007-04-29  Bruno Haible  <bruno@clisp.org>
101333         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101334         This helps debugging on systems on which no gdb is available.
101336 2007-04-29  Bruno Haible  <bruno@clisp.org>
101338         * lib/freading.h: Improve comments.
101339         * lib/fwriting.h: Likewise.
101340         * tests/test-freading.c (main): Don't check freading immediately after
101341         repositioning. Needed for glibc.
101343 2007-04-29  Bruno Haible  <bruno@clisp.org>
101345         * lib/freading.c (freading): Trivial simplification.
101347 2007-04-28  Bruno Haible  <bruno@clisp.org>
101349         * tests/test-fwriting.c (main): Also test the interaction between
101350         fflush and fwriting.
101351         * modules/fwriting-tests (Depends-on): Add fflush.
101353         * tests/test-freading.c (main): Also test the interaction between
101354         fflush and freading.
101355         * modules/freading-tests (Depends-on): Add fflush.
101357 2007-04-28  Bruno Haible  <bruno@clisp.org>
101359         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101360         fseeko and ftello.
101361         Suggested by Eric Blake.
101363 2007-04-28  Jim Meyering  <jim@meyering.net>
101365         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101366         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101367         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101369 2007-04-27  Eric Blake  <ebb9@byu.net>
101371         * doc/headers/assert.texi (assert.h): Document assert module use.
101373 2007-04-27  Bruno Haible  <bruno@clisp.org>
101375         * doc/headers/*.texi: New files.
101376         * doc/gnulib.texi (Header File Substitutes): New chapter.
101377         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101378         dependencies.
101379         (standards.info ,standards.html, standards.dvi): Update dependencies.
101380         (mostlyclean, clean): New targets.
101382 2007-04-27  Bruno Haible  <bruno@clisp.org>
101384         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101385         * modules/sysexits (Files, Makefile.am): Update.
101387         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101388         * modules/sys_socket (Files, Makefile.am): Update.
101390         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101391         * modules/sys_stat (Files, Makefile.am): Update.
101393 2007-04-27  Eric Blake  <ebb9@byu.net>
101395         * lib/freading.h: Improve comments.
101396         * lib/fwriting.h: Likewise.
101397         * lib/fflush.c: Likewise.
101399         Fix closein for mingw.
101400         * modules/closein-tests: Add tests for closein.
101401         * tests/test-closein.c: New file.
101402         * tests/test-closein.sh: Likewise.
101403         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101404         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101406 2007-04-27  Bruno Haible  <bruno@clisp.org>
101408         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101409         version is < 6.
101410         * lib/math_.h [__DECC]: Likewise.
101411         * lib/stdio_.h [__DECC]: Likewise.
101412         * lib/stdlib_.h [__DECC]: Likewise.
101413         * lib/string_.h [__DECC]: Likewise.
101414         * lib/time_.h [__DECC]: Likewise.
101415         * lib/wchar_.h [__DECC]: Likewise.
101416         * lib/wctype_.h [__DECC]: Likewise.
101418 2007-04-27  Bruno Haible  <bruno@clisp.org>
101420         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
101422 2007-04-27  Bruno Haible  <bruno@clisp.org>
101424         * lib/fflush.c: Add comments.
101425         * modules/fpurge-tests (Depends-on): Add fflush.
101426         * modules/freadable-tests (Depends-on): Likewise.
101427         * modules/fwritable-tests (Depends-on): Likewise.
101429 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
101431         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
101432         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
101433         Report by Bruno Haible <bruno@clisp.org>.
101435 2007-04-26  Eric Blake  <ebb9@byu.net>
101437         Fix fflush on mingw.
101438         * modules/fflush (Depends-on): Add freading.
101439         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101440         but unread data.
101442 2007-04-26  Eric Blake  <ebb9@byu.net>
101443         and Bruno Haible  <bruno@clisp.org>
101445         Implement freading and fwriting.
101446         * lib/freading.c: New file.
101447         * lib/freading.h: Likewise.
101448         * m4/freading.m4: Likewise.
101449         * modules/freading: Likewise.
101450         * modules/freading-tests: Likewise.
101451         * tests/test-freading.c: Likewise.
101452         * lib/fwriting.c: New file.
101453         * lib/fwriting.h: Likewise.
101454         * m4/fwriting.m4: Likewise.
101455         * modules/fwriting: Likewise.
101456         * modules/fwriting-tests: Likewise.
101457         * tests/test-fwriting.c: Likewise.
101458         * MODULES.html.sh (File stream based Input/Output): Mention them.
101460 2007-04-26  Bruno Haible  <bruno@clisp.org>
101462         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101463         'long' when we assume it.
101464         Suggested by Eric Blake.
101466 2007-04-26  Bruno Haible  <bruno@clisp.org>
101468         Ensure fseeko, ftello are declared on glibc systems.
101469         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101470         * modules/fseeko (configure.ac-early): Likewise.
101471         * modules/ftello (configure.ac-early): Likewise.
101472         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101473         AC_FUNC_FSEEKO for this.
101474         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101475         (gl_CHECK_FSEEKO): Remove macro.
101477 2007-04-26  Bruno Haible  <bruno@clisp.org>
101479         * tests/test-fflush.c (main): Also check the ftell result after
101480         fflush and fseek/fseeko.
101481         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101482         file descriptor position cache in the stream.
101483         * lib/fseeko.c (rpl_fseeko): Likewise.
101485 2007-04-26  Bruno Haible  <bruno@clisp.org>
101487         * modules/fflush-tests (Depends-on): Add fseeko.
101489 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101490             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101492         * lib/argz_.h: ensure error_t definition is obtained in same
101493         mechanism system argz.h would have.
101494         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101495         argz facilities are known bad.  Err on the side of caution if
101496         cross-compiling.
101498 2007-04-25  Eric Blake  <ebb9@byu.net>
101500         * lib/fpurge.c (includes): Use stdlib.h for free.
101501         * tests/test-fflush.c (main): Also test fflush-fseeko.
101503 2007-04-25  Bruno Haible  <bruno@clisp.org>
101505         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101506         * lib/fseeko.c: New file.
101507         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101508         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101509         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101510         gl_FUNC_FSEEKO.
101511         (gl_FUNC_FSEEKO): Invoke it.
101512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101513         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101514         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101516 2007-04-25  Bruno Haible  <bruno@clisp.org>
101518         * modules/fflush (Depends-on): Add ftello.
101520 2007-04-25  Bruno Haible  <bruno@clisp.org>
101522         * modules/ftello-tests: New file.
101523         * tests/test-ftello.c: New file.
101525         * modules/ftello: New file.
101526         * m4/ftello.m4: New file.
101527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101528         HAVE_FTELLO.
101529         * lib/stdio_.h (ftello): New declaration.
101530         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101531         HAVE_FTELLO.
101533 2007-04-25  Bruno Haible  <bruno@clisp.org>
101535         * modules/fseeko-tests: New file.
101536         * tests/test-fseeko.c: New file.
101538         * modules/fseeko: New file.
101539         * m4/fseeko.m4: New file.
101540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101541         HAVE_FSEEKO.
101542         * lib/stdio_.h (fseeko): New declaration.
101543         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101544         HAVE_FSEEKO.
101546 2007-04-25  Bruno Haible  <bruno@clisp.org>
101548         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101550 2007-04-25  Bruno Haible  <bruno@clisp.org>
101552         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101553         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101554         * tests/test-unistd.c: Likewise.
101555         * tests/test-fcntl.c: Likewise.
101557 2007-04-23  Eric Blake  <ebb9@byu.net>
101559         * lib/fflush.c: Fix missing include.
101560         Reported by Bruno Haible.
101562 2007-04-23  Bruno Haible  <bruno@clisp.org>
101564         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101565         Reported by Eric Blake.
101567 2007-04-23  Bruno Haible  <bruno@clisp.org>
101569         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101571 2007-04-23  Bruno Haible  <bruno@clisp.org>
101573         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101575 2007-04-23  Bruno Haible  <bruno@clisp.org>
101577         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101578         Needed on HP-UX 11.
101580 2007-04-16  Eric Blake  <ebb9@byu.net>
101582         Make fflush rely on fpurge.
101583         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101584         open coding all variants.
101585         * modules/fflush (Depends-on): Add fpurge and unistd.
101586         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101587         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101589         Fix --with-tests compilation on cygwin.
101590         * modules/argmatch-tests (Makefile.am): List gnulib library first
101591         in LDADD.
101592         * modules/argp-tests (Makefile.am): Likewise.
101593         * modules/array-list-tests (Makefile.am): Likewise.
101594         * modules/array-oset-tests (Makefile.am): Likewise.
101595         * modules/avltree-list-tests (Makefile.am): Likewise.
101596         * modules/avltree-oset-tests (Makefile.am): Likewise.
101597         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101598         * modules/carray-list-tests (Makefile.am): Likewise.
101599         * modules/dirname-tests (Makefile.am): Likewise.
101600         * modules/frexp-tests (Makefile.am): Likewise.
101601         * modules/isnanl-tests (Makefile.am): Likewise.
101602         * modules/linked-list-tests (Makefile.am): Likewise.
101603         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101604         * modules/lock-tests (Makefile.am): Likewise.
101605         * modules/rbtree-list-tests (Makefile.am): Likewise.
101606         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101607         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101608         * modules/tls-tests (Makefile.am): Likewise.
101609         * modules/tsearch-tests (Makefile.am): Likewise.
101610         * modules/xvasprintf-tests (Makefile.am): Likewise.
101612         Fix fpurge for cygwin.
101613         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101614         value.
101615         * modules/fpurge-tests (Depends-on): Clean up trash.
101617 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101619         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101621         * m4/autobuild.m4: Re-indent.
101623 2007-04-13  Bruno Haible  <bruno@clisp.org>
101625         * modules/fpurge-tests: New file.
101626         * tests/test-fpurge.c: New file.
101628         * modules/fpurge: New file.
101629         * lib/fpurge.h: New file.
101630         * lib/fpurge.c: New file.
101631         * m4/fpurge.m4: New file.
101633 2007-04-13  Bruno Haible  <bruno@clisp.org>
101635         * modules/fbufmode-tests: New file.
101636         * tests/test-fbufmode.c: New file.
101638         * modules/fbufmode: New file.
101639         * lib/fbufmode.h: New file.
101640         * lib/fbufmode.c: New file.
101641         * m4/fbufmode.m4: New file.
101643 2007-04-13  Bruno Haible  <bruno@clisp.org>
101645         * modules/fwritable-tests: New file.
101646         * tests/test-fwritable.c: New file.
101648         * modules/fwritable: New file.
101649         * lib/fwritable.h: New file.
101650         * lib/fwritable.c: New file.
101651         * m4/fwritable.m4: New file.
101653 2007-04-13  Bruno Haible  <bruno@clisp.org>
101655         * modules/freadable-tests: New file.
101656         * tests/test-freadable.c: New file.
101658         * modules/freadable: New file.
101659         * lib/freadable.h: New file.
101660         * lib/freadable.c: New file.
101661         * m4/freadable.m4: New file.
101663 2007-04-13  Bruno Haible  <bruno@clisp.org>
101665         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101666         MOSTLYCLEANFILES.
101668 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101670         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101671         gzip bootstrap.conf to avoid dragging in i18n machinery.
101672         (gnulib_tool_option): Use it.
101674 2007-04-13  Bruno Haible  <bruno@clisp.org>
101676         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101677         %F directives.
101678         * tests/test-vasprintf-posix.c (test_function): Likewise.
101679         * tests/test-snprintf-posix.h (test_function): Likewise.
101680         * tests/test-sprintf-posix.h (test_function): Likewise.
101681         * tests/test-fprintf-posix.h (test_function): Likewise.
101682         * tests/test-printf-posix.h (test_function): Likewise.
101683         * tests/test-fprintf-posix.out: Likewise.
101685 2007-04-13  Bruno Haible  <bruno@clisp.org>
101687         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101688         * modules/tls-tests (configure.ac): Likewise.
101689         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101691 2007-04-13  Bruno Haible  <bruno@clisp.org>
101693         * lib/tls.c (glthread_tls_get): Fix return type.
101694         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101696 2007-04-12  Eric Blake  <ebb9@byu.net>
101698         * modules/gettime (Depends-on): Remove gettime.
101699         Reported by Dmitry V. Levin.
101701 2007-04-12  Bruno Haible  <bruno@clisp.org>
101703         * modules/fflush (Include): Mention <stdio.h>.
101704         * modules/strtoimax (Include): Mention <inttypes.h>.
101705         * modules/strtoumax (Include): Likewise.
101707 2007-04-12  Eric Blake  <ebb9@byu.net>
101709         * .cvsignore: New file.
101710         * .gitignore: Likewise.
101712 2007-04-12  Bruno Haible  <bruno@clisp.org>
101714         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101715         not before, since $(LDADD) often contains libgnu.a.
101716         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101717         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101718         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101719         Needed on Cygwin.
101721 2007-04-12  Eric Blake  <ebb9@byu.net>
101723         Work around glibc's failure to flush stdin on fclose.
101724         * lib/closein.c (close_stdin): Flush stdin before closing.
101726         Work around glibc's failure to reset seekable stdin on exit.
101727         * modules/closein: New module.
101728         * lib/closein.c: New file.
101729         * lib/closein.h: Likewise.
101730         * m4/closein.m4: Likewise.
101731         * MODULES.html.sh (File stream based Input/Output): Document it.
101733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101735         * gnulib-tool: Rename generated 'autobuild' script to
101736         'do-autobuild' in --create-megatestdir output.
101738         * doc/gnulib.texi (Build robot for gnulib): Fix.
101740 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101742         * modules/sysexits (Depends-on): Add absolute-header.
101744 2007-04-12  Eric Blake  <ebb9@byu.net>
101746         No need to preserve errno on success.
101747         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101748         Reported by Bruno Haible.
101750 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101752         * MODULES.html.sh (Support for maintaining and releasing
101753         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101757         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101759 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101761         * modules/autobuild: New module.
101763         * m4/autobuild.m4: New file.
101765 2007-04-11  Bruno Haible  <bruno@clisp.org>
101767         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101768         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101790         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101791         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101795         Reported by Eric Blake.
101797 2007-04-11  Bruno Haible  <bruno@clisp.org>
101799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101801 2007-04-10  Bruno Haible  <bruno@clisp.org>
101803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101804         for NaN and Infinity. Needed on FreeBSD 6.1.
101805         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101806         regarding results for "%010a" of Infinity and NaN.
101807         * tests/test-vasprintf-posix.c (test_function): Likewise.
101808         * tests/test-snprintf-posix.h (test_function): Likewise.
101809         * tests/test-sprintf-posix.h (test_function): Likewise.
101810         * tests/test-fprintf-posix.h (test_function): Likewise.
101811         * tests/test-printf-posix.h (test_function): Likewise.
101812         * tests/test-fprintf-posix.out: Likewise.
101814 2007-04-10  Bruno Haible  <bruno@clisp.org>
101816         * modules/locale-tests: New file.
101817         * tests/test-locale.c: New file.
101819         * modules/locale: New file.
101820         * lib/locale_.h: New file.
101821         * m4/locale_h.m4: New file.
101823 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101824             Bruno Haible  <bruno@clisp.org>
101826         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101827         be determined, test for availability of the copysignf, copysign,
101828         copysignl functions.
101829         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101830         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101831         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101833 2007-04-09  Eric Blake  <ebb9@byu.net>
101835         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101836         * modules/stdio (Makefile.am): Support fflush.
101837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101838         * modules/fflush: New file.
101839         * lib/fflush.c: Likewise.
101840         * m4/fflush.m4: Likewise.
101841         * modules/fflush-tests: New test.
101842         * tests/test-fflush.c: Likewise.
101843         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101845 2007-04-06  Bruno Haible  <bruno@clisp.org>
101847         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101848         (VASNPRINTF): Use signbit for faster determination whether to print a
101849         minus sign.
101850         * modules/vasnprintf (Files): Remove lib/float+.h.
101851         * modules/fprintf-posix (Depends-on): Add signbit.
101852         * modules/snprintf-posix (Depends-on): Likewise.
101853         * modules/sprintf-posix (Depends-on): Likewise.
101854         * modules/vasnprintf-posix (Depends-on): Likewise.
101855         * modules/vasprintf-posix (Depends-on): Likewise.
101856         * modules/vfprintf-posix (Depends-on): Likewise.
101857         * modules/vsnprintf-posix (Depends-on): Likewise.
101858         * modules/vsprintf-posix (Depends-on): Likewise.
101860 2007-04-06  Bruno Haible  <bruno@clisp.org>
101862         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101863         * tests/test-frexpl.c (main): Likewise.
101864         * tests/test-ldexpl.c (main): Likewise.
101865         * modules/frexp-tests (Depends-on): Add signbit.
101866         * modules/frexpl-tests (Depdends-on): Likewise.
101867         * modules/ldexpl-tests (Depdends-on): Likewise.
101869 2007-04-06  Bruno Haible  <bruno@clisp.org>
101871         * modules/signbit-tests: New file.
101872         * tests/test-signbit.c: New file.
101874         * modules/signbit: New file.
101875         * lib/signbitf.c: New file.
101876         * lib/signbitd.c: New file.
101877         * lib/signbitl.c: New file.
101878         * m4/signbit.m4: New file.
101879         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101880         (signbit): New macro.
101881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101882         REPLACE_SIGNBIT.
101883         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101884         REPLACE_FREXPL into math.h.
101886 2007-04-06  Bruno Haible  <bruno@clisp.org>
101888         * modules/isnanf-nolibm-tests: New file.
101889         * tests/test-isnanf.c: New file.
101891         * modules/isnanf-nolibm: New file.
101892         * lib/isnanf.h: New file.
101893         * lib/isnanf.c: New file.
101894         * lib/isnan.c: Consider the USE_FLOAT macro.
101895         * m4/isnanf.m4: New file.
101897 2007-04-06  Bruno Haible  <bruno@clisp.org>
101899         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101900         (Link): New section.
101902         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101904 2007-04-06  Bruno Haible  <bruno@clisp.org>
101906         Assume the 'long double' type.
101907         * m4/longdouble.m4: Remove file.
101908         * config/srclist.txt: Don't mention longdouble.m4.
101909         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101910         * lib/float+.h: Likewise.
101911         * lib/frexp.c: Likewise.
101912         * lib/printf-args.h: Likewise.
101913         * lib/printf-args.c: Likewise.
101914         * lib/printf-frexp.c: Likewise.
101915         * lib/printf-parse.c: Likewise.
101916         * lib/vasnprintf.c: Likewise.
101917         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101918         * m4/intl.m4: Likewise.
101919         * m4/isnanl.m4: Likewise.
101920         * m4/printf.m4: Likewise.
101921         * m4/printf-frexpl.m4: Likewise.
101922         * m4/vasnprintf.m4: Likewise.
101923         * modules/allocsa (Files): Remove m4/longdouble.m4.
101924         * modules/gettext (Files): Likewise.
101925         * modules/relocatable-prog-wrapper (Files): Likewise.
101926         * modules/vasnprintf (Files): Likewise.
101927         * modules/isnanl (Files): Likewise.
101928         (Include): Simplify.
101929         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101930         (Include): Simplify.
101931         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101932         (Include): Simplify.
101933         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101935         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101937         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101939         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101940         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101941         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101942         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101943         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101944         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101945         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101946         * tests/test-isnanl.c: Likewise.
101947         * tests/test-snprintf-posix.h: Likewise.
101948         * tests/test-sprintf-posix.h: Likewise.
101949         * tests/test-vasnprintf-posix.c: Likewise.
101950         * tests/test-vasnprintf-posix2.c: Likewise.
101951         * tests/test-vasprintf-posix.c: Likewise.
101953 2007-04-06  Bruno Haible  <bruno@clisp.org>
101955         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101956         * lib/math_.h [__DECC]: Include the overridden include file through
101957         #include_next, outside the double-inclusion guard.
101958         * lib/stdio_.h [__DECC]: Likewise.
101959         * lib/stdlib_.h [__DECC]: Likewise.
101960         * lib/string_.h [__DECC]: Likewise.
101961         * lib/time_.h [__DECC]: Likewise.
101962         * lib/wchar_.h [__DECC]: Likewise.
101963         * lib/wctype_.h [__DECC]: Likewise.
101964         * lib/inttypes_.h [__DECC]: Likewise.
101965         Reported by Albert Chin <china@thewrittenword.com> in
101966         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101968 2007-04-04  Eric Blake  <ebb9@byu.net>
101970         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101971         1.5.x.
101973 2007-04-04  Bruno Haible  <bruno@clisp.org>
101975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101976         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101978 2007-04-04  Bruno Haible  <bruno@clisp.org>
101980         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101981         results for "%010a" of Infinity and NaN.
101982         * tests/test-vasprintf-posix.c (test_function): Likewise.
101983         * tests/test-snprintf-posix.h (test_function): Likewise.
101984         * tests/test-sprintf-posix.h (test_function): Likewise.
101985         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101986         * tests/test-printf-posix.h (test_function): Likewise.
101987         * tests/test-fprintf-posix.out: Update.
101988         Needed for FreeBSD 6.1.
101990 2007-04-04  Bruno Haible  <bruno@clisp.org>
101992         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101993         directly used by the gnulib modules nor by gnulib-tool.
101995 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101997         * DEPENDENCIES: Give overall description of version dependency
101998         desirability.  Use more-typical names for apps.
101999         Add shell, coreutils, diffutils, grep, tar, gzip.
102001 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102003         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102005 2007-04-04  Karl Berry  <karl@gnu.org>
102007         * MODULES.html.sh (func_module): missing '.
102009 2007-04-03  Bruno Haible  <bruno@clisp.org>
102011         * modules/argmatch-tests (Makefile.am): New variable
102012         test_argmatch_LDADD.
102013         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102014         * modules/array-list-tests (Makefile.am): New variable
102015         test_array_list_LDADD.
102016         * modules/array-oset-tests (Makefile.am): New variable
102017         test_array_oset_LDADD.
102018         * modules/avltree-list-tests (Makefile.am): New variable
102019         test_avltree_list_LDADD.
102020         * modules/avltree-oset-tests (Makefile.am): New variable
102021         test_avltree_oset_LDADD.
102022         * modules/avltreehash-list-tests (Makefile.am): New variable
102023         test_avltreehash_list_LDADD.
102024         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102025         test_canonicalize_lgpl_LDADD.
102026         * modules/carray-list-tests (Makefile.am): New variable
102027         test_carray_list_LDADD.
102028         * modules/dirname-tests (Makefile.am): New variable
102029         test_dirname_LDADD.
102030         * modules/linked-list-tests (Makefile.am): New variable
102031         test_linked_list_LDADD.
102032         * modules/linkedhash-list-tests (Makefile.am): New variable
102033         test_linkedhash_list_LDADD.
102034         * modules/rbtree-list-tests (Makefile.am): New variable
102035         test_rbtree_list_LDADD.
102036         * modules/rbtree-oset-tests (Makefile.am): New variable
102037         test_rbtree_oset_LDADD.
102038         * modules/rbtreehash-list-tests (Makefile.am): New variable
102039         test_rbtreehash_list_LDADD.
102040         * modules/xvasprintf-tests (Makefile.am): New variable
102041         test_xvasprintf_LDADD.
102042         Reported by Eric Blake.
102044 2007-04-03  Eric Blake  <ebb9@byu.net>
102046         * DEPENDENCIES: Weaken m4 requirements.
102048 2007-04-03  Bruno Haible  <bruno@clisp.org>
102050         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102051         * modules/isnanl-tests (configure.ac): Likewise.
102053 2007-04-03  Ben Pfaff  <blp@gnu.org>
102055         * modules/iconv_open: Add $(srcdir)/ to source directory
102056         references in Makefile fragments that call gperf, to fix VPATH
102057         builds.
102059 2007-04-03  Bruno Haible  <bruno@clisp.org>
102061         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102062         * lib/ldexpl.c: Undo last change.
102064 2007-04-03  Bruno Haible  <bruno@clisp.org>
102066         * modules/printf-frexpl (Depends-on): Undo last change.
102067         (Files): Add m4/ldexpl.m4.
102069 2007-04-03  Bruno Haible  <bruno@clisp.org>
102071         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102072         * modules/isnanl (Link): New section.
102074         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102075         * modules/frexp (Link): New section.
102077         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102078         * modules/frexpl (Link): New section.
102080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102081         * modules/ldexpl (Link): New section.
102083 2007-04-03  Bruno Haible  <bruno@clisp.org>
102085         * modules/TEMPLATE-EXTENDED: New file.
102086         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102088 2007-04-03  Bruno Haible  <bruno@clisp.org>
102090         * DEPENDENCIES: New file.
102091         Suggested by Simon Josefsson.
102093 2007-04-03  Bruno Haible  <bruno@clisp.org>
102095         * doc/gnulib.texi: Escape @.
102097 2007-04-03  James Youngman  <jay@gnu.org>
102098         and Paul Eggert  <eggert@cs.ucla.edu>
102100         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102101         birthtime on all systems that have birthtime, not just those which
102102         use st_birthtimensec rather than st_birthtim.  Putting zero in
102103         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102104         that the birth time is not available for files on an NFS mount.
102106 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102108         * modules/memxor: Move back from crypto/, suggested by Bruno.
102109         * modules/crypto/hmac-sha1: Fix memxor dependency.
102111         * modules/crypto/gc: Moved from ../.
102113 2007-04-02  Eric Blake  <ebb9@byu.net>
102115         * lib/ldexpl.c (includes): Avoid libm.
102117         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102119 2007-04-02  Bruno Haible  <bruno@clisp.org>
102121         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102122         on IRIX.
102124 2007-04-02  Bruno Haible  <bruno@clisp.org>
102126         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102127         x86 or x86_64 platforms running MacOS X.
102128         Reported by Ryan Schmidt <@ryandesign.com>.
102130 2007-04-02  Bruno Haible  <bruno@clisp.org>
102132         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102133         i386.
102135 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102137         * modules/crypto/arcfour: Moved from ../.
102138         * modules/crypto/arcfour-tests: Moved from ../.
102139         * modules/crypto/arctwo: Moved from ../.
102140         * modules/crypto/arctwo-tests: Moved from ../.
102141         * modules/crypto/des: Moved from ../.
102142         * modules/crypto/des-tests: Moved from ../.
102143         * modules/crypto/gc-arcfour: Moved from ../.
102144         * modules/crypto/gc-arcfour-tests: Moved from ../.
102145         * modules/crypto/gc-arctwo: Moved from ../.
102146         * modules/crypto/gc-arctwo-tests: Moved from ../.
102147         * modules/crypto/gc-des: Moved from ../.
102148         * modules/crypto/gc-des-tests: Moved from ../.
102149         * modules/crypto/gc-hmac-md5: Moved from ../.
102150         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102151         * modules/crypto/gc-hmac-sha1: Moved from ../.
102152         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102153         * modules/crypto/gc-md2: Moved from ../.
102154         * modules/crypto/gc-md2-tests: Moved from ../.
102155         * modules/crypto/gc-md4: Moved from ../.
102156         * modules/crypto/gc-md4-tests: Moved from ../.
102157         * modules/crypto/gc-md5: Moved from ../.
102158         * modules/crypto/gc-md5-tests: Moved from ../.
102159         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102160         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102161         * modules/crypto/gc-random: Moved from ../.
102162         * modules/crypto/gc-rijndael: Moved from ../.
102163         * modules/crypto/gc-rijndael-tests: Moved from ../.
102164         * modules/crypto/gc-sha1: Moved from ../.
102165         * modules/crypto/gc-sha1-tests: Moved from ../.
102166         * modules/crypto/gc-tests: Moved from ../.
102167         * modules/crypto/hmac-md5: Moved from ../.
102168         * modules/crypto/hmac-md5-tests: Moved from ../.
102169         * modules/crypto/hmac-sha1: Moved from ../.
102170         * modules/crypto/hmac-sha1-tests: Moved from ../.
102171         * modules/crypto/md2: Moved from ../.
102172         * modules/crypto/md2-tests: Moved from ../.
102173         * modules/crypto/md4: Moved from ../.
102174         * modules/crypto/md4-tests: Moved from ../.
102175         * modules/crypto/md5: Moved from ../.
102176         * modules/crypto/md5-tests: Moved from ../.
102177         * modules/crypto/memxor: Moved from ../.
102178         * modules/crypto/rijndael: Moved from ../.
102179         * modules/crypto/rijndael-tests: Moved from ../.
102180         * modules/crypto/sha1: Moved from ../.
102182 2007-03-30  James Youngman  <jay@gnu.org>
102184         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102185         rename() to change the ctime of a file (because ctime is unaffected
102186         by rename on jfs2 on AIX 5.1).
102187         (main): Start by doing cleanup, in case a previous run failed leaving
102188         test files behind.
102190 2007-03-31  Bruno Haible  <bruno@clisp.org>
102192         Support old proprietary implementations of iconv.
102193         * modules/iconv_open: New file.
102194         * lib/iconv_.h: New file.
102195         * m4/iconv_h.m4: New file.
102196         * lib/iconv_open.c: New file.
102197         * lib/iconv_open-aix.gperf: New file.
102198         * lib/iconv_open-hpux.gperf: New file.
102199         * lib/iconv_open-irix.gperf: New file.
102200         * lib/iconv_open-osf.gperf: New file.
102201         * m4/iconv_open.m4: New file.
102202         * modules/linebreak (Depends-on): Add iconv_open.
102203         * modules/striconv (Depends-on): Likewise.
102204         * modules/striconveh (Depends-on): Likewise.
102205         * modules/unicodeio (Depends-on): Likewise.
102206         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102207         (iconv_t)(-1).
102208         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102209         conversion if cd is (iconv_t)(-1).
102210         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102211         is not possible.
102213 2007-03-31  Bruno Haible  <bruno@clisp.org>
102215         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102216         work on Solaris either. Protect also second use of "autodetect_jp".
102218 2007-03-31  Bruno Haible  <bruno@clisp.org>
102220         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102221         the function is not present.
102223 2007-03-31  Bruno Haible  <bruno@clisp.org>
102225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102226         the function is not present.
102228 2007-03-31  Bruno Haible  <bruno@clisp.org>
102230         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102231         a bug in HP-UX iconv_open().
102233 2007-03-31  Bruno Haible  <bruno@clisp.org>
102235         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102236         (Mathematics <math.h>): New section, add fpieee.
102237         (Input/output <stdio.h>): Add fseterr.
102238         (Mathematics <math.h>): New section, add printf-frexp.
102239         (Container data structures): Add sublist.
102240         (Core language properties): Add fpucw, inline.
102241         (Functions for greatest-width integer types <inttypes.h>): Add
102242         imaxabs, imaxdiv, inttypes.
102243         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102244         isnanl-nolibm, ldexp.
102245         (Mathematics <math.h>): New section, add printf-frexpl.
102246         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102247         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102248         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102249         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102250         (Unicode string functions): Add unistr/u*-mbtoucr.
102251         (Java): Add javacomp-script, javaexec-script.
102252         (C#): Add csharpcomp-script, csharpexec-script.
102253         (Support for building libraries and executables): Add havelib,
102254         relocatable-*.
102255         (Support for maintaining and releasing projects): Renamed from
102256         'Support for maintaining and release projects'. Add announce-gen.
102258 2007-03-31  Bruno Haible  <bruno@clisp.org>
102260         * README: Talk primarily about git.
102261         (git and CVS): Renamed from CVS.
102262         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102263         gnulib is available through git.
102264         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102266 2007-03-30  Bruno Haible  <bruno@clisp.org>
102268         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102269         * lib/poll_.h: Likewise.
102270         * lib/stat_.h: Likewise.
102271         * lib/sys_time_.h: Likewise.
102272         * lib/sysexit_.h: Likewise.
102273         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102274         * lib/stdbool_.h: Likewise.
102275         * lib/byteswap_.h: Add double-inclusion guard.
102277 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102279         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102281 2007-03-30  Karl Berry  <karl@gnu.org>
102283         * config/srclist-update: double space after USA in the license
102284         substitution, since that's how it's usually (?) written.
102286 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102288         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102289         reported by Bruno Haible.
102291 2007-03-29  Bruno Haible  <bruno@clisp.org>
102293         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102294         a bug in AIX iconv().
102296 2007-03-29  Bruno Haible  <bruno@clisp.org>
102298         * modules/ldexpl-tests: New file.
102299         * tests/test-ldexpl.c: New file.
102301 2007-03-29  Bruno Haible  <bruno@clisp.org>
102303         * lib/ldexpl.c: Include fpucw.h.
102304         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102305         multiplication.
102306         * modules/ldexpl (Depends-on): Add fpucw.
102308 2007-03-29  Bruno Haible  <bruno@clisp.org>
102310         * modules/ldexpl: New file.
102311         * m4/ldexpl.m4: New file.
102312         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102313         set.
102314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102315         REPLACE_LDEXPL.
102316         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102317         REPLACE_LDEXPL.
102318         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102319         gl_FUNC_LDEXPL_WORKS.
102320         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102321         * modules/mathl (Files): Remove lib/ldexpl.c.
102322         (Depends-on): Add ldexpl.
102324 2007-03-29  Bruno Haible  <bruno@clisp.org>
102326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102328 2007-03-29  Bruno Haible  <bruno@clisp.org>
102330         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102331         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102332         and possibly also HP-UX.
102333         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102334         work on AIX, IRIX, HP-UX, OSF/1.
102335         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102336         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102337         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102338         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102339         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102340         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102342 2007-03-29  Bruno Haible  <bruno@clisp.org>
102344         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102346 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102349         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102351 2007-03-29  Eric Blake  <ebb9@byu.net>
102353         * lib/acl-internal.h: Remove redundant include.
102354         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102355         Cygwin when a file is locked.
102357 2007-03-29  Bruno Haible  <bruno@clisp.org>
102359         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102360         file.
102361         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102363 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102366         try to remove a parent directory if the child couldn't be removed
102367         (except for the first rmdir, which could fail because the child
102368         doesn't exist).  Problem reported by Jeff Blaine in
102369         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102371 2007-03-28  Bruno Haible  <bruno@clisp.org>
102373         * lib/striconveh.c (utf8conv_carefully): New function.
102374         (mem_cd_iconveh_internal): Invoke it.
102376 2007-03-28  Bruno Haible  <bruno@clisp.org>
102378         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102379         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102380         input.
102381         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102382         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102383         unistr/u8-uctomb.
102385 2007-03-28  Bruno Haible  <bruno@clisp.org>
102387         * modules/unistr/u8-mbtoucr: New file.
102388         * lib/unistr/u8-mbtoucr.c: New file.
102389         * modules/unistr/u16-mbtoucr: New file.
102390         * lib/unistr/u16-mbtoucr.c: New file.
102391         * modules/unistr/u16-mbtoucr: New file.
102392         * lib/unistr/u16-mbtoucr.c: New file.
102393         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102395 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102396             Bruno Haible  <bruno@clisp.org>
102398         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102399         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102400         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102402         * m4/stdio_h.m4: Add stubs for vasprintf too.
102404         * modules/stdio: Support vasprintf in sed command.
102406         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102407         vasprintf.h.  Add stdio module indicator.
102409         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102410         vasprintf.h.
102412         * lib/vasprintf.h: File removed.
102414         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
102415         * lib/vasprintf.c: Ditto.
102416         * lib/xvasprintf.c: Ditto.
102417         * tests/test-vasprintf-posix.c: Ditto.
102418         * tests/test-vasprintf.c: Ditto.
102420 2007-03-27  Bruno Haible  <bruno@clisp.org>
102422         Make vasnprintf multithread-safe.
102423         * lib/vasnprintf.c (decimal_point_char): New function.
102424         (VASNPRINTF): Use it.
102425         Suggested by Simon Josefsson.
102427 2007-03-27  Eric Blake  <ebb9@byu.net>
102429         Support sub-second birthtime on cygwin.
102430         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
102431         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
102432         (get_stat_birthtime): Also work with st_birthtim.
102434 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
102436         * lib/stat-time.h (USE_BIRTHTIME): Remove.
102437         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102438         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102439         (get_stat_birthtime_ns): Simplify compile-time tests.
102440         (get_stat_birthtime): Change the API to look like
102441         get_stat_mtime etc., except return a negative tv_nsec on error.
102442         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102443         Don't check for "spare" fields.
102444         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102445         or for struct stat.st_birthtime, as these tests aren't used.
102446         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102448 2007-03-27  Bruno Haible  <bruno@clisp.org>
102450         * lib/stat-time.h: Include <sys/stat.h>.
102452 2007-03-27  James Youngman  <jay@gnu.org>
102454         * lib/stat-time.h (get_stat_birthtime): New function for
102455           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102456         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102457           and its variants.
102458         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102459         * modules/stat-time-test: New file.
102460         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102462 2007-03-26  Bruno Haible  <bruno@clisp.org>
102464         Better support of signalling NaNs.
102465         * lib/atanl.c: Include isnanl.h.
102466         (atanl): Perform test for NaN at the beginning of the function and
102467         through a call to isnanl.
102468         * lib/cosl.c: Include isnanl.h.
102469         (cosl): Perform test for NaN at the beginning of the function and
102470         through a call to isnanl.
102471         * lib/ldexpl.c: Include isnanl.h.
102472         (ldexpl): Perform test for NaN through a call to isnanl.
102473         * lib/logl.c: Include isnanl.h.
102474         (logl): Perform test for NaN at the beginning of the function and
102475         through a call to isnanl.
102476         * lib/sinl.c: Include isnanl.h.
102477         (sinl): Perform test for NaN at the beginning of the function and
102478         through a call to isnanl.
102479         * lib/sqrtl.c: Include isnanl.h.
102480         (sqrtl): Perform test for NaN at the beginning of the function and
102481         through a call to isnanl.
102482         * lib/tanl.c: Include isnanl.h.
102483         (tanl): Perform test for NaN at the beginning of the function and
102484         through a call to isnanl.
102485         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102486         * modules/mathl (Depends-on): Add isnanl.
102488 2007-03-26  Eric Blake  <ebb9@byu.net>
102490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102491         regression in logic sense of previous patch.
102493 2007-03-26  Bruno Haible  <bruno@clisp.org>
102495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102496         unportable shell command "if ! ...".
102497         Reported by Ralf Wildenhues.
102499 2007-03-25  Bruno Haible  <bruno@clisp.org>
102501         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102502         <sysexits.h> file, and only add EX_CONFIG.
102503         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102504         absolute file name and whether it is sufficient. Substitute also
102505         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102506         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102507         ABSOLUTE_SYSEXITS_H into sysexits.h.
102509 2007-03-25  Bruno Haible  <bruno@clisp.org>
102511         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102512         hints is NULL.
102514 2007-03-25  Bruno Haible  <bruno@clisp.org>
102516         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102517         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102519 2007-03-25  Bruno Haible  <bruno@clisp.org>
102521         * lib/vasnprintf.c: Include langinfo.h.
102522         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102523         multithread-safe.
102524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102526         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102530         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102533         Reported by Simon Josefsson.
102535 2007-03-25  Bruno Haible  <bruno@clisp.org>
102537         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102538         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102539         * modules/vasnprintf (Depends-on): Add stdint.
102541 2007-03-25  Bruno Haible  <bruno@clisp.org>
102543         * modules/fpieee: New file.
102544         * m4/fpieee.m4: New file.
102545         * modules/isnan-nolibm (Depends-on): Add fpieee.
102546         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102547         * modules/isnanl (Depends-on): Add fpieee.
102549 2007-03-25  Bruno Haible  <bruno@clisp.org>
102551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102553 2007-03-25  Bruno Haible  <bruno@clisp.org>
102555         Avoid test failures on IRIX 6.5.
102556         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102557         (main): Use it.
102558         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102559         macros.
102560         (main): Use them.
102562 2007-03-25  Bruno Haible  <bruno@clisp.org>
102564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102565         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102566         exists but doesn't work.
102567         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102568         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102570         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102571         math.h.
102573 2007-03-25  Bruno Haible  <bruno@clisp.org>
102575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102576         returns inf. Needed on IRIX 6.5.
102578 2007-03-25  Bruno Haible  <bruno@clisp.org>
102580         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102581         (main): Use isnanl instead of x != x idiom.
102582         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102584         * tests/test-frexp.c: Include isnan.h.
102585         (main): Use isnan instead of x != x idiom.
102586         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102588 2007-03-25  Bruno Haible  <bruno@clisp.org>
102590         * tests/test-frexp.c (NaN): New function/macro.
102591         (main): Use it instead of 0.0 / 0.0.
102592         * tests/test-isnan.c (NaN): New function/macro.
102593         (main): Use it instead of 0.0 / 0.0.
102594         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102595         (test_function): Use it instead of 0.0 / 0.0.
102596         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102597         (test_function): Use it instead of 0.0 / 0.0.
102598         * tests/test-snprintf-posix.h (NaN): New function/macro.
102599         (test_function): Use it instead of 0.0 / 0.0.
102600         * tests/test-sprintf-posix.h (NaN): New function/macro.
102601         (test_function): Use it instead of 0.0 / 0.0.
102602         * tests/test-fprintf-posix.h (NaN): New function/macro.
102603         (test_function): Use it instead of 0.0 / 0.0.
102604         * tests/test-printf-posix.h (NaN): New function/macro.
102605         (test_function): Use it instead of 0.0 / 0.0.
102607         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102609 2007-03-25  Bruno Haible  <bruno@clisp.org>
102611         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102613 2007-03-25  Bruno Haible  <bruno@clisp.org>
102615         * lib/regexec.c (merge_state_with_log): Make static.
102617 2007-03-25  Bruno Haible  <bruno@clisp.org>
102619         * lib/trigl.c (kernel_rem_pio2): Make static.
102621 2007-03-25  Bruno Haible  <bruno@clisp.org>
102623         * lib/sincosl.c (sincosl_table): Make static.
102625 2007-03-25  Bruno Haible  <bruno@clisp.org>
102627         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102628         if the compiler does not support C99.
102630 2007-03-25  Bruno Haible  <bruno@clisp.org>
102632         * modules/time (Makefile.am): Ensure all rule action lines start with a
102633         tab.
102635 2007-03-24  Bruno Haible  <bruno@clisp.org>
102637         * modules/tsearch-tests: New file.
102638         * tests/test-tsearch.sh: New file.
102639         * tests/test-tsearch.c: New file, mostly copied from glibc.
102641         * modules/search-tests: New file.
102642         * tests/test-search.c: New file.
102644         * modules/search: New file.
102645         * lib/search_.h: New file, incorporating lib/tsearch.h.
102646         * m4/search_h.m4: New file.
102647         * lib/tsearch.h: Remove file.
102648         * lib/tsearch.c: Include search.h instead of tsearch.h.
102649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102650         HAVE_TSEARCH.
102651         * modules/tsearch (Files): Remove lib/tsearch.h.
102652         (Depends-on): Add search.
102653         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102654         (Include): Change tsearch.h into search.h.
102656 2007-03-24  Bruno Haible  <bruno@clisp.org>
102658         * modules/fpucw: New file.
102659         * lib/fpucw.h: New file.
102660         * lib/frexp.c: Include fpucw.h.
102661         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102662         (FUNC): Use them.
102663         * lib/printf-frexp.c: Include fpucw.h.
102664         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102665         (FUNC): Use them.
102666         * lib/vasnprintf.c: Include fpucw.h.
102667         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102668         'long double' calculations.
102669         * tests/test-frexpl.c: Include fpucw.h.
102670         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102671         * tests/test-printf-frexpl.c: Include fpucw.h.
102672         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102673         * modules/frexpl (Depends-on): Add fpucw.
102674         * modules/printf-frexpl (Depends-on): Likewise.
102675         * modules/fprintf-posix (Depends-on): Likewise.
102676         * modules/snprintf-posix (Depends-on): Likewise.
102677         * modules/sprintf-posix (Depends-on): Likewise.
102678         * modules/vasnprintf-posix (Depends-on): Likewise.
102679         * modules/vasprintf-posix (Depends-on): Likewise.
102680         * modules/vfprintf-posix (Depends-on): Likewise.
102681         * modules/vsnprintf-posix (Depends-on): Likewise.
102682         * modules/vsprintf-posix (Depends-on): Likewise.
102683         * modules/frexpl-tests (Depends-on): Likewise.
102684         * modules/printf-frexpl-tests (Depends-on): Likewise.
102686 2007-03-24  Bruno Haible  <bruno@clisp.org>
102688         * lib/float+.h: New file.
102689         * lib/isnan.c: Include float+.h.
102690         (SIZE): New macro.
102691         (FUNC): Compare only SIZE bytes of the value.
102692         * lib/vasnprintf.c: Include float+.h.
102693         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102694         SIZEOF_LDBL or SIZEOF_DBL bytes.
102695         * modules/isnan-nolibm (Files): Add lib/float+.h.
102696         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102697         * modules/isnanl (Files): Add lib/float+.h.
102698         * modules/vasnprintf (Files): Add lib/float+.h.
102700 2007-03-24  Bruno Haible  <bruno@clisp.org>
102702         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102703         include isnanl-nolibm.h.
102705 2007-03-24  Bruno Haible  <bruno@clisp.org>
102707         * tests/test-read-file.c (main): Don't produce spurious output for
102708         expected situations. Make the test fail if it encountered unexpected
102709         results.
102711 2007-03-24  Bruno Haible  <bruno@clisp.org>
102713         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102714         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102716 2007-03-24  Bruno Haible  <bruno@clisp.org>
102718         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102720 2007-03-24  Bruno Haible  <bruno@clisp.org>
102722         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102723         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102725         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102726         * modules/utf8-ucs4: Turn into a symbolic link to module
102727         unistr/u8-mbtouc.
102729         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102730         utf8-ucs4-unsafe.
102731         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102732         unistr/u8-mbtouc-unsafe.
102734         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102735         * modules/utf16-ucs4: Turn into a symbolic link to module
102736         unistr/u16-mbtouc.
102738         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102739         utf16-ucs4-unsafe.
102740         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102741         unistr/u16-mbtouc-unsafe.
102743         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102744         * modules/ucs4-utf8: Turn into a symbolic link to module
102745         unistr/u8-ubtomb.
102747         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102748         * modules/ucs4-utf16: Turn into a symbolic link to module
102749         unistr/u16-ubtomb.
102751 2007-03-24  Bruno Haible  <bruno@clisp.org>
102753         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102754         Enable the function only if HAVE_INLINE.
102755         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102756         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102757         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102758         Enable the function only if HAVE_INLINE.
102759         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102760         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102761         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102762         Enable the function only if HAVE_INLINE.
102763         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102764         Enable the function only if HAVE_INLINE.
102765         * modules/utf8-ucs4: Update.
102766         * modules/utf8-ucs4-unsafe: Update.
102767         * modules/utf16-ucs4: Update.
102768         * modules/utf16-ucs4-unsafe: Update.
102769         * modules/ucs4-utf8: Update.
102770         * modules/ucs4-utf16: Update.
102772 2007-03-24  Bruno Haible  <bruno@clisp.org>
102774         * lib/utf8-ucs4.h: Remove file.
102775         * lib/utf8-ucs4-unsafe.h: Remove file.
102776         * lib/utf16-ucs4.h: Remove file.
102777         * lib/utf16-ucs4-unsafe.h: Remove file.
102778         * lib/ucs4-utf8.h: Remove file.
102779         * lib/ucs4-utf16.h: Remove file.
102780         * lib/unistr.h: Include their previous contents.
102781         * m4/utf-ucs4.m4: Remove file.
102782         * m4/ucs4-utf.m4: Remove file.
102783         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102784         (Depends-on): Add unistr/base.
102785         (configure.ac): Remove gl_UTF_UCS4.
102786         (Makefile.am): Update.
102787         (Include): Change to unistr.h.
102788         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102789         (Depends-on): Add unistr/base.
102790         (configure.ac): Remove gl_UTF_UCS4.
102791         (Makefile.am): Update.
102792         (Include): Change to unistr.h.
102793         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102794         (Depends-on): Add unistr/base.
102795         (configure.ac): Remove gl_UTF_UCS4.
102796         (Makefile.am): Update.
102797         (Include): Change to unistr.h.
102798         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102799         (Depends-on): Add unistr/base.
102800         (configure.ac): Remove gl_UTF_UCS4.
102801         (Makefile.am): Update.
102802         (Include): Change to unistr.h.
102803         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102804         (Depends-on): Add unistr/base.
102805         (configure.ac): Remove gl_UCS4_UTF.
102806         (Makefile.am): Update.
102807         (Include): Change to unistr.h.
102808         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102809         (Depends-on): Add unistr/base.
102810         (configure.ac): Remove gl_UCS4_UTF.
102811         (Makefile.am): Update.
102812         (Include): Change to unistr.h.
102813         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102814         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102815         utf8-ucs4-unsafe.h.
102816         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102817         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102818         utf16-ucs4-unsafe.h.
102819         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102820         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102821         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102822         * lib/unistr/u8-strchr.c: Likewise.
102823         * lib/unistr/u8-strrchr.c: Likewise.
102824         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102825         * lib/unistr/u16-strchr.c: Likewise.
102826         * lib/unistr/u16-strrchr.c: Likewise.
102827         * lib/striconveh.c: Update.
102828         * lib/linebreak.c: Update.
102830 2007-03-24  Bruno Haible  <bruno@clisp.org>
102832         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102833         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102835 2007-03-22  Bruno Haible  <bruno@clisp.org>
102837         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102839 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102841         * MODULES.html.sh (File system functions): New module write-any-file.
102842         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102843         * m4/write-any-file.m4: New files.
102845 2007-03-23  Eric Blake  <ebb9@byu.net>
102847         * gnulib-tool: Rearrange space-tab sequences, since some editors
102848         like to eat them.
102850 2007-03-23  Eric Blake  <ebb9@byu.net>
102852         * lib/version-etc.c (version_etc_va): Update license wording to
102853         be more concise.  Recommended by Richard Stallman.
102855 2007-03-22  Bruno Haible  <bruno@clisp.org>
102857         * lib/poll.c (MSG_PEEK): New fallback definition.
102859 2007-03-22  Bruno Haible  <bruno@clisp.org>
102861         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102862         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102863         (main): Update.
102864         Fixes a compilation error on BeOS.
102866 2007-03-22  Bruno Haible  <bruno@clisp.org>
102868         * modules/frexpl-tests: New file.
102869         * tests/test-frexpl.c: New file.
102871         * modules/frexpl: New file.
102872         * m4/frexpl.m4: New file.
102873         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102874         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102876         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102877         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102878         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102880 2007-03-22  Bruno Haible  <bruno@clisp.org>
102882         * lib/frexpl.c: Share code with lib/frexp.c.
102883         * modules/mathl (Files): Add lib/frexp.c.
102884         (Depends-on): Add isnanl-nolibm.
102886 2007-03-22  Bruno Haible  <bruno@clisp.org>
102888         * modules/printf-frexp (Files): Add m4/frexp.m4.
102889         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102890         only if the found frexp function actually works.
102892 2007-03-22  Bruno Haible  <bruno@clisp.org>
102894         * lib/frexp.c: Remove older implementation that uses divisions.
102896 2007-03-21  Bruno Haible  <bruno@clisp.org>
102898         * modules/frexp-tests: New file.
102899         * tests/test-frexp.c: New file.
102901         * modules/frexp: New file.
102902         * lib/frexp.c: New file.
102903         * m4/frexp.m4: New file.
102904         * lib/math_.h (frexp): New declaration.
102905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102906         REPLACE_FREXP.
102907         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102909 2007-03-21  Bruno Haible  <bruno@clisp.org>
102911         * modules/isnanl-tests: New file.
102912         * tests/test-isnanl.c: New file.
102914         * modules/isnanl: New file.
102915         * lib/isnanl.h: New file.
102916         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102917         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102918         gl_FUNC_ISNANL_WORKS.
102919         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102920         New macros.
102922 2007-03-21  Bruno Haible  <bruno@clisp.org>
102924         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102925         lib/isnanl.h.
102926         (Include): Update.
102927         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102928         * lib/vasnprintf.c: Update.
102929         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102930         tests/test-isnanl.h, remove tests/test-isnanl.c.
102931         (Makefile.am): Update.
102932         * tests/test-isnanl-nolibm.c: New file.
102933         * tests/test-isnanl.h: New file.
102934         * tests/test-isnanl.c: Remove file.
102936 2007-03-21  Jim Meyering  <jim@meyering.net>
102938         When trying to open ".", treat ESTALE like EACCES.
102939         * lib/savewd.c (savewd_save): Resort to forking not just upon
102940         failure with EACCES, but also when errno is ESTALE.
102942 2007-03-20  Bruno Haible  <bruno@clisp.org>
102944         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102945         Needed on AIX 5.1. Reported by Matthew Woehlke.
102947 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102949         Suggestions by Bruno Haible:
102950         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102951         our own.
102952         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102953         * modules/acl (Depends-on): Add gettext.
102955 2007-03-19  Bruno Haible  <bruno@clisp.org>
102957         * modules/iconvme: Remove file.
102958         * lib/iconvme.h: Remove file.
102959         * lib/iconvme.c: Remove file.
102960         * m4/iconvme.m4: Remove file.
102962 2007-03-19  Bruno Haible  <bruno@clisp.org>
102964         * doc/relocatable-maint.texi: Break long shell script line.
102965         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102967 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102969         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102970         handle file_has_acl.
102971         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102972         * lib/acl.c: Move header inclusions and related macro defns into
102973         lib/acl-internal.h.
102974         (S_ISLNK): Remove defn, since that's now done for us.
102975         (file_has_acl): Move to lib/file-has-acl.c.
102976         Call acl_trivial if available.  This is the crucial part of the fix.
102977         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102978         shared within the library.  Rewrite a bit, partly to make it compatible
102979         with the GNU coding style.
102980         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102981         Remove unnecessary double-quotes.
102982         Don't test for acl_to_text; the build will catch that.
102983         Replace acl_entries if it doesn't exist and it is needed.
102984         Check for -lsec and acl_trivial (as used on Solaris 10).
102985         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102986         lib/file-has-acl.c.
102987         (Depends-on): Add sys_stat, for S_ISLNK.
102989 2007-03-19  Ben Pfaff  <blp@gnu.org>
102991         * doc/gnulib.texi: Fix typos.
102992         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102994 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102996         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102997         If size is zero here, buf must be zero.
102999 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103001         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103002         <bruno@clisp.org>.
103004 2007-03-18  Bruno Haible  <bruno@clisp.org>
103006         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103007         Suggested by Eric Blake.
103009 2007-03-18  Ben Pfaff  <blp@gnu.org>
103011         * doc/relocatable.texi: Recommend using as prefix a directory
103012         that does not exist and will never be created.  Based on
103013         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103014         and others.
103016 2007-03-17  Bruno Haible  <bruno@clisp.org>
103018         * lib/fchownat.c: Include lchown.h.
103020 2007-03-17  Bruno Haible  <bruno@clisp.org>
103022         Fix endless loop when the given allocated size was > INT_MAX.
103023         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103024         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103025         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103026         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103027         * lib/sprintf.c (sprintf): Likewise.
103029 2007-03-17  Bruno Haible  <bruno@clisp.org>
103031         * tests/test-argp-2.sh (func_compare): Output a context diff.
103033 2007-03-17  Bruno Haible  <bruno@clisp.org>
103035         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103036         locale's decimal-point character.
103038 2007-03-17  Bruno Haible  <bruno@clisp.org>
103040         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103041         before comparing it. Needed because on some platforms (e.g. x86) a
103042         'long double' occupies less bytes than sizeof (long double).
103044 2007-03-17  Bruno Haible  <bruno@clisp.org>
103046         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103047         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103048         * tests/test-getaddrinfo.c (simple): Likewise.
103049         * tests/test-read-file.c (main): Likewise.
103051 2007-03-17  Bruno Haible  <bruno@clisp.org>
103053         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103055 2007-03-17  Bruno Haible  <bruno@clisp.org>
103057         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103058         unused variable.
103060 2007-03-17  Bruno Haible  <bruno@clisp.org>
103062         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103063         * tests/test-c-strncasecmp.c: Likewise.
103065 2007-03-17  Bruno Haible  <bruno@clisp.org>
103067         * modules/stdlib (Depends-on): Add unistd.
103068         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103069         Needed for MacOS X 10.3.
103071 2007-03-17  Bruno Haible  <bruno@clisp.org>
103073         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103075 2007-03-17  Bruno Haible  <bruno@clisp.org>
103077         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103079 2007-03-17  Bruno Haible  <bruno@clisp.org>
103081         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103082         to reflect files copied from gnulib (with or without modifications).
103083         Suggested by Jim Meyering.
103085 2007-03-17  Eric Blake  <ebb9@byu.net>
103087         * NEWS: Document stdlib change from 2007-02-18.
103089 2007-03-17  Jim Meyering  <jim@meyering.net>
103091         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103092         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103093         someone uses a name containing shell meta-characters.
103094         Reported by Alfred M. Szmidt.
103096         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103098 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103100         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103101         and copy gettext configuration files only if configure.ac contains
103102         a use of AM_GNU_GETTEXT_VERSION.
103104 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103106         * build-aux/bootstrap (gnulib_name): New variable.
103107         (gnulib_tool_options): Use it.
103109 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103111         * tests/test-des.c: Use new namespace.
103113 2007-03-15  Bruno Haible  <bruno@clisp.org>
103115         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103116         Reported by James Youngman <jay@gnu.org>.
103118 2007-03-15  Bruno Haible  <bruno@clisp.org>
103120         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103121         declared prototype. Needed with cc on OSF/1 5.1.
103123 2007-03-15  Bruno Haible  <bruno@clisp.org>
103125         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103126         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103127         (struct gl_list_implementation): Add dispose_fn argument to the
103128         'create_empty', 'create' methods.
103129         (struct gl_list_impl_base): Add field 'dispose_fn'.
103130         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103131         argument.
103132         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103133         dispose_fn argument.
103134         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103135         dispose_fn on the dropped values.
103136         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103137         dispose_fn argument.
103138         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103139         dropped values.
103140         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103141         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103142         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103143         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103144         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103145         argument.
103146         (gl_tree_list_free): Call dispose_fn on the dropped values.
103147         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103148         the dropped values.
103149         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103150         Add dispose_fn argument.
103151         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103152         Call dispose_fn on the dropped values.
103153         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103154         Add dispose_fn argument.
103155         (gl_sublist_create): Initialize the 'dispose_fn' field.
103156         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103157         * tests/test-array_list.c (main): Update.
103158         * tests/test-carray_list.c (main): Update.
103159         * tests/test-avltree_list.c (main): Update.
103160         * tests/test-rbtree_list.c (main): Update.
103161         * tests/test-avltreehash_list.c (main): Update.
103162         * tests/test-rbtreehash_list.c (main): Update.
103163         * tests/test-linked_list.c (main): Update.
103164         * tests/test-linkedhash_list.c (main): Update.
103165         * tests/test-array_oset.c (main): Update.
103167 2007-03-15  Bruno Haible  <bruno@clisp.org>
103169         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103170         (gl_oset_create_empty): Add dispose_fn argument.
103171         (struct gl_oset_implementation): Add dispose_fn argument to
103172         'create_empty' method.
103173         (struct gl_oset_impl_base): Add dispose_fn field.
103174         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103175         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103176         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103177         values.
103178         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103179         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103180         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103181         dropped value.
103182         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103183         dropped value.
103184         * tests/test-array_oset.c (main): Update.
103185         * tests/test-avltree_oset.c (main): Update.
103186         * tests/test-rbtree_oset.c (main): Update.
103187         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103189 2007-03-13  Bruno Haible  <bruno@clisp.org>
103191         * tests/test-stdbool.c (i): Update after last patch.
103193 2007-03-12  Bruno Haible  <bruno@clisp.org>
103195         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103196         the iswprint macro. Needed on Solaris 2.5.1.
103198 2007-03-12  Bruno Haible  <bruno@clisp.org>
103200         * tests/test-printf-frexp.c (main): Declare x as volatile.
103202 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103204         * doc/gnulib.texi (Build robot for gnulib): New section.
103206 2007-03-12  Jim Meyering  <jim@meyering.net>
103208         * build-aux/bootstrap: New file.
103209         * build-aux/bootstrap.conf: New file, from coreutils.
103211 2007-03-11  Bruno Haible  <bruno@clisp.org>
103213         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103215 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103217         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103218         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103219         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103221 2007-03-11  Bruno Haible  <bruno@clisp.org>
103223         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103224         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103226 2007-03-11  Bruno Haible  <bruno@clisp.org>
103228         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103229         formula. Needed for SunPRO C 5.0.
103231 2007-03-11  Bruno Haible  <bruno@clisp.org>
103233         * modules/long-options (Depends-on): Add getopt.
103235 2007-03-11  Bruno Haible  <bruno@clisp.org>
103237         * modules/modechange (Depends-on): Add stdbool.
103239 2007-03-11  Bruno Haible  <bruno@clisp.org>
103241         * modules/i-ring (Depends-on): Add stdbool.
103243 2007-03-11  Bruno Haible  <bruno@clisp.org>
103245         * modules/gc-des (Depends-on): Add stdbool.
103247 2007-03-11  Bruno Haible  <bruno@clisp.org>
103249         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103251 2007-03-11  Bruno Haible  <bruno@clisp.org>
103253         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103255 2007-03-11  Bruno Haible  <bruno@clisp.org>
103257         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103259 2007-03-11  Bruno Haible  <bruno@clisp.org>
103261         * lib/vasnprintf.c (sprintf): Undefine.
103263 2007-03-11  Bruno Haible  <bruno@clisp.org>
103265         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103266         initializers in SunPRO C and Compaq C compilers.
103268 2007-03-11  Bruno Haible  <bruno@clisp.org>
103270         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103271         decrementing code ANSI C compliant.
103273 2007-03-11  Bruno Haible  <bruno@clisp.org>
103275         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103276         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103278 2007-03-11  Bruno Haible  <bruno@clisp.org>
103280         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103281         <stdbool.h> substitute doesn't pass.
103283 2007-03-11  Bruno Haible  <bruno@clisp.org>
103285         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103287 2007-03-11  Bruno Haible  <bruno@clisp.org>
103289         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103290         script, for submission to autobuild.josefsson.org.
103292 2007-03-10  Bruno Haible  <bruno@clisp.org>
103294         * modules/canonicalize-lgpl-tests: New file.
103295         * tests/test-canonicalize-lgpl.sh: New file.
103296         * tests/test-canonicalize-lgpl.c: New file.
103298         * modules/c-strcase-tests: New file.
103299         * tests/test-c-strcase.sh: New file.
103300         * tests/test-c-strcasecmp.c: New file.
103301         * tests/test-c-strncasecmp.c: New file.
103303         * modules/atexit-tests: New file.
103304         * tests/test-atexit.sh: New file.
103305         * tests/test-atexit.c: New file.
103307 2007-03-10  Bruno Haible  <bruno@clisp.org>
103309         * tests/test-binary-io.sh: Use temporary filenames that are not so
103310         likely to clash with those of other tests (in a parallel make).
103311         * tests/test-binary-io.c: Likewise.
103313 2007-03-10  Bruno Haible  <bruno@clisp.org>
103315         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103316         fallback; use #error instead.
103317         Suggested by Simon Josefsson.
103319 2007-03-10  Bruno Haible  <bruno@clisp.org>
103321         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103322         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103323         first and the last.
103325 2007-03-10  Bruno Haible  <bruno@clisp.org>
103327         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103329 2007-03-10  Bruno Haible  <bruno@clisp.org>
103331         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103332         "make distcheck".
103333         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103334         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103335         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103337 2007-03-10  Bruno Haible  <bruno@clisp.org>
103339         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103340         variable.
103341         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103342         variable.
103344 2007-03-09  Eric Blake  <ebb9@byu.net>
103345         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103347         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103348         types are not being provided by gnulib.
103349         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103350         types are supported.
103352 2007-03-10  Bruno Haible  <bruno@clisp.org>
103354         * lib/stdio_.h (__attribute__): New macro.
103355         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103356         vsprintf): Specify __attribute__ __format__ for GCC.
103357         Suggested by Eric Blake.
103359 2007-03-09  Bruno Haible  <bruno@clisp.org>
103361         * modules/printf-posix-tests: New file.
103362         * tests/test-printf-posix.sh: New file.
103363         * tests/test-printf-posix.c: New file.
103365         * modules/printf-posix: New file.
103366         * lib/printf.c: New file.
103367         * m4/printf-posix-rpl.m4: New file.
103368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103369         REPLACE_PRINTF.
103370         * lib/stdio_.h (printf): New declaration.
103371         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103372         ____strfmon____): New macros.
103373         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103374         REPLACE_PRINTF.
103376 2007-03-09  Bruno Haible  <bruno@clisp.org>
103378         * tests/test-vasnprintf-posix2.sh: New file.
103379         * tests/test-vasnprintf-posix2.c: New file.
103380         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103381         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103382         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103384         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103385         a locale dependent decimal point, rather than always '.'.
103387 2007-03-09  Eric Blake  <ebb9@byu.net>
103389         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103390         spite of platforms like Tandem/NSK that define it to -1.
103392 2007-03-08  Bruno Haible  <bruno@clisp.org>
103394         * modules/vprintf-posix-tests: New file.
103395         * tests/test-vprintf-posix.sh: New file.
103396         * tests/test-vprintf-posix.c: New file.
103397         * tests/test-printf-posix.h: New file.
103399         * modules/vprintf-posix: New file.
103400         * lib/vprintf.c: New file.
103401         * m4/vprintf-posix.m4: New file.
103402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103403         REPLACE_VPRINTF.
103404         * lib/stdio_.h (vprintf): New declaration.
103405         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103406         REPLACE_VPRINTF.
103408 2007-03-08  Bruno Haible  <bruno@clisp.org>
103410         * modules/fprintf-posix-tests: New file.
103411         * tests/test-fprintf-posix.sh: New file.
103412         * tests/test-fprintf-posix.c: New file.
103414         * modules/fprintf-posix: New file.
103415         * lib/fprintf.c: New file.
103416         * m4/fprintf-posix.m4: New file.
103417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
103418         REPLACE_FPRINTF.
103419         * lib/stdio_.h (fprintf): New declaration.
103420         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
103421         REPLACE_FPRINTF.
103423 2007-03-08  Bruno Haible  <bruno@clisp.org>
103425         * modules/vfprintf-posix-tests: New file.
103426         * tests/test-vfprintf-posix.sh: New file.
103427         * tests/test-vfprintf-posix.c: New file.
103428         * tests/test-fprintf-posix.h: New file.
103429         * tests/test-fprintf-posix.out: New file.
103431         * modules/vfprintf-posix: New file.
103432         * lib/vfprintf.c: New file.
103433         * m4/vfprintf-posix.m4: New file.
103434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
103435         REPLACE_VFPRINTF.
103436         * lib/stdio_.h (vfprintf): New declaration.
103437         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103438         REPLACE_VFPRINTF.
103440 2007-03-08  Bruno Haible  <bruno@clisp.org>
103442         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103444 2007-03-08  Bruno Haible  <bruno@clisp.org>
103446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103447         instead of 'expr' invocations.
103448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103452         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103453         Suggested by Paul Eggert.
103455 2007-03-08  Bruno Haible  <bruno@clisp.org>
103457         * modules/fseterr-tests: New file.
103458         * tests/test-fseterr.c: New file.
103460         * modules/fseterr: New file.
103461         * lib/fseterr.h: New file.
103462         * lib/fseterr.c: New file.
103464 2007-03-08  Bruno Haible  <bruno@clisp.org>
103466         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103467         * lib/getopt_.h: Likewise.
103468         * lib/mbswidth.h: Likewise.
103469         * lib/setenv.h: Likewise.
103470         * lib/vasnprintf.h: Likewise.
103471         * lib/vasprintf.h: Likewise.
103472         * lib/verror.h: Likewise.
103473         * lib/xsetenv.h: Likewise.
103474         * lib/xvasprintf.h: Likewise.
103476 2007-03-08  Jim Meyering  <jim@meyering.net>
103478         * users.txt: Add parted.
103480         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103482 2007-03-07  Bruno Haible  <bruno@clisp.org>
103484         * m4/printf.m4: Make the shell script snippets copy&pastable.
103486 2007-03-02  Bruno Haible  <bruno@clisp.org>
103488         * lib/netinet_in_.h: New file.
103489         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103490         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103491         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103492         (Depends-on): Add absolute-header.
103493         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103494         into netinet/in.h.
103496 2007-03-03  Bruno Haible  <bruno@clisp.org>
103498         * lib/sys_select_.h: New file.
103499         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103500         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103501         * modules/sys_select (Files): Add lib/sys_select_.h.
103502         (Depends-on): Add absolute-header.
103503         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103504         into sys/select.h.
103506 2007-03-02  Bruno Haible  <bruno@clisp.org>
103508         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103509         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103510         values.
103511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103512         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103513         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103514         * modules/sys_socket (Depends-on): Add absolute-header.
103515         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103516         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103517         (Include): Remove requirement of inclusion of <sys/types.h>.
103519 2007-03-02  Bruno Haible  <bruno@clisp.org>
103521         * lib/byteswap_.h (bswap_32): Fix formula.
103523 2007-03-06  Bruno Haible  <bruno@clisp.org>
103525         * modules/sprintf-posix-tests: New file.
103526         * tests/test-sprintf-posix.c: New file.
103528         * modules/sprintf-posix: New file.
103529         * lib/sprintf.c: New file.
103530         * m4/sprintf-posix.m4: New file.
103531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103532         REPLACE_SPRINTF.
103533         * lib/stdio_.h (sprintf): New declaration.
103534         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103535         REPLACE_SPRINTF.
103537 2007-03-06  Bruno Haible  <bruno@clisp.org>
103539         * modules/vsprintf-posix-tests: New file.
103540         * tests/test-vsprintf-posix.c: New file.
103541         * tests/test-sprintf-posix.h: New file.
103543         * modules/vsprintf-posix: New file.
103544         * lib/vsprintf.c: New file.
103545         * m4/vsprintf-posix.m4: New file.
103546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103547         REPLACE_VSPRINTF.
103548         * lib/stdio_.h (vsprintf): New declaration.
103549         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103550         REPLACE_VSPRINTF.
103552 2007-03-06  Bruno Haible  <bruno@clisp.org>
103554         * modules/vsnprintf (Depend-on): Remove minmax.
103556 2007-03-06  Bruno Haible  <bruno@clisp.org>
103558         * modules/snprintf-posix-tests: New file.
103559         * tests/test-snprintf-posix.c: New file.
103561         * modules/snprintf-posix: New file.
103562         * m4/snprintf-posix.m4: New file.
103563         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103564         gl_FUNC_SNPRINTF.
103565         (gl_FUNC_SNPRINTF): Invoke it.
103566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103567         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103568         is set.
103569         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103571 2007-03-06  Bruno Haible  <bruno@clisp.org>
103573         * modules/vsnprintf-posix-tests: New file.
103574         * tests/test-vsnprintf-posix.c: New file.
103575         * tests/test-snprintf-posix.h: New file.
103577         * modules/vsnprintf-posix: New file.
103578         * m4/vsnprintf-posix.m4: New file.
103579         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103580         gl_FUNC_VSNPRINTF.
103581         (gl_FUNC_VSNPRINTF): Invoke it.
103582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103583         * lib/stdio_.h (vsnprintf): Define as a replacement if
103584         REPLACE_VSNPRINTF is set.
103585         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103587 2007-03-06  Bruno Haible  <bruno@clisp.org>
103589         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103592 2007-03-06  Bruno Haible  <bruno@clisp.org>
103594         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103595         (asinl): Declare also if HAVE_DECL_ASINL is set.
103596         (atanl): Declare also if HAVE_DECL_ATANL is set.
103597         (ceill): Declare also if HAVE_DECL_CEILL is set.
103598         (cosl): Declare also if HAVE_DECL_COSL is set.
103599         (expl): Declare also if HAVE_DECL_EXPL is set.
103600         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103601         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103602         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103603         (logl): Declare also if HAVE_DECL_LOGL is set.
103604         (sinl): Declare also if HAVE_DECL_SINL is set.
103605         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103606         (tanl): Declare also if HAVE_DECL_TANL is set.
103607         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103610         declaration of frexpl, ldexpl.
103611         * modules/printf-frexpl (Depends-on): Add math.
103612         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103614 2007-03-05  Bruno Haible  <bruno@clisp.org>
103616         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103617         frexpl and ldexpl are declared.
103618         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103620 2007-03-05  Bruno Haible  <bruno@clisp.org>
103622         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103623         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103625 2007-03-05  Bruno Haible  <bruno@clisp.org>
103627         * lib/stdio_.h: Include <stddef.h>.
103629 2007-03-05  Bruno Haible  <bruno@clisp.org>
103631         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103633 2007-03-05  Bruno Haible  <bruno@clisp.org>
103635         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103636         NetBSD 4, from Ralf Wildenhues.
103638 2007-03-04  Bruno Haible  <bruno@clisp.org>
103640         * lib/vasprintf.h: Update #if logic for the case when the functions
103641         exist but are overridden.
103643 2007-03-04  Bruno Haible  <bruno@clisp.org>
103645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103646         implementations: glibc-2.4 and MacOS X 10.3.
103647         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103648         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103649         * tests/test-vasprintf-posix.c (test_function): Likewise.
103651 2007-03-04  Bruno Haible  <bruno@clisp.org>
103653         * modules/vasprintf-posix-tests: New file.
103654         * tests/test-vasprintf-posix.c: New file.
103656         * modules/vasprintf-posix: New file.
103657         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103658         defined.
103659         * m4/vasprintf-posix.m4: New file.
103660         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103661         gl_FUNC_VASPRINTF.
103662         (gl_FUNC_VASPRINTF): Invoke it.
103663         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103664         here.
103665         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103667 2007-03-04  Bruno Haible  <bruno@clisp.org>
103669         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103670         REPLACE_GETTIMEOFDAY.
103671         * modules/sys_time (Makefile.am): Likewise.
103672         * m4/sys_time_h.m4: Likewise.
103673         * m4/gettimeofday.m4: Likewise.
103675 2007-03-04  Bruno Haible  <bruno@clisp.org>
103677         * modules/vasnprintf-posix-tests: New file.
103678         * tests/test-vasnprintf-posix.c: New file.
103680         * modules/vasnprintf-posix: New file.
103681         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103682         printf-frexpl.h.
103683         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103684         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103685         REPLACE_VASNPRINTF is defined.
103686         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103687         gl_FUNC_VASNPRINTF.
103688         (gl_FUNC_VASNPRINTF): Invoke it.
103689         * m4/vasnprintf-posix.m4: New file.
103690         * m4/printf.m4: New file.
103692 2007-03-04  Bruno Haible  <bruno@clisp.org>
103694         Compile progreloc.c only if --enable-relocatable is specified.
103695         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103696         if --enable-relocatable was specified.
103697         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103698         lib_SOURCES.
103700 2007-03-04  Jim Meyering  <jim@meyering.net>
103702         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103703         Use it consistently, rather than enumerating errno constants.
103705 2007-03-04  Bruno Haible  <bruno@clisp.org>
103707         * modules/xvasprintf-tests: New file.
103708         * tests/test-xvasprintf.c: New file.
103710         * modules/vasprintf-tests: New file.
103711         * tests/test-vasprintf.c: New file.
103713         * modules/vasnprintf-tests: New file.
103714         * tests/test-vasnprintf.c: New file.
103716         * modules/vsnprintf-tests: New file.
103717         * tests/test-vsnprintf.c: New file.
103719         * modules/snprintf-tests: New file.
103720         * tests/test-snprintf.c: New file.
103722 2007-03-04  Bruno Haible  <bruno@clisp.org>
103724         Compile relocatable.c only if --enable-relocatable is specified.
103725         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103726         gl_RELOCATABLE_LIBRARY.
103727         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103728         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103729         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103730         gl_RELOCATABLE_LIBRARY.
103731         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103732         (Makefile.am): Remove lib_SOURCES.
103733         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103734         gl_RELOCATABLE_LIBRARY.
103735         (Makefile.am): Remove lib_SOURCES.
103736         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103737         always.
103738         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103739         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103741 2007-03-04  Bruno Haible  <bruno@clisp.org>
103743         * modules/argmatch-tests: New file.
103744         * tests/test-argmatch.c: New file.
103746         * tests/test-allocsa.c (main): Halve the number of loop runs.
103748         * modules/alloca-opt-tests: New file.
103749         * tests/test-alloca-opt.c: New file.
103751 2007-03-04  Jim Meyering  <jim@meyering.net>
103753         Work around difference between Linux ACLs and Solaris 10 ZFS.
103754         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103755         for EINVAL.
103757 2007-03-03  Bruno Haible  <bruno@clisp.org>
103759         * modules/relocatable-prog (Depends-on): Add back progreloc's
103760         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103762 2007-03-03  Bruno Haible  <bruno@clisp.org>
103764         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103765         * modules/relocatable-lib: New file.
103767 2007-03-03  Bruno Haible  <bruno@clisp.org>
103769         * modules/relocatable-prog: Renamed from modules/relocatable.
103770         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103772 2007-03-03  Bruno Haible  <bruno@clisp.org>
103774         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103775         m4/relocatable-lib.m4.
103776         (Depends-on): Remove 'relocatable'.
103777         (configure.ac): Add gl_RELOCATABLE_NOP.
103779 2007-03-03  Bruno Haible  <bruno@clisp.org>
103781         * modules/relocatable-prog-wrapper: New file.
103782         * modules/relocatable (Depends-on): Add it. Remove all other
103783         dependencies except progname.
103784         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103786         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103787         (gl_FUNC_STRERROR): Nop.
103788         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103791         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103793         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103794         (gl_FUNC_READLINK): Update.
103796         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103798 2007-03-03  Bruno Haible  <bruno@clisp.org>
103800         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103801         * modules/xreadlink (Depends-on): Add unistd.
103802         * modules/xreadlink-with-size (Depends-on): Likewise.
103804 2007-03-03  Bruno Haible  <bruno@clisp.org>
103806         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103807         extracted from gt_FUNC_SETENV.
103808         (gt_FUNC_SETENV): Remove macro.
103809         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103810         remove gt_FUNC_SETENV.
103812 2007-03-03  Bruno Haible  <bruno@clisp.org>
103814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103815         ENABLE_RELOCATABLE here.
103816         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103818 2007-03-03  Bruno Haible  <bruno@clisp.org>
103820         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103821         * tests/test-rbtreehash_list.c: Include progname.h.
103822         (main): Call set_program_name.
103824         * modules/rbtree-oset-tests (Depends-on): Add progname.
103825         * tests/test-rbtree_oset.c: Include progname.h.
103826         (main): Call set_program_name.
103828         * modules/rbtree-list-tests (Depends-on): Add progname.
103829         * tests/test-rbtree_list.c: Include progname.h.
103830         (main): Call set_program_name.
103832         * modules/linked-list-tests (Depends-on): Add progname.
103833         * tests/test-linked_list.c: Include progname.h.
103834         (main): Call set_program_name.
103836 2007-03-03  Bruno Haible  <bruno@clisp.org>
103838         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103839         All uses of __restrict changed to _Restrict_.
103840         * lib/glob_.h (__restrict): Remove macro.
103842 2007-03-02  Bruno Haible  <bruno@clisp.org>
103844         * modules/gettext (configure.ac): Require gettext infrastructure
103845         from version 0.16.1.
103847 2007-03-02  Bruno Haible  <bruno@clisp.org>
103849         * modules/linkedhash-list-tests (Depends-on): Add progname.
103850         * tests/test-linkedhash_list.c: Include progname.h.
103851         (main): Call set_program_name.
103853         * modules/carray-list-tests (Depends-on): Add progname.
103854         * tests/test-carray_list.c: Include progname.h.
103855         (main): Call set_program_name.
103857         * modules/avltreehash-list-tests (Depends-on): Add progname.
103858         * tests/test-avltreehash_list.c: Include progname.h.
103859         (main): Call set_program_name.
103861         * modules/avltree-oset-tests (Depends-on): Add progname.
103862         * tests/test-avltree_oset.c: Include progname.h.
103863         (main): Call set_program_name.
103865         * modules/avltree-list-tests (Depends-on): Add progname.
103866         * tests/test-avltree_list.c: Include progname.h.
103867         (main): Call set_program_name.
103869         * modules/array-oset-tests (Depends-on): Add progname.
103870         * tests/test-array_oset.c: Include progname.h.
103871         (main): Call set_program_name.
103873         * modules/array-list-tests (Depends-on): Add progname.
103874         * tests/test-array_list.c: Include progname.h.
103875         (main): Call set_program_name.
103877         * modules/argp-tests (Depends-on): Add progname.
103878         * tests/test-argp.c: Include argp.h first. Include progname.h.
103879         (main): Call set_program_name.
103881 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103883         * doc/gnulib-tool.texi (Initial import): Reword description of
103884         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103885         limited effect even if defined after the first system include.
103887 2007-03-01  Bruno Haible  <bruno@clisp.org>
103889         * build-aux/config.libpath: Update to libtool-1.5.22.
103890         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103892 2007-03-01  Bruno Haible  <bruno@clisp.org>
103894         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103895         foo_CFLAGS.
103896         Reported by Ralf Wildenhues.
103898 2007-03-01  Bruno Haible  <bruno@clisp.org>
103900         * build-aux/install-reloc: Remove object files left over by some
103901         compilers.
103902         Reported by Ralf Wildenhues.
103904 2007-03-01  Bruno Haible  <bruno@clisp.org>
103906         * build-aux/install-reloc: Break long lines.
103908 2007-03-01  Bruno Haible  <bruno@clisp.org>
103910         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103911         Reported by Ralf Wildenhues.
103913 2007-03-01  Bruno Haible  <bruno@clisp.org>
103915         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103916         include ordering constraints.
103918 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103920         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103921         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103922         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103923         as another example.
103924         * lib/time_.h: Fix misspelling.
103925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103926         Require gl_HEADER_TIME_H_DEFAULTS.
103927         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103928         * m4/time_r.m4 (gl_TIME_R): Likewise.
103929         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103931 2007-03-01  Bruno Haible  <bruno@clisp.org>
103933         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103934         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103936 2007-03-01  Jim Meyering  <jim@meyering.net>
103938         * modules/xreadlink (Maintainer): Add my name.
103939         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103941 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103942             Bruno Haible  <bruno@clisp.org>
103944         * build-aux/install-reloc: Compile also c-ctype.c.
103945         * build-aux/relocatable.sh.in: New file.
103946         * doc/relocatable.texi: New file.
103947         * doc/relocatable-maint.texi: New file.
103948         * doc/gnulib.texi: Include relocatable-maint.texi.
103949         * lib/progreloc.c: Include unistd.h unconditionally.
103950         * lib/relocwrapper.c: Include unistd.h unconditionally.
103951         Include c-ctype.h.
103952         (add_dotbin): Use c_tolower.
103953         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103954         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103955         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103956         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103957         to m4/relocatable-lib.m4.
103958         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103959         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103960         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103961         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103962         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103963         * modules/relocatable: New file.
103964         * modules/relocatable-lib: New file.
103965         * modules/relocatable-script: New file.
103967 2007-02-28  Bruno Haible  <bruno@clisp.org>
103969         Import --enable-relocatable infrastructure.
103970         * build-aux/config.libpath: New file, from GNU gettext.
103971         * build-aux/install-reloc: New file, from GNU gettext.
103972         * build-aux/reloc-ldflags: New file, from GNU gettext.
103973         * lib/relocatable.h: New file, from GNU gettext.
103974         * lib/relocatable.c: New file, from GNU gettext.
103975         * lib/relocwrapper.c: New file, from GNU gettext.
103976         * m4/relocatable.m4: New file, from GNU gettext.
103978 2007-02-28  Bruno Haible  <bruno@clisp.org>
103980         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103982         * modules/xreadlink: New file, from GNU gettext with modifications.
103983         * lib/xreadlink.c: New file, from GNU gettext.
103984         * lib/xreadlink.h: Add comments.
103985         (xreadlink): New declaration.
103987         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103988         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103989         lib/xreadlink-with-size.c.
103990         (configure.ac): Remove gl_XREADLINK invocation.
103991         (Makefile.am): Augment lib_SOURCES.
103992         * m4/xreadlink.m4: Remove file.
103993         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103994         (xreadlink_with_size): Renamed from xreadink.
103995         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103996         * modules/canonicalize (Depends-on): Replace xreadlink with
103997         xreadlink-with-size.
103998         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104000 2007-02-25  Jim Meyering  <jim@meyering.net>
104002         * build-aux/announce-gen: When complaining about excess arguments,
104003         list them.
104005 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104007         * README: Document signed integer overflow situation more
104008         accurately.
104010 2007-02-25  Bruno Haible  <bruno@clisp.org>
104012         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104013         'a' or 'A' conversion.
104015 2007-02-25  Bruno Haible  <bruno@clisp.org>
104017         * modules/filename: Renamed from modules/pathname.
104018         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104019         lib/concatpath.c with lib/concat-filename.c.
104020         (Makefile.am): Update.
104021         (Include): Replace pathname.h with filename.h.
104022         * lib/filename.h: Renamed from lib/pathname.h.
104023         (concatenated_filename): Renamed from concatenated_pathname.
104024         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104025         (concatenated_filename): Renamed from concatenated_pathname.
104026         * lib/findprog.c: Include filename.h instead of pathname.h.
104027         (find_in_path): Update.
104028         * lib/javacomp.c: Include filename.h instead of pathname.h.
104029         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104030         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104031         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104032         is_oldgcj_14_13_usable, is_javac_usable): Update.
104033         * lib/javaexec.c: Include filename.h instead of pathname.h.
104034         (execute_java_class): Update.
104035         * modules/findprog: Update.
104036         * modules/javacomp: Update.
104037         * modules/javaexec: Update.
104038         * MODULES.html.sh (File system functions): Add 'filename', remove
104039         'pathname'.
104041 2007-02-25  Bruno Haible  <bruno@clisp.org>
104043         * modules/printf-frexpl-tests: New file.
104044         * tests/test-printf-frexpl.c: New file.
104046         * modules/printf-frexpl: New file.
104047         * lib/printf-frexpl.h: New file.
104048         * lib/printf-frexpl.c: New file.
104049         * m4/printf-frexpl.m4: New file.
104051 2007-02-25  Bruno Haible  <bruno@clisp.org>
104053         * modules/printf-frexp-tests: New file.
104054         * tests/test-printf-frexp.c: New file.
104056         * modules/printf-frexp: New file.
104057         * lib/printf-frexp.h: New file.
104058         * lib/printf-frexp.c: New file.
104059         * m4/printf-frexp.m4: New file.
104061 2007-02-25  Bruno Haible  <bruno@clisp.org>
104063         Assume automake >= 1.10 for the tests.
104064         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104065         * modules/arctwo-tests: Likewise.
104066         * modules/argp-tests: Likewise.
104067         * modules/avltree-list-tests: Likewise.
104068         * modules/avltree-oset-tests: Likewise.
104069         * modules/avltreehash-list-tests: Likewise.
104070         * modules/carray-list-tests: Likewise.
104071         * modules/crc-tests: Likewise.
104072         * modules/des-tests: Likewise.
104073         * modules/gc-arcfour-tests: Likewise.
104074         * modules/gc-arctwo-tests: Likewise.
104075         * modules/gc-des-tests: Likewise.
104076         * modules/gc-hmac-md5-tests: Likewise.
104077         * modules/gc-hmac-sha1-tests: Likewise.
104078         * modules/gc-md2-tests: Likewise.
104079         * modules/gc-md4-tests: Likewise.
104080         * modules/gc-md5-tests: Likewise.
104081         * modules/gc-pbkdf2-sha1-tests: Likewise.
104082         * modules/gc-rijndael-tests: Likewise.
104083         * modules/gc-sha1-tests: Likewise.
104084         * modules/gc-tests: Likewise.
104085         * modules/getaddrinfo-tests: Likewise.
104086         * modules/hmac-md5-tests: Likewise.
104087         * modules/hmac-sha1-tests: Likewise.
104088         * modules/linked-list-tests: Likewise.
104089         * modules/linkedhash-list-tests: Likewise.
104090         * modules/lock-tests: Likewise.
104091         * modules/md2-tests: Likewise.
104092         * modules/md4-tests: Likewise.
104093         * modules/md5-tests: Likewise.
104094         * modules/rbtree-list-tests: Likewise.
104095         * modules/rbtree-oset-tests: Likewise.
104096         * modules/rbtreehash-list-tests: Likewise.
104097         * modules/read-file-tests: Likewise.
104098         * modules/rijndael-tests: Likewise.
104099         * modules/stdint-tests: Likewise.
104100         * modules/tls-tests: Likewise.
104102 2007-02-24  Bruno Haible  <bruno@clisp.org>
104104         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104105         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104106         function; instead check whether isnan with a double argument links.
104107         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104108         function; instead check whether isnan with a 'long double' argument
104109         links.
104110         Reported by Eric Blake <ebb9@byu.net>.
104112 2007-02-24  Bruno Haible  <bruno@clisp.org>
104114         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104115         defined.
104116         * lib/isnanl.c: Remove all code. Just include isnan.c.
104117         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104119 2007-02-25  Jim Meyering  <jim@meyering.net>
104121         Avoid conflicting types for 'unsetenv' on FreeBSD.
104122         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104123         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104124         in stdlib.h.
104126 2007-02-24  Bruno Haible  <bruno@clisp.org>
104128         * modules/isnanl-nolibm-tests: New file.
104129         * tests/test-isnanl.c: New file.
104131         * modules/isnanl-nolibm: New file.
104132         * lib/isnanl.h: New file.
104133         * lib/isnanl.c: New file.
104134         * m4/isnanl.m4: New file.
104136 2007-02-24  Bruno Haible  <bruno@clisp.org>
104138         * modules/isnan-nolibm-tests: New file.
104139         * tests/test-isnan.c: New file.
104141         * modules/isnan-nolibm: New file.
104142         * lib/isnan.h: New file.
104143         * lib/isnan.c: New file.
104144         * m4/isnan.m4: New file.
104146 2007-02-24  Bruno Haible  <bruno@clisp.org>
104148         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104149         assume that an exponent fits in 20 bits.
104151 2007-02-24  Jim Meyering  <jim@meyering.net>
104153         * m4/regex.m4: Update the description of the configure-time option,
104154         --without-included-regex, to state accurately what the defaults are,
104155         and perhaps to give people an idea why using this option is risky.
104157 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104160         loops on small arguments.  This attempts to avoid the problem
104161         Bruno Haible reported for AIX 4.3.2 in
104162         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104164 2007-02-23  Bruno Haible  <bruno@clisp.org>
104166         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104167         Needed for help2man.
104169 2007-02-23  Karl Berry  <karl@gnu.org>
104171         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104172         exists, foo.h should be cvs-ignored, not committed.
104174 2007-02-23  Eric Blake  <ebb9@byu.net>
104176         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104177         * lib/stat-time.h (includes): Likewise.
104178         * lib/utimecmp.c (includes): Likewise.
104179         * lib/utimens.h (includes): Likewise.
104180         * lib/getdate.y (includes): Also include "timespec.h" for use
104181         internal to the module.
104182         * modules/utimens (Depends-on): Revert yesterday's patch.
104183         * modules/nanosleep (Depends-on): Add missing dependency.
104185 2007-02-22  Bruno Haible  <bruno@clisp.org>
104187         * lib/glob.c: Don't include getlogin_r.h.
104189 2007-02-22  Jim Meyering  <jim@meyering.net>
104191         * modules/utimens (Depends-on): Add timespec, required for
104192         utimens.h's inclusion of timespec.h.
104194 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104196         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104197         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104198         Schwab in
104199         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104200         I'll try to think of a better way to fix the Solaris problem.
104202         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104203         like glibc; on Solaris 10, it fails with errno == EINVAL.
104204         POSIX says the behavior is unspecified if the first argument is NULL,
104205         so play it safe and never pass NULL to the system getcwd.
104207 2007-02-21  Jim Meyering  <jim@meyering.net>
104209         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104210         of gettimeofday.  It would conflict with the one now always
104211         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104212         an IRIX 6.5 build failure.
104214 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104216         Minor fixups to port to Solaris 10 with Sun C 5.8.
104217         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104218         * modules/getcwd (Depends-on): Add dirfd.
104219         * lib/putenv.c (putenv): #undef it.
104220         (rpl_putenv): New decl.
104221         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104223 2007-02-20  Bruno Haible  <bruno@clisp.org>
104225         * modules/stdio-tests: New file.
104226         * tests/test-stdio.c: New file.
104228         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104229         (Depends-on): Add stdio.
104230         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104231         (Include): Use <stdio.h> instead of vsnprintf.h.
104232         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104233         HAVE_DECL_VSNPRINTF.
104234         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104236         * modules/snprintf (Files): Remove lib/snprintf.h.
104237         (Depends-on): Add stdio.
104238         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104239         (Include): Use <stdio.h> instead of snprintf.h.
104240         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104241         HAVE_DECL_SNPRINTF.
104242         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104243         * lib/getaddrinfo.c: Likewise.
104245         * modules/stdio: New file.
104246         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104247         * lib/snprintf.h: Remove file.
104248         * lib/vsnprintf.h: Remove file.
104249         * lib/.cppi-disable: Remove snprintf.h.
104250         * m4/stdio_h.m4: New file.
104251         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104253 2007-02-20  Jim Meyering  <jim@meyering.net>
104255         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104256         used by e.g., mingw.  From Bruno Haible.
104258 2007-02-19  Bruno Haible  <bruno@clisp.org>
104260         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104261         warnings.
104262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104264 2007-02-19  Bruno Haible  <bruno@clisp.org>
104266         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104267         from mingw users.
104269 2007-02-19  Bruno Haible  <bruno@clisp.org>
104271         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104272         warnings.
104273         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104275 2007-02-19  Jim Meyering  <jim@meyering.net>
104277         Don't use FD after a successful "fdopendir (fd)".
104278         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104279         Reset it by calling dirfd on the just-obtained DIR*.
104281         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104282         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104284 2007-02-18  Bruno Haible  <bruno@clisp.org>
104286         * lib/readlink.c: Include <unistd.h>.
104287         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104288         HAVE_READLINK.
104289         * modules/readlink (Depends-on): Add unistd.
104290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104291         (Include): Add <unistd.h>.
104293         * lib/getlogin_r.h: Remove file.
104294         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104295         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104296         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104297         HAVE_DECL_GETLOGIN_R.
104298         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104300         (Include): Use <unistd.h> instead of getlogin_r.h.
104302         * lib/getcwd.h: Remove file.
104303         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104304         * lib/xgetcwd.c: Likewise.
104305         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104306         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104307         * modules/getcwd (Files): Remove lib/getcwd.h.
104308         (Depends-on): Add unistd.
104309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104310         (Include): Use <unistd.h> instad of getcwd.h.
104312         * lib/ftruncate.c: Include <unistd.h> first.
104313         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104314         Set HAVE_FTRUNCATE.
104315         * modules/ftruncate (Depends-on): Add unistd.
104316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104318         * lib/fchdir.c: Include <unistd.h> first.
104319         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104321         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104322         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104323         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104325         * lib/dup2.c: Include <unistd.h> first.
104326         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104327         HAVE_DUP2.
104328         * modules/dup2 (Depends-on): Add unistd.
104329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104331         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104332         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104333         REPLACE_CHOWN. Don't define chown as a macro here.
104334         * modules/chown (Depends-on): Add unistd.
104335         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104337         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104338         Add definition for GL_LINK_WARNING.
104339         (chown, dup2): New declarations.
104340         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104341         link warning.
104342         (ftruncate): New declaration.
104343         (getcwd): New declaration, taken from old getcwd.h.
104344         (getlogin_r): New declaration, taken from old getlogin_r.h.
104345         (readlink): New declaration.
104346         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104347         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104348         (gl_PREREQ_UNISTD): Remove macro.
104349         (gl_UNISTD_MODULE_INDICATOR): New macro.
104350         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104351         many new variables. Don't set UNISTD_H.
104352         * modules/unistd (Description): Change.
104353         (Depends-on): Add link-warning.
104354         (configure.ac): Update.
104355         (Makefile.am): Create unistd.h always. Substitute many new variables
104356         into it.
104358 2007-02-18  Bruno Haible  <bruno@clisp.org>
104360         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104361         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104362         HAVE_GETSUBOPT.
104363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104364         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104365         * lib/getsubopt.h: Remove file.
104366         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104367         (Depends-on): Add stdlib.
104368         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104369         (Includes): Use <stdlib.h> instead of getsubopt.h.
104370         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104371         Set HAVE_GETSUBOPT.
104372         * lib/getsubopt.c: Don't include getsubopt.h.
104374 2007-02-18  Bruno Haible  <bruno@clisp.org>
104376         * modules/fchdir (Depends-on): Add dup2.
104378 2007-02-18  Bruno Haible  <bruno@clisp.org>
104380         * lib/stdlib_.h: Handle glibc's special invocation convention
104381         specially.
104383 2007-02-18  Bruno Haible  <bruno@clisp.org>
104385         * modules/stdlib-tests: New file.
104386         * tests/test-stdlib.c: New file.
104388         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104389         (Depends-on): Add stdlib.
104390         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104391         (Includes): Use <stdlib.h> instead of mkstemp.h.
104392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104393         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104394         * lib/mkstemp.c: Don't include mkstemp.h.
104395         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104396         * lib/stdlib--.h: Don't include mkstemp.h.
104398         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104399         (Depends-on): Add stdlib.
104400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104401         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104402         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104403         HAVE_MKDTEMP.
104404         * lib/mkdtemp.c: Don't include mkdtemp.h.
104405         * lib/clean-temp.c: Don't include mkdtemp.h.
104407         * modules/exit (Files): Remove lib/exit.h.
104408         (Depends-on): Add stdlib.
104409         (Makefile.am): Remove lib_SOURCES.
104410         (Include): Use <stdlib.h> instead of exit.h.
104411         * lib/argmatch.c: Don't include exit.h.
104412         * lib/execute.c: Likewise.
104413         * lib/pagealign_alloc.c: Likewise.
104414         * lib/pipe.c: Likewise.
104415         * lib/wait-process.c: Likewise.
104416         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
104417         * lib/exitfail.c: Likewise.
104418         * lib/savewd.c: Likewise.
104419         * lib/xsetenv.c: Likewise.
104421         * modules/stdlib: New file.
104422         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
104423         and extra comments about mkstemp().
104424         * lib/exit.h: Remove file.
104425         * lib/mkdtemp.h: Remove file.
104426         * lib/mkstemp.h: Remove file.
104427         * m4/stdlib_h.m4: New file.
104428         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
104430 2007-02-18  Bruno Haible  <bruno@clisp.org>
104432         * modules/math-tests: New file.
104433         * tests/test-math.c: New file.
104435         * modules/math: New file.
104436         * modules/mathl (Files): Remove lib/mathl.h.
104437         (Depends-on): Add math.
104438         (Makefile.am): Don't mention mathl.h.
104439         (Include): Use <math.h> instead of mathl.h.
104440         * lib/math_.h: New file.
104441         * lib/mathl.h: Remove file.
104442         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104443         mathl.h.
104444         * lib/asinl.c: Likewise.
104445         * lib/atanl.c: Likewise.
104446         * lib/ceill.c: Likewise.
104447         * lib/cosl.c: Likewise.
104448         * lib/expl.c: Likewise.
104449         * lib/floorl.c: Likewise.
104450         * lib/frexpl.c: Likewise.
104451         * lib/ldexpl.c: Likewise.
104452         * lib/logl.c: Likewise.
104453         * lib/sincosl.c: Likewise.
104454         * lib/sinl.c: Likewise.
104455         * lib/sqrtl.c: Likewise.
104456         * lib/tanl.c: Likewise.
104457         * lib/trigl.c: Likewise.
104458         * m4/math_h.m4: New file.
104459         * MODULES.html.sh (Mathematics): Add math.
104461 2007-02-17  Bruno Haible  <bruno@clisp.org>
104463         * modules/wctype-tests: New file.
104464         * tests/test-wctype.c: New file.
104466         * modules/wchar-tests: New file.
104467         * tests/test-wchar.c: New file.
104469         * modules/unistd-tests: New file.
104470         * tests/test-unistd.c: New file.
104472         * modules/time-tests: New file.
104473         * tests/test-time.c: New file.
104475         * modules/sysexits-tests: New file.
104476         * tests/test-sysexits.c: New file.
104478         * modules/sys_time-tests: New file.
104479         * tests/test-sys_time.c: New file.
104481         * modules/sys_stat-tests: New file.
104482         * tests/test-sys_stat.c: New file.
104484         * modules/sys_socket-tests: New file.
104485         * tests/test-sys_socket.c: New file.
104487         * modules/sys_select-tests: New file.
104488         * tests/test-sys_select.c: New file.
104490         * modules/string-tests: New file.
104491         * tests/test-string.c: New file.
104493         * modules/stdbool-tests: New file.
104494         * tests/test-stdbool.c: New file.
104496         * modules/netinet_in-tests: New file.
104497         * tests/test-netinet_in.c: New file.
104499         * modules/inttypes-tests: New file.
104500         * tests/test-inttypes.c: New file.
104502         * modules/fcntl-tests: New file.
104503         * tests/test-fcntl.c: New file.
104505         * modules/byteswap-tests: New file.
104506         * tests/test-byteswap.c: New file.
104508         * modules/arpa_inet-tests: New file.
104509         * tests/test-arpa_inet.c: New file.
104511 2007-02-17  Bruno Haible  <bruno@clisp.org>
104513         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104514         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104515         if the corresponding module is not enabled. Emit link warnings if
104516         the function is used nevertheless.
104517         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104518         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104519         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104520         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104521         * modules/inttypes (Depends-on): Add link-warning.
104522         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104523         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104524         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104525         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104526         * modules/imaxdiv (configure.ac): Likewise.
104527         * modules/strtoimax (configure.ac): Likewise.
104528         * modules/strtoumax (configure.ac): Likewise.
104530 2007-02-17  Bruno Haible  <bruno@clisp.org>
104532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104533         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104534         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104535         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104537 2007-02-17  Bruno Haible  <bruno@clisp.org>
104539         * modules/link-warning: New file.
104540         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104541         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104542         * modules/string (Depends-on): Add link-warning.
104543         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104544         string.h.
104545         * MODULES.html.sh (Support for building libraries and executables): Add
104546         link-warning.
104548 2007-02-17  Bruno Haible  <bruno@clisp.org>
104550         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104551         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104552         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104553         long lines.
104555 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104556             Bruno Haible  <bruno@clisp.org>
104558         * modules/tmpfile: New file.
104559         * lib/tmpfile.c: New file.
104560         * m4/tmpfile.m4: New file.
104561         * MODULES.html.sh (func_all_modules): New section "Input/output".
104563 2007-02-15  Bruno Haible  <bruno@clisp.org>
104565         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104566         (supports_delete_on_close): New function.
104567         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104569 2007-02-14  Bruno Haible  <bruno@clisp.org>
104571         * modules/mbspcasecmp-tests: New file.
104572         * tests/test-mbspcasecmp.sh: New file.
104573         * tests/test-mbspcasecmp.c: New file.
104575         New module mbspcasecmp.
104576         * modules/mbspcasecmp: New file.
104577         * lib/mbspcasecmp.c: New file.
104578         * lib/string_.h (strncasecmp): Change warning message.
104579         (mbspcasecmp): New declaration.
104580         * m4/mbspcasecmp.m4: New file.
104581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104582         GNULIB_MBSPCASECMP.
104583         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104584         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104586 2007-02-14  Bruno Haible  <bruno@clisp.org>
104588         * modules/mbsncasecmp-tests: New file.
104589         * tests/test-mbsncasecmp.sh: New file.
104590         * tests/test-mbsncasecmp.c: New file.
104592         New module mbsncasecmp.
104593         * modules/mbsncasecmp: New file.
104594         * lib/mbsncasecmp.c: New file.
104595         * lib/string_.h (mbsncasecmp): New declaration.
104596         * m4/mbsncasecmp.m4: New file.
104597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104598         GNULIB_MBSNCASECMP.
104599         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104600         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104602 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104604         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104605         Verify that it doesn't overlap with our flags.
104606         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104607         do not have the desired effect in multibyte locales; instead, use
104608         mbscasecmp.
104609         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104610         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104611         we don't require GNU fnmatch ourselves (if our users require it, they
104612         should do so explicitly).
104614         Fix regex code so it doesn't rely on strcasecmp.
104615         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104616         Otherwise, include gnulib's langinfo.h.
104617         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104618         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104619         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104620         * modules/regex (FILES): Remove m4/codeset.m4.
104621         (Depends-on): Add localcharset.  Remove strcase.
104623 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104625         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104626         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104628 2007-02-13  Bruno Haible  <bruno@clisp.org>
104630         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104631         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104633 2007-02-12  Bruno Haible  <bruno@clisp.org>
104635         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104636         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104637         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104638         time warning rather than a link error.
104640 2007-02-12  Bruno Haible  <bruno@clisp.org>
104642         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104643         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104646 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104648         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104649         args, not 2.
104651 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104653         New module 'time', so that apps can include <time.h> as per
104654         POSIX and GNU instead of separate include files like time_r.h
104655         and timegm.h.  This implementation tries out a simpler approach
104656         for replacing decls in standard include files (as compared to
104657         the string module), somewhat as an experiment.
104659         * config/srclist.txt: Comment out mktime.c for now.
104660         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104661         since it doesn't apply any more.  Use generic wording instead.
104662         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104663         'time'.
104664         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104665         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104666         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104667         Don't include <sys/types.h>; no longer needed since we assume C89.
104668         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104669         * lib/strftime.c: Likewise.
104670         * lib/time_r.c: Likewise.
104671         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104672         * lib/nanosleep.c: Include <time.h> first, to check interface.
104673         * lib/strptime.c: Likewise.
104674         * lib/time_r.c: Likewise.
104675         * lib/timegm.c: Likewise.
104676         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104677         needed.
104678         * lib/timegm.c: Don't include timegm.h; no longer needed.
104679         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104680         time.h now handles any problems in that area.
104681         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104682         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104683         that time.h defines struct timespec.
104684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104685         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104686         handles that.
104687         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104688         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104689         needed.  Set REPLACE_LOCALTIME.
104690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104691         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104692         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104693         nanosleep; time_h.m4 now does that.  Don't require
104694         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104695         module handles this now.
104696         * modules/getdate (Depends-on): Remove timespec.  Add time.
104697         * modules/nanosleep (Depends-on): Likewise.
104698         * modules/stat-time (Depends-on): Likewise.
104699         * modules/nanosleep (Include): Include time.h, not timespec.h.
104700         * modules/strptime (Files): Remove lib/strptime.h.
104701         (Depends-on): Add extensions, time.
104702         (Include): Include time.h, not strptime.h.
104703         * modules/time_r (Files): Remove lib/time_r.h.
104704         (Depends-on): Add time.
104705         (Include): Include time.h, not time_r.h.
104706         * modules/timegm: Likewise.
104707         * modules/timespec (Description): Now does timespec-related decls
104708         of our own, instead of struct timespec itself.
104709         (Depends-on): Add time; remove extensions.
104710         (Maintainer): Add self.
104711         * modules/utimecmp (Depends-on): Add time; remove timespec.
104712         * modules/utimens (Depends-on): Likewise.
104713         * modules/xnanosleep (Depends-on): Likewise.
104715 2007-02-11  Bruno Haible  <bruno@clisp.org>
104717         * lib/c-strstr.c: Include allocsa.h.
104718         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104719         * lib/c-strcasestr.c: Include allocsa.h.
104720         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104721         * lib/strcasestr.c: Include allocsa.h.
104722         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104723         * lib/mbsstr.c: Include allocsa.h.
104724         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104725         allocsa/freesa instead of malloc/free.
104726         * lib/mbscasestr.c: Include allocsa.h.
104727         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104728         allocsa/freesa instead of malloc/free.
104729         * modules/c-strstr (Depends-on): Add allocsa.
104730         * modules/c-strcasestr (Depends-on): Likewise.
104731         * modules/strcasestr (Depends-on): Likewise.
104732         * modules/mbsstr (Depends-on): Likewise.
104733         * modules/mbscasestr (Depends-on): Likewise.
104735 2007-02-11  Bruno Haible  <bruno@clisp.org>
104737         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104739         * modules/mbsspn-tests: New file.
104740         * tests/test-mbsspn.sh: New file.
104741         * tests/test-mbsspn.c: New file.
104743 2007-02-11  Bruno Haible  <bruno@clisp.org>
104745         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104747         * modules/mbspbrk-tests: New file.
104748         * tests/test-mbspbrk.sh: New file.
104749         * tests/test-mbspbrk.c: New file.
104751 2007-02-11  Bruno Haible  <bruno@clisp.org>
104753         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104754         unneeded cast.
104756         * modules/mbscspn-tests: New file.
104757         * tests/test-mbscspn.sh: New file.
104758         * tests/test-mbscspn.c: New file.
104760 2007-02-11  Bruno Haible  <bruno@clisp.org>
104762         * modules/mbscasecmp-tests: New file.
104763         * tests/test-mbscasecmp.sh: New file.
104764         * tests/test-mbscasecmp.c: New file.
104766 2007-02-11  Bruno Haible  <bruno@clisp.org>
104768         Ensure O(n) worst-case complexity of mbscasestr.
104769         * lib/mbscasestr.c: Include stdbool.h.
104770         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104771         functions.
104772         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104773         the bookkeeping indicates that it's worth it.
104774         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104776         * modules/mbscasestr-tests: New file.
104777         * tests/test-mbscasestr1.c: New file.
104778         * tests/test-mbscasestr2.sh: New file.
104779         * tests/test-mbscasestr2.c: New file.
104780         * tests/test-mbscasestr3.sh: New file.
104781         * tests/test-mbscasestr3.c: New file.
104782         * tests/test-mbscasestr4.sh: New file.
104783         * tests/test-mbscasestr4.c: New file.
104784         * m4/locale-tr.m4: New file.
104786 2007-02-11  Bruno Haible  <bruno@clisp.org>
104788         Ensure O(n) worst-case complexity of mbsstr.
104789         * lib/mbsstr.c: Include stdbool.h.
104790         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104791         functions.
104792         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104793         bookkeeping indicates that it's worth it.
104794         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104796         * modules/mbsstr-tests: New file.
104797         * tests/test-mbsstr1.c: New file.
104798         * tests/test-mbsstr2.sh: New file.
104799         * tests/test-mbsstr2.c: New file.
104800         * tests/test-mbsstr3.sh: New file.
104801         * tests/test-mbsstr3.c: New file.
104802         * m4/locale-fr.m4: New file.
104804 2007-02-11  Bruno Haible  <bruno@clisp.org>
104806         * lib/mbsrchr.c (mbsrchr): Fix bug.
104808         * modules/mbsrchr-tests: New file.
104809         * tests/test-mbsrchr.sh: New file.
104810         * tests/test-mbsrchr.c: New file.
104812 2007-02-11  Bruno Haible  <bruno@clisp.org>
104814         * lib/mbschr.c (mbschr): Fix bug.
104816         * modules/mbschr-tests: New file.
104817         * tests/test-mbschr.sh: New file.
104818         * tests/test-mbschr.c: New file.
104819         * m4/locale-zh.m4: New file.
104821 2007-02-11  Bruno Haible  <bruno@clisp.org>
104823         Support for copying multibyte string iterators.
104824         * lib/mbiter.h: Include <string.h>.
104825         (mbiter_multi_copy): New function.
104826         (mbi_copy): New macro.
104827         * lib/mbuiter.h: Include <string.h>.
104828         (mbuiter_multi_copy): New function.
104829         (mbui_copy): New macro.
104831 2007-02-11  Bruno Haible  <bruno@clisp.org>
104833         New module mbslen.
104834         * modules/mbslen: New file.
104835         * lib/mbslen.c: New file.
104836         * lib/string_.h (mbslen): New declaration.
104837         * m4/mbslen.m4: New file.
104838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104839         GNULIB_MBSLEN.
104840         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104841         * MODULES.html.sh (Internationalization functions): Add mbslen.
104843 2007-02-11  Bruno Haible  <bruno@clisp.org>
104845         Ensure O(n) worst-case complexity of strcasestr substitute.
104846         * lib/strcasestr.c: Include stdbool.h.
104847         (knuth_morris_pratt): New function.
104848         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104849         bookkeeping indicates that it's worth it.
104850         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104852         * modules/strcasestr-tests: New file.
104853         * tests/test-strcasestr.c: New file.
104855 2007-02-11  Bruno Haible  <bruno@clisp.org>
104857         Ensure O(n) worst-case complexity of c_strcasestr.
104858         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104859         (knuth_morris_pratt): New function.
104860         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104861         the bookkeeping indicates that it's worth it.
104862         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104864         * modules/c-strcasestr-tests: New file.
104865         * tests/test-c-strcasestr.c: New file.
104867 2007-02-11  Bruno Haible  <bruno@clisp.org>
104869         Ensure O(n) worst-case complexity of c_strstr.
104870         * lib/c-strstr.c: Include stdbool.h, string.h.
104871         (knuth_morris_pratt): New function.
104872         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104873         bookkeeping indicates that it's worth it.
104874         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104876         * lib/c-strstr.c: Complete rewrite for maintainability.
104878         * modules/c-strstr-tests: New file.
104879         * tests/test-c-strstr.c: New file.
104881 2007-02-11  Bruno Haible  <bruno@clisp.org>
104883         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104884         5.2.1 and earlier, whereby \055 was treated just like the range
104885         delimiter '-'.
104886         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104888 2007-02-08  Bruno Haible  <bruno@clisp.org>
104890         * modules/regex (Depends-on): Add stdbool.
104891         Reported by Dalibor Topic <robilad@kaffe.org>.
104893 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104895         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104896         Prefer returning from main to exiting from it.
104897         Remove unnecessary parens after sizeof.
104899 2007-02-05  Bruno Haible  <bruno@clisp.org>
104901         New module mbssep.
104902         * modules/mbssep: New file.
104903         * lib/mbssep.c: New file.
104904         * lib/string_.h (strsep): Add a conditional link warning.
104905         (mbssep): New declaration.
104906         * m4/mbssep.m4: New file.
104907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104908         GNULIB_MBSSEP.
104909         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104910         * MODULES.html.sh (Internationalization functions): Add mbssep.
104912 2007-02-05  Bruno Haible  <bruno@clisp.org>
104914         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104915         Optimize search in case of 1 delimiter.
104917 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104919         * lib/acl.h: Include sys/types.h before sys/acl.h.
104921 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104923         Merge upstream fix for glibc bugzilla #3957:
104925         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104927         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104928         bit for RE_HAT_LISTS_NOT_NEWLINE.
104929         (build_charclass_op): Remove bogus comment.
104931 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104933         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104935 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104937         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104938         * lib/memmem.c [!defined _LIBC]: Include config.h.
104940 2007-02-04  Bruno Haible  <bruno@clisp.org>
104942         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104943         warning message.
104945 2007-02-04  Bruno Haible  <bruno@clisp.org>
104947         New module mbstok_r.
104948         * modules/mbstok_r: New file.
104949         * lib/mbstok_r.c: New file.
104950         * lib/string_.h (strtok_r): Change argument names to match the
104951         comments. Add a conditional link warning.
104952         (mbstok_r): New declaration.
104953         * m4/mbstok_r.m4: New file.
104954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104955         GNULIB_MBSTOK_R.
104956         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104957         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104959 2007-02-04  Bruno Haible  <bruno@clisp.org>
104961         New module mbsspn.
104962         * modules/mbsspn: New file.
104963         * lib/mbsspn.c: New file.
104964         * lib/string_.h (strspn): Add a conditional link warning.
104965         (mbsspn): New declaration.
104966         * m4/mbsspn.m4: New file.
104967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104968         GNULIB_MBSSPN.
104969         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104970         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104972 2007-02-04  Bruno Haible  <bruno@clisp.org>
104974         New module mbspbrk.
104975         * modules/mbspbrk: New file.
104976         * lib/mbspbrk.c: New file.
104977         * lib/string_.h (strpbrk): Add a conditional link warning.
104978         (mbspbrk): New declaration.
104979         * m4/mbspbrk.m4: New file.
104980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104981         GNULIB_MBSPBRK.
104982         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104983         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104985 2007-02-04  Bruno Haible  <bruno@clisp.org>
104987         New module mbscspn.
104988         * modules/mbscspn: New file.
104989         * lib/mbscspn.c: New file.
104990         * lib/string_.h (strcspn): Add a conditional link warning.
104991         (mbscspn): New declaration.
104992         * m4/mbscspn.m4: New file.
104993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104994         GNULIB_MBSCSPN.
104995         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104996         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104998 2007-02-04  Bruno Haible  <bruno@clisp.org>
105000         New module mbscasestr, reduced goal of strcasestr.
105001         * modules/mbscasestr: New file.
105002         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105003         (mbscasestr): Renamed from strcasestr.
105004         * lib/strcasestr.c: Don't include mbuiter.h.
105005         (strcasestr): Remove support for multibyte locales.
105006         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105007         Change the conditional link warning.
105008         (mbscasestr): New declaration.
105009         * m4/mbscasestr.m4: New file.
105010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105011         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105012         REPLACE_STRCASESTR.
105013         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105015         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105016         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105017         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105018         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105019         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105020         (Depends-on): Remove mbuiter.
105021         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105023 2007-02-04  Bruno Haible  <bruno@clisp.org>
105025         Simplify handling of strncasecmp.
105026         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105027         the conditional link warning.
105028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105029         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105031         * modules/strcase (configure.ac): Don't invoke
105032         gl_STRING_MODULE_INDICATOR.
105033         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105035 2007-02-04  Bruno Haible  <bruno@clisp.org>
105037         New module mbscasecmp, reduced goal of strcasecmp.
105038         * modules/mbscasecmp: New file.
105039         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105040         (mbscasecmp): Renamed from strcasecmp.
105041         * lib/strcasecmp.c: Don't include mbuiter.h.
105042         (strcasecmp): Remove support for multibyte locales.
105043         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105044         Change the conditional link warning.
105045         (mbscasecmp): New declaration.
105046         * m4/mbscasecmp.m4: New file.
105047         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105048         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105049         REPLACE_STRCASECMP.
105050         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105052         GNULIB_MBSCASECMP.
105053         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105054         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105055         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105056         (Depends-on): Remove mbuiter.
105057         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105059 2007-02-04  Bruno Haible  <bruno@clisp.org>
105061         New module mbsstr. Remove module strstr.
105062         * modules/mbsstr: New file.
105063         * modules/strstr: Remove file.
105064         * lib/mbsstr.c: Renamed from lib/strstr.c.
105065         (mbsstr): Renamed from strstr.
105066         * lib/string_.h (strstr): Remove declaration. Change the conditional
105067         link warning.
105068         (mbsstr): New declaration.
105069         * m4/mbsstr.m4: New file.
105070         * m4/strstr.m4: Remove file.
105071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105072         REPLACE_STRSTR.
105073         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105074         Don't initialize GNULIB_STRSTR.
105075         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105076         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105077         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105078         (Support for systems lacking ANSI C 89): Remove strstr.
105080 2007-02-04  Bruno Haible  <bruno@clisp.org>
105082         New module mbsrchr.
105083         * modules/mbsrchr: New file.
105084         * lib/mbsrchr.c: New file.
105085         * lib/string_.h (strrchr): Add a conditional link warning.
105086         (mbsrchr): New declaration.
105087         * m4/mbsrchr.m4: New file.
105088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105089         GNULIB_MBSRCHR.
105090         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105091         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105093 2007-02-04  Bruno Haible  <bruno@clisp.org>
105095         New module mbschr.
105096         * modules/mbschr: New file.
105097         * lib/mbschr.c: New file.
105098         * lib/string_.h (strchr): Add a conditional link warning.
105099         (mbschr): New declaration.
105100         * m4/mbschr.m4: New file.
105101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105102         GNULIB_MBSCHR.
105103         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105104         * MODULES.html.sh (Internationalization functions): Add mbschr.
105106 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105108         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105110         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105112 2007-02-04  Bruno Haible  <bruno@clisp.org>
105114         New module description section 'configure.ac-early'.
105115         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105116         (func_get_autoconf_early_snippet): New function.
105117         (func_import, func_create_testdir): Use it. Remove special cases for
105118         modules 'extensions' and 'lock'.
105119         * modules/extensions (configure.ac-early): Require
105120         gl_USE_SYSTEM_EXTENSIONS.
105121         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105123 2007-02-04  Bruno Haible  <bruno@clisp.org>
105125         Make use of gcj-4.3's -fsource and -ftarget option.
105126         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105127         and if so try the options -fsource and -ftarget.
105128         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105129         source_version, ftarget_option, target_version arguments.
105130         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105131         (is_envjavac_oldgcj_14_14_usable): Renamed from
105132         is_envjavac_gcj_14_14_usable.
105133         (is_envjavac_oldgcj_14_13_usable): Renamed from
105134         is_envjavac_gcj_14_13_usable.
105135         (is_gcj_present): Update.
105136         (is_gcj_43, is_gcj43_usable): New functions.
105137         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105138         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105139         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105140         try the options -fsource and -ftarget.
105142 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105144         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105145         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105146         larger value.
105148 2007-02-03  Jim Meyering  <jim@meyering.net>
105150         Give tools a better chance to allocate space for very large buffers.
105151         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105153         Make pwd and readlink work also when run with an unreadable parent dir
105154         on systems with openat support.
105155         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105156         provided getcwd function, even when we have openat support.
105157         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105159 2007-02-02  Bruno Haible  <bruno@clisp.org>
105161         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105162         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105163         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105164         portability problems if one of these functions is only used on specific
105165         platforms.
105166         Reported by Paul Eggert.
105168 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105170         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105171         is causing more trouble than it's curing.
105172         * lib/regex_internal.h (__mempcpy): Remove.
105173         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105174         (and make the code a tad smaller to boot).
105175         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105177 2007-02-02  Jim Meyering  <jim@meyering.net>
105179         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105180         section, not in the Makefile.am: one.
105182 2007-02-02  Eric Blake  <ebb9@byu.net>
105184         * lib/strchrnul.c: Always include config.h first.
105186         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105187         gnulib strstr is not necessary here.
105189 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105191         * m4/socklen.m4: Fix typo.
105193 2007-02-02  Eric Blake  <ebb9@byu.net>
105195         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105196         * modules/netinet_in (Makefile.am): Likewise.
105198 2007-02-01  Bruno Haible  <bruno@clisp.org>
105200         * lib/string_.h (GL_LINK_WARNING): New macro.
105201         (strcasecmp, strstr, strcasestr): If provided by the system,
105202         conditionally define as a macro that leads to a warning instead of to
105203         an error.
105204         (strncasecmp): Conditionally define as a macro that leads to a warning.
105206 2007-02-01  Karl Berry  <karl@gnu.org>
105208         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105210 2007-02-01  Bruno Haible  <bruno@clisp.org>
105212         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105213         renamings.
105215 2007-02-01  Eric Blake  <ebb9@byu.net>
105217         * modules/regex (Depends-on): Revert dependence on mempcpy.
105218         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105219         module's definition of mempcpy.
105220         Reported by Paul Eggert.
105222 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105224         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105225         the symbol XYZ before redefining it.  This fixes a problem with
105226         programs that don't use XYZ, when compiled on systems that define
105227         XYZ to something else.
105229 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105231         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105232         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105233         writeable to group or other and (2) is intended to have a special
105234         mode bit that is set or cleared.  In such a case, the directory
105235         should be neither group- nor other-writeable until the special
105236         mode bits are right.
105238 2007-01-31  Eric Blake  <ebb9@byu.net>
105240         * modules/mountlist (Depends-on): Add strstr.
105242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105243         bug.
105244         * modules/string (Makefile.am): Remove redundant replacement.
105245         * modules/regex (Depends-on): Add mempcpy.
105247 2007-01-31  Bruno Haible  <bruno@clisp.org>
105249         New module description field 'Link'.
105250         * gnulib-tool (func_usage): Document --extract-link-directive.
105251         (sed_extract_prog): Recognize 'Link' directive.
105252         (func_get_link_directive): New function.
105253         (func_import): Show summary of link directives.
105254         Handle --extract-link-directive option.
105255         * modules/acl (Link): New section.
105256         * modules/clock-time (Link): New section.
105257         * modules/euidaccess (Link): New section.
105258         * modules/gettext (Link): New section.
105259         * modules/iconv (Link): New section.
105260         * modules/lock (Link): New section.
105261         * modules/nanosleep (Link): New section.
105262         * modules/readline (Link): New section.
105264 2007-01-27  Bruno Haible  <bruno@clisp.org>
105266         Enforce the use of gnulib modules for unportable <string.h> functions.
105267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105268         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105269         (gl_HEADER_STRING_H_BODY): Require it.
105270         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105271         the symbol XYZ to one that gives a link error.
105272         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105273         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105274         * modules/mempcpy (configure.ac): Likewise.
105275         * modules/memrchr (configure.ac): Likewise.
105276         * modules/stpcpy (configure.ac): Likewise.
105277         * modules/stpncpy (configure.ac): Likewise.
105278         * modules/strcase (configure.ac): Likewise.
105279         * modules/strcasestr (configure.ac): Likewise.
105280         * modules/strchrnul (configure.ac): Likewise.
105281         * modules/strdup (configure.ac): Likewise.
105282         * modules/strndup (configure.ac): Likewise.
105283         * modules/strnlen (configure.ac): Likewise.
105284         * modules/strpbrk (configure.ac): Likewise.
105285         * modules/strsep (configure.ac): Likewise.
105286         * modules/strstr (configure.ac): Likewise.
105287         * modules/strtok_r (configure.ac): Likewise.
105289 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105291         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105293 2007-01-30  Jim Meyering  <jim@meyering.net>
105295         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105297 2007-01-29  Bruno Haible  <bruno@clisp.org>
105299         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105300         * lib/execute.c: Likewise.
105301         * lib/pipe.c: Likewise.
105302         * lib/printf-args.h: Likewise.
105303         * lib/printf-args.c: Likewise.
105304         * lib/printf-parse.c: Likewise.
105305         * lib/vasnprintf.c: Likewise.
105307 2007-01-29  Eric Blake  <ebb9@byu.net>
105309         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105310         declaration.
105312 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105314         * lib/strptime.h (strptime): Use 'restrict' for args where
105315         POSIX requires this.
105316         * lib/strptime.c (strptime): Likewise.
105317         Change license notice from LGPL to GPL, since gnulib-tool will
105318         change this as needed.
105319         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105320         defined.
105321         Include "strptime.h" first, to check interface.
105322         Do not #undef _LIBC and _NL_CURRENT.
105323         Do not include <stdlib.h>; no longer needed.
105324         Include "time_r.h" and declare ptime_locale_status
105325         only if _LIBC is not defined.
105326         (__P): Remove unused macro.
105327         (match_string): Bring back glibc version, but use it only if _LIBC
105328         is defined.
105329         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105330         Remove unnecessary assertion and abort() call.
105331         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105332         * m4/strptime.m4: Fix serial number comment.
105333         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105334         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105335         (Depends-on): Add time_r.
105337 2007-01-29  Bruno Haible  <bruno@clisp.org>
105339         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105340         strptime.
105341         * modules/strptime (Depends-on): Add stdbool.
105342         * lib/strptime.h: Include <time.h> always. Add comments.
105344 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105346         * modules/strptime: New file.
105347         * lib/strptime.h: New file.
105348         * lib/strptime.c: New file.
105349         * m4/strptime.m4: New file.
105351 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105353         * MODULES.html.sh: New module mpsort.
105354         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105356         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105357         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105358         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105359         All uses changed.
105360         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105361         All uses changed.
105362         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105363         to _Restrict_.
105364         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105365         the parameter matches the prototype.
105367 2007-01-28  Jim Meyering  <jim@meyering.net>
105369         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105370         sys/time.h here, reverting that part of the previous patch:
105371         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105373 2007-01-28  Bruno Haible  <bruno@clisp.org>
105375         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105376         value of $(SYS_TIME_H).
105377         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105378         remove it conditionally, too. [added by Jim Meyering]
105379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105381         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105382         GETTIMEOFDAY_REPLACEMENT to 1.
105384 2007-01-28  Bruno Haible  <bruno@clisp.org>
105386         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105387         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105389         Set UNISTD_H instead of UNISTD_H2.
105390         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105392 2007-01-28  Bruno Haible  <bruno@clisp.org>
105394         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105395         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105397 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105399         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105400         (func_create_testdir): Ensure C locale for `grep' and `tr'
105401         character ranges.
105402         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105403         ACLOCAL_AMFLAGS parsing state machine.
105405 2007-01-27  Bruno Haible  <bruno@clisp.org>
105407         * modules/unistr/base: Update.
105409 2007-01-27  Bruno Haible  <bruno@clisp.org>
105411         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105412         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
105413         * modules/unistr/u32-mbtouc-unsafe: Renamed from
105414         modules/unistr/u32-mbtouc.
105415         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
105416         * lib/unistr.h: Update.
105417         * lib/linebreak.c: Update.
105418         * modules/unistr/u32-mbtouc: Renamed from
105419         modules/unistr/u32-mbtouc-safe.
105420         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
105421         * lib/unistr.h: Update.
105422         * lib/unistr/u32-to-u8.c: Update.
105423         * lib/unistr/u32-to-u16.c: Update.
105425 2007-01-27  Bruno Haible  <bruno@clisp.org>
105427         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
105428         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
105429         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
105430         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
105431         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
105432         * modules/unistr/u16-mbtouc-unsafe: Renamed from
105433         modules/unistr/u16-mbtouc.
105434         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
105435         * lib/unistr.h: Update.
105436         * lib/linebreak.c: Update.
105437         * modules/linebreak: Update.
105438         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105439         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105440         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105441         * modules/unistr/u16-mbtouc: Renamed from
105442         modules/unistr/u16-mbtouc-safe.
105443         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105444         * lib/unistr.h: Update.
105445         * lib/unistr/u16-to-u8.c: Update.
105446         * modules/unistr/u16-to-u8: Update.
105447         * lib/unistr/u16-to-u32.c: Update.
105448         * modules/unistr/u16-to-u32: Update.
105450 2007-01-27  Bruno Haible  <bruno@clisp.org>
105452         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105453         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105454         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105455         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105456         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105457         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105458         modules/unistr/u8-mbtouc.
105459         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105460         * lib/unistr.h: Update.
105461         * lib/striconveh.c: Update.
105462         * modules/striconveh: Update.
105463         * lib/linebreak.c: Update.
105464         * modules/linebreak: Update.
105465         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105466         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105467         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105468         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105469         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105470         * lib/unistr.h: Update.
105471         * lib/striconveh.c: Update.
105472         * modules/striconveh: Update.
105473         * lib/unistr/u8-to-u16.c: Update.
105474         * modules/unistr/u8-to-u16: Update.
105475         * lib/unistr/u8-to-u32.c: Update.
105476         * modules/unistr/u8-to-u32: Update.
105478 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105480         Sync from Libtool.
105481         * lib/argz.c: Do not include strings.h nor memory.h, include
105482         string.h unconditionally.  Patch by Simon Josefsson.
105484 2007-01-27  Bruno Haible  <bruno@clisp.org>
105486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105487         from gl_HEADER_STRING_H_BODY.
105488         (gl_HEADER_STRING_H_BODY): Require it.
105489         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105490         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105491         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105492         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105493         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105494         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105496         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105497         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105498         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105499         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105500         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105501         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105502         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105505 2007-01-27  Bruno Haible  <bruno@clisp.org>
105507         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105508         check_PROGRAMS into noinst_PROGRAMS.
105509         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105510         check_PROGRAMS in this case.
105511         (func_import): Set for_test to false.
105512         (func_create_testdir): Set for_test to true.
105514 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105515             Bruno Haible  <bruno@clisp.org>
105517         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105518         (Depends-on): Add string.
105519         (Includes): Use <string.h> instead of strcasestr.h.
105520         * modules/string (Makefile.am): Also substitute the value of
105521         REPLACE_STRCASESTR.
105522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105523         assume strcasestr is declared in <string.h> not <strings.h>. Also
105524         set REPLACE_STRCASESTR.
105525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105526         REPLACE_STRCASESTR.
105527         * lib/strcasestr.h: Remove file.
105528         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105529         * lib/string_.h (strcasestr): New declaration.
105531 2007-01-27  Bruno Haible  <bruno@clisp.org>
105533         * lib/string_.h: Use 'extern'.
105535 2007-01-27  Jim Meyering  <jim@meyering.net>
105537         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105538         of set-but-not-used local, "q".
105540         * lib/mempcpy.c: Include <config.h> before <string.h>.
105541         This fixes a compilation error on HP-UX, due to the system's
105542         "restrict"-using mempcpy prototype.
105544 2007-01-26  Bruno Haible  <bruno@clisp.org>
105546         Small optimization.
105547         * lib/javacomp.c: Include c-strstr.h.
105548          (is_envjavac_gcj): Use c_strstr instead of strstr.
105549         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105551 2007-01-26  Bruno Haible  <bruno@clisp.org>
105553         * MODULES.html.sh (Unicode string functions): Add the new modules.
105555         * modules/uniconv/u32-strconv-to-locale: New file.
105556         * lib/uniconv/u32-strconv-to-locale.c: New file.
105558         * modules/uniconv/u16-strconv-to-locale: New file.
105559         * lib/uniconv/u16-strconv-to-locale.c: New file.
105561         * modules/uniconv/u8-strconv-to-locale: New file.
105562         * lib/uniconv/u8-strconv-to-locale.c: New file.
105564         * modules/uniconv/u32-strconv-from-locale: New file.
105565         * lib/uniconv/u32-strconv-from-locale.c: New file.
105567         * modules/uniconv/u16-strconv-from-locale: New file.
105568         * lib/uniconv/u16-strconv-from-locale.c: New file.
105570         * modules/uniconv/u8-strconv-from-locale: New file.
105571         * lib/uniconv/u8-strconv-from-locale.c: New file.
105573         * modules/uniconv/u32-strconv-to-enc: New file.
105574         * lib/uniconv/u32-strconv-to-enc.c: New file.
105575         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105576         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105578         * modules/uniconv/u16-strconv-to-enc: New file.
105579         * lib/uniconv/u16-strconv-to-enc.c: New file.
105580         * lib/uniconv/u-strconv-to-enc.h: New file.
105581         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105582         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105584         * modules/uniconv/u8-strconv-to-enc: New file.
105585         * lib/uniconv/u8-strconv-to-enc.c: New file.
105586         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105587         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105589         * modules/uniconv/u32-strconv-from-enc: New file.
105590         * lib/uniconv/u32-strconv-from-enc.c: New file.
105591         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105592         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105594         * modules/uniconv/u16-strconv-from-enc: New file.
105595         * lib/uniconv/u16-strconv-from-enc.c: New file.
105596         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105597         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105599         * modules/uniconv/u8-strconv-from-enc: New file.
105600         * lib/uniconv/u8-strconv-from-enc.c: New file.
105601         * lib/uniconv/u-strconv-from-enc.h: New file.
105602         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105603         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105605         * modules/uniconv/u32-conv-from-enc: New file.
105606         * lib/uniconv/u32-conv-from-enc.c: New file.
105607         * modules/uniconv/u32-conv-from-enc-tests: New file.
105608         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105610         * modules/uniconv/u16-conv-from-enc: New file.
105611         * lib/uniconv/u16-conv-from-enc.c: New file.
105612         * lib/uniconv/u-conv-from-enc.h: New file.
105613         * modules/uniconv/u16-conv-from-enc-tests: New file.
105614         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105616         * modules/uniconv/u8-conv-from-enc: New file.
105617         * lib/uniconv/u8-conv-from-enc.c: New file.
105618         * modules/uniconv/u8-conv-from-enc-tests: New file.
105619         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105621         * modules/uniconv/base: New file.
105622         * lib/uniconv.h: New file.
105624 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105626         * doc/gnulib-tool.texi (Initial import): Update to match current
105627         behavior with strdup module.
105628         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105629         * lib/memmem.h: Remove; all uses removed.  This is now done
105630         by <string.h>.
105631         * lib/mempcpy.h: Likewise.
105632         * lib/memrchr.h: Likewise.
105633         * lib/stpcpy.h: Likewise.
105634         * lib/stpncpy.h: Likewise.
105635         * lib/strcase.h: Likewise.
105636         * lib/strchrnul.h: Likewise.
105637         * lib/strdup.h: Likewise.
105638         * lib/strndup.h: Likewise.
105639         * lib/strnlen.h: Likewise.
105640         * lib/strpbrk.h: Likewise.
105641         * lib/strsep.h: Likewise.
105642         * lib/strstr.h: Likewise.
105643         * lib/strtok_r.h: Likewise.
105644         * lib/string_.h: New file.
105645         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105646         Rely on <string.h> instead.
105647         * lib/canon-host.c: Likewise.
105648         * lib/chdir-long.c: Likewise.
105649         * lib/concatpath.c: Likewise.
105650         * lib/exclude.c: Likewise.
105651         * lib/fchdir.c: Likewise.
105652         * lib/getaddrinfo.c: Likewise.
105653         * lib/getcwd.c: Likewise.
105654         * lib/getsubopt.c: Likewise.
105655         * lib/glob.c: Likewise.
105656         * lib/hard-locale.c: Likewise.
105657         * lib/iconvme.c: Likewise.
105658         * lib/javacomp.c: Likewise.
105659         * lib/mempcpy.c: Likewise.
105660         * lib/memrchr.c: Likewise.
105661         * lib/regex_internal.h: Likewise.
105662         * lib/stpncpy.c: Likewise.
105663         * lib/strcasecmp.c: Likewise.
105664         * lib/strchrnul.c: Likewise.
105665         * lib/strdup.c: Likewise.
105666         * lib/striconv.c: Likewise.
105667         * lib/striconveh.c: Likewise.
105668         * lib/striconveha.c: Likewise.
105669         * lib/strncasecmp.c: Likewise.
105670         * lib/strndup.c: Likewise.
105671         * lib/strnlen.c: Likewise.
105672         * lib/strsep.c: Likewise.
105673         * lib/strstr.c: Likewise.
105674         * lib/strtok_r.c: Likewise.
105675         * lib/userspec.c: Likewise.
105676         * lib/w32spawn.h: Likewise.
105677         * lib/xstrndup.c: Likewise.
105678         * lib/mountlist.c (strstr): Remove decl.
105679         * m4/string_h.m4: New file.
105680         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105681         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105683         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105684         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105685         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105686         Set REPLACE_STRCASECMP if necessary.
105687         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105688         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105689         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105690         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105691         HAVE_DECL_STRDUP if necessary.
105692         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105693         since gl_FUNC_STRNDUP does that now.
105694         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105695         Check for decl here...
105696         (gl_PREREQ_STRNLEN): ... not here.
105697         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105698         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105699         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105700         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105701         necessary.
105702         * modules/string: New file.
105703         * modules/memmem (Files): Remove special-purpose include file.
105704         (Depends-on): Add string.
105705         (Include): Include <string.h>, not the removed file.
105706         * modules/mempcpy: Likewise.
105707         * modules/memrchr: Likewise.
105708         * modules/stpcpy: Likewise.
105709         * modules/stpncpy: Likewise.
105710         * modules/strcase: Likewise.
105711         * modules/strchrnul: Likewise.
105712         * modules/strdup: Likewise.
105713         * modules/strndup: Likewise.
105714         * modules/strnlen: Likewise.
105715         * modules/strpbrk: Likewise.
105716         * modules/strsep: Likewise.
105717         * modules/strstr: Likewise.
105718         * modules/strtok_r: Likewise.
105719         * tests/test-dirname.c: Don't include "strdup.h", since
105720         <string.h> now suffices.
105721         * tests/test-memmem.c: Don't include "memmem.h", since
105722         <string.h> now suffices.
105724 2007-01-25  Bruno Haible  <bruno@clisp.org>
105726         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105727         *resultp is 0.
105729         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105730         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105731         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105732         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105734         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105735         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105736         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105737         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105738         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105739         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105741 2007-01-24  Bruno Haible  <bruno@clisp.org>
105743         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105744         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105745         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105746         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105747         gl_FUNC_FTS_CORE.
105748         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105749         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105751         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105752         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105753         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105754         gl_FUNC_FCHOWNAT.
105755         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105756         gl_FUNC_STRFTIME.
105757         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105758         Reported by Ralf Wildenhues.
105760 2007-01-24  Bruno Haible  <bruno@clisp.org>
105762         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105763         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105764         gl_GETADDRINFO.
105765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105766         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105767         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105769 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105771         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105772         Don't use 'exit'; just return from 'main'.
105773         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105775         * lib/fnmatch_.h: Readjust white space and comments to match
105776         glibc, to avoid spurious diffs.
105778 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105780         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105781         2004-12-01 change by Jakub Jelinek, since this code won't compile
105782         if !LIBC.  Problem reported by Bob Proulx.
105784 2007-01-23  Bruno Haible  <bruno@clisp.org>
105786         * lib/striconveh.c: Include c-strcaseeq.h.
105787         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105788         * modules/striconveh (Depends-on): Add c-strcaseeq.
105790 2007-01-23  Bruno Haible  <bruno@clisp.org>
105792         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105794         * modules/c-strcaseeq: New file.
105795         * lib/c-strcaseeq.h: New file.
105797         * modules/streq: New file.
105798         * lib/streq.h: New file.
105800 2007-01-23  Bruno Haible  <bruno@clisp.org>
105802         * modules/striconveha-tests: New file.
105803         * tests/test-striconveha.c: New file.
105805         * lib/striconveha.h: Include <stdbool.h>.
105806         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105807         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105808         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105809         (mem_iconveha): New function.
105810         (str_iconveha_notranslit): Renamed from str_iconveha.
105811         (str_iconveha): New function.
105812         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105813         c-strcase.
105815 2007-01-23  Bruno Haible  <bruno@clisp.org>
105817         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105818         encodings without forgiving before trying any encoding with handler.
105819         (str_iconveha): Try all encodings without forgiving before trying any
105820         encoding with handler.
105822 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105824         Import the following changes from libc.
105826         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105828         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105830         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105832         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105833         normal_bracket label.
105835         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105837         [BZ #361]
105838         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105839         to normal_bracket after fetching the next character.
105841 2007-01-22  Bruno Haible  <bruno@clisp.org>
105843         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105844         argument.
105845         * lib/striconveh.c (iconv_carefully_1): New function.
105846         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105847         argument.
105848         (str_cd_iconveh): Update.
105849         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105850         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105851         * tests/test-striconveh.c (MAGIC): New macro.
105852         (new_offsets): New function.
105853         (main): Test call with and without offsets.
105855 2007-01-22  Bruno Haible  <bruno@clisp.org>
105857         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105858         * modules/sys_select (Makefile.am): Likewise.
105859         * modules/sys_socket (Makefile.am): Likewise.
105860         * modules/sys_time (Makefile.am): Likewise.
105862 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105864         * modules/gettimeofday (License): Change from GPL to LGPL, since
105865         gettimeofday is a library function.
105867 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105869         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105871 2007-01-21  Bruno Haible  <bruno@clisp.org>
105873         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105875 2007-01-21  Bruno Haible  <bruno@clisp.org>
105877         * modules/striconveha: New file.
105878         * lib/striconveha.h: New file.
105879         * lib/striconveha.c: New file.
105880         * MODULES.html.sh (Internationalization functions): Add striconveha.
105881         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105882         string.
105883         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105885 2007-01-21  Bruno Haible  <bruno@clisp.org>
105887         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105888         * lib/striconveh.c (str_iconveh): Likewise.
105890 2007-01-21  Bruno Haible  <bruno@clisp.org>
105892         * lib/striconveh.h (mem_iconveh): New declaration.
105893         * lib/striconveh.c (mem_iconveh): New function.
105894         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105896 2007-01-21  Bruno Haible  <bruno@clisp.org>
105898         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105900         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105901         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105902         original result buffer.
105903         (str_cd_iconveh): Update.
105904         * tests/test-striconveh.c (main): Update.
105906         * lib/striconv.h (mem_cd_iconv): Change specification.
105907         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105908         result buffer.
105909         (str_cd_iconv): Update.
105910         * tests/test-striconv.c (main): Update.
105912 2007-01-21  Bruno Haible  <bruno@clisp.org>
105914         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105916 2007-01-20  Jim Meyering  <jim@meyering.net>
105918         * lib/userspec.c (parse_with_separator): If a user or group string
105919         starts with "+", skip the corresponding name-to-ID look-up, since
105920         such a look-up must fail: user and group names may not include "+".
105922 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105924         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105925         since we now assume the sys_time module.
105926         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105927         check for sys/time.h; no longer needed.
105928         * modules/poll (Depends-on): Depend on sys_time.
105930 2007-01-18  Bruno Haible  <bruno@clisp.org>
105932         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105933         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105935         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105936         gettimeofday.
105938         * tests/test-gettimeofday.c: Include <time.h>.
105939         (dummy): Remove variable.
105941         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105942         gl_HEADER_SYS_TIME_H.
105943         (gl_HEADER_SYS_TIME_H): New macro.
105945         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105946         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105948         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105949         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105951         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105952         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105953         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105954         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105955         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105957         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105958         last change; it caused a compilation error when cross-compiling to
105959         Cygwin.
105961 2007-01-18  Jim Meyering  <jim@meyering.net>
105963         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105964         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105965         than the race-prone "test -d sys || mkdir sys".
105966         (configure.ac): Use AC_PROG_MKDIR_P.
105967         * modules/sys_select: Likewise.
105968         * modules/sys_socket: Likewise.
105969         * modules/sys_time: Likewise.
105971 2007-01-18  Eric Blake  <ebb9@byu.net>
105973         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105974         replace gettimeofday.
105975         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105976         name, to avoid infinite recursion.
105978 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105980         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105981         module sys_time.
105982         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105983         assume timespec.h defines struct timeval.
105984         * lib/settime.c: Likewise.
105985         * lib/utimens.c: Likewise.
105986         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105987         since we now assume the gettimeofday module.
105988         * lib/tempname.c (__gen_tempname): Likewise.
105989         * lib/gettimeofday.h: Remove.
105990         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105991         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105992         Include <time.h>, for 'time()'.
105993         (localtime_buffer_addr): Also use this workaround if
105994         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105995         to simplify the uses.  All uses changed.
105996         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105997         that #undef is inside {}, and 'const' follows type name consistently.
105998         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105999         (gettimeofday): Do not use the maximum possible value for
106000         tv->tv_usec, since that might break usages other than ls.c.
106001         Instead, we'll leave ls.c alone.  This undoes today's patch
106002         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106003         we've never observed the problem but might as well keep the
106004         canary.
106005         * lib/nanosleep.c: Include timespec.h first, for interface check.
106006         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106007         now assume the sys_time module.
106008         * lib/tempname.c: Likewise.
106009         * lib/timespec.h: Likewise.
106010         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106011         needed.
106012         * lib/strftime.c: Likewise.
106013         * lib/timespec.h: Likewise.
106014         * lib/posixtm.c: Include posixtm.h first, for interface check.
106015         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106016         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106017         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106018         * lib/sys_time_.h: New file.
106019         * lib/timespec.h (struct timespec): Use long int, not long.
106020         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106021         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106022         Remove obsolescent call to AC_HEADER_TIME.
106023         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106025         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106026         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106027         Likewise.
106028         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106029         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106031         into the sys_time module.  Check for gettimeofday just once.
106032         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106033         for gettimeofday signature to just check the signature.  Merely
106034         compile it, since linking doesn't test signature.  Improve test for
106035         whether gettimeofday.o is actually needed.
106036         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106037         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106038         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106039         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106040         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106041         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106042         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106043         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106044         than worrying about sys/time.h.
106045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106046         Don't bother worrying about TIME_WITH_SYS_TIME.
106047         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106048         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106049         * m4/sys_time_h.m4: New file.
106050         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106051         Don't include sys/time.h.  Return from main rather than exiting.
106052         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106053         all uses changed.
106054         * modules/gethrxtime (Depends-on): Add sys_time.
106055         * modules/gettime (Depends-on): Likewise.
106056         * modules/gettimeofday (Depends-on): Likewise.
106057         * modules/nanosleep (Depends-on): Likewise.
106058         * modules/settime (Depends-on): Likewise.
106059         * modules/tempname (Depends-on): Likewise.
106060         * modules/utimens (Depends-on): Likewise.
106061         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106062         (Include): Change back to <sys/time.h>.
106063         (Maintainer): Add self.
106064         * modules/sys_time: New file.
106065         * modules/tempname (Depends-on): Add gettimeofday.
106066         * tests/test-gettimeofday.c: Include <sys/time.h>
106067         rather than gettimeofday.h.
106069 2007-01-17  Bruno Haible  <bruno@clisp.org>
106071         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106072         the license default to GPL.
106073         (func_create_testdir): Don't complain if a module is LGPL and its
106074         tests module depends on GPLed modules.
106076 2007-01-17  Bruno Haible  <bruno@clisp.org>
106078         * lib/gettimeofday.c (gettimeofday): Add code for the case
106079         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106080         maximum possible value for tv->tv_usec, rather than the minimum one.
106082 2005-10-08  Martin Lambers  <marlam@marlam.de>
106083 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106084 2007-01-16  Bruno Haible  <bruno@clisp.org>
106086         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106087         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106088         gl_FUNC_GETTIMEOFDAY.
106089         (Include): Add gettimeofday.h.
106090         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106091         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106092         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106093         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106094         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106095         * lib/gettimeofday.h: New file.
106096         * lib/gettimeofday.c: Include <sys/timeb.h>.
106097         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106098         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106099         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106100         fall back on time().
106102         * tests/test-gettimeofday.c: New file.
106103         * modules/gettimeofday-tests: New file.
106105 2007-01-16  Eric Blake  <ebb9@byu.net>
106107         * modules/fnmatch (Depends-on): Depend on wchar.
106108         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106109         * m4/fnmatch.m4: Likewise.
106110         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106111         * m4/mbchar.m4: Likewise.
106112         * modules/mbswidth (Depends-on): Depend on wchar.
106113         * lib/mbswidth.c: Assume <wchar.h>.
106114         * m4/mbswidth.m4: Likewise.
106115         * modules/quotearg (Depends-on): Depend on wchar.
106116         * lib/quotearg.c: Assume <wchar.h>.
106117         * m4/quotearg.m4: Likewise.
106118         * modules/regex (Depends-on): Depend on wchar.
106119         * lib/regex_internal.h: Assume <wchar.h>.
106120         * m4/regex.m4: Likewise.
106121         * modules/stdint (Depends-on): Depend on wchar.
106122         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106123         * m4/stdint.m4: Likewise.
106124         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106125         * modules/strftime (Depends-on): Depend on wchar.
106126         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106127         * modules/strtol (Depends-on): Depend on wchar.
106128         * lib/strtol.c: Assume <wchar.h>.
106129         * modules/wcwidth (Depends-on): Depend on wchar.
106130         * lib/wcwidth.h: Assume <wchar.h>.
106131         * m4/wcwidth.m4: Likewise.
106133 2007-01-16  Bruno Haible  <bruno@clisp.org>
106135         * modules/csharpexec-script: New, created from...
106136         * modules/csharpexec: ... this.
106138 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106140         * modules/javaexec-script: New, created from...
106141         * modules/javaexec: ... this.
106143 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106145         * modules/poll (Dependencies): Add sys_select.
106147 2007-01-15  Jim Meyering  <jim@meyering.net>
106149         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106150         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106151         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106152         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106154 2007-01-15  Bruno Haible  <bruno@clisp.org>
106156         * modules/striconveh: New file.
106157         * lib/striconveh.h: New file.
106158         * lib/striconveh.c: New file.
106159         * MODULES.html.sh (Internationalization functions): Add striconveh.
106161         * modules/striconveh-tests: New file.
106162         * tests/test-striconveh.c: New file.
106164 2007-01-15  Bruno Haible  <bruno@clisp.org>
106166         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106167         not from GNU libiconv or GNU libc.
106169 2007-01-15  Bruno Haible  <bruno@clisp.org>
106171         * doc/gnulib-intro.texi (Copyright): Explain the different license
106172         terms for module descriptions, autoconf macros, tests, documentation.
106174 2007-01-14  Bruno Haible  <bruno@clisp.org>
106176         * modules/striconv-tests: New file.
106177         * tests/test-striconv.c: New file.
106179 2007-01-14  Bruno Haible  <bruno@clisp.org>
106181         * modules/iconv-tests: New file.
106182         * tests/test-iconv.c: New file.
106184 2007-01-14  Bruno Haible  <bruno@clisp.org>
106186         * gnulib-tool (func_get_license): For test modules, use the license of
106187         the main module.
106189 2007-01-14  Bruno Haible  <bruno@clisp.org>
106191         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106192         if iconv is found to exist.
106194 2007-01-14  Bruno Haible  <bruno@clisp.org>
106196         * modules/c-ctype-tests: New file.
106197         * tests/test-c-ctype.c: New file.
106199 2007-01-14  Bruno Haible  <bruno@clisp.org>
106201         * modules/binary-io-tests: New file.
106202         * tests/test-binary-io.sh: New file.
106203         * tests/test-binary-io.c: New file.
106205 2007-01-14  Bruno Haible  <bruno@clisp.org>
106207         * modules/array-oset-tests: New file.
106208         * tests/test-array_oset.c: New file.
106210 2007-01-14  Bruno Haible  <bruno@clisp.org>
106212         * modules/array-list-tests: New file.
106213         * tests/test-array_list.c: New file.
106215 2007-01-14  Bruno Haible  <bruno@clisp.org>
106217         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106218         and make.
106219         Reported by Simon Josefsson in
106220         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106222 2007-01-14  Bruno Haible  <bruno@clisp.org>
106224         * modules/allocsa-tests: New file.
106225         * tests/test-allocsa.c: New file.
106227 2007-01-14  Bruno Haible  <bruno@clisp.org>
106229         * modules/fchdir (Depends-on): Add absolute-header.
106230         * modules/unistd (Depends-on): Likewise.
106232 2006-12-30  Bruno Haible  <bruno@clisp.org>
106234         * modules/fchdir: New file.
106235         * modules/unistd (Files): Add lib/unistd_.h.
106236         (Makefile.am): Generate unistd.h from unistd_.h.
106237         * lib/fchdir.c: New file.
106238         * lib/dirent_.h: New file.
106239         * lib/unistd_.h: New file.
106240         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106241         * m4/fchdir.m4: New file.
106242         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106243         (gl_HEADER_UNISTD): Invoke it.
106244         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106245         function.
106246         * lib/backupfile.c (opendir, closedir): Undefine.
106247         * lib/chown.c (open, close): Undefine.
106248         * lib/clean-temp.c (open, close): Undefine.
106249         * lib/copy-file.c (open, close): Undefine.
106250         * lib/execute.c (open, close): Undefine.
106251         * lib/fsusage.c (open, close): Undefine.
106252         * lib/gc-gnulib.c (open, close): Undefine.
106253         * lib/getcwd.c (opendir, closedir): Undefine.
106254         * lib/glob.c (opendir, closedir): Undefine.
106255         * lib/javacomp.c (open, close): Undefine.
106256         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106257         * lib/openat-proc.c (open, close): Undefine.
106258         * lib/pagealign_alloc.c (open, close): Undefine.
106259         * lib/pipe.c (open, close): Undefine.
106260         * lib/progreloc.c (open, close): Undefine.
106261         * lib/savedir.c (opendir, closedir): Undefine.
106262         * lib/utime.c (open, close): Undefine.
106263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106265 2007-01-10  Bruno Haible  <bruno@clisp.org>
106267         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106269 2007-01-12  Eric Blake  <ebb9@byu.net>
106271         Provide a robust <wchar.h>.  Further simplifications are now
106272         possible in other modules, but not included here.
106273         * modules/wchar: New module.
106274         * m4/wchar.m4: New file.
106275         * lib/wchar_.h: Likewise.
106276         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106277         of the new module.
106278         * MODULES.html.sh (Extended multibyte and wide character utilities):
106279         New section.
106281 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106283         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106284         to a reasonable default for memory allocation.
106285         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106286         file system that reports garbage st_size values for symlinks.
106287         Problem reported by Liyang Hu.
106289 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106291         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106292         Emacs .#* auto-save files).
106294 2007-01-11  Bruno Haible  <bruno@clisp.org>
106296         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106297         directory.
106299 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106301         Use @...@ consistently in lib/wctype_.h.
106302         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106303         on it being set to 1 or 0.
106304         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106305         go back to AC_SUBSTing it.
106306         * modules/wctype (Makefile.am): Undo previous change.
106308 2007-01-10  Eric Blake  <ebb9@byu.net>
106310         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106311         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106312         * modules/wctype (Makefile.am): Likewise.
106313         Reported by Chris McGuire.
106315 2007-01-10  Jim Meyering  <jim@meyering.net>
106317         fts.c: a small readability/maintainability improvement
106318         * lib/fts.c (fts_read): Make this code slightly more readable and
106319         maintainable by hoisting the "sp->fts_cur = p" assignments to
106320         immediately follow the statements that set P.  Derived from
106321         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106323 2007-01-10  Eric Blake  <ebb9@byu.net>
106325         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106326         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106328         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106329         Reported by Chris McGuire.
106331 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106333         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106334         in sed script.
106336 2007-01-09  Bruno Haible  <bruno@clisp.org>
106338         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106339         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106340         variables.
106341         (func_module): Use them.
106343 2007-01-09  Bruno Haible  <bruno@clisp.org>
106345         * modules/unistr/base: New file.
106346         * lib/unistr.h: New file.
106348         * modules/unistr/u8-to-u16: New file.
106349         * lib/unistr/u8-to-u16.c: New file.
106351         * modules/unistr/u8-to-u32: New file.
106352         * lib/unistr/u8-to-u32.c: New file.
106354         * modules/unistr/u16-to-u8: New file.
106355         * lib/unistr/u16-to-u8.c: New file.
106357         * modules/unistr/u16-to-u32: New file.
106358         * lib/unistr/u16-to-u32.c: New file.
106360         * modules/unistr/u32-to-u8: New file.
106361         * lib/unistr/u32-to-u8.c: New file.
106363         * modules/unistr/u32-to-u16: New file.
106364         * lib/unistr/u32-to-u16.c: New file.
106366         * modules/unistr/u8-check: New file.
106367         * modules/unistr/u16-check: New file.
106368         * modules/unistr/u32-check: New file.
106369         * lib/unistr/u8-check.c: New file.
106370         * lib/unistr/u16-check.c: New file.
106371         * lib/unistr/u32-check.c: New file.
106373         * modules/unistr/u8-chr: New file.
106374         * modules/unistr/u16-chr: New file.
106375         * modules/unistr/u32-chr: New file.
106376         * lib/unistr/u8-chr.c: New file.
106377         * lib/unistr/u16-chr.c: New file.
106378         * lib/unistr/u32-chr.c: New file.
106380         * modules/unistr/u8-cmp: New file.
106381         * modules/unistr/u16-cmp: New file.
106382         * modules/unistr/u32-cmp: New file.
106383         * lib/unistr/u8-cmp.c: New file.
106384         * lib/unistr/u16-cmp.c: New file.
106385         * lib/unistr/u32-cmp.c: New file.
106387         * modules/unistr/u8-cpy: New file.
106388         * modules/unistr/u16-cpy: New file.
106389         * modules/unistr/u32-cpy: New file.
106390         * lib/unistr/u8-cpy.c: New file.
106391         * lib/unistr/u16-cpy.c: New file.
106392         * lib/unistr/u32-cpy.c: New file.
106393         * lib/unistr/u-cpy.h: New file.
106395         * modules/unistr/u8-cpy-alloc: New file.
106396         * modules/unistr/u16-cpy-alloc: New file.
106397         * modules/unistr/u32-cpy-alloc: New file.
106398         * lib/unistr/u8-cpy-alloc.c: New file.
106399         * lib/unistr/u16-cpy-alloc.c: New file.
106400         * lib/unistr/u32-cpy-alloc.c: New file.
106401         * lib/unistr/u-cpy-alloc.h: New file.
106403         * modules/unistr/u8-endswith: New file.
106404         * modules/unistr/u16-endswith: New file.
106405         * modules/unistr/u32-endswith: New file.
106406         * lib/unistr/u8-endswith.c: New file.
106407         * lib/unistr/u16-endswith.c: New file.
106408         * lib/unistr/u32-endswith.c: New file.
106409         * lib/unistr/u-endswith.h: New file.
106411         * modules/unistr/u8-mblen: New file.
106412         * modules/unistr/u16-mblen: New file.
106413         * modules/unistr/u32-mblen: New file.
106414         * lib/unistr/u8-mblen.c: New file.
106415         * lib/unistr/u16-mblen.c: New file.
106416         * lib/unistr/u32-mblen.c: New file.
106418         * modules/unistr/u8-mbtouc: New file.
106419         * modules/unistr/u16-mbtouc: New file.
106420         * modules/unistr/u32-mbtouc: New file.
106421         * lib/unistr/u8-mbtouc.c: New file.
106422         * lib/unistr/u16-mbtouc.c: New file.
106423         * lib/unistr/u32-mbtouc.c: New file.
106425         * modules/unistr/u8-mbtouc-safe: New file.
106426         * modules/unistr/u16-mbtouc-safe: New file.
106427         * modules/unistr/u32-mbtouc-safe: New file.
106428         * lib/unistr/u8-mbtouc-safe.c: New file.
106429         * lib/unistr/u16-mbtouc-safe.c: New file.
106430         * lib/unistr/u32-mbtouc-safe.c: New file.
106432         * modules/unistr/u8-move: New file.
106433         * modules/unistr/u16-move: New file.
106434         * modules/unistr/u32-move: New file.
106435         * lib/unistr/u8-move.c: New file.
106436         * lib/unistr/u16-move.c: New file.
106437         * lib/unistr/u32-move.c: New file.
106438         * lib/unistr/u-move.h: New file.
106440         * modules/unistr/u8-next: New file.
106441         * modules/unistr/u16-next: New file.
106442         * modules/unistr/u32-next: New file.
106443         * lib/unistr/u8-next.c: New file.
106444         * lib/unistr/u16-next.c: New file.
106445         * lib/unistr/u32-next.c: New file.
106447         * modules/unistr/u8-prev: New file.
106448         * modules/unistr/u16-prev: New file.
106449         * modules/unistr/u32-prev: New file.
106450         * lib/unistr/u8-prev.c: New file.
106451         * lib/unistr/u16-prev.c: New file.
106452         * lib/unistr/u32-prev.c: New file.
106454         * modules/unistr/u8-set: New file.
106455         * modules/unistr/u16-set: New file.
106456         * modules/unistr/u32-set: New file.
106457         * lib/unistr/u8-set.c: New file.
106458         * lib/unistr/u16-set.c: New file.
106459         * lib/unistr/u32-set.c: New file.
106460         * lib/unistr/u-set.h: New file.
106462         * modules/unistr/u8-startswith: New file.
106463         * modules/unistr/u16-startswith: New file.
106464         * modules/unistr/u32-startswith: New file.
106465         * lib/unistr/u8-startswith.c: New file.
106466         * lib/unistr/u16-startswith.c: New file.
106467         * lib/unistr/u32-startswith.c: New file.
106468         * lib/unistr/u-startswith.h: New file.
106470         * modules/unistr/u8-stpcpy: New file.
106471         * modules/unistr/u16-stpcpy: New file.
106472         * modules/unistr/u32-stpcpy: New file.
106473         * lib/unistr/u8-stpcpy.c: New file.
106474         * lib/unistr/u16-stpcpy.c: New file.
106475         * lib/unistr/u32-stpcpy.c: New file.
106476         * lib/unistr/u-stpcpy.h: New file.
106478         * modules/unistr/u8-stpncpy: New file.
106479         * modules/unistr/u16-stpncpy: New file.
106480         * modules/unistr/u32-stpncpy: New file.
106481         * lib/unistr/u8-stpncpy.c: New file.
106482         * lib/unistr/u16-stpncpy.c: New file.
106483         * lib/unistr/u32-stpncpy.c: New file.
106484         * lib/unistr/u-stpncpy.h: New file.
106486         * modules/unistr/u8-strcat: New file.
106487         * modules/unistr/u16-strcat: New file.
106488         * modules/unistr/u32-strcat: New file.
106489         * lib/unistr/u8-strcat.c: New file.
106490         * lib/unistr/u16-strcat.c: New file.
106491         * lib/unistr/u32-strcat.c: New file.
106492         * lib/unistr/u-strcat.h: New file.
106494         * modules/unistr/u8-strchr: New file.
106495         * modules/unistr/u16-strchr: New file.
106496         * modules/unistr/u32-strchr: New file.
106497         * lib/unistr/u8-strchr.c: New file.
106498         * lib/unistr/u16-strchr.c: New file.
106499         * lib/unistr/u32-strchr.c: New file.
106501         * modules/unistr/u8-strcmp: New file.
106502         * modules/unistr/u16-strcmp: New file.
106503         * modules/unistr/u32-strcmp: New file.
106504         * lib/unistr/u8-strcmp.c: New file.
106505         * lib/unistr/u16-strcmp.c: New file.
106506         * lib/unistr/u32-strcmp.c: New file.
106508         * modules/unistr/u8-strcpy: New file.
106509         * modules/unistr/u16-strcpy: New file.
106510         * modules/unistr/u32-strcpy: New file.
106511         * lib/unistr/u8-strcpy.c: New file.
106512         * lib/unistr/u16-strcpy.c: New file.
106513         * lib/unistr/u32-strcpy.c: New file.
106514         * lib/unistr/u-strcpy.h: New file.
106516         * modules/unistr/u8-strcspn: New file.
106517         * modules/unistr/u16-strcspn: New file.
106518         * modules/unistr/u32-strcspn: New file.
106519         * lib/unistr/u8-strcspn.c: New file.
106520         * lib/unistr/u16-strcspn.c: New file.
106521         * lib/unistr/u32-strcspn.c: New file.
106522         * lib/unistr/u-strcspn.h: New file.
106524         * modules/unistr/u8-strdup: New file.
106525         * modules/unistr/u16-strdup: New file.
106526         * modules/unistr/u32-strdup: New file.
106527         * lib/unistr/u8-strdup.c: New file.
106528         * lib/unistr/u16-strdup.c: New file.
106529         * lib/unistr/u32-strdup.c: New file.
106530         * lib/unistr/u-strdup.h: New file.
106532         * modules/unistr/u8-strlen: New file.
106533         * modules/unistr/u16-strlen: New file.
106534         * modules/unistr/u32-strlen: New file.
106535         * lib/unistr/u8-strlen.c: New file.
106536         * lib/unistr/u16-strlen.c: New file.
106537         * lib/unistr/u32-strlen.c: New file.
106538         * lib/unistr/u-strlen.h: New file.
106540         * modules/unistr/u8-strmblen: New file.
106541         * modules/unistr/u16-strmblen: New file.
106542         * modules/unistr/u32-strmblen: New file.
106543         * lib/unistr/u8-strmblen.c: New file.
106544         * lib/unistr/u16-strmblen.c: New file.
106545         * lib/unistr/u32-strmblen.c: New file.
106547         * modules/unistr/u8-strmbtouc: New file.
106548         * modules/unistr/u16-strmbtouc: New file.
106549         * modules/unistr/u32-strmbtouc: New file.
106550         * lib/unistr/u8-strmbtouc.c: New file.
106551         * lib/unistr/u16-strmbtouc.c: New file.
106552         * lib/unistr/u32-strmbtouc.c: New file.
106554         * modules/unistr/u8-strncat: New file.
106555         * modules/unistr/u16-strncat: New file.
106556         * modules/unistr/u32-strncat: New file.
106557         * lib/unistr/u8-strncat.c: New file.
106558         * lib/unistr/u16-strncat.c: New file.
106559         * lib/unistr/u32-strncat.c: New file.
106560         * lib/unistr/u-strncat.h: New file.
106562         * modules/unistr/u8-strncmp: New file.
106563         * modules/unistr/u16-strncmp: New file.
106564         * modules/unistr/u32-strncmp: New file.
106565         * lib/unistr/u8-strncmp.c: New file.
106566         * lib/unistr/u16-strncmp.c: New file.
106567         * lib/unistr/u32-strncmp.c: New file.
106569         * modules/unistr/u8-strncpy: New file.
106570         * modules/unistr/u16-strncpy: New file.
106571         * modules/unistr/u32-strncpy: New file.
106572         * lib/unistr/u8-strncpy.c: New file.
106573         * lib/unistr/u16-strncpy.c: New file.
106574         * lib/unistr/u32-strncpy.c: New file.
106575         * lib/unistr/u-strncpy.h: New file.
106577         * modules/unistr/u8-strnlen: New file.
106578         * modules/unistr/u16-strnlen: New file.
106579         * modules/unistr/u32-strnlen: New file.
106580         * lib/unistr/u8-strnlen.c: New file.
106581         * lib/unistr/u16-strnlen.c: New file.
106582         * lib/unistr/u32-strnlen.c: New file.
106583         * lib/unistr/u-strnlen.h: New file.
106585         * modules/unistr/u8-strpbrk: New file.
106586         * modules/unistr/u16-strpbrk: New file.
106587         * modules/unistr/u32-strpbrk: New file.
106588         * lib/unistr/u8-strpbrk.c: New file.
106589         * lib/unistr/u16-strpbrk.c: New file.
106590         * lib/unistr/u32-strpbrk.c: New file.
106591         * lib/unistr/u-strpbrk.h: New file.
106593         * modules/unistr/u8-strrchr: New file.
106594         * modules/unistr/u16-strrchr: New file.
106595         * modules/unistr/u32-strrchr: New file.
106596         * lib/unistr/u8-strrchr.c: New file.
106597         * lib/unistr/u16-strrchr.c: New file.
106598         * lib/unistr/u32-strrchr.c: New file.
106600         * modules/unistr/u8-strspn: New file.
106601         * modules/unistr/u16-strspn: New file.
106602         * modules/unistr/u32-strspn: New file.
106603         * lib/unistr/u8-strspn.c: New file.
106604         * lib/unistr/u16-strspn.c: New file.
106605         * lib/unistr/u32-strspn.c: New file.
106606         * lib/unistr/u-strspn.h: New file.
106608         * modules/unistr/u8-strstr: New file.
106609         * modules/unistr/u16-strstr: New file.
106610         * modules/unistr/u32-strstr: New file.
106611         * lib/unistr/u8-strstr.c: New file.
106612         * lib/unistr/u16-strstr.c: New file.
106613         * lib/unistr/u32-strstr.c: New file.
106614         * lib/unistr/u-strstr.h: New file.
106616         * modules/unistr/u8-strtok: New file.
106617         * modules/unistr/u16-strtok: New file.
106618         * modules/unistr/u32-strtok: New file.
106619         * lib/unistr/u8-strtok.c: New file.
106620         * lib/unistr/u16-strtok.c: New file.
106621         * lib/unistr/u32-strtok.c: New file.
106622         * lib/unistr/u-strtok.h: New file.
106624         * modules/unistr/u8-uctomb: New file.
106625         * modules/unistr/u16-uctomb: New file.
106626         * modules/unistr/u32-uctomb: New file.
106627         * lib/unistr/u8-uctomb.c: New file.
106628         * lib/unistr/u16-uctomb.c: New file.
106629         * lib/unistr/u32-uctomb.c: New file.
106631         * MODULES.html.sh (Unicode string functions): Add the new modules.
106633 2007-01-08  Bruno Haible  <bruno@clisp.org>
106635         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106636         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106637         subdirectories.
106639 2007-01-08  Karl Berry  <karl@gnu.org>
106641         * doc/error.texi: mention that main() fns must set program_name
106642         when progname is used.
106644 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106646         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106647         WCTYPE_H is empty, for the benefit of builds from non-distclean
106648         directories.  Problem reported by Eric Blake in
106649         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106651 2007-01-08  Bruno Haible  <bruno@clisp.org>
106653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106654         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106655         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106656         PROVIDE_CANONICALIZE_FILENAME_MODE.
106657         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106659 2007-01-08  Bruno Haible  <bruno@clisp.org>
106661         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106662         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106663         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106664         * lib/fts.c: Likewise.
106665         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106667 2006-12-25  Bruno Haible  <bruno@clisp.org>
106669         * modules/utf8-ucs4-safe: New file.
106670         * lib/utf8-ucs4-safe.h: New file.
106671         * lib/unistr/utf8-ucs4-safe.c: New file.
106673         * modules/utf16-ucs4-safe: New file.
106674         * lib/utf16-ucs4-safe.h: New file.
106675         * lib/unistr/utf16-ucs4-safe.c: New file.
106677         * MODULES.html.sh (Unicode string functions): Add the new modules.
106679 2007-01-08  Bruno Haible  <bruno@clisp.org>
106681         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106682         (Depends-on): Add unitypes.
106683         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106684         (u8_mbtouc_aux): Move out to separate file.
106685         (u8_mbtouc): Use ucs4_t, uint8_t types.
106686         * lib/unistr/utf8-ucs4.c: New file.
106688         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106689         (Depends-on): Add unitypes.
106690         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106691         (u16_mbtouc_aux): Move out to separate file.
106692         (u16_mbtouc): Use ucs4_t, uint16_t types.
106693         * lib/unistr/utf16-ucs4.c: New file.
106695         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106696         (Depends-on): Add unitypes.
106697         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106698         (u8_uctomb_aux): Move out to separate file.
106699         (u8_uctomb): Use ucs4_t, uint8_t types.
106700         * lib/unistr/ucs4-utf8.c: New file.
106702         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106703         (Depends-on): Add unitypes.
106704         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106705         (u16_uctomb_aux): Move out to separate file.
106706         (u16_uctomb): Use ucs4_t, uint16_t types.
106707         * lib/unistr/ucs4-utf16.c: New file.
106709 2006-12-25  Bruno Haible  <bruno@clisp.org>
106711         * modules/unitypes: New file.
106712         * lib/unitypes.h: New file.
106713         * MODULES.html.sh (func_all_modules): New section "Unicode string
106714         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106715         this section. Add unitypes.
106717 2007-01-08  Bruno Haible  <bruno@clisp.org>
106719         Avoid variable names that conflict with those from libtool.
106720         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106721         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106722         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106723         library_names_spec to acl_library_names_spec, hardcode_* to
106724         acl_hardcode_*.
106725         Reported by Ralf Wildenhues.
106727 2007-01-08  Bruno Haible  <bruno@clisp.org>
106729         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106730         definition.
106731         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106732         definition.
106733         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106734         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106735         definition.
106736         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106737         definition.
106738         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106739         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106740         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106741         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106742         definition.
106743         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106744         definition.
106745         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106746         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106747         GC_USE_<algorithm>.
106748         * lib/gc-libgcrypt.c: Likewise.
106749         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106750         * modules/gc-arctwo (configure.ac): Likewise.
106751         * modules/gc-des (configure.ac): Likewise.
106752         * modules/gc-hmac-md5 (configure.ac): Likewise.
106753         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106754         * modules/gc-md2 (configure.ac): Likewise.
106755         * modules/gc-md4 (configure.ac): Likewise.
106756         * modules/gc-md5 (configure.ac): Likewise.
106757         * modules/gc-random (configure.ac): Likewise.
106758         * modules/gc-rijndael (configure.ac): Likewise.
106759         * modules/gc-sha1 (configure.ac): Likewise.
106761 2007-01-08  Bruno Haible  <bruno@clisp.org>
106763         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106764         macro definition.
106765         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106766         definition.
106767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106768         definition.
106769         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106770         * modules/fcntl-safer (configure.ac): Likewise.
106771         * modules/fopen-safer (configure.ac): Likewise.
106772         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106773         GNULIB_FWRITEERROR macro definition.
106775 2007-01-08  Bruno Haible  <bruno@clisp.org>
106777         * m4/gnulib-common.m4: New file.
106778         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106779         (func_get_filelist): Add m4/gnulib-common.m4.
106781 2007-01-08  Bruno Haible  <bruno@clisp.org>
106783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106784         command.
106786 2007-01-08  Jim Meyering  <jim@meyering.net>
106788         Use a more robust test for a "can't happen" condition.
106789         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106790         narrowed the st_size value.  Presuming the "can't happen" condition
106791         is true, that narrowing could conceivably convert an invalid st_size
106792         value into a valid one.  Instead, use a change based on Matthew
106793         Woehlke's original patch.
106795         Slight readability improvement: use an assert-like macro
106796         in place of literal "abort ()" uses.
106797         * lib/fts.c (fts_assert): Define.
106798         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106799         Use this macro instead of a bare 'abort'.
106801 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106803         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106804         simply work around them.
106805         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106806         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106807         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106808         declaring.
106809         Don't bother to define as macros, since the standard doesn't require it.
106810         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106811         longer worry about IRIX 5.3.
106812         (HAVE_WCTYPE_CTMP_BUG): Remove.
106814 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106816         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106817         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106818         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106819         Problems reported by Georg Schwarz for IRIX 5.3.
106821         * gnulib-tool (autoconf_minversion): Take the maximum version number
106822         found, not the minimum.  Problem reported by James Youngman.
106824 2007-01-03  Karl Berry  <karl@gnu.org>
106826         * doc/error.texi: new file, explaining interaction with progname.
106827         * doc/gnulib.texi: include it.  Update copyright.
106829 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106831         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106832         AC_CANONICAL_HOST, to improve autobuild outputs.
106834 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106835             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106837         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106838         sockets, server sockets, and other file descriptors.  Count errors
106839         to compute the return value.  Reorder the code a bit to be easier
106840         to follow.  Don't set event bits that were not requested (except
106841         POLLERR and POLLHUP).
106843 2007-01-01  Bruno Haible  <bruno@clisp.org>
106845         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106847 2007-01-03  Jim Meyering  <jim@meyering.net>
106849         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106851 2007-01-02  Bruno Haible  <bruno@clisp.org>
106853         * modules/settime (Include): Require timespec.h.
106854         * modules/nanosleep (Include): Likewise.
106856 2007-01-01  Bruno Haible  <bruno@clisp.org>
106858         * gnulib-tool (func_emit_copyright_notice): Bump year.
106859         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106861 2007-01-01  Bruno Haible  <bruno@clisp.org>
106863         Improve support for OpenBSD.
106864         * build-aux/config.rpath (libname_spec): Export.
106865         (library_names_spec): New variable. Export.
106866         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106867         library_names_spec from the config.rpath output. Locate shared library
106868         through the name pattern in library_names_spec.
106870 2007-01-01  Eric Blake  <ebb9@byu.net>
106872         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106874 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106876         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106877         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106878         assume the C locale, and avoid an "eval" that could cause trouble.
106879         Problem with SORT reported by Bob Proulx.
106881         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106882         Define.  Trivial patch from Henning Nielsen Lund, originally
106883         sent to bug-grep@gnu.org today.
106885 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106887         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106888         struct stat.  Problem reported by Henning Nielsen Lund.
106889         * lib/acl.c: Include acl.h first, to check interface.  Don't
106890         bother to include sys/types.h and sys/stat.h again.
106892 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106894         Import the following change from libc; problem reported by
106895         Sven Verdoolaege.
106897         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106899         [BZ #1373]
106900         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106902 2006-12-28  Jim Meyering  <jim@meyering.net>
106904         * build-aux/announce-gen: Do not assume that the package
106905         builds any of tar.gz, tar.bz2, and .xdelta files.
106906         Suggestion from Simon Josefsson.
106908 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106910         * modules/announce-gen: New file.
106912 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106914         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106915         handles its gotchas now.
106916         * lib/mbswidth.c: Likewise.
106917         * lib/wcwidth.h: Likewise.
106918         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106919         and iswcntrl; the wctype module does this stuff now.
106920         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106922         * modules/mbchar (Depends-on): Add wctype.
106923         * modules/mbswidth (Depends-on): Likewise.
106924         * modules/wcwidth (Depends-on): Likewise.
106926 2006-12-27  Eric Blake  <ebb9@byu.net>
106928         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106929         module uses more than what <wctype.h> is required to provide.
106931 2006-12-26  Eric Blake  <ebb9@byu.net>
106933         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106935 2006-12-26  Eric Blake  <ebb9@byu.net>
106937         * modules/absolute-header: New module.
106938         * modules/fcntl (Depends-on): Depend on it.
106939         * modules/inttypes (Depends-on): Likewise.
106940         * modules/stdint (Depends-on): Likewise.
106941         * modules/sys_stat (Depends-on): Likewise.
106942         * modules/wctype (Depends-on): Likewise.
106943         * MODULES.html.sh (Support for building libraries and
106944         executables): Document it.
106946 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106948         * gnulib-tool (SED): Remove, undoing previous change.
106949         The problem was that it broke coreutils on Solaris, because
106950         "sed --posix" leaked into a makefile.
106951         (sed): New alias, if 'alias' and GNU sed.
106953 2006-12-24  Jim Meyering  <jim@meyering.net>
106955         Work around an fchownat bug in glibc-2.4:
106956         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106957         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106958         in spite of the -P option.
106959         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106960         New macros.
106961         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106962         * modules/openat (Files): Add lib/fchownat.c.
106963         * lib/openat.c (fchownat): Don't define here.  Move to...
106964         * lib/fchownat.c: ...this new file.
106966 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106968         Fix bug reported by Bruno Haible in
106969         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106970         where quotearg.c didn't compile on Mac OS X 10.2 because it
106971         lacks <wchar.h> and wint_t.
106972         * lib/wctype_.h (__wctype_wint_t): New type.
106973         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106974         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106975         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106976         Arg is now of type __wctype_wint_t, not wint_t.
106977         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106978         substitute HAVE_WINT_T.
106979         * modules/wctype (Files): Add m4/wint_t.m4.
106980         (wctype.h): Substitute HAVE_WINT_T.
106982 2006-12-23  Bruno Haible  <bruno@clisp.org>
106984         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106986 2006-12-23  Bruno Haible  <bruno@clisp.org>
106988         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106989         S_ISLNK.
106990         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106991         mingw.
106993 2006-12-22  Bruno Haible  <bruno@clisp.org>
106995         * lib/copy-file.c: Include acl.h.
106996         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106997         Close the file descriptors only after being done with copy_acl.
106998         * modules/copy-file (Depends-on): Add acl.
107000 2006-12-22  Bruno Haible  <bruno@clisp.org>
107002         * gnulib-tool (SED): New variable.
107003         Use $SED instead of sed everywhere.
107005 2006-12-22  Bruno Haible  <bruno@clisp.org>
107007         * modules/no-c++: New file.
107008         * m4/no-c++.m4: New file.
107009         * MODULES.html.sh (Support for building libraries and executables):
107010         Add no-c++.
107012 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107014         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107015         Include <limits.h>, and use its INT_MAX to rewrite the
107016         j loop so that it does not overflow 'int'.  Problem reported by
107017         Ralf Wildenhues in
107018         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107019         Play it safe by shifting left by 1 rather than multiplying by 2,
107020         as GCC is less likely to optimize this away when the value
107021         is signed (when it assumes overflow leads to undefined behavior).
107022         Also, don't assume time_t uses two's complement.
107024 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107026         * MODULES.html.sh: New module wctype.
107027         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107028         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107029         <wctype.h>, since the new wctype module should fix this.
107030         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107031         the wctype module should arrange for it.
107032         * lib/regex_internal.h: Likewise.
107033         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107034         since the wctype module should handle this now.
107035         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107036         * modules/fnmatch (Depends-on): Add wctype.
107037         * modules/quotearg (Depends-on): Likewise.
107038         * modules/regex (Depends-on): Likewise.
107040 2006-12-19  Bruno Haible  <bruno@clisp.org>
107042         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107043         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107045 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107047         * modules/savewd (Depends-on): Fix dependency on fcntl.
107049 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107051         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107052         conforms to C99, rather than relying on the user's environment
107053         setting of STDINT_H.
107055 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107056         and Eric Blake  <ebb9@byu.net>
107058         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107059         This is more consistent with the other defines here.
107060         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107061         Port to z/OS.  Problem reported by Paul Gilmartin.
107062         Change local vars to use gl_ prefix rather than ac_.
107063         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107064         with other defines.
107065         * modules/double-slash-root: New module.
107066         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107067         (Depends-on): Add double-slash-root.
107068         * MODULES.html.sh (File system functions): Mention new module.
107070 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107072         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107073         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107074         This is for the benefit of gzip, which doesn't do i18n.
107076 2006-12-12  Jim Meyering  <jim@meyering.net>
107078         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107079         Reported by Andreas Schwab <schwab@suse.de>.
107081 2006-12-12  Bruno Haible  <bruno@clisp.org>
107083         Merge these changes.
107084         2006-09-05  Bruno Haible  <bruno@clisp.org>
107085         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107086         iconv_alloc succeeded.
107087         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107088         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107089         test for " && dest " at the end - dest is always != NULL there. Call
107090         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107091         with 2xNULL arguments, also to flush the state storage. Handle the
107092         IRIX iconv behaviour. Realloc the final result, to throw away unused
107093         memory.
107095 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107097         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107098         and fchmodat unconditionally, since glibc 2.4 has them.
107099         Problem reported by Arkadiusz Miskiewicz.
107101 2006-12-10  Bruno Haible  <bruno@clisp.org>
107103         * gnulib-tool (func_import): Show the include files only for those
107104         modules that are copied and specified.
107105         Reported by Karl Berry.
107107 2006-12-08  Jim Meyering  <jim@meyering.net>
107109         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107110         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107112         * build-aux/announce-gen: Add two new options, both optional:
107113         --bootstrap-tools=TOOL_LIST
107114               a comma-separated list of tools, e.g.,
107115               autoconf,automake,bison,gnulib
107116         --gnulib-snapshot-date=DATE
107117               if gnulib is in the bootstrap tool list,
107118               then report this as the snapshot date.
107119               If not specified, use the current date/time.
107120               If you specify a date here, be sure it's UTC.
107122 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107124         * tests/test-argp-2.sh: Fix test to match actual output.
107125         (func_compare): Fix sed script to be portable.
107127 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107129         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107130         workaround for this case.  It is not autoconfigured now; offhand
107131         it's hard to see how to autoconfigure it.
107133 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107135         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107136         a directory that is about to be chowned.  Such a directory's
107137         initial file permissions should permit the owner only and this
107138         should not be changed until after the chown, since the group and
107139         other bits would be incorrect if they granted permission before
107140         the chown.
107142         Fix porting problem for iswctype reported by Georg Schwarz in:
107143         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107144         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107145         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107147         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107149 2006-12-03  Jim Meyering  <jim@meyering.net>
107151         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107152         p->fts_statp may not yet be defined.
107153         (fts_read): Instead, set it in the caller, once p->fts_statp is
107154         sure to be defined, and corresponds to a top-level directory.
107155         This bug made du -x fail.  Here's the coreutils test case:
107156         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107157         Reported by Mike Frysinger.
107159 2006-12-01  Jim Meyering  <jim@meyering.net>
107161         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107162         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107163         Reported by Simon Josefsson.
107165 2006-11-30  Jim Meyering  <jim@meyering.net>
107167         * m4/warning.m4: Use the all-permissive copyright notice
107168         recommended by RMS (rather than LGPL).
107169         * m4/vararrays.m4: Likewise.
107170         * m4/flexmember.m4: Likewise.
107172 2006-11-29  Bruno Haible  <bruno@clisp.org>
107174         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107175         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107176         using +=.
107177         Reported by Simon Josefsson <simon@josefsson.org>.
107179 2006-11-28  James Youngman  <jay@gnu.org>
107181         * README: Advise users that they might find the bug-gnulib@gnu.org
107182         and autotools-announce@gnu.org mailing lists useful.
107184 2006-11-28  Bruno Haible  <bruno@clisp.org>
107186         * m4/ptrdiff_max.m4: Remove file.
107188 2006-11-21  Bruno Haible  <bruno@clisp.org>
107190         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107191         _AC_COMPUTE_INT.
107192         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107193         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107194         _AC_COMPUTE_INT.
107195         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107196         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107197         _AC_COMPUTE_INT.
107198         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107200 2006-11-28  Jim Meyering  <jim@meyering.net>
107202         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107203         warning from "gcc -Wshadow" about shadowing the builtin.
107205 2006-11-27  Bruno Haible  <bruno@clisp.org>
107207         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107208         _AC_COMPUTE_INT.
107209         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107211 2006-11-27  Bruno Haible  <bruno@clisp.org>
107212             Paul Eggert  <eggert@cs.ucla.edu>
107214         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107216 2006-11-26  Bruno Haible  <bruno@clisp.org>
107218         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107219         noinst_LTLIBRARIES.
107221 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107222             Bruno Haible  <bruno@clisp.org>
107224         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107225         if compiling with "gcc -ansi".
107227 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107229         Fix some incompatibilities with gcc -ansi -pedantic.
107230         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107231         if compiling pedantically with GCC, unless it's C99 or later.
107232         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107233         it mishandles gcc -ansi -pedantic as well.
107234         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107235         if gcc -pedantic.
107236         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107237         initializers for struct if -pedantic, unless it's C99 or later.
107239 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107241         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107242         Don't close an fd more than once. Identical atimes indicate
107243         success, not failure.
107245 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107247         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107249 2006-11-23  Jim Meyering  <jim@meyering.net>
107251         * build-aux/announce-gen: New file.  From coreutils.
107253 2006-11-22  Jim Meyering  <jim@meyering.net>
107255         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107256         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107257         (fts_read): Use a temporary to narrow the overused st_size member
107258         before using it in a switch statement.  Reported by Matthew Woehlke.
107260         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107261         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107263 2006-11-20  Bruno Haible  <bruno@clisp.org>
107265         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107266         changequote instead of pairs of brackets.
107267         Reported by Andreas Schwab <schwab@suse.de>.
107269 2006-11-21  Jim Meyering  <jim@meyering.net>
107271         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107272         so as to remain compatible with older compilers.
107273         Patch from Michael Deutschmann.
107275 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107277         * MODULES.html.sh (File system functions): Add openat.
107279         * lib/openat.h (rpl_fstatat): New macro, if
107280         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107281         (fstatat): Define to rpl_fstatat under the same conditions,
107282         unless COMPILING_FSTATAT.
107283         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107284         seems to have the bug.
107285         * lib/fstatat.c: New file.
107286         * modules/openat (Files): Add it.
107288 2006-11-20  Bruno Haible  <bruno@clisp.org>
107290         * Makefile: New file.
107292 2006-11-20  Jim Meyering  <jim@meyering.net>
107294         The beginnings of syntax-related checks for gnulib.
107295         * lib/Makefile: New file.
107296         * lib/t-idcache: New script.  Ensure that the two halves of
107297         idcache.c stay in sync.
107299         * lib/idcache.c: Adjust comments in user- and group- portions to
107300         be more accurate, and to be consistent with one another.
107302 2006-11-20  Jim Meyering  <jim@meyering.net>
107304         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107305         continue using the flexible array member (thus, this module performs
107306         half as many malloc calls), with the addition that...
107307         (getgroup, getuser): Consistently record a non-match via an empty
107308         "name" string, and map an empty string match to a NULL return value.
107309         * modules/idcache (Depends-on): Re-add flexmember.
107311         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107312         (getuidbyname, getgroup, getgidbyname): Likewise.
107314         Use cleaner syntax: NULL rather than 0.
107315         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107317 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107319         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107320         It mishandled the case where the group was missing.
107321         Problem reported by Greg Schafer.
107322         * modules/idcache: Likewise.
107324 2006-11-18  Jim Meyering  <jim@meyering.net>
107326         * check-module (%exempt_header): Add exception for some
107327         conditionally-included headers.
107329         * modules/i-ring (Depends-on): Add verify.
107330         (License): Change to LGPL.
107332 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107334         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107335         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107336         and inttostr.h.  Use snprintf rather than uinttostr, so that
107337         LGPLed code doesn't depend on GPLed.
107339 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107341         * modules/inline (License): Change from GPL to LGPL.
107343 2006-11-17  Jim Meyering  <jim@meyering.net>
107345         * modules/d-type (License): Switch to LGPL.
107347 2006-11-15  Bruno Haible  <bruno@clisp.org>
107349         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107351 2006-11-15  Eric Blake  <ebb9@byu.net>
107353         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107354         the module dependency.
107356 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107357             Bruno Haible  <bruno@clisp.org>
107359         * gnulib-tool (func_create_testdir): Add license consistency check.
107361 2006-11-15  Eric Blake  <ebb9@byu.net>
107363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107364         random "(cached)" in configure output.
107366 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107368         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107369         test for conforming inttypes.h is both announced and cached.
107371         * MODULES.html.sh (seen_modules, seen_files): New variables.
107372         (func_module): Rewrite to use a few less gnulib-tool and sed
107373         invocations.  Avoid a couple of quadratic algorithms for ...
107374         (missed_modules, missed_files): ... these, with ...
107375         (func_append, func_tmpdir): ... these new functions, from
107376         gnulib-tool.  Analogously, install traps for cleanup.
107378         * tests/test-gc.c (main): Remove unused variables.
107379         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107381 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107383         * modules/inttostr (License): Change to LGPL.
107385 2006-11-14  Eric Blake  <ebb9@byu.net>
107387         * modules/tempname (License): Change to LGPL.
107389 2006-11-14  Eric Blake  <ebb9@byu.net>
107391         * doc/functions.texi (Function Portability): *printf functions on
107392         Cygwin now understand all POSIX size specifiers.
107394 2006-11-14  Bruno Haible  <bruno@clisp.org>
107396         * modules/c-ctype (License): Change to LGPL.
107398 2006-11-12  Bruno Haible  <bruno@clisp.org>
107400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107401         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107402         for GNOME libraries, for which the include files are installed in
107403         subdirectories of $prefix/include.
107405 2006-11-12  Bruno Haible  <bruno@clisp.org>
107407         * m4/lib-link.m4: Require at least autoconf-2.54.
107408         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107409         name to underscores for the --with option.
107411 2006-11-13  Bruno Haible  <bruno@clisp.org>
107413         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
107414         the tests directory.
107415         Reported by Ralf Wildenhues.
107417 2006-11-13  Bruno Haible  <bruno@clisp.org>
107419         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
107420         (func_emit_initmacro_end): Undo the override here.
107421         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
107422         Works around the famous automake error in coreutils.
107424 2006-11-13  Eric Blake  <ebb9@byu.net>
107426         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
107427         element, not its node.
107429 2006-11-12  Bruno Haible  <bruno@clisp.org>
107431         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
107432         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
107434 2006-11-12  Bruno Haible  <bruno@clisp.org>
107436         * gnulib-tool: New option --local-symlink.
107437         (func_usage): Document it.
107438         (lsymbolic): New variable.
107439         (func_import, func_create_testdir): If --symlink was not specified,
107440         test whether --local-symlink was specified and the file comes from
107441         the local_gnulib_dir.
107443 2006-11-12  Bruno Haible  <bruno@clisp.org>
107445         * gnulib-tool (func_ln): New function.
107446         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107448 2006-11-12  Bruno Haible  <bruno@clisp.org>
107450         Finish support for source files in subdirectories.
107451         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107452         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107453         AUTOMAKE_OPTIONS.
107454         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107456 2006-11-12  Bruno Haible  <bruno@clisp.org>
107458         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107459         EXTRA_lib_SOURCES augmentation.
107460         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107462 2006-11-12  Jim Meyering  <jim@meyering.net>
107464         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107465         file descriptors.  This also averts a failure on systems with
107466         native openat support when a traversed directory lacks "x" access.
107467         * lib/fts_.h: Include "i-ring.h"
107468         (struct FTS) [fts_fd_ring]: New member.
107469         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107470         (FCHDIR): Add parentheses.
107471         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107472         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107473         When descending, rather than simply closing the previous
107474         fts_cwd_fd value, push that file descriptor onto the ring.
107475         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107476         (fts_open): Initialize the new fd_ring member.
107477         (fts_close): Clear the ring.
107478         (fts_safe_changedir): When possible, use our new fd_ring to skip
107479         the diropen and fstat and dev/ino comparison that would normally
107480         accompany a virtual `chdir ("..")'.
107482         * modules/fts (Depends-on): Add i-ring.
107483         * modules/i-ring: New module.
107484         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107485         * m4/i-ring.m4: New file.
107487 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107489         * gnulib-tool (func_create_testdir): Fix replacement of
107490         `build-aux' in configure.ac.  Run autotools in gltests
107491         subdirectory.
107492         (func_create_testdir, func_create_megatestdir, test): There is
107493         no need for '--force' in most autotool invocations in a new
107494         tree.  Actually fail the whole test if any of the tools, or the
107495         configure or make stages fail.
107497         Sync from Automake.
107498         * build-aux/gnupload: Revert last change.  Add pointer to upload
107499         instructions of the GNU Maintenance Instructions.
107500         Suggestion by Karl Berry.
107502 2006-11-10  Jim Meyering  <jim@meyering.net>
107504         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107506 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107508         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107509         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107510         (bind_textdomain_codeset) [! ENABLE_NLS]:
107511         Evaluate all the arguments.  That way, callers get compatible behavior
107512         if the arguments have side effects.  Also, it avoids some GCC
107513         diagnostics in some cases; Joel E. Denny reported problems when Bison
107514         was configured with --enable-gcc-warnigs.
107516 2006-11-10  Jim Meyering  <jim@meyering.net>
107518         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107519         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107520         account.
107522 2006-11-10  Jim Meyering  <jim@meyering.net>
107524         * modules/inline: New file/module.
107525         * modules/xalloc (Files): Remove m4/inline.m4.
107526         (Depends-on): Add inline, instead.
107527         * modules/oset: Likewise.
107528         * modules/list: Likewise.
107530 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107532         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107533         Problem reported by Matthew Woehlke.
107535 2006-11-09  Bruno Haible  <bruno@clisp.org>
107537         * lib/tempname.c (gen_tempname): Remove variant that invokes
107538         __gen_tempname.
107539         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107540         __gen_tempname.
107542 2006-11-08  Bruno Haible  <bruno@clisp.org>
107544         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107545         to 'yes' instead of 'cross-compiling'.
107547 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107549         * lib/quotearg.h (quotearg_free): New decl.
107550         * lib/quotearg.c (quotearg_free): New function.
107551         (slot0, nslots, slotvec0, slotvec):
107552         Now file-scope so that quotearg_free can get at them.
107554 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107556         Sync from Automake.
107557         * build-aux/gnupload: Add missing 'gnu' to example URL.
107558         Report by Karl Berry.
107560 2006-11-08  Bruno Haible  <bruno@clisp.org>
107562         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107563         Suggested by Paul Eggert.
107565 2006-11-08  Jim Meyering  <jim@meyering.net>
107567         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107568         It's already included if !_LIBC.
107569         (fts_safe_changedir): Add a comment.
107571 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107573         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107574         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107575         Matthew Woehlke.
107577         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107578         definitions up, to avoid colliding with change below.
107579         (static_inline) [HAVE_INLINE]: New macro.
107580         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107581         Provide extern decls when !HAVE_INLINE.  Do not define unless
107582         static_inline is defined, either by us or by xmalloc.c.  Use
107583         static_inline rather than static inline.
107584         (XCALLOC): Optimize sizeof(T) = 1 case.
107585         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107587 2006-11-07  Bruno Haible  <bruno@clisp.org>
107589         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107590         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107591         AC_C_INLINE.
107592         * modules/xalloc (Files): Add m4/inline.m4.
107594 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107596         * README: Fix typo.
107597         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107598         (Miscellanous Notes): ...from this.
107600 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107602         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107603         Mention that offsetof should be used instead of sizeof.
107604         From Bruno Haible.
107606 2006-11-07  Bruno Haible  <bruno@clisp.org>
107608         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107610 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107612         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107613         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107614         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107615         (gl_tree_add_before, gl_tree_add_after):
107616         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107617         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107618         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107619         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107620         (gl_linked_add_after, gl_linked_add_at): Likewise.
107621         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107622         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107623         (gl_tree_add_before, gl_tree_add_after): Likewise.
107624         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107625         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107626         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107628 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107630         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107632 2006-11-06  Bruno Haible  <bruno@clisp.org>
107634         * m4/inline.m4: New file.
107635         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107636         * modules/list (Files): Add m4/inline.m4.
107637         * modules/oset (Files): Likewise.
107639 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107641         * lib/idcache.c: Include <stddef.h>, for offsetof.
107642         (struct userid.name): Change from char * to a flexible array member.
107643         All uses changed.
107644         * modules/idcache (Depends-on): Add flexmember.
107646         * MODULES.html.sh (Core language properties): New module flexmember.
107647         * modules/flexmember, m4/flexmember.m4: New files.
107649         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107650         inline functions that are identical with the old xnmalloc_inline,
107651         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107652         that we can avoid some unnecessary integer multiplications and
107653         divisions in the common case where the element size is known at
107654         compile time.
107655         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107656         needed.
107657         (xnboundedmalloc): Remove.
107658         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107659         arguments, for consistency with rest of this header.
107660         (xcharalloc): Rewrite using XNMALLOC.
107661         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107662         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107663         versions have been moved to lib/xalloc.h and renamed to be the
107664         non-*_inline versions.
107665         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107666         and xnrealloc functions, since those functions are now inline and
107667         now call us.
107668         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107669         renaming described above.
107670         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107671         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107672         captures the dependency in AC_C_INLINE.
107674         New module canonicalize-lgpl, proposed by Charles Wilson in
107675         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107676         with a few small changes afterwards.
107677         * MODULES.html.sh (File system functions): New module
107678         canonicalize-lgpl.
107679         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107680         and canonicalize_file_name.
107681         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107682         * modules/canonicalize-lgpl: New files.
107684 2006-11-05  Bruno Haible  <bruno@clisp.org>
107686         * gnulib-tool (func_import, func_create_testdir): Create directories
107687         also for files in subdirectories of lib/.
107689 2006-11-05  Bruno Haible  <bruno@clisp.org>
107691         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107692         ANSI C compliant.
107694 2006-11-03  Bruno Haible  <bruno@clisp.org>
107696         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107697         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107698         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107699         (xnboundedmalloc): New inline function.
107700         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107701         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107702         xmalloc.
107703         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107704         xmalloc.
107705         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107706         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107707         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107708         xmalloc.
107709         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107710         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107711         xmalloc.
107712         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107713         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107714         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107715         xmalloc.
107716         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107717         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107718         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107719         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107720         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107721         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107722         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107724 2006-11-03  Bruno Haible  <bruno@clisp.org>
107726         * lib/c-ctype.h [C++]: Define functions without name mangling.
107727         * lib/fwriteerror.h [C++]: Likewise.
107728         * lib/gcd.h [C++]: Likewise.
107729         * lib/linebreak.h [C++]: Likewise.
107731 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107733         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107734         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107735         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107736         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107737         Check for functions and headers just once.
107738         Check for declaration of canonicalize_file_name.
107739         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107741 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107743         * gnulib-tool (func_import): Fix typo in actioncmd.
107745 2006-11-02  Bruno Haible  <bruno@clisp.org>
107747         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107748         newline sequence in the Makefile.am snippet as a space, like "make"
107749         does.
107750         Reported by Roger Persson <perrog@gmail.com>.
107752 2006-11-01  Bruno Haible  <bruno@clisp.org>
107754         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107755         already declared in <string.h>.
107756         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107758 2006-11-01  Bruno Haible  <bruno@clisp.org>
107760         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107761         * lib/strcase.h: Include <string.h>.
107762         (strcasecmp): Define to rpl_strcasecmp here.
107764 2006-11-01  Bruno Haible  <bruno@clisp.org>
107766         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107768 2006-11-01  Eric Blake  <ebb9@byu.net>
107770         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107774 2006-10-29  Bruno Haible  <bruno@clisp.org>
107776         Make it compile in C++ mode.
107777         * lib/full-write.c (full_rw): Add a cast.
107779 2006-11-01  Bruno Haible  <bruno@clisp.org>
107781         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107782         be POSIX compliant.
107783         Reported by Roger Persson <perrog@gmail.com>.
107785 2006-11-01  Eric Blake  <ebb9@byu.net>
107787         * lib/getopt_.h: Fix comments.
107789 2006-10-31  Eric Blake  <ebb9@byu.net>
107791         * modules/tmpdir (Depends-on): Add sys_stat.
107792         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107793         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107794         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107795         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107796         tempname.
107798 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107800         Avoid some C++ diagnostics reported by Bruno Haible.
107801         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107802         xmalloc.
107803         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107804         (struct slotvec): Move to top level.
107805         (quotearg_n_options): Rewrite to avoid xmalloc.
107806         * lib/xalloc.h (xcharalloc): New function.
107807         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107808         [defined __cplusplus]: Add function template that provides result
107809         type propagation.  This part of the change is from Bruno Haible.
107811 2006-10-29  Bruno Haible  <bruno@clisp.org>
107813         Make it compile in C++ mode.
107814         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107815         * lib/strnlen1.c (strnlen1): Cast memchr result.
107816         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107817         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107818         (create_temp_dir): Rename local variable 'template'.
107819         (compile_csharp_using_sscli): Add cast.
107820         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107821         * lib/findprog.c (find_in_path): Likewise.
107822         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107823         * lib/wait-process.c (register_slave_subprocess): Likewise.
107825 2006-10-22  Bruno Haible  <bruno@clisp.org>
107827         * modules/tsearch: New file.
107828         * lib/tsearch.h: New file.
107829         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107830         * m4/tsearch.m4: New file.
107831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107833 2006-10-29  Eric Blake  <ebb9@byu.net>
107835         * lib/arcfour.c: Assume config.h.
107836         * lib/arctwo.c: Likewise.
107837         * lib/base64.c: Likewise.
107838         * lib/check-version.c: Likewise.
107839         * lib/crc.c: Likewise.
107840         * lib/des.c: Likewise.
107841         * lib/gc-gnulib.c: Likewise.
107842         * lib/gc-libgcrypt.c: Likewise.
107843         * lib/gc-pbkdf2-sha1.c: Likewise.
107844         * lib/getaddrinfo.c: Likewise.
107845         * lib/getdelim.c: Likewise.
107846         * lib/getline.c: Likewise.
107847         * lib/hmac-md5.c: Likewise.
107848         * lib/hmac-sha1.c: Likewise.
107849         * lib/iconvme.c: Likewise.
107850         * lib/md2.c: Likewise.
107851         * lib/md4.c: Likewise.
107852         * lib/memxor.c: Likewise.
107853         * lib/read-file.c: Likewise.
107854         * lib/readline.c: Likewise.
107855         * lib/rijndael-alg-fst.c: Likewise.
107856         * lib/rijndael-api-fst.c: Likewise.
107857         * lib/xgetdomainname.c: Likewise.
107859 2006-10-28  Eric Blake  <ebb9@byu.net>
107861         * lib/xstrndup.c: Assume config.h.
107863 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107865         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107866         stat-macros.h is now for our own macros, whereas stat_h is for
107867         macros in the <sys/stat.h> name space.
107868         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107869         (STAT_MACROS_H): Remove.
107870         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107871         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107872         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107873         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107874         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107875         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107876         Move these macros to ...
107877         * lib/stat_.h: here.  Don't include stat-macros.h.
107878         * lib/canonicalize.c: Don't include stat-macros.h.
107879         * lib/chown.c: Likewise.
107880         * lib/euidaccess.c: Likewise.
107881         * lib/file-type.c: Likewise.
107882         * lib/filemode.c: Likewise.
107883         * lib/glob.c: Likewise.
107884         * lib/isapipe.c: Likewise.
107885         * lib/lchown.c: Likewise.
107886         * lib/lstat.c: Likewise.
107887         * lib/mkdir-p.c: Likewise.
107888         * lib/rmdir.c: Likewise.
107889         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107890         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107891         unless mkdir isn't declared, to speed up 'configure'.
107892         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107893         would define all the S_* symbols.
107894         * modules/canonicalize (Depends-on):
107895         Depend on sys_stat, not stat-macros.
107896         * modules/chown: Likewise.
107897         * modules/euidaccess: Likewise.
107898         * modules/filemode: Likewise.
107899         * modules/file-type: Likewise.
107900         * modules/glob: Likewise.
107901         * modules/isapipe: Likewise.
107902         * modules/lchown: Likewise.
107903         * modules/lstat: Likewise.
107904         * modules/mkancesdirs: Likewise.
107905         * modules/rmdir: Likewise.
107906         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107907         * modules/modechange: Likewise.
107908         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107909         (configure.ac): Remove gl_STAT_MACROS.
107910         * modules/sys_stat (Depends-on): Remove stat-macros.
107912 2006-10-27  Bruno Haible  <bruno@clisp.org>
107914         * m4/signed.m4: Remove file.
107915         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107916         invocation.
107917         * modules/vasnprintf (Files): Remove m4/signed.m4.
107919 2006-10-27  Bruno Haible  <bruno@clisp.org>
107921         Update to GNU gettext 0.16.
107922         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107923         m4/inttypes-h.m4, m4/signed.m4.
107924         * m4/gettext.m4: Update to GNU gettext 0.16.
107925         * m4/intl.m4: New file, from GNU gettext.
107926         * m4/intldir.m4: New file, from GNU gettext.
107927         * config/srclist.txt: Update
107929 2006-10-27  Eric Blake  <ebb9@byu.net>
107931         * MODULES.html.sh: Document tempname.
107932         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107933         dependencies.
107934         (Files): Move lib/tempname.c...
107935         * modules/tempname: ...to this new module.
107936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107937         (gl_PREREQ_TEMPNAME): Move...
107938         * m4/tempname.m4: ...to this new file.
107939         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107940         * modules/sys_stat (Depends-on): Add stat-macros.
107941         * lib/stat_.h (includes): Pick up stat macros.
107942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107943         if stat macros are broken.
107944         * lib/tempname.c (includes): No need to include "stat-macros.h".
107945         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107946         (direxists, __path_search) [!_LIBC]: Don't compile these in
107947         gnulib; the tmpdir module covers that.
107948         * lib/tempname.h: New file.
107950 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107952         * COPYING: Explain how gnulib-tool converts licence headers.
107953         Almost all wording by Eric Blake.
107955 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107957         * lib/mbchar.h (is_basic_table): Make read-only.
107958         * lib/mbchar.c (is_basic_table): Likewise.
107959         Reported by John Darrington.
107961 2006-10-25  Bruno Haible  <bruno@clisp.org>
107963         * lib/progname.h (set_program_name): Undefine before defining.
107965 2006-10-25  Bruno Haible  <bruno@clisp.org>
107967         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107968         false for non-gcc C++ compilers.
107969         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107971 2006-10-24  Bruno Haible  <bruno@clisp.org>
107973         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107974         iconv implementations like Irix iconv.
107976 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107978         * modules/vararrays: New file.
107979         * m4/vararrays.m4: New file, taken from diffutils.
107980         * MODULES.html.sh: New module vararrays.
107982 2006-10-24  Karl Berry  <karl@gnu.org>
107984         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107985         Don't call GNU Unix.
107987 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107989         * users.txt: Add Libtool.
107991         Sync from Libtool:
107993         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107995         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107996         to gnulib's policy of including config.h unconditionally.
107998 2006-10-24  Bruno Haible  <bruno@clisp.org>
108000         * modules/wcwidth (Files): Add m4/wint_t.m4.
108001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108002         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108004 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108006         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108007         to pacify GCC with some -W flags enabled.  Problem reported by
108008         Bruno Haible.
108010 2006-10-24  Jim Meyering  <jim@meyering.net>
108012         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108013         Reported by Karl Berry.
108015 2006-10-23  Bruno Haible  <bruno@clisp.org>
108017         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108019 2006-10-24  Bruno Haible  <bruno@clisp.org>
108021         * lib/gl_list.h: Use C comment style, not C++ comment style.
108023 2006-10-23  Eric Blake  <ebb9@byu.net>
108025         * lib/getaddrinfo.c (includes): Add missing include.
108027 2006-10-23  Bruno Haible  <bruno@clisp.org>
108028             Paul Eggert  <eggert@cs.ucla.edu>
108030         Ability to rename obstack_free.
108031         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108032         obstack_free.
108033         (obstack_free): Invoke the __obstack_free macro.
108034         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108036 2006-10-23  Bruno Haible  <bruno@clisp.org>
108037             Paul Eggert  <eggert@cs.ucla.edu>
108039         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108040         __argc, __argv from the declaration. (They are defined as macros on
108041         mingw.)
108043 2006-10-22  Bruno Haible  <bruno@clisp.org>
108045         * doc/gnulib-intro.texi: New file.
108046         * doc/gnulib.texi: Include it.
108048 2006-10-21  Bruno Haible  <bruno@clisp.org>
108050         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108051         "Introduction", "Miscellanous Notes", "Particular Modules".
108053 2006-10-21  Bruno Haible  <bruno@clisp.org>
108055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108056         Change mostlyclean-local rule to avoid sh syntax error from bash
108057         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108059 2006-10-23  Jim Meyering  <jim@meyering.net>
108061         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108062         in place of snprintf.
108064         * modules/inttostr (Files): Add lib/uinttostr.c.
108065         * lib/uinttostr.c (inttostr): New file/function.
108066         * lib/inttostr.h (uinttostr): Declare.
108067         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108068         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108069         Add uinttostr.
108070         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108072 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108074         * lib/canonicalize.c (ELOOP): Define if not already defined.
108075         Problem reported by Bruno Haible in
108076         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108078 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108080         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108081         Problem reported by Perry Smith and Ville Laurikari.
108083         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108084         uses.
108086 2006-10-19  Bruno Haible  <bruno@clisp.org>
108088         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108089         for mingw.
108091 2006-10-19  Bruno Haible  <bruno@clisp.org>
108093         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108094         Needed for mingw.
108096 2006-10-19  Bruno Haible  <bruno@clisp.org>
108098         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108100 2006-10-19  Bruno Haible  <bruno@clisp.org>
108102         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108103         it.
108105 2006-10-19  Bruno Haible  <bruno@clisp.org>
108107         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108108         invocation.
108110 2006-10-19  Bruno Haible  <bruno@clisp.org>
108112         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108113         mountlist by default.
108115 2006-10-16  Bruno Haible  <bruno@clisp.org>
108117         * lib/c-strstr.c: Include c-strstr.h.
108119 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108121         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108122         in a slash.
108124 2006-10-18  Bruno Haible  <bruno@clisp.org>
108126         * lib/lock.h [C++]: Wrap definitions in extern "C".
108128 2006-10-18  Bruno Haible  <bruno@clisp.org>
108130         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108131         gl_LIBOBJS list.
108133 2006-10-18  Bruno Haible  <bruno@clisp.org>
108135         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108137 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108139         * lib/xstrtol.h: Include gettext.h.
108140         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108141         Problem reported by Eric Blake.
108142         * modules/xstrtol (Depends-on): Add gettext-h.
108144 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108146         * lib/strftime.c (advance): New macro.
108147         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108148         incomplete type, so you can't add 0 to it.  Problem and patch
108149         reported by Eelco Dolstra for dietlibc.
108151 2006-10-18  Jim Meyering  <jim@meyering.net>
108153         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108154         type for a local, and rename it: s/up/user_proc/.
108156 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108158         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108159         READ_UTMP_USER_PROCESS.
108160         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108162 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108164         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108165         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108167 2006-10-17  Eric Blake  <ebb9@byu.net>
108169         * lib/sigprocmask.c (sigprocmask): Fix typo.
108171         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108173         * modules/clean-temp (Makefile.am): Don't add to make output...
108174         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108175         config.h.
108177 2006-10-17  Bruno Haible  <bruno@clisp.org>
108179         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108180         differently if DEFAULT_TEXT_DOMAIN is set.
108182 2006-10-16  Bruno Haible  <bruno@clisp.org>
108184         * lib/clean-temp.c: Include fwriteerror.h.
108186 2006-10-16  Bruno Haible  <bruno@clisp.org>
108188         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108190 2006-10-16  Bruno Haible  <bruno@clisp.org>
108192         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108193         * lib/sigprocmask.h: Include <sys/types.h>.
108194         (sigset_t): Use the system's definition if present.
108196 2006-10-17  Eric Blake  <ebb9@byu.net>
108198         * lib/xvasprintf.c (includes): Assume config.h.
108199         * lib/xasprintf.c (includes): Likewise.
108201 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108203         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108204         at least as wide as intmax_t.
108206 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108208         (Imported from Automake.)
108209         * build-aux/gnupload: Update to version 1.1 of directive file.
108211 2006-10-16  Eric Blake  <ebb9@byu.net>
108213         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108214         match Automake 1.10a.
108216 2006-10-14  Bruno Haible  <bruno@clisp.org>
108218         * modules/sigprocmask: New file.
108219         * lib/sigprocmask.h: New file.
108220         * lib/sigprocmask.c: New file.
108221         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108222         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108223         request sigprocmask.o.
108224         (gl_PREREQ_SIGPROCMASK): New macro.
108225         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108226         (Depends-on): Add sigprocmask.
108227         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108228         gt_SIGNALBLOCKING. Test for 'raise' only once.
108229         * lib/fatal-signal.c: Include sigprocmask.h.
108230         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108231         unblock_fatal_signals): Define always.
108232         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108233         sigprocmask.
108235 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108237         Sync from Automake.
108238         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108239         which incorrectly sets the mode of an existing destination
108240         directory.  In some cases the unpatched install-sh could do the
108241         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108242         system.  We hope this is rare in practice, but it's clearly worth
108243         fixing.  Problem reported by Alex Unleashed in
108244         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108245         Also, don't bother to check for -m bugs unless we're using -m;
108246         suggested by Stepan Kasal.
108248 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108250         Sync from Automake.
108251         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108252         `-c' flag, so they appear at the same position as in %FASTDEP%
108253         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108254         which ignores unknown options only after the first non-option.
108255         Bug report against M4 by Nelson H. F. Beebe.
108257 2006-10-13  Jim Meyering  <jim@meyering.net>
108259         Fix a bug in yesterday's change.
108260         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108261         p->fts_statp->st_dev would be used uninitialized.
108262         Ensures that we always call fts_stat on the very first entry.
108263         Miklos Szeredi reported that find -xdev stopped working.
108265 2006-10-12  Bruno Haible  <bruno@clisp.org>
108267         * gnulib-tool (func_get_automake_snippet): Append an automatically
108268         computed EXTRA_DIST augmentation.
108269         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108270         * modules/alloca-opt (Makefile.am): Likewise.
108271         * modules/allocsa (Makefile.am): Likewise.
108272         * modules/arcfour (Makefile.am): Likewise.
108273         * modules/arctwo (Makefile.am): Likewise.
108274         * modules/argmatch (Makefile.am): Likewise.
108275         * modules/argz (Makefile.am): Likewise.
108276         * modules/atexit (Makefile.am): Likewise.
108277         * modules/backupfile (Makefile.am): Likewise.
108278         * modules/byteswap (Makefile.am): Likewise.
108279         * modules/c-strtod (Makefile.am): Likewise.
108280         * modules/c-strtold (Makefile.am): Likewise.
108281         * modules/calloc (Makefile.am): Likewise.
108282         * modules/canon-host (Makefile.am): Likewise.
108283         * modules/canonicalize (Makefile.am): Likewise.
108284         * modules/chdir-long (Makefile.am): Likewise.
108285         * modules/chdir-safer (Makefile.am): Likewise.
108286         * modules/check-version (Makefile.am): Likewise.
108287         * modules/chown (Makefile.am): Likewise.
108288         * modules/cloexec (Makefile.am): Likewise.
108289         * modules/close-stream (Makefile.am): Likewise.
108290         * modules/closeout (Makefile.am): Likewise.
108291         * modules/crc (Makefile.am): Likewise.
108292         * modules/csharpexec (Makefile.am): Likewise.
108293         * modules/cycle-check (Makefile.am): Likewise.
108294         * modules/des (Makefile.am): Likewise.
108295         * modules/dev-ino (Makefile.am): Likewise.
108296         * modules/dirfd (Makefile.am): Likewise.
108297         * modules/dirname (Makefile.am): Likewise.
108298         * modules/dup2 (Makefile.am): Likewise.
108299         * modules/eealloc (Makefile.am): Likewise.
108300         * modules/error (Makefile.am): Likewise.
108301         * modules/euidaccess (Makefile.am): Likewise.
108302         * modules/exclude (Makefile.am): Likewise.
108303         * modules/exitfail (Makefile.am): Likewise.
108304         * modules/fcntl-safer (Makefile.am): Likewise.
108305         * modules/fcntl (Makefile.am): Likewise.
108306         * modules/file-type (Makefile.am): Likewise.
108307         * modules/fileblocks (Makefile.am): Likewise.
108308         * modules/filemode (Makefile.am): Likewise.
108309         * modules/filenamecat (Makefile.am): Likewise.
108310         * modules/fnmatch (Makefile.am): Likewise.
108311         * modules/fopen-safer (Makefile.am): Likewise.
108312         * modules/fpending (Makefile.am): Likewise.
108313         * modules/fprintftime (Makefile.am): Likewise.
108314         * modules/free (Makefile.am): Likewise.
108315         * modules/fsusage (Makefile.am): Likewise.
108316         * modules/ftruncate (Makefile.am): Likewise.
108317         * modules/fts (Makefile.am): Likewise.
108318         * modules/gc-arcfour (Makefile.am): Likewise.
108319         * modules/gc-des (Makefile.am): Likewise.
108320         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108321         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108322         * modules/gc-md4 (Makefile.am): Likewise.
108323         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108324         * modules/gc-sha1 (Makefile.am): Likewise.
108325         * modules/gc (Makefile.am): Likewise.
108326         * modules/getaddrinfo (Makefile.am): Likewise.
108327         * modules/getcwd (Makefile.am): Likewise.
108328         * modules/getdelim (Makefile.am): Likewise.
108329         * modules/getdomainname (Makefile.am): Likewise.
108330         * modules/getgroups (Makefile.am): Likewise.
108331         * modules/gethostname (Makefile.am): Likewise.
108332         * modules/gethrxtime (Makefile.am): Likewise.
108333         * modules/getline (Makefile.am): Likewise.
108334         * modules/getloadavg (Makefile.am): Likewise.
108335         * modules/getlogin_r (Makefile.am): Likewise.
108336         * modules/getndelim2 (Makefile.am): Likewise.
108337         * modules/getopt (Makefile.am): Likewise.
108338         * modules/getpagesize (Makefile.am): Likewise.
108339         * modules/getpass-gnu (Makefile.am): Likewise.
108340         * modules/getpass (Makefile.am): Likewise.
108341         * modules/getsubopt (Makefile.am): Likewise.
108342         * modules/gettime (Makefile.am): Likewise.
108343         * modules/gettimeofday (Makefile.am): Likewise.
108344         * modules/getugroups (Makefile.am): Likewise.
108345         * modules/getusershell (Makefile.am): Likewise.
108346         * modules/glob (Makefile.am): Likewise.
108347         * modules/group-member (Makefile.am): Likewise.
108348         * modules/hard-locale (Makefile.am): Likewise.
108349         * modules/hash (Makefile.am): Likewise.
108350         * modules/hmac-md5 (Makefile.am): Likewise.
108351         * modules/hmac-sha1 (Makefile.am): Likewise.
108352         * modules/human (Makefile.am): Likewise.
108353         * modules/idcache (Makefile.am): Likewise.
108354         * modules/imaxabs (Makefile.am): Likewise.
108355         * modules/imaxdiv (Makefile.am): Likewise.
108356         * modules/inet_ntop (Makefile.am): Likewise.
108357         * modules/inet_pton (Makefile.am): Likewise.
108358         * modules/intprops (Makefile.am): Likewise.
108359         * modules/inttostr (Makefile.am): Likewise.
108360         * modules/inttypes (Makefile.am): Likewise.
108361         * modules/isapipe (Makefile.am): Likewise.
108362         * modules/javaversion (Makefile.am): Likewise.
108363         * modules/lchmod (Makefile.am): Likewise.
108364         * modules/lchown (Makefile.am): Likewise.
108365         * modules/localcharset (Makefile.am): Likewise.
108366         * modules/long-options (Makefile.am): Likewise.
108367         * modules/lstat (Makefile.am): Likewise.
108368         * modules/malloc (Makefile.am): Likewise.
108369         * modules/mathl (Makefile.am): Likewise.
108370         * modules/mbchar (Makefile.am): Likewise.
108371         * modules/md2 (Makefile.am): Likewise.
108372         * modules/md4 (Makefile.am): Likewise.
108373         * modules/md5 (Makefile.am): Likewise.
108374         * modules/memcasecmp (Makefile.am): Likewise.
108375         * modules/memchr (Makefile.am): Likewise.
108376         * modules/memcmp (Makefile.am): Likewise.
108377         * modules/memcoll (Makefile.am): Likewise.
108378         * modules/memcpy (Makefile.am): Likewise.
108379         * modules/memmem (Makefile.am): Likewise.
108380         * modules/memmove (Makefile.am): Likewise.
108381         * modules/mempcpy (Makefile.am): Likewise.
108382         * modules/memrchr (Makefile.am): Likewise.
108383         * modules/memset (Makefile.am): Likewise.
108384         * modules/memxor (Makefile.am): Likewise.
108385         * modules/mkancesdirs (Makefile.am): Likewise.
108386         * modules/mkdir-p (Makefile.am): Likewise.
108387         * modules/mkdir (Makefile.am): Likewise.
108388         * modules/mkdtemp (Makefile.am): Likewise.
108389         * modules/mkstemp (Makefile.am): Likewise.
108390         * modules/mktime (Makefile.am): Likewise.
108391         * modules/modechange (Makefile.am): Likewise.
108392         * modules/mountlist (Makefile.am): Likewise.
108393         * modules/nanosleep (Makefile.am): Likewise.
108394         * modules/obstack (Makefile.am): Likewise.
108395         * modules/openat (Makefile.am): Likewise.
108396         * modules/pagealign_alloc (Makefile.am): Likewise.
108397         * modules/pathmax (Makefile.am): Likewise.
108398         * modules/physmem (Makefile.am): Likewise.
108399         * modules/poll (Makefile.am): Likewise.
108400         * modules/posixtm (Makefile.am): Likewise.
108401         * modules/posixver (Makefile.am): Likewise.
108402         * modules/putenv (Makefile.am): Likewise.
108403         * modules/quote (Makefile.am): Likewise.
108404         * modules/quotearg (Makefile.am): Likewise.
108405         * modules/raise (Makefile.am): Likewise.
108406         * modules/read-file (Makefile.am): Likewise.
108407         * modules/readline (Makefile.am): Likewise.
108408         * modules/readlink (Makefile.am): Likewise.
108409         * modules/readtokens (Makefile.am): Likewise.
108410         * modules/readutmp (Makefile.am): Likewise.
108411         * modules/realloc (Makefile.am): Likewise.
108412         * modules/regex (Makefile.am): Likewise.
108413         * modules/rename-dest-slash (Makefile.am): Likewise.
108414         * modules/rename (Makefile.am): Likewise.
108415         * modules/rijndael (Makefile.am): Likewise.
108416         * modules/rmdir (Makefile.am): Likewise.
108417         * modules/rpmatch (Makefile.am): Likewise.
108418         * modules/safe-read (Makefile.am): Likewise.
108419         * modules/safe-write (Makefile.am): Likewise.
108420         * modules/same-inode (Makefile.am): Likewise.
108421         * modules/same (Makefile.am): Likewise.
108422         * modules/save-cwd (Makefile.am): Likewise.
108423         * modules/savedir (Makefile.am): Likewise.
108424         * modules/setenv (Makefile.am): Likewise.
108425         * modules/settime (Makefile.am): Likewise.
108426         * modules/sha1 (Makefile.am): Likewise.
108427         * modules/sig2str (Makefile.am): Likewise.
108428         * modules/snprintf (Makefile.am): Likewise.
108429         * modules/stat-macros (Makefile.am): Likewise.
108430         * modules/stat-time (Makefile.am): Likewise.
108431         * modules/stdbool (Makefile.am): Likewise.
108432         * modules/stdint (Makefile.am): Likewise.
108433         * modules/stdlib-safer (Makefile.am): Likewise.
108434         * modules/stpcpy (Makefile.am): Likewise.
108435         * modules/stpncpy (Makefile.am): Likewise.
108436         * modules/strcase (Makefile.am): Likewise.
108437         * modules/strcasestr (Makefile.am): Likewise.
108438         * modules/strchrnul (Makefile.am): Likewise.
108439         * modules/strcspn (Makefile.am): Likewise.
108440         * modules/strdup (Makefile.am): Likewise.
108441         * modules/strerror (Makefile.am): Likewise.
108442         * modules/strftime (Makefile.am): Likewise.
108443         * modules/strndup (Makefile.am): Likewise.
108444         * modules/strnlen (Makefile.am): Likewise.
108445         * modules/strpbrk (Makefile.am): Likewise.
108446         * modules/strsep (Makefile.am): Likewise.
108447         * modules/strstr (Makefile.am): Likewise.
108448         * modules/strtod (Makefile.am): Likewise.
108449         * modules/strtoimax (Makefile.am): Likewise.
108450         * modules/strtok_r (Makefile.am): Likewise.
108451         * modules/strtol (Makefile.am): Likewise.
108452         * modules/strtoll (Makefile.am): Likewise.
108453         * modules/strtoul (Makefile.am): Likewise.
108454         * modules/strtoull (Makefile.am): Likewise.
108455         * modules/strtoumax (Makefile.am): Likewise.
108456         * modules/strverscmp (Makefile.am): Likewise.
108457         * modules/sys_socket (Makefile.am): Likewise.
108458         * modules/sys_stat (Makefile.am): Likewise.
108459         * modules/sysexits (Makefile.am): Likewise.
108460         * modules/time_r (Makefile.am): Likewise.
108461         * modules/timegm (Makefile.am): Likewise.
108462         * modules/timespec (Makefile.am): Likewise.
108463         * modules/tmpfile-safer (Makefile.am): Likewise.
108464         * modules/trim (Makefile.am): Likewise.
108465         * modules/unistd-safer (Makefile.am): Likewise.
108466         * modules/unlinkdir (Makefile.am): Likewise.
108467         * modules/unlocked-io (Makefile.am): Likewise.
108468         * modules/userspec (Makefile.am): Likewise.
108469         * modules/utime (Makefile.am): Likewise.
108470         * modules/utimecmp (Makefile.am): Likewise.
108471         * modules/utimens (Makefile.am): Likewise.
108472         * modules/vasnprintf (Makefile.am): Likewise.
108473         * modules/vasprintf (Makefile.am): Likewise.
108474         * modules/vsnprintf (Makefile.am): Likewise.
108475         * modules/xalloc (Makefile.am): Likewise.
108476         * modules/xgetcwd (Makefile.am): Likewise.
108477         * modules/xnanosleep (Makefile.am): Likewise.
108478         * modules/xreadlink (Makefile.am): Likewise.
108479         * modules/xstrtod (Makefile.am): Likewise.
108480         * modules/xstrtol (Makefile.am): Likewise.
108481         * modules/xstrtold (Makefile.am): Likewise.
108482         * modules/yesno (Makefile.am): Likewise.
108483         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108485 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108487         * modules/error (Makefile.am): Distribute files through
108488         EXTRA_DIST, not lib_SOURCES.
108490 2006-10-12  Eric Blake  <ebb9@byu.net>
108492         * modules/error (Makefile.am): Distribute files in /lib.
108493         * modules/obstack (Makefile.am): Likewise.
108495 2006-10-12  Bruno Haible  <bruno@clisp.org>
108497         * modules/acl (Makefile.am): Distribute all files in lib/ through
108498         EXTRA_DIST.
108499         * modules/arcfour (Makefile.am): Likewise.
108500         * modules/arctwo (Makefile.am): Likewise.
108501         * modules/argmatch (Makefile.am): Likewise.
108502         * modules/argz (Makefile.am): Likewise.
108503         * modules/atexit (Makefile.am): Likewise.
108504         * modules/backupfile (Makefile.am): Likewise.
108505         * modules/c-strtod (Makefile.am): Likewise.
108506         * modules/c-strtold (Makefile.am): Likewise.
108507         * modules/calloc (Makefile.am): Likewise.
108508         * modules/canon-host (Makefile.am): Likewise.
108509         * modules/canonicalize (Makefile.am): Likewise.
108510         * modules/chdir-long (Makefile.am): Likewise.
108511         * modules/chdir-safer (Makefile.am): Likewise.
108512         * modules/check-version (Makefile.am): Likewise.
108513         * modules/chown (Makefile.am): Likewise.
108514         * modules/cloexec (Makefile.am): Likewise.
108515         * modules/close-stream (Makefile.am): Likewise.
108516         * modules/closeout (Makefile.am): Likewise.
108517         * modules/crc (Makefile.am): Likewise.
108518         * modules/cycle-check (Makefile.am): Likewise.
108519         * modules/des (Makefile.am): Likewise.
108520         * modules/dirfd (Makefile.am): Likewise.
108521         * modules/dirname (Makefile.am): Likewise.
108522         * modules/dup2 (Makefile.am): Likewise.
108523         * modules/euidaccess (Makefile.am): Likewise.
108524         * modules/exclude (Makefile.am): Likewise.
108525         * modules/exitfail (Makefile.am): Likewise.
108526         * modules/fcntl-safer (Makefile.am): Likewise.
108527         * modules/file-type (Makefile.am): Likewise.
108528         * modules/fileblocks (Makefile.am): Likewise.
108529         * modules/filemode (Makefile.am): Likewise.
108530         * modules/filenamecat (Makefile.am): Likewise.
108531         * modules/fnmatch (Makefile.am): Likewise.
108532         * modules/fopen-safer (Makefile.am): Likewise.
108533         * modules/fpending (Makefile.am): Likewise.
108534         * modules/fprintftime (Makefile.am): Likewise.
108535         * modules/free (Makefile.am): Likewise.
108536         * modules/fsusage (Makefile.am): Likewise.
108537         * modules/ftruncate (Makefile.am): Likewise.
108538         * modules/fts (Makefile.am): Likewise.
108539         * modules/gc (Makefile.am): Likewise.
108540         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108541         * modules/getaddrinfo (Makefile.am): Likewise.
108542         * modules/getcwd (Makefile.am): Likewise.
108543         * modules/getdelim (Makefile.am): Likewise.
108544         * modules/getdomainname (Makefile.am): Likewise.
108545         * modules/getgroups (Makefile.am): Likewise.
108546         * modules/gethostname (Makefile.am): Likewise.
108547         * modules/gethrxtime (Makefile.am): Likewise.
108548         * modules/getline (Makefile.am): Likewise.
108549         * modules/getloadavg (Makefile.am): Likewise.
108550         * modules/getlogin_r (Makefile.am): Likewise.
108551         * modules/getopt (Makefile.am): Likewise.
108552         * modules/getpass (Makefile.am): Likewise.
108553         * modules/getpass-gnu (Makefile.am): Likewise.
108554         * modules/getsubopt (Makefile.am): Likewise.
108555         * modules/gettime (Makefile.am): Likewise.
108556         * modules/gettimeofday (Makefile.am): Likewise.
108557         * modules/getugroups (Makefile.am): Likewise.
108558         * modules/getusershell (Makefile.am): Likewise.
108559         * modules/glob (Makefile.am): Likewise.
108560         * modules/group-member (Makefile.am): Likewise.
108561         * modules/hard-locale (Makefile.am): Likewise.
108562         * modules/hash (Makefile.am): Likewise.
108563         * modules/hmac-md5 (Makefile.am): Likewise.
108564         * modules/hmac-sha1 (Makefile.am): Likewise.
108565         * modules/human (Makefile.am): Likewise.
108566         * modules/idcache (Makefile.am): Likewise.
108567         * modules/imaxabs (Makefile.am): Likewise.
108568         * modules/imaxdiv (Makefile.am): Likewise.
108569         * modules/inet_ntop (Makefile.am): Likewise.
108570         * modules/inet_pton (Makefile.am): Likewise.
108571         * modules/inttostr (Makefile.am): Likewise.
108572         * modules/isapipe (Makefile.am): Likewise.
108573         * modules/lchown (Makefile.am): Likewise.
108574         * modules/long-options (Makefile.am): Likewise.
108575         * modules/lstat (Makefile.am): Likewise.
108576         * modules/malloc (Makefile.am): Likewise.
108577         * modules/mathl (Makefile.am): Likewise.
108578         * modules/mbchar (Makefile.am): Likewise.
108579         * modules/md2 (Makefile.am): Likewise.
108580         * modules/md4 (Makefile.am): Likewise.
108581         * modules/md5 (Makefile.am): Likewise.
108582         * modules/memcasecmp (Makefile.am): Likewise.
108583         * modules/memchr (Makefile.am): Likewise.
108584         * modules/memcmp (Makefile.am): Likewise.
108585         * modules/memcoll (Makefile.am): Likewise.
108586         * modules/memcpy (Makefile.am): Likewise.
108587         * modules/memmem (Makefile.am): Likewise.
108588         * modules/memmove (Makefile.am): Likewise.
108589         * modules/mempcpy (Makefile.am): Likewise.
108590         * modules/memrchr (Makefile.am): Likewise.
108591         * modules/memset (Makefile.am): Likewise.
108592         * modules/memxor (Makefile.am): Likewise.
108593         * modules/mkancesdirs (Makefile.am): Likewise.
108594         * modules/mkdir (Makefile.am): Likewise.
108595         * modules/mkdir-p (Makefile.am): Likewise.
108596         * modules/mkdtemp (Makefile.am): Likewise.
108597         * modules/mkstemp (Makefile.am): Likewise.
108598         * modules/mktime (Makefile.am): Likewise.
108599         * modules/modechange (Makefile.am): Likewise.
108600         * modules/mountlist (Makefile.am): Likewise.
108601         * modules/nanosleep (Makefile.am): Likewise.
108602         * modules/openat (Makefile.am): Likewise.
108603         * modules/pagealign_alloc (Makefile.am): Likewise.
108604         * modules/physmem (Makefile.am): Likewise.
108605         * modules/poll (Makefile.am): Likewise.
108606         * modules/posixtm (Makefile.am): Likewise.
108607         * modules/posixver (Makefile.am): Likewise.
108608         * modules/putenv (Makefile.am): Likewise.
108609         * modules/quote (Makefile.am): Likewise.
108610         * modules/quotearg (Makefile.am): Likewise.
108611         * modules/raise (Makefile.am): Likewise.
108612         * modules/read-file (Makefile.am): Likewise.
108613         * modules/readline (Makefile.am): Likewise.
108614         * modules/readlink (Makefile.am): Likewise.
108615         * modules/readtokens (Makefile.am): Likewise.
108616         * modules/readutmp (Makefile.am): Likewise.
108617         * modules/realloc (Makefile.am): Likewise.
108618         * modules/regex (Makefile.am): Likewise.
108619         * modules/rename (Makefile.am): Likewise.
108620         * modules/rename-dest-slash (Makefile.am): Likewise.
108621         * modules/rijndael (Makefile.am): Likewise.
108622         * modules/rmdir (Makefile.am): Likewise.
108623         * modules/rpmatch (Makefile.am): Likewise.
108624         * modules/safe-read (Makefile.am): Likewise.
108625         * modules/safe-write (Makefile.am): Likewise.
108626         * modules/same (Makefile.am): Likewise.
108627         * modules/save-cwd (Makefile.am): Likewise.
108628         * modules/savedir (Makefile.am): Likewise.
108629         * modules/setenv (Makefile.am): Likewise.
108630         * modules/settime (Makefile.am): Likewise.
108631         * modules/sha1 (Makefile.am): Likewise.
108632         * modules/sig2str (Makefile.am): Likewise.
108633         * modules/snprintf (Makefile.am): Likewise.
108634         * modules/stdlib-safer (Makefile.am): Likewise.
108635         * modules/stpcpy (Makefile.am): Likewise.
108636         * modules/stpncpy (Makefile.am): Likewise.
108637         * modules/strcase (Makefile.am): Likewise.
108638         * modules/strcasestr (Makefile.am): Likewise.
108639         * modules/strchrnul (Makefile.am): Likewise.
108640         * modules/strcspn (Makefile.am): Likewise.
108641         * modules/strdup (Makefile.am): Likewise.
108642         * modules/strerror (Makefile.am): Likewise.
108643         * modules/strftime (Makefile.am): Likewise.
108644         * modules/strndup (Makefile.am): Likewise.
108645         * modules/strnlen (Makefile.am): Likewise.
108646         * modules/strpbrk (Makefile.am): Likewise.
108647         * modules/strsep (Makefile.am): Likewise.
108648         * modules/strstr (Makefile.am): Likewise.
108649         * modules/strtod (Makefile.am): Likewise.
108650         * modules/strtoimax (Makefile.am): Likewise.
108651         * modules/strtok_r (Makefile.am): Likewise.
108652         * modules/strtol (Makefile.am): Likewise.
108653         * modules/strtoll (Makefile.am): Likewise.
108654         * modules/strtoul (Makefile.am): Likewise.
108655         * modules/strtoull (Makefile.am): Likewise.
108656         * modules/strtoumax (Makefile.am): Likewise.
108657         * modules/strverscmp (Makefile.am): Likewise.
108658         * modules/time_r (Makefile.am): Likewise.
108659         * modules/timegm (Makefile.am): Likewise.
108660         * modules/tmpfile-safer (Makefile.am): Likewise.
108661         * modules/unistd-safer (Makefile.am): Likewise.
108662         * modules/unlinkdir (Makefile.am): Likewise.
108663         * modules/userspec (Makefile.am): Likewise.
108664         * modules/utime (Makefile.am): Likewise.
108665         * modules/utimecmp (Makefile.am): Likewise.
108666         * modules/utimens (Makefile.am): Likewise.
108667         * modules/vasnprintf (Makefile.am): Likewise.
108668         * modules/vasprintf (Makefile.am): Likewise.
108669         * modules/vsnprintf (Makefile.am): Likewise.
108670         * modules/xalloc (Makefile.am): Likewise.
108671         * modules/xgetcwd (Makefile.am): Likewise.
108672         * modules/xnanosleep (Makefile.am): Likewise.
108673         * modules/xreadlink (Makefile.am): Likewise.
108674         * modules/xstrtod (Makefile.am): Likewise.
108675         * modules/xstrtol (Makefile.am): Likewise.
108676         * modules/xstrtold (Makefile.am): Likewise.
108677         * modules/yesno (Makefile.am): Likewise.
108679 2006-10-12  Jim Meyering  <jim@meyering.net>
108681         * m4/getloadavg.m4: Revert the change below.
108683         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108684         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108685         fail with a symlink, which is what coreutils' ./bootstrap now
108686         creates by default.
108688 2006-10-12  Bruno Haible  <bruno@clisp.org>
108690         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108691         mingw.
108692         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108693         MSVC and mingw explicitly.
108695 2006-10-11  Simon Josefsson  <jas@extundo.com>
108696             Bruno Haible  <bruno@clisp.org>
108698         Add support for multiple gnulib-tool invocations in the scope of a
108699         single configure.ac file.
108700         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108701         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108702         with the same contents as the _LIBADD variable.
108703         (func_emit_initmacro_start, func_emit_initmacro_end,
108704         func_emit_initmacro_done): New functions.
108705         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108706         gl_LIBOBJS and gl_LTLIBOBJS.
108708 2006-10-11  Bruno Haible  <bruno@clisp.org>
108710         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108711         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108712         autoreconf. Instead, invoke autopoint explicitly but move back the
108713         *.m4 files from gnulib.
108715 2006-10-11  Bruno Haible  <bruno@clisp.org>
108717         * gnulib-tool (func_usage): Make module names after --create-testdir
108718         optional.
108719         (func_create_testdir): If no module was specified, use nearly all
108720         modules.
108722 2006-10-12  Jim Meyering  <jim@meyering.net>
108724         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108725         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108726         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108727         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108728         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108729         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108730         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108731         (fts_set_stat_required): New function.
108732         (fts_open): Defer the calls to fts_stat, if possible or requested.
108733         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108734         into fts_stat itself.
108735         (fts_read): Perform any required (deferred) fts_stat call.
108736         (fts_build): Likewise, for the directory we're about to open and read.
108737         In the readdir loop, carefully decide whether each entry will require
108738         an eventual call to fts_stat, using dirent.d_type info if available.
108739         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108740         a command line argument into this function.  Update all callers.
108741         Map a return value of FTS_DOT to FTS_D for a command line argument.
108742         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108743         Thanks to Miklos Szeredi for his tenacity and for the initial
108744         bug report about "find" failing on a FUSE-based file system.
108746         * lib/fts.c (fts_open): Use consistent indentation.
108748 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108750         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108751         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108752         reported by Jim Meyering.  All uses of cache variables renamed
108753         to match Autoconf's.
108754         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108755         the other one.
108757         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108758         Fix misspelling in diagnostic.
108760 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108762         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108763         defined.  Problem reported by Matthew Woehlke.
108765         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108766         Add support for Tandem NonStop R series.
108767         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108768         Use new macro.
108770         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108771         (has_trailing_slash): Omit size arg; all callers changed.
108772         Omit 'inline', since it doesn't help performance and we'd
108773         need to configure it.
108774         Don't count //, ///, etc. as having a trailing slash.
108775         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108776         (rpl_rename_dest_slash): On failure, use rename's errno rather
108777         than (in some cases) an incorrect or junk errno.
108778         Simplify code by removing need to compute length; this does
108779         cause it to make two passes instead of one over the file name,
108780         but it's worth it.
108782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108783         change, since Autoconf's version may no longer be appropriate now
108784         that we are using CVS Autoconf's version.  Add support for Tandem.
108786 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108787             Bruno Haible  <bruno@clisp.org>
108789         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108790         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108791         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108792         gl_AC_TYPE_LONG_LONG.
108794         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108795         instead of HAVE_LONG_LONG.
108796         * lib/printf-args.c (printf_fetchargs): Likewise.
108797         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108798         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108799         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108800         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108801         gl_AC_TYPE_LONG_LONG.
108803 2006-10-11  Bruno Haible  <bruno@clisp.org>
108805         * m4/longlong.m4: Add comments.
108806         * m4/ulonglong.m4: Likewise.
108808 2006-10-10  Bruno Haible  <bruno@clisp.org>
108810         Make it possible to #define stpcpy, strdup to aliases.
108811         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108812         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108814 2006-10-10  Bruno Haible  <bruno@clisp.org>
108816         Make it possible to #define gcd to an alias.
108817         * lib/gcd.c: Include config.h.
108819 2006-10-10  Bruno Haible  <bruno@clisp.org>
108821         Make it possible to #define c_isascii to an alias.
108822         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108823         defined. Undefine the macros before defining them, to avoid gcc
108824         warnings.
108825         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108826         define NO_C_CTYPE_MACROS early.
108828 2006-10-10  Bruno Haible  <bruno@clisp.org>
108830         Make it possible to #define set_program_name to an alias.
108831         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108832         ENABLE_RELOCATABLE early.
108834 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108836         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108837         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108838         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108839         More generally, don't assume that 64-bit signed int is available
108840         if unsigned int is, and vice versa.
108841         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108842         unsigned symbols, not on their signed counterparts.
108843         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108844         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108845         (UINT64_C, UINTMAX_C):
108846         Likewise.
108847         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108848         unsigned counterparts.
108849         (Have_long_long, Unsigned): New macros.
108850         (Int): Renamed from INT.
108851         (strtoimax): Use the new macros.
108852         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108853         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108854         * modules/inttypes (inttypes.h): Substitute
108855         HAVE_UNSIGNED_LONG_LONG_INT.
108856         * modules/stdint (stdint.h): Likewise.
108857         (Files): Add m4/ulonglong.m4.
108859 2006-10-10  Bruno Haible  <bruno@clisp.org>
108861         Fix a gcc -Wshadow warning.
108862         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108863         to 'bucket'.
108864         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108865         gl_linked_indexof_from_to): Likewise.
108866         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108867         Likewise.
108868         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108869         Likewise.
108870         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108871         Reported by Eric Blake.
108873 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108875         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108876         for NetBSD.  Problem reported by Bruno Haible.
108878 2006-10-09  Jim Meyering  <jim@meyering.net>
108880         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108881         Patch from Bruno Haible.
108883 2006-10-09  Jim Meyering  <jim@meyering.net>
108885         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108886         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108887         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108889 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108891         Don't include <config.h> twice; this doesn't work in some cases,
108892         e.g., when config.h has "#define intmax_t long long int" and
108893         we include <config.h>, <inttypes.h>, <config.h> in that order.
108894         Problem reported by Matthew Woehlke in:
108895         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108896         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108897         * lib/fts-cycle.c: Don't include config.h.
108898         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108899         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108900         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108901         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108902         inttypes.h.
108903         * lib/xstrtoumax.c: Likewise.
108904         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108905         __strtol and the like, so that this module is more like its siblings.
108906         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108907         Remove; no longer needed now that we assume gnulib inttypes.h.
108909 2006-10-08  Bruno Haible  <bruno@clisp.org>
108911         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108912         option.
108914 2006-10-07  Jim Meyering  <jim@meyering.net>
108916         * modules/inttypes (inttypes.h): Revert what seems to have been
108917         an inadvertent part of today's change: use "|", not "/" in the
108918         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108920 2006-10-07  Bruno Haible  <bruno@clisp.org>
108922         * modules/sublist: New file.
108924 2006-10-07  Bruno Haible  <bruno@clisp.org>
108926         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108927         * modules/argz (argz.h): Likewise.
108928         * modules/arpa_inet (arpa/inet.h): Likewise.
108929         * modules/byteswap (byteswap.h): Likewise.
108930         * modules/configmake (configmake.h): Likewise.
108931         * modules/fcntl (fcntl.h): Likewise.
108932         * modules/fnmatch (fnmatch.h): Likewise.
108933         * modules/getopt (getopt.h): Likewise.
108934         * modules/glob (glob.h): Likewise.
108935         * modules/inttypes (inttypes.h): Likewise.
108936         * modules/netinet_in (netinet/in.h): Likewise.
108937         * modules/poll (poll.h): Likewise.
108938         * modules/stdbool (stdbool.h): Likewise.
108939         * modules/stdint (stdint.h): Likewise.
108940         * modules/sys_select (sys/select.h): Likewise.
108941         * modules/sys_socket (sys/socket.h): Likewise.
108942         * modules/sys_stat (sys/stat.h): Likewise.
108943         * modules/sysexits (sysexits.h): Likewise.
108944         * modules/unistd (unistd.h): Likewise.
108945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108946         Add a "DO NOT EDIT" comment to the generated file.
108947         (func_import): Likewise for gnulib-comp.m4.
108949 2006-10-07  Bruno Haible  <bruno@clisp.org>
108951         * lib/gl_sublist.h: New file.
108952         * lib/gl_sublist.c: New file.
108954 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108956         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108957         name (relative to the original working directory) and the file
108958         name component (relative to the temporary working directory).  All
108959         callers changed.
108960         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108961         * lib/mkdir-p.c (make_dir_parents): Likewise.
108962         * lib/mkdir-p.h (make_dir_parents): Likewise.
108964 2006-10-06  Eric Blake  <ebb9@byu.net>
108966         Define several macros for use by the clean-temp module.
108967         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108968         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108969         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108971         * lib/clean-temp.h (close_stream_temp): New declaration.
108972         * lib/clean-temp.c (includes): Pull in headers according to what
108973         other modules are in use.
108974         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108976 2006-10-06  Bruno Haible  <bruno@clisp.org>
108978         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108979         instead of fopen, fwriteerror.
108981 2006-10-06  Bruno Haible  <bruno@clisp.org>
108983         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108984         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108985         int.
108986         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108987         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108988         Return an error indicator.
108989         Suggested by Eric Blake.
108991 2006-10-06  Bruno Haible  <bruno@clisp.org>
108993         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108994         Reported by Eric Blake.
108996 2006-10-06  Bruno Haible  <bruno@clisp.org>
108998         * modules/closeout (Description): Mention stderr too.
109000 2006-10-06  Bruno Haible  <bruno@clisp.org>
109001         and Paul Eggert  <eggert@cs.ucla.edu>
109003         * lib/closeout.c (close_stdout): Also close stderr.
109004         * lib/closeout.h: Update comment.
109006 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109008         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109009         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109010         * lib/dirchownmod.c: Include lchown.h.
109011         * lib/lchown.c: Don't include files that lchown.h now includes.
109012         Don't declare chown, since lchown.h now does that.
109013         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109014         (lchown): Define to rpl_chown if lchown is declared but
109015         does not exist.  Declare using a prototype if lchown is not
109016         declared.  Add a copyright notice.
109017         * lib/mkstemp.h: Include <unistd.h>.
109018         * lib/openat.c: Include lchown.h.
109020         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109021         we now test for that separately.
109022         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109023         rather than O_NOFOLLOW, when testing whether it's possible to
109024         avoid a race condition reliably.
109025         * lib/savewd.c (savewd_chdir): Likewise.
109027         Remove macros that are no longer needed now that stdint.h is
109028         reliable.
109029         * lib/fsusage.c (UINTMAX_MAX): Remove.
109030         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109031         * lib/utimecmp.c (SIZE_MAX): Remove.
109033         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109035         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109036         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109037         O_NOATIME works.
109039 2006-10-05  Bruno Haible  <bruno@clisp.org>
109041         * lib/gl_list.h (gl_sortedlist_search_from_to,
109042         gl_sortedlist_indexof_from_to): New declarations.
109043         (gl_list_implementation): New fields sortedlist_search_from_to,
109044         sortedlist_indexof_from_to.
109045         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109046         inline functions.
109047         * lib/gl_list.c (gl_sortedlist_search_from_to,
109048         gl_sortedlist_indexof_from_to): New functions.
109049         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109050         function.
109051         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109052         (gl_array_sortedlist_search_from_to): New function.
109053         (gl_array_list_implementation): Update.
109054         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109055         function.
109056         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109057         (gl_carray_sortedlist_search_from_to): New function.
109058         (gl_carray_list_implementation): Update.
109059         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109060         gl_linked_sortedlist_indexof_from_to): New functions.
109061         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109062         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109063         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109064         gl_tree_sortedlist_indexof_from_to): New functions.
109065         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109066         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109067         Update.
109068         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109069         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109070         Update.
109072 2006-10-05  Bruno Haible  <bruno@clisp.org>
109074         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109075         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109076         (struct gl_list_implementation): Add fields search_from_to,
109077         indexof_from_to. Remove fields search, indexof.
109078         (gl_list_search): Use the search_from_to method.
109079         (gl_list_search_from, gl_list_search_from_to): New functions.
109080         (gl_list_indexof): Use the indexof_from_to method.
109081         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109082         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109083         (gl_list_search_from, gl_list_search_from_to): New functions.
109084         (gl_list_indexof): Use the indexof_from_to method.
109085         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109086         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109087         gl_array_indexof. Add start_index, end_index arguments.
109088         (gl_array_search_from_to): Renamed from gl_array_search. Add
109089         start_index, end_index arguments.
109090         (gl_array_remove, gl_array_list_implementation): Update.
109091         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109092         gl_carray_indexof. Add start_index, end_index arguments.
109093         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109094         start_index, end_index arguments.
109095         (gl_carray_remove, gl_carray_list_implementation): Update.
109096         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109097         gl_linked_search. Add start_index, end_index arguments.
109098         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109099         start_index, end_index arguments.
109100         (gl_linked_remove): Update.
109101         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109102         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109103         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109104         field to 'size_t'.
109105         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109106         gl_tree_search. Add start_index, end_index arguments.
109107         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109108         start_index, end_index arguments.
109109         (gl_tree_remove): Update.
109110         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109111         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109112         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109113         function.
109114         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109115         gl_tree_search. Add start_index, end_index arguments.
109116         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109117         start_index, end_index arguments.
109118         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109119         Update.
109120         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109122 2006-10-05  Bruno Haible  <bruno@clisp.org>
109124         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109126         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109127         fwriteerror_temp): New declarations.
109128         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109129         (descriptors): New variable.
109130         (cleanup): First, close the descriptors.
109131         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109132         fclose_temp, fwriteerror_temp): New functions.
109134 2006-10-04  Jim Meyering  <jim@meyering.net>
109136         * lib/fts.c (fts_open): Tiny comment change.
109138 2006-10-04  Bruno Haible  <bruno@clisp.org>
109140         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109141         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109142         gl_LOCK_BODY.
109143         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109144         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109145         gl_LOCK_EARLY_BODY.
109146         (gl_LOCK): Require gl_LOCK_BODY.
109148 2006-10-04  Bruno Haible  <bruno@clisp.org>
109150         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109151         (gl_oset_search_atleast): New declaration.
109152         (struct gl_oset_implementation): Add field 'search_atleast'.
109153         (gl_oset_search_atleast): New inline function.
109154         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109155         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109156         (gl_array_oset_implementation): Update.
109157         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109158         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109159         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109161 2006-10-04  Bruno Haible  <bruno@clisp.org>
109163         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109165 2006-10-03  Bruno Haible  <bruno@clisp.org>
109167         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109168         from gl_avltreehash_list_implementation.
109170 2006-10-03  Bruno Haible  <bruno@clisp.org>
109172         * lib/gl_oset.c (gl_oset_add): Fix return type.
109174 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109176         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109178 2006-10-02  Eric Blake  <ebb9@byu.net>
109180         * modules/strnlen (Depends-on): Add extensions.
109182 2006-10-02  Eric Blake  <ebb9@byu.net>
109184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109185         definition in 2.60+.
109187 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109189         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109190         checks.
109192 2006-10-02  Bruno Haible  <bruno@clisp.org>
109194         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109195         to the AUTOMAKE_OPTIONS.
109196         Reported by Jim Meyering.
109198 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109200         Work around bug in Solaris 10 /proc file system:
109201         /proc/self/fd/NNN/.. isn't the parent directory of
109202         the directory whose file descriptor is NNN.  This needs to
109203         be worked around at run time, not compile time, since a
109204         program might be built on Solaris 8, where things work, and
109205         run on Solaris 10.
109206         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109207         to use the following interface instead:
109208         (OPENAT_BUFFER_SIZE): New macro.
109209         (openat_proc_name): New function.
109210         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109211         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109212         Likewise.
109213         * lib/openat-proc.c: New file.
109214         * modules/openat (Files): Add lib/openat-proc.c.
109215         (Depends-on): Add same-inode, stdbool.
109216         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109218 2006-09-29  Bruno Haible  <bruno@clisp.org>
109220         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109221         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109222         argument. Set stdout_closed before testing for ferror, not after.
109223         (fwriteerror, fwriteerror_no_ebadf): New functions.
109225 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109227         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109229 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109231         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109232         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109234 2006-09-28  Jim Meyering  <jim@meyering.net>
109236         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109237         Include <unistd.h>.
109239 2006-09-28  Bruno Haible  <bruno@clisp.org>
109241         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109242         * modules/linkedhash-list (Depends-on): Likewise.
109243         * modules/rbtreehash-list (Depends-on): Likewise.
109245 2006-09-28  Bruno Haible  <bruno@clisp.org>
109247         * lib/strndup.h: Simplify the redefinition of strndup.
109248         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109249         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109251 2006-09-28  Bruno Haible  <bruno@clisp.org>
109253         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109254         * lib/gl_linkedhash_list.c: Likewise.
109255         * lib/gl_rbtreehash_list.c: Likewise.
109257 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109259         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109260         getaddrinfo.
109262         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109263         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109264         it causes <stdio_ext.h> to cause a compile-time error.
109265         Problem reported by Nelson H. F. Beebe.
109266         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109267         of HAVE_DECL___PENDING.
109269         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109270         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109271         declaration.
109273 2006-09-27  Jim Meyering  <jim@meyering.net>
109275         This file could end up with a definition for a function
109276         named __strndup, rather than rpl_strndup on a system with
109277         incomplete weak_alias support.
109278         * lib/strndup.c (strndup): Rename from __strndup.
109279         Remove #defines that used to map __strndup to strndup.
109280         Don't use K&R prototypes.
109281         Remove LIBC-related code, since this file is not sync'd with glibc.
109282         * lib/strndup.h: Revamp, accordingly.
109283         * m4/strndup.m4: Modernize.
109285 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109287         * modules/savewd (Depends-on): Add 'raise'.
109288         * lib/savewd.c: Include <signal.h>, for 'raise'.
109290 2006-09-26  Jim Meyering  <jim@meyering.net>
109292         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109293         when we detect Darwin 8.7.0's acl_get_file bug.
109294         Rearrange to perform the new (below) run-test while $LIBS
109295         contains any acl-related library.  Set USE_ACL at the end.
109296         (gl_ACL_GET_FILE): New function.
109298 2006-09-26  Eric Blake  <ebb9@byu.net>
109300         * lib/verror.c: Include <config.h> unconditionally.
109302 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109304         * modules/clock-time (Maintainer): Add self.
109305         * modules/getlogin_r (Depends-on): Add extensions.
109307 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109309         * modules/clock-time: New module.
109310         * modules/nanosleep (Depends-on): Add clock-time.
109311         * modules/gethrxtime (Depends-on): Likewise.
109312         * modules/gettime (Depends-on): Likewise.
109313         * modules/settime (Depends-on): Likewise.
109315         * modules/fts-lgpl: Depend on openat.
109316         * modules/mkancesdirs: Depend on savewd.
109317         * modules/mkdir-p: Likewise.
109319 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109321         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109323         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109324         `gl_have_arbitrary_file_name_length_limit' to
109325         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109326         actually works between configure runs.
109328 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109329             Bruno Haible  <bruno@clisp.org>
109331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109333 2006-09-25  Jim Meyering  <jim@meyering.net>
109335         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109336         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109338 2006-09-25  Eric Blake  <ebb9@byu.net>
109340         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109341         exec's in 2006-09-18 patch when shuffling fds.
109343 2006-09-25  Bruno Haible  <bruno@clisp.org>
109345         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109346         Reported by Jim Meyering.
109348 2006-09-24  Jim Meyering  <jim@meyering.net>
109350         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109351         compare a pointer against a literal "0".  That caused failures with
109352         at least HP-UX's hpcc.
109354 2006-09-22  Simon Josefsson  <jas@extundo.com>
109356         * modules/gc-sha1:
109357         * modules/gc-md4:
109358         * modules/gc-hmac-sha1:
109359         * modules/gc-hmac-md5:
109360         * modules/gc-des:
109361         * modules/gc-arcfour: Distribute more files.
109363 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109365         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109366         (gl_linked_iterator_from_to): Initialize struct completely.
109367         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109368         (gl_tree_iterator_from_to): Likewise
109369         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109370         * lib/gl_array_list.c [lint] (gl_array_iterator)
109371         (gl_array_iterator_from_to): Likewise.
109372         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109373         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109374         (gl_carray_iterator_from_to): Likewise.
109376         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109377         * lib/md4.c (md4_process_block): Remove unused variable.
109378         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109379         parentheses for clarity.
109381 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109383         * modules/bison-i18n (Depends-on): Add gettext.
109385 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109387         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109389         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109390         also add missing comma that caused broken test.
109391         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109392         stdlib.h, for `abort'.
109393         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109394         variables.
109395         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109396         include unistd.h if present, for `rmdir'.
109397         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109398         variables.
109399         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109400         in the process include standard headers for prototypes.
109401         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109402         gets declared on GNU/Linux.
109403         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109404         unistd.h, for `rmdir'.
109405         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109407         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109408         always true.
109409         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109411         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
109413 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109415         * gnulib-tool (func_version): Create output all at once.  This
109416         may help avoid triggering unnecessary SIGPIPEs, and at any
109417         rate it doesn't hurt.
109419 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109420             Bruno Haible  <bruno@clisp.org>
109422         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
109423         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109424         * m4/signed.m4 (bh_C_SIGNED): Likewise.
109426         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
109427         (gl_FUNC_VASPRINTF): Invoke it.
109429 2006-09-22  Bruno Haible  <bruno@clisp.org>
109431         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
109432         getloadavg.c as first argument.
109434 2006-09-22  Bruno Haible  <bruno@clisp.org>
109436         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
109437         at the beginning of the gl_INIT macro.
109438         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109439         gl_GETLOADAVG.
109441 2006-09-22  Bruno Haible  <bruno@clisp.org>
109443         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109444         module.
109445         Suggested by Ralf Wildenhues.
109447 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109449         Import this patch from libc:
109451         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109453         * lib/regex_internal.c (re_string_reconstruct): Handle
109454         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109455         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109456         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109457         re_string_context_at.
109459         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109460         now requires it.
109461         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109462         gl_REGEX now does it for us.
109463         (gl_REGEX): Add test taken from
109464         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109466         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109467         Check that large offsets work.  Modernize Autoconf usages.
109468         Prefer "yes" to mean a good thing rather than a bad.
109469         Don't put "#define mkstemp" in config.h, as this might interfere
109470         with standard system headers that "#define mkstemp mkstemp64".
109472         * modules/mkstemp (Depends-on): Add extensions, so that
109473         mkstemp is visible on some platforms.
109474         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109475         (Include): Change to "mkstemp.h" from <stdlib.h>.
109476         (Files): Add mkstemp.h.
109478         * lib/mkstemp.h: New file, since some standard headers
109479         #define mkstemp.
109480         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109481         Include "mkstemp.h".
109482         Make the _LIBC code resemble glibc original more,
109483         e.g., use K&R style.
109484         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109485         (mkstemp): Remove, since mkstemp.h does this for us.
109486         * lib/stdlib--.h: Include mkstemp.h.
109488         Import this patch from libc:
109490         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109492         * lib/tempname.c (__gen_tempname): Change attempts_min
109493         into a macro.  Use preprocessor to decide how to initialize
109494         attempts [Coverity CID 67].
109496 2006-09-20  Bruno Haible  <bruno@clisp.org>
109498         * lib/mkdtemp.c: Import from libc.
109499         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109500                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109501                 attempts_min into a macro.  Use preprocessor to decide how to
109502                 initialize attempts [Coverity CID 67].
109503         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109504                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109505                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109507 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109509         * gnulib-tool (func_exit): New function, to allow to pass the
109510         exit status portably through the trap.  Use everywhere.
109511         (--help, --version): Signal a write error.
109512         (trap): catch SIGPIPE, for write errors.
109513         Exit at the end of the trap, with the correct exit status.
109515 2006-09-19  Karl Berry  <karl@gnu.org>
109517         * doc/gnulib.texi: note about the license texinfo files.
109519 2006-09-19  Eric Blake  <ebb9@byu.net>
109521         * gnulib-tool: Avoid space-tab.
109523 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109525         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109526         that prevented coreutils 6.1 from building.  Problem reported
109527         by Petter Reinholdtsen.
109529 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109531         * gnulib-tool (avoidlist): Fix typo that broke options like
109532         --avoid=lock that are used by coreutils bootstrap.
109534 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109536         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109537         more systematically.
109539 2006-09-18  Jim Meyering  <jim@meyering.net>
109541         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109543 2006-09-18  Bruno Haible  <bruno@clisp.org>
109545         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109547 2006-09-18  Bruno Haible  <bruno@clisp.org>
109549         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109550         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109551         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109552         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109553         * m4/gettext.m4: Require autoconf >= 2.52.
109554         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109555         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109556         of gl_cv_header_inttypes_h.
109558 2006-09-18  Bruno Haible  <bruno@clisp.org>
109560         * lib/javaversion.c: Include configmake.h.
109562 2006-09-18  Bruno Haible  <bruno@clisp.org>
109564         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109565         avoid that the while loops be executed in a subshell.
109567 2006-09-18  Bruno Haible  <bruno@clisp.org>
109569         * MODULES.html.sh (func_module): Break long lines.
109570         Suggested by Bruce Korb <bkorb@gnu.org>.
109572 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109574         Speed up by a factor of 1.12.
109575         * gnulib-tool (nl): New variable.
109576         (func_import): Rewrite include directive extraction to only read each
109577         directive once.
109579 2006-09-17  Bruno Haible  <bruno@clisp.org>
109581         * modules/javaversion (Makefile.am): Remove DEFS setting.
109582         (Depends-on): Add configmake, for PKGDATADIR definition.
109584 2006-09-17  Bruno Haible  <bruno@clisp.org>
109586         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109588 2006-09-17  Bruno Haible  <bruno@clisp.org>
109590         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109591         (func_modules_transitive_closure, func_modules_add_dummy,
109592         func_modules_to_filelist, func_import, func_create_testdir,
109593         func_create_megatestdir, ...): Use it wherever possible.
109594         Suggested by Ralf Wildenhues.
109596 2006-09-16  Karl Berry  <karl@gnu.org>
109598         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109599         to avoid sectioning errors.
109600         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109601         [ifinfo]: blank line after @center-ed titles.
109602         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109603         Spell FSF address consistently with others.
109604         (These changes approved by rms.)
109606 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109608         Speed up by a factor of 1.61.
109609         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109610         already checked module names again.
109612 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109614         Speed up by a factor of 1.13.
109615         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109616         for new_files, and the input to func_add_or_update.
109618 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109620         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109621         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109623 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109625         * modules/mkancesdirs (Depends-on): Add fcntl.
109626         * modules/savewd: New file.
109627         * MODULES.html.sh (File system functions): Add savewd.
109629         * modules/configmake (Makefile.am): Add support for the
109630         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109632 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109634         * m4/savewd.m4: New file.
109636 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109638         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109639         (dirchownmod): New arg FD.  All callers changed.
109640         Use FD rather than opening the directory ourself, as opening is
109641         now the caller's responsibility.
109642         * lib/dirchownmod.h: Likewise.
109643         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109644         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109645         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109646         (test_dir): Remove.
109647         (mkancesdirs): Return length of prefix of FILE that has already
109648         been made, or -2 if there is a child doing the work.  Redo
109649         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109650         ".", and treat ".." specially since it might stray back into
109651         already-created areas.  Use a subprocess if necessary.  New arg
109652         WD; all users changed.  MAKE_DIR function should now return 1
109653         if it creates a directory that is not readable.  Return -2 if
109654         a child process is spun off.
109655         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109656         Adjust signature to match code.
109657         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109658         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109659         all users changed.
109660         * lib/savewd.c, lib/savewd.h: New files.
109662 2006-09-15  Jim Meyering  <jim@meyering.net>
109664         * modules/rename-dest-slash: New module.
109665         * MODULES.html.sh (posix_compat): Add it here.
109667         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109669 2006-09-15  Jim Meyering  <jim@meyering.net>
109671         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109672         file.
109674         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109676 2006-09-15  Jim Meyering  <jim@meyering.net>
109678         * lib/rename-dest-slash.c (has_trailing_slash): Use
109679         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109680         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109681         test before testing whether SRC is a directory.
109682         Suggestions from Bruno Haible.
109684         Avoid a warning about an unused variable.
109685         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109686         into the #ifdef block where it's used.
109688         * lib/rename-dest-slash.c: New file.
109690 2006-09-14  Bruno Haible  <bruno@clisp.org>
109692         * lib/allocsa.c: Include <config.h> unconditionally.
109693         * lib/asnprintf.c: Likewise.
109694         * lib/asprintf.c: Likewise.
109695         * lib/c-strcasecmp.c: Likewise.
109696         * lib/c-strcasestr.c: Likewise.
109697         * lib/c-strncasecmp.c: Likewise.
109698         * lib/c-strstr.c: Likewise.
109699         * lib/classpath.c: Likewise.
109700         * lib/clean-temp.c: Likewise.
109701         * lib/concatpath.c: Likewise.
109702         * lib/copy-file.c: Likewise.
109703         * lib/csharpcomp.c: Likewise.
109704         * lib/csharpexec.c: Likewise.
109705         * lib/execute.c: Likewise.
109706         * lib/fatal-signal.c: Likewise.
109707         * lib/findprog.c: Likewise.
109708         * lib/fwriteerror.c: Likewise.
109709         * lib/gl_array_list.c: Likewise.
109710         * lib/gl_array_oset.c: Likewise.
109711         * lib/gl_avltree_list.c: Likewise.
109712         * lib/gl_avltree_oset.c: Likewise.
109713         * lib/gl_avltreehash_list.c: Likewise.
109714         * lib/gl_carray_list.c: Likewise.
109715         * lib/gl_linked_list.c: Likewise.
109716         * lib/gl_linkedhash_list.c: Likewise.
109717         * lib/gl_list.c: Likewise.
109718         * lib/gl_oset.c: Likewise.
109719         * lib/gl_rbtree_list.c: Likewise.
109720         * lib/gl_rbtree_oset.c: Likewise.
109721         * lib/gl_rbtreehash_list.c: Likewise.
109722         * lib/imaxabs.c: Likewise.
109723         * lib/imaxdiv.c: Likewise.
109724         * lib/javacomp.c: Likewise.
109725         * lib/javaexec.c: Likewise.
109726         * lib/javaversion.c: Likewise.
109727         * lib/linebreak.c: Likewise.
109728         * lib/localcharset.c: Likewise.
109729         * lib/lock.c: Likewise.
109730         * lib/mbchar.c: Likewise.
109731         * lib/mbswidth.c: Likewise.
109732         * lib/mkdtemp.c: Likewise.
109733         * lib/pipe.c: Likewise.
109734         * lib/printf-args.c: Likewise.
109735         * lib/printf-parse.c: Likewise.
109736         * lib/progname.c: Likewise.
109737         * lib/progreloc.c: Likewise.
109738         * lib/readlink.c: Likewise.
109739         * lib/sh-quote.c: Likewise.
109740         * lib/stpcpy.c: Likewise.
109741         * lib/stpncpy.c: Likewise.
109742         * lib/strcasecmp.c: Likewise.
109743         * lib/strcasestr.c: Likewise.
109744         * lib/strcspn.c: Likewise.
109745         * lib/striconv.c: Likewise.
109746         * lib/strncasecmp.c: Likewise.
109747         * lib/strnlen1.c: Likewise.
109748         * lib/strstr.c: Likewise.
109749         * lib/strtok_r.c: Likewise.
109750         * lib/tls.c: Likewise.
109751         * lib/tmpdir.c: Likewise.
109752         * lib/unicodeio.c: Likewise.
109753         * lib/unsetenv.c: Likewise.
109754         * lib/vasnprintf.c: Likewise.
109755         * lib/vasprintf.c: Likewise.
109756         * lib/wait-process.c: Likewise.
109757         * lib/xallocsa.c: Likewise.
109758         * lib/xsetenv.c: Likewise.
109759         * lib/xstriconv.c: Likewise.
109761 2006-09-13  Simon Josefsson  <jas@extundo.com>
109763         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109764         that internally, suggested by Ralf Wildenhues
109765         <Ralf.Wildenhues@gmx.de>.
109767 2006-09-13  Simon Josefsson  <jas@extundo.com>
109769         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109770         @LIBOBJS@.
109771         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109773 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109775         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109776         longer worry about uses that don't define HAVE_CONFIG_H.
109777         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109778         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109779         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109780         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109781         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109782         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109783         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109784         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109785         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109786         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109787         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109788         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109789         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109790         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109791         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109792         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109793         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109794         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109795         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109796         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109797         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109798         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109799         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109800         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109801         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109802         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109803         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109804         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109805         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109806         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109807         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109808         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109809         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109810         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109811         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109812         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109813         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109814         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109815         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109816         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109817         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109818         Likewise.
109820 2006-09-13  Eric Blake  <ebb9@byu.net>
109822         * lib/getopt.c: Fix typo in last commit.
109824 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109826         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109827         dgettext.
109829 2006-09-12  Jim Meyering  <jim@meyering.net>
109831         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109832         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109833         Reported by Nelson H. F. Beebe.
109835 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109837         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109838         program_invocation_name and program_invocation_short_name are
109839         initialized.
109840         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109841         and program_invocation_short_name to argp.h, so they are visible
109842         to user programs.
109843         * lib/argp.h: Likewise
109845 2006-09-10  Bruno Haible  <bruno@clisp.org>
109847         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109848         m4/inttypes_h.m4, m4/uintmax_t.m4.
109850 2006-09-10  Bruno Haible  <bruno@clisp.org>
109852         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109853         gl_AC_TYPE_UINTMAX_T.
109855 2006-09-10  Bruno Haible  <bruno@clisp.org>
109857         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109859 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109861         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109862         convention.  Text proposed by Bruno Haible.
109863         (struct argp_option): Document the use of N_() wrappers.
109865         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109866         '\v', and translate the two parts separately, instead of feeding
109867         the whole string to gettext.  This allows to exclude
109868         '\v' from the strings visible to the translator by writing doc
109869         strings as N_("..") "\v" N_("..").
109871 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109873         * config/srclist.txt: Undo latest change; the bug was fixed.
109875 2006-09-09  Bruno Haible  <bruno@clisp.org>
109877         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109878         assignments if building a library without libtool.
109879         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109880         in func_emit_lib_Makefile_am.
109881         (func_import): When building a static library libfoo.a, arrange to
109882         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109883         (func_create_testdir): Likewise.
109884         * modules/gc (configure.ac, Makefile.am): If building statically,
109885         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109886         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109887         * modules/striconv (configure.ac, Makefile.am): Likewise.
109888         Based on a suggestion by Ralf Wildenhues.
109890 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109892         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109893         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109894         Also:
109896         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109897         Add year_2050_test to catch glibc bug 2821
109898         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109900         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109901         Prefer #ifdef to #if.
109903         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109904         Return from 'main' instead of calling 'exit'.
109906 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109908         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109909         returned the maximum time_t value rather than (time_t) -1.
109910         Problem originally reported by William Bardwell
109911         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109913         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109914         Moved to here ...
109915         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109916         ... from here.
109918 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109920         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109921         2821 is fixed.
109923 2006-09-08  Jim Meyering  <jim@meyering.net>
109925         Don't make generated files read-only.  That would bother too many
109926         people.  However, do retain the ability to work when targets are
109927         read-only: remove the destination and temporary files before writing
109928         them (when generated via sed or echo), or by using the -f option for
109929         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109930         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109931         * modules/byteswap, modules/configmake, modules/fcntl:
109932         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109933         * modules/localcharset, modules/netinet_in, modules/poll:
109934         * modules/stdbool, modules/stdint, modules/sys_select:
109935         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109937 2006-09-08  Jim Meyering  <jim@meyering.net>
109939         Avoid new build failure on FreeBSD 6.0.
109940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109941         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109942         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109944 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109946         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109948 2006-09-07  Jim Meyering  <jim@meyering.net>
109950         Fix global typo in last change: use chmod u-w, not chmod u-x.
109951         Spotted by Paul Eggert and Bruce Korb.
109952         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109953         * modules/byteswap, modules/configmake, modules/fcntl:
109954         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109955         * modules/localcharset, modules/netinet_in, modules/poll:
109956         * modules/stdbool, modules/stdint, modules/sys_select:
109957         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109959 2006-09-06  Jim Meyering  <jim@meyering.net>
109961         Make generated files be read-only.
109962         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109963         Ensure that each generated file is now read-only.
109964         * modules/argz: Likewise.
109965         * modules/arpa_inet: Likewise.
109966         * modules/byteswap: Likewise.
109967         * modules/configmake: Likewise.
109968         * modules/fcntl: Likewise.
109969         * modules/fnmatch: Likewise.
109970         * modules/getopt: Likewise.
109971         * modules/glob: Likewise.
109972         * modules/inttypes: Likewise.
109973         * modules/netinet_in: Likewise.
109974         * modules/poll: Likewise.
109975         * modules/stdbool: Likewise.
109976         * modules/stdint: Likewise.
109977         * modules/sys_select: Likewise.
109978         * modules/sys_socket: Likewise.
109979         * modules/sys_stat: Likewise.
109980         * modules/sysexits: Likewise.
109981         * modules/localcharset: Same as above, but continue using temporary
109982         file named "t-$@" (why different?) rather than the "$@-t" used
109983         everywhere else.
109985         * modules/sysexits (Makefile.am): Replace literal occurrences
109986         of "sysexit.h" more readable, and more consistent, "$@".
109988 2006-09-06  Bruno Haible  <bruno@clisp.org>
109990         * modules/striconv: New file.
109991         * modules/xstriconv: New file.
109992         * MODULES.html.sh (Internationalization functions): Add striconv,
109993         xstriconv.
109995 2006-09-06  Bruno Haible  <bruno@clisp.org>
109997         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109998         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109999         not using libtool correctly.
110001 2006-09-06  Bruno Haible  <bruno@clisp.org>
110003         * lib/striconv.h: New file.
110004         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110005         iconvstring.c.
110006         * lib/xstriconv.h: New file.
110007         * lib/xstriconv.c: New file.
110009 2006-09-06  Bruno Haible  <bruno@clisp.org>
110011         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110012         lib_..._LDFLAGS.
110014 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110016         * lib/argz_.h: Sync from Libtool.
110018         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110019                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110021         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110023 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110025         * modules/trim: New file.
110027 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110029         * lib/trim.h: New file.
110030         * lib/trim.c: New file.
110032 2006-09-05  Bruno Haible  <bruno@clisp.org>
110034         * MODULES.html.sh (String handling): Add trim.
110036 2006-09-04  Karl Berry  <karl@gnu.org>
110038         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110039         until next release.
110041 2006-09-03  Bruno Haible  <bruno@clisp.org>
110043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110044         correctly.
110046 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110048         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110049         not gl_GETLOADAVG.  Omit unneeded semicolons.
110050         Problems reported by Ralf Wildenhues in
110051         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110052         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110053         at the end, which is the usual gnulib style.
110055         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110056         of doing all the work ourselves.
110057         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110058         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110060 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110062         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110063         Problem reported by Ralf Wildenhues in
110064         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110066         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110067         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110069 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110071         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110072         yesterday's patch by changing test -n to test -z.
110074 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110076         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110077         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110078         the former is now obsolescent.
110080         * modules/chdir-long (Depends-on): Add fcntl.
110082 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110084         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110085         obsolescent, and programs should use gnulib instead.
110086         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110087         but with prefixes changed.
110089 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110091         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110092         or stdbool.h, because they might not exist while configuring.
110094         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110095         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110096         does that for us.
110097         (O_DIRECTORY): Remove.
110099 2006-08-31  Eric Blake  <ebb9@byu.net>
110101         * gnulib-tool: Don't let emacs change spaces to TAB.
110103 2006-08-31  Bruno Haible  <bruno@clisp.org>
110105         * gnulib-tool: When calling func_import more than once, do it in a
110106         subshell.
110107         Reported by Eric Blake <ebb9@byu.net>.
110109 2006-08-31  Bruno Haible  <bruno@clisp.org>
110111         * gnulib-tool (nl): Remove variable.
110112         (sed_transform_lib_file): Use more robust test for config-h module.
110113         (func_import): Fix typo in 2006-08-25 patch.
110115 2006-08-31  Bruno Haible  <bruno@clisp.org>
110117         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110118         specified, augment Makefile.am variables instead of assigning them.
110120 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110122         Work around a bug in both the Linux and SunOS 64-bit kernels:
110123         nanosleep mishandles sleeps for longer than 2**31 seconds.
110124         Problem reported by Frank v Waveren in
110125         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110127         Check for nanosleep bug.
110128         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110130 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110132         Work around a bug in both the Linux and SunOS 64-bit kernels:
110133         nanosleep mishandles sleeps for longer than 2**31 seconds.
110134         Problem reported by Frank v Waveren in
110135         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110136         * lib/nanosleep.c (BILLION): New constant.
110137         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110138         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110139         implementation.
110141 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110143         * modules/nanosleep (Depends-on): Add gettime.
110145 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110146         and Simon Josefsson  <jas@extundo.com>
110147         and Oskar Liljeblad  <oskar@osk.mine.nu>
110149         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110150         * gnulib-tool (func_import): New license type 'unmodifiable license
110151         text'.
110152         * modules/fdl: Use it.  Longer description.
110153         * module/gpl, module/lgpl: New files.
110155 2006-08-30  Jim Meyering  <jim@meyering.net>
110157         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110158         shadowing the parameter.
110160 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110162         Sync from Libtool:
110164         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110166         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110167         sharing with gnulib.  Report by Eric Blake.
110169 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110171         * modules/isapipe: New file.
110172         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110174 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110176         * modules/configmake (Makefile.am): Add a comment, and omit
110177         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110178         by Bruno Haible.
110180 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110182         * m4/isapipe.m4: New file.
110184 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110186         * lib/isapipe.c, lib/isapipe.h: New files.
110188 2006-08-29  Jim Meyering  <jim@meyering.net>
110190         * modules/configmake (Makefile.am): Make configmake.h depend on
110191         Makefile.  Otherwise, a stale configmake.h could hang around.
110193 2006-08-29  Eric Blake  <ebb9@byu.net>
110195         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110196         resolution of upstream bug 3044.
110198 2006-08-29  Bruno Haible  <bruno@clisp.org>
110200         * modules/localcharset (Depends-on): Add configmake.
110201         (Makefile.am): Remove setting of LIBDIR through DEFS.
110203 2006-08-29  Bruno Haible  <bruno@clisp.org>
110205         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110206         defined.
110208 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110210         * modules/fcntl: New file.
110211         * modules/chdir-safer (Depends-on): Add fcntl.
110212         * modules/fts: Likewise.
110213         * modules/mkdir-p: Likewise.
110215         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110216         This undoes the most recent change, since we're now addressing the
110217         problem in a different way.
110219         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110220         into output, since the output might be called Makefile.am even
110221         if $makefile_name is something different.
110222         (func_import): Use $makefile_am rather than
110223         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110224         empty.
110226         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110228 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110230         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110231         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110232         recent change to stdint.m4, since we're now addressing the problem in a
110233         different way.
110235 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110237         * m4/fcntl_h.m4: New file.
110239 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110241         * lib/fcntl_.h: New file.
110242         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110243         the fcntl module.
110244         * lib/dirchownmod.c: Likewise.
110245         * lib/fts.c: Likewise.
110247         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110248         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110249         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110250         just before including <inttypes.h>, to avoid circular inclusion.
110252 2006-08-28  Jim Meyering  <jim@meyering.net>
110254         * doc/visibility.texi: Actually read and correct the grammar of the
110255         sentence affected by yesterday's change.
110257 2006-08-28  Eric Blake  <ebb9@byu.net>
110259         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110260         needs wrapper.
110262 2006-08-28  Eric Blake  <ebb9@byu.net>
110264         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110266 2006-08-28  Eric Blake  <ebb9@byu.net>
110268         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110270 2006-08-28  Bruno Haible  <bruno@clisp.org>
110272         * modules/c-strstr: New file, from GNU gettext.
110273         * MODULES.html.sh (String handling): Add c-strstr.
110275 2006-08-28  Bruno Haible  <bruno@clisp.org>
110277         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110278         macros.
110279         Reported by Eric Blake.
110281 2006-08-28  Bruno Haible  <bruno@clisp.org>
110283         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110284         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110285         * lib/vasprintf.c: Include errno.h, limits.h.
110286         (EOVERFLOW): New fallback definition.
110287         (vasprintf): Test here whether the string length is > INT_MAX.
110288         * lib/vsnprintf.c: Include errno.h, limits.h.
110289         (EOVERFLOW): New fallback definition.
110290         (vsnprintf): Fix bug when generated string was too long for the buffer.
110291         Test here whether the string length is > INT_MAX.
110293 2006-08-28  Bruno Haible  <bruno@clisp.org>
110295         * lib/inttypes_.h (SCNX*): Remove definitions.
110296         Reported by Eric Blake.
110298 2006-08-28  Bruno Haible  <bruno@clisp.org>
110300         * lib/c-strstr.h: New file, from GNU gettext.
110301         * lib/c-strstr.c: New file, from GNU gettext.
110303 2006-08-28  Bruno Haible  <bruno@clisp.org>
110305         * gnulib-tool: Reorder some statements.
110307 2006-08-28  Bruno Haible  <bruno@clisp.org>
110309         * gnulib-tool: New option --makefile-name.
110310         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110311         $makefile_name.
110312         (func_import): Write $makefile_name to the cache file, and read it from
110313         there unless explicitly specified. Use $makefile_name as file name
110314         instead of Makefile.am. Adjust the recommendations accordingly.
110316 2006-08-28  Bruno Haible  <bruno@clisp.org>
110318         * gnulib-tool (func_verify_module): Check against misapplying patch.
110320 2006-08-28  Bruno Haible  <bruno@clisp.org>
110322         * gnulib-tool (func_relativize, func_relconcat): New functions.
110323         Give an error if --local-dir is given with --update.
110324         Remove trailing slashes from $local_gnulib_dir.
110325         (func_import): Store the relativized $local_gnulib_dir in
110326         gnulib-cache.m4, and read it from there if not specified explicitly.
110328 2006-08-28  Bruno Haible  <bruno@clisp.org>
110330         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110331         is the current directory. Respect also $local_gnulib_dir.
110333 2006-08-28  Bruno Haible  <bruno@clisp.org>
110334             Simon Josefsson  <jas@extundo.com>
110336         BeOS portability.
110337         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110339 2006-08-27  Jim Meyering  <jim@meyering.net>
110341         * doc/visibility.texi: Remove duplicate word: "pointer".
110343 2006-08-26  Bruno Haible  <bruno@clisp.org>
110345         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110346         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110347         (Makefile.am): Create inttypes.h from inttypes_.h.
110348         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110350         * modules/imaxabs: New file.
110352         * modules/imaxdiv: New file.
110354 2006-08-26  Bruno Haible  <bruno@clisp.org>
110356         * m4/inttypes.m4: New file.
110357         * m4/_inttypes_h.m4: Remove file.
110358         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110359         PRI_MACROS_BROKEN.
110360         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110362         * m4/imaxabs.m4: New file.
110364         * m4/imaxdiv.m4: New file.
110366 2006-08-26  Bruno Haible  <bruno@clisp.org>
110368         * lib/inttypes_.h: New file.
110369         * lib/inttypes.h: Remove file.
110370         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110372         * lib/imaxabs.c: New file.
110374         * lib/imaxdiv.c: New file.
110376 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110378         New config-h module, so that "make" output needn't be cluttered
110379         by -DHAVE_CONFIG_H.
110380         * MODULES.html.sh (Support for building libraries and executables):
110381         Add config-h.
110382         * modules/config-h: New file.
110383         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110384         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110385         the config-h module is used.
110387         New configmake module, so that "make" output needn't be cluttered
110388         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110389         * MODULES.html.sh (Support for building libraries and executables):
110390         Add configmake.
110391         * modules/configmake: New file.
110393 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110395         * m4/config-h.m4: New file.
110397 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110399         * config/srclist.txt: Add elisp-comp.
110401 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110403         * MODULES.html.sh (Support for building libraries and executables):
110404         Add elisp-comp.
110405         * build-aux/elisp-comp: New file.
110406         * modules/elisp-comp: New file.
110408 2006-08-24  Bruno Haible  <bruno@clisp.org>
110410         * gnulib-tool (func_create_testdir): Use non-default values of
110411         sourcebase and m4base.
110413 2006-08-24  Bruno Haible  <bruno@clisp.org>
110415         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
110416         HTML structure.
110418 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110420         * modules/openat (Depends-on): Add lchown.
110422 2006-08-23  Bruno Haible  <bruno@clisp.org>
110424         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
110425         of gl_LOCK_EARLY instead of gl_LOCK.
110427 2006-08-23  Bruno Haible  <bruno@clisp.org>
110429         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
110430         on OSF/1 to no.
110431         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
110433 2006-08-23  Bruno Haible  <bruno@clisp.org>
110435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
110436         as unusable.
110438         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110439         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110440         (gl_LOCK): New macro.
110442 2006-08-22  Simon Josefsson  <jas@extundo.com>
110444         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110445         to md5 module.
110447 2006-08-22  Simon Josefsson  <jas@extundo.com>
110449         * MODULES.html.sh: Add "Support for maintaining and release
110450         projects".
110452         * build-aux/gnupload: New file, from coreutils.
110454 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110456         Avoid the need for AC_LIBSOURCES in m4 macros.
110457         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110458         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110459         * modules/check-version (EXTRA_DIST): Add check-version.h.
110460         * modules/crc (EXTRA_DIST): Add crc.h.
110461         * modules/des (EXTRA_DIST): Add des.h.
110462         * modules/gc (EXTRA_DIST): Add gc.h.
110463         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110464         * modules/getline (EXTRA_DIST): Add getline.h.
110465         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110466         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110467         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110468         * modules/md2 (EXTRA_DIST): Add md2.h.
110469         * modules/md4 (EXTRA_DIST): Add md4.h.
110470         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110471         * modules/read-file (EXTRA_DIST): Add read-file.h.
110472         * modules/readline (EXTRA_DIST): Add readline.h.
110473         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110474         rijndael-api-fst.h.
110476 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110478         * m4/rijndael.m4 (gl_ARCFOUR):
110479         * m4/arctwo.m4 (gl_ARCTWO):
110480         * m4/check-version.m4 (gl_CHECK_VERSION):
110481         * m4/crc.m4 (gl_CRC):
110482         * m4/des.m4 (gl_DES):
110483         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110484         * m4/gc.m4 (gl_GC):
110485         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110486         * m4/getline.m4 (gl_FUNC_GETLINE):
110487         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110488         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110489         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110490         * m4/md2.m4 (gl_MD2):
110491         * m4/md4.m4 (gl_MD4):
110492         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110493         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110494         * m4/readline.m4 (gl_FUNC_READLINE):
110495         * m4/rijndael.m4 (gl_RIJNDAEL):
110496         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110497         to get the necessary .h files and whatnot.
110499 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110501         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110502         gnulib rather than the other way around.
110503         * config/srclistvars.sh (COREUTILS): Remove.
110505 2006-08-22  Jim Meyering  <jim@meyering.net>
110507         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110509         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110511 2006-08-22  Eric Blake  <ebb9@byu.net>
110513         * modules/regexprops-generic: New file.
110514         * MODULES.html.sh (Support for building documentation): List it.
110516 2006-08-22  Eric Blake  <ebb9@byu.net>
110518         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110519         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110521         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110523 2006-08-22  Bruno Haible  <bruno@clisp.org>
110525         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110526         and lib_LTLIBRARIES like the other lib_* variables.
110528 2006-08-22  Bruno Haible  <bruno@clisp.org>
110530         * build-aux/x-to-1.in: New file, from GNU gettext.
110532 2006-08-22  Bruno Haible  <bruno@clisp.org>
110534         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110535         <utmpx.h> exists.
110537 2006-08-22  Bruno Haible  <bruno@clisp.org>
110539         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110540         <utmpx.h> exists.
110542 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110544         BeOS portability.
110545         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110546         exist.
110547         Problem reported by Bruno Haible.
110549 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110551         Avoid the need for AC_LIBSOURCES in m4 macros.
110552         * modules/acl (EXTRA_DIST): Add acl.h.
110553         * modules/argmatch (Files): Add m4/argmatch.m4.
110554         (configure.ac): Add gl_ARGMATCH.
110555         (EXTRA_DIST): Renamed from lib_SOURCES, for
110556         consistency with the other modules.  Remove argmatch.c.
110557         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110558         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110559         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110560         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110561         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110562         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110563         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110564         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110565         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110566         * modules/closeout (EXTRA_DIST): Add closeout.h.
110567         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110568         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110569         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110570         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110571         dirname.h; remove basename.c and stripslash.c.
110572         * modules/exclude (EXTRA_DIST): Add exclude.h.
110573         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110574         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110575         * modules/file-type (EXTRA_DIST): Add file-type.h.
110576         * modules/filemode (EXTRA_DIST): Add filemode.h.
110577         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110578         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110579         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110580         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110581         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110582         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110583         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110584         * modules/getdate (EXTRA_DIST): Add getdate.c.
110585         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110586         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110587         * modules/getpass (EXTRA_DIST): Add getpass.h.
110588         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110589         * modules/group-member (EXTRA_DIST): Add group-member.h.
110590         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110591         * modules/hash (EXTRA_DIST): Add hash.h.
110592         * modules/human (EXTRA_DIST): Add human.h.
110593         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110594         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110595         * modules/lchown (EXTRA_DIST): Add lchown.h.
110596         * modules/long-options (EXTRA_DIST): Add long-options.h.
110597         * modules/lstat (EXTRA_DIST): Add lstat.h.
110598         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110599         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110600         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110601         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110602         * modules/memxor (EXTRA_DIST): Add memxor.h.
110603         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110604         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110605         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110606         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110607         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110608         * modules/physmem (EXTRA_DIST): Add physmem.h.
110609         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110610         * modules/posixver (EXTRA_DIST): Add posixver.h.
110611         * modules/quote (EXTRA_DIST): Add quote.h.
110612         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110613         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110614         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110615         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110616         regex_internal.h regexec.c.
110617         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110618         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110619         * modules/same (EXTRA_DIST): Add same.h.
110620         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110621         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110622         * modules/savedir (EXTRA_DIST): Add savedir.h.
110623         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110624         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110625         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110626         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110627         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110628         * modules/strdup (EXTRA_DIST): Add strdup.h.
110629         * modules/strftime (EXTRA_DIST): Add strftime.h.
110630         * modules/strndup (EXTRA_DIST): Add strndup.h.
110631         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110632         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110633         * modules/time_r (EXTRA_DIST): Add time_r.h.
110634         * modules/timespec (EXTRA_DIST): Add timespec.h.
110635         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110636         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110637         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110638         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110639         * modules/userspec (EXTRA_DIST): Add userspec.h.
110640         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110641         * modules/utimens (EXTRA_DIST): Add utimens.h.
110642         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110643         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110644         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110645         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110646         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110647         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110648         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110649         * modules/yesno (EXTRA_DIST): Add yesno.h.
110651 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110653         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110655         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110656         * m4/dev-ino.m4, same-inode.m4: Remove.
110658         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110659         * m4/acl.m4 (AC_FUNC_ACL):
110660         * m4/backupfile.m4 (gl_BACKUPFILE):
110661         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110662         * m4/canon-host.m4 (gl_CANON_HOST):
110663         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110664         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110665         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110666         * m4/cloexec.m4 (gl_CLOEXEC):
110667         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110668         * m4/closeout.m4 (gl_CLOSEOUT):
110669         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110670         * m4/dirname.m4 (gl_DIRNAME):
110671         * m4/exclude.m4 (gl_EXCLUDE):
110672         * m4/exitfail.m4 (gl_EXITFAIL):
110673         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110674         * m4/file-type.m4 (gl_FILE_TYPE):
110675         * m4/filemode.m4 (gl_FILEMODE):
110676         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110677         * m4/fpending.m4 (gl_FUNC_FPENDING):
110678         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110679         * m4/fts.m4 (gl_FUNC_FTS):
110680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110681         * m4/getdate.m4 (gl_GETDATE):
110682         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110683         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110684         * m4/getpass.m4 (gl_FUNC_GETPASS):
110685         * m4/gettime.m4 (gl_GETTIME):
110686         * m4/getugroups.m4 (gl_GETUGROUPS):
110687         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110688         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110689         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110690         * m4/hash.m4 (gl_HASH):
110691         * m4/idcache.m4 (gl_IDCACHE):
110692         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110693         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110694         * m4/long-options.m4 (gl_LONG_OPTIONS):
110695         * m4/lstat.m4 (gl_FUNC_LSTAT):
110696         * m4/md5.m4 (gl_MD5):
110697         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110698         * m4/memcoll.m4 (gl_MEMCOLL):
110699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110701         * m4/memxor.m4 (gl_MEMXOR):
110702         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110703         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110704         * m4/modechange.m4 (gl_MODECHANGE):
110705         * m4/mountlist.m4 (gl_MOUNTLIST):
110706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110707         * m4/openat.m4 (gl_FUNC_OPENAT):
110708         * m4/pathmax.m4 (gl_PATHMAX):
110709         * m4/physmem.m4 (gl_PHYSMEM):
110710         * m4/posixtm.m4 (gl_POSIXTM):
110711         * m4/posixver.m4 (gl_POSIXVER):
110712         * m4/quote.m4 (gl_QUOTE):
110713         * m4/quotearg.m4 (gl_QUOTEARG):
110714         * m4/readtokens.m4 (gl_READTOKENS):
110715         * m4/readutmp.m4 (gl_READUTMP):
110716         * m4/regex.m4 (gl_REGEX):
110717         * m4/safe-read.m4 (gl_SAFE_READ):
110718         * m4/safe-write.m4 (gl_SAFE_WRITE):
110719         * m4/same.m4 (gl_SAME):
110720         * m4/save-cwd.m4 (gl_SAVE_CWD):
110721         * m4/savedir.m4 (gl_SAVEDIR):
110722         * m4/settime.m4 (gl_SETTIME):
110723         * m4/sha1.m4 (gl_SHA1):
110724         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110725         * m4/stat-macros.m4 (gl_STAT_MACROS):
110726         * m4/stat-time.m4 (gl_STAT_TIME):
110727         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110728         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110729         * m4/strdup.m4 (gl_FUNC_STRDUP):
110730         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110731         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110732         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110733         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110734         * m4/time_r.m4 (gl_TIME_R):
110735         * m4/timespec.m4 (gl_TIMESPEC):
110736         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110737         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110738         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110739         * m4/userspec.m4 (gl_USERSPEC):
110740         * m4/utimecmp.m4 (gl_UTIMECMP):
110741         * m4/utimens.m4 (gl_UTIMENS):
110742         * m4/xalloc.m4 (gl_XALLOC):
110743         * m4/xgetcwd.m4 (gl_XGETCWD):
110744         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110745         * m4/xreadlink.m4 (gl_XREADLINK):
110746         * m4/xstrtod.m4 (gl_XSTRTOD):
110747         * m4/yesno.m4 (gl_YESNO):
110748         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110749         to get the necessary .h files and whatnot.
110751 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110752             Bruno Haible  <bruno@clisp.org>
110754         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110755         /bin/sh understanding of '!' conditional negation.
110757 2006-08-21  Jim Meyering  <jim@meyering.net>
110759         * modules/openat (Depends-on): Really alphabetize.
110761         * modules/acl (Depends-on): Add error and quote.
110763         * check-module (find_included_lib_files): Add at-func.c to the
110764         ok-to-include-more-than-once white list.
110766         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110768 2006-08-21  Bruno Haible  <bruno@clisp.org>
110770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110771         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110772         Reported by Martin Lambers <marlam@marlam.de>.
110774 2006-08-21  Bruno Haible  <bruno@clisp.org>
110776         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110777         specify an installation location, don't emit a noinst_LIBRARIES or
110778         noinst_LTLIBRARIES assignment.
110780 2006-08-21  Bruno Haible  <bruno@clisp.org>
110782         BeOS portability.
110783         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110784         BeOS has mbrtowc() but no <wctype.h>.
110786 2006-08-21  Bruno Haible  <bruno@clisp.org>
110788         BeOS portability.
110789         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110790         exist.
110792 2006-08-21  Bruno Haible  <bruno@clisp.org>
110794         BeOS portability.
110795         * lib/mbchar.h: Include <wctype.h> only if it exists.
110797 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110799         Remove files that are no longer needed by their respective modules.
110800         * m4/obstack.m4: Remove.
110801         * m4/strerror_r.m4: Remove.
110802         * m4/uint32_t.m4: Remove.
110803         * m4/uintptr_t.m4: Remove.
110804         * m4/ullong_max.m4: Remove.
110805         * m4/xstrtoimax.m4: Remove.
110806         * m4/xstrtoumax.m4: Remove.
110808         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110809         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110810         dependencies now capture this.
110812         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110813         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110814         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110815         * m4/human.m4 (gl_HUMAN): Likewise.
110816         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110817         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110819         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110821         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110822         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110823         stdint.
110824         * m4/human.m4 (gl_HUMAN): Likewise.
110825         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110826         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110827         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110828         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110829         * m4/xstrtol (gl_XSTRTOL): Likewise.
110831         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110832         AC_TYPE_LONG_LONG_INT.
110833         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110834         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110835         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110836         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110838         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110839         on stdbool.
110841         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110842         (gl_PREREQ_XSTRTOUL): Remove.
110844         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110846         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110847         mode.
110849 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110851         Add and change modules to make it easier for coreutils to use
110852         gnulib-tool.
110853         * modules/backupfile (Files): Remove m4/d-ino.m4.
110854         (Depends-on): Add d-ino.
110855         * modules/cycle-check (Depends-on): Add stdint.
110856         (lib_SOURCES): Add cycle-check.h.
110857         * modules/d-ino: New module.
110858         * modules/d-type: New module.
110859         * modules/error (Files): Remove m4/strerror_r.m4.
110860         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110861         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110862         m4/inttypes_h.m4, m4/uintmax_t.m4.
110863         (Depends-on): Add stdint.
110864         (lib_SOURCES): Add fsusage.h.
110865         * modules/getcwd (Files): Remove d-ino.m4.
110866         (Depends-on): Add d-ino.
110867         * modules/getndelim2 (Depends-on): Add stdint.
110868         * modules/glob (Files): Remove m4/d-type.m4.
110869         (Depends-on): Add d-type.
110870         * modules/host-os: New module.
110871         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110872         m4/inttypes_h.m4, m4/uintmax_t.m4.
110873         * Depends-on: Add stdint.
110874         (lib_SOURCES): Add human.h.
110875         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110876         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110877         m4/uintmax_t.m4, m4/ulonglong.m4.
110878         (Depends-on): Add stdint.
110879         (EXTRA_DIST): Add inttostr.h.
110880         * modules/lchmod: New module.
110881         * modules/link-follow: New module.
110882         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110883         (Depends-on): Add lchmod.
110884         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110885         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110886         (Depends-on): Add stdint.
110887         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110888         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110889         (Depends-on): Add stdint.
110890         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110891         * modules/perl: New module.
110892         * modules/regex (Depends-on): Add stdint.
110893         * modules/rmdir-errno: New module.
110894         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110895         m4/intmax_t.m4.
110896         (Depends-on): Add stdint.
110897         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110898         m4/uintmax_t.m4.
110899         (Depends-on): Add stdint.
110900         * modules/unlink-busy: New module.
110901         * modules/utimecmp (Depends-on): Add stdint.
110902         * modules/uptime: New module.
110903         * modules/winsz-ioctl: New module.
110904         * modules/winsz-termios: New module.
110905         * modules/xnanosleep (Depends-on): Add nanosleep.
110906         * modules/ullong_max: Remove.
110907         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110908         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110909         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110910         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110911         (Depends-on): Add inttypes.
110912         (lib_SOURCES): Add xstrtol.h.
110913         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110914         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110915         * MODULES.html.sh: Move 'assert' into the assert section.
110916         Move 'dummy' into the linking section.
110917         Remove ullong_max.
110918         Add section for compatibility checks for POSIX:2001 functions,
110919         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110920         winsz-ioctl, and winsz-termios into it.
110921         Add lchmod.
110922         Add top-level Misc section and put host-os, perl, and uptime
110923         into it.
110925 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110927         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110928         now assume the stdint module.  Do not include inttypes.h.
110929         * lib/fsusage.h: Likewise.
110930         * lib/getndelim2.c: Likewise.
110931         * lib/human.h: Likewise.
110932         * lib/inttostr.h: Likewise.
110933         * lib/obstack.c: Likewise.
110934         * lib/regex_internal.h: Likewise.
110935         * lib/tempname.c: Likewise.
110936         * lib/utimecmp.c: Likewise.
110937         * lib/xstrtol.h: Likewise.
110939         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110941         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110942         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110943         * lib/xtime.h: Likewise.
110945 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110947         * modules/openat (Files): Add lib/fchmodat.c.
110948         Fixes problem reported by Jay Youngman.
110950 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110952         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110953         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110955 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110956             Bruno Haible  <bruno@clisp.org>
110958         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110959         and is a script that invokes bison. Tighten the code. Add comments.
110961 2006-08-18  Jim Meyering  <jim@meyering.net>
110963         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110964         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110965         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110966         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110968 2006-08-18  Bruno Haible  <bruno@clisp.org>
110970         * modules/bison-i18n: New file.
110971         * MODULES.html.sh (Internationalization functions): Add it.
110973 2006-08-18  Bruno Haible  <bruno@clisp.org>
110975         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110976         sys/statvfs.h. When getmntinfo was found, check its declaration and
110977         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110979 2006-08-18  Bruno Haible  <bruno@clisp.org>
110981         * m4/bison-i18n.m4: New file, from bison.
110983 2006-08-18  Bruno Haible  <bruno@clisp.org>
110985         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110986         (ME_DUMMY): Treat "kernfs" as a dummy.
110987         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110989 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110991         Update from coreutils.
110993         2006-08-15  Jim Meyering  <jim@meyering.net>
110995         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110997         2006-01-17  Jim Meyering  <jim@meyering.net>
110999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111001         2006-01-11  Jim Meyering  <jim@meyering.net>
111003         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111004         Check for the lchmod function.
111006 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111008         Update from coreutils.
111010         * lib/__fpending.h: Add copyright notice.
111011         * lib/fprintftime.h: Likewise.
111012         * lib/savedir.c: Use (C) in copyright notice.
111013         * lib/savedir.h: Likewise.
111015         2006-08-15  Jim Meyering  <jim@meyering.net>
111017         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111018         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111019         in support of the EXPECTED_ERRNO macro.
111020         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111021         definitions.  Instead, define the appropriate symbols and include
111022         "at-func.c".
111023         * lib/mkdirat.c (mkdirat): Likewise.
111024         * lib/fchmodat.c (fchmodat): Likewise.
111025         (ENOSYS): Remove definition.
111026         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111027         it.  Don't include "unistd--.h" -- it wasn't ever used.
111029         2006-01-17  Jim Meyering  <jim@meyering.net>
111031         Rewrite fts.c not to change the current working directory,
111032         by using openat, fstatat, fdopendir, etc..
111034         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111035         (HAVE_OPENAT_SUPPORT): Define.
111036         [_LIBC] (fchdir): Don't undef or define; no longer used.
111037         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111038         Now, this `function' always succeeds, and consumes its file descriptor
111039         parameter -- so callers must not close such FDs.  Update callers.
111040         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111041         (diropen): Add parameter, SP.  Adjust all callers.
111042         Implement using diropen_fd, rather than open.
111043         (fts_open): Initialize new member, fts_cwd_fd.
111044         Remove fts_rft-setting code.
111045         (fts_close): Close fts_cwd_fd, if necessary.
111046         (__opendir2): Define in terms of opendir or opendirat,
111047         depending on whether the FST_NOCHDIR flag is set.
111048         (fts_build): Since fts_safe_changedir consumes its FD, and since
111049         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111050         and close the dup'd file descriptor upon failure.
111051         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111052         (fts_safe_changedir): Tweak semantics to reflect that this function
111053         now calls cwd_advance_fd and hence consumes its FD argument.
111054         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111055         [struct FTS] (fts_rft): Remove now-unused member.
111056         [struct FTS] (fts_cycle.state): Improve comment.
111058         * lib/openat.c (openat_needs_fchdir): New function.
111059         * lib/openat.h (openat_needs_fchdir): Declare it.
111061 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111063         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111064         Problem and fix reported by Pádraig Brady in
111065         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111067 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111069         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111071 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111073         * lib/memcoll.c (memcoll): Optimize for the common case where the
111074         arguments are bytewise equal.
111076 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111078         * doc/regexprops-generic.texi: Add a copyright notice.
111080 2006-08-15  Bruno Haible  <bruno@clisp.org>
111082         * modules/tmpdir (License): Change to LGPL.
111084 2006-08-15  Bruno Haible  <bruno@clisp.org>
111086         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111087         module.
111089 2006-08-14  Simon Josefsson  <jas@extundo.com>
111091         * config/srclist.txt: Add gnupload.
111093 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111095         Change copyright notice from LGPL 2 to GPL 2, since that's the
111096         standard form used in the gnulib repository.
111097         * tests/test-lock.c: Likewise.
111098         * tests/test-stdint.c: Likewise.
111099         * tests/test-tls.c: Likewise.
111101         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111102         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111103         Add copyright notice.
111105         * check-module: Add copyright notice.  Output a copyright
111106         notice if "--version" is specified.
111107         * modules/COPYING: New file.
111108         * tests/test-getaddrinfo.c: Add copyright notice.
111109         * tests/test-verify.c: Likewise.
111111 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111113         Change copyright notice from LGPL 2 to GPL 2, since that's the
111114         standard form used in the gnulib repository.
111115         * lib/lock.c: LGPL -> GPL.
111116         * lib/lock.h: Likewise.
111117         * lib/strnlen1.c: Likewise.
111118         * lib/strnlen1.h: Likewise.
111119         * lib/tls.c: Likewise.
111120         * lib/tls.h: Likewise.
111121         * lib/tmpdir.c: Likewise.
111123         * lib/TODO: Remove; this belongs only in coreutils.
111125 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111127         Add copyright notices to long-enough files that lack them, since
111128         otherwise the files aren't clearly free.  Use the same notice that
111129         getdate.texi already uses.
111130         * doc/alloca-opt.texi: Add copyright notice.
111131         * doc/alloca.texi: Likewise.
111132         * doc/ctime.texi: Likewise.
111133         * doc/functions.texi: Likewise.
111134         * doc/gcd.texi: Likewise.
111135         * doc/gnulib-tool.texi: Likewise.
111136         * doc/inet_ntoa.texi: Likewise.
111137         * doc/visibility.texi: Likewise.
111139         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111140         * doc/quote.texi: Add copyright notice.
111142         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111143         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111144         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111145         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111146         is now obsolete, and give a pointer to the Sun list.
111147         Add copyright notice.
111149 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111151         * config/srclistvars.sh: Add copyright notice.
111153 2006-08-14  Eric Blake  <ebb9@byu.net>
111155         Import the following change from libc:
111157         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111159         Upstream bug 2997.
111160         * lib/misc/error.c: Add space between program name and message if file
111161         name is missing.
111163 2006-08-12  Karl Berry  <karl@gnu.org>
111165         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111166         remove, these originate in gnulib now.
111168 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111170         * doc/Makefile (standards.info standards.html standards.dvi):
111171         Also depend on make-stds.texi.
111173 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111175         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111176         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111178         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111179         in wchar_t.  Problem reported by Eric Blake.
111181         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111182         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111183         Also, help the compiler to keep LEN in a register.
111185 2006-08-11  Eric Blake  <ebb9@byu.net>
111187         * users.txt: Sort.  Add tar.
111189 2006-08-11  Bruno Haible  <bruno@clisp.org>
111191         * users.txt: New file.
111193 2006-08-11  Bruno Haible  <bruno@clisp.org>
111195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111196         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111198 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111200         * modules/snprintf (Depends-on): Remove minmax.
111201         (Maintainer): Add self and Bruno.
111203 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111205         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111206         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111207         (EOVERFLOW): Define if the system does not.
111208         Do not include "minmax.h"; it wasn't used.
111209         (snprintf): Don't assume size_t promotes to an unsigned type.
111210         Fix bug when generated string was too long for the buffer: the
111211         buffer's contents are supposed to be the initial prefix of the
111212         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111213         exceeds INT_MAX; do the check ourselves.
111215         Import the following changes from libc:
111217         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111219         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111220         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111221         set wc to the byte which couldn't be converted.
111222         (re_string_reconstruct): Don't clear valid_raw_len before calling
111223         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111224         tip_context using re_string_context_at.
111226         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111228         * lib/posix/regex.h: g++ still cannot handled [restrict].
111230         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111232         * lib/posix/regex.h: Remove special handling for VMS.
111234 2006-08-10  Jim Meyering  <jim@meyering.net>
111236         * modules/same-inode: New module.
111237         * modules/dev-ino: New module.
111238         * modules/cycle-check: Depend on these modules, rather than simply
111239         including their .h files.
111240         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111241         required via m4/cycle-check.m4.
111242         * modules/same: Depend on new same-inode module, rather than
111243         including same-inode.h.
111244         * modules/chdir-safer: New file.
111246         * modules/chown (Depends-on): Add stat-macros.
111248 2006-08-10  Jim Meyering  <jim@meyering.net>
111250         * m4/cycle-check.m4: New file.
111251         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111252         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111254 2006-08-10  Eric Blake  <ebb9@byu.net>
111256         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111257         in from original proposal.
111259 2006-08-10  Eric Blake  <ebb9@byu.net>
111260         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111262         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111263         namespace.
111265 2006-08-10  Bruno Haible  <bruno@clisp.org>
111267         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111268         as well.
111270 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111272         Sync from coreutils.
111274         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111276         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111277         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111279 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111281         * modules/restrict: Remove; no longer needed now that we assume
111282         Autoconf 2.59 or later.
111283         * MODULES.html.sh: Remove 'restrict'.
111284         * modules/argp (Depends-on): Remove 'restrict'.
111285         * modules/base64 (Depends-on): Likewise.
111286         * modules/gc (Depends-on): Likewise.
111287         * modules/getaddrinfo (Depends-on): Likewise.
111288         * modules/glob (Depends-on): Likewise.
111289         * modules/inet_ntop (Depends-on): Likewise.
111290         * modules/inet_pton (Depends-on): Likewise.
111291         * modules/memxor (Depends-on): Likewise.
111292         * modules/regex (Depends-on): Likewise.
111293         * modules/strtok_r (Depends-on): Likewise.
111294         * modules/time_r (Depends-on): Likewise.
111296 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111298         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111299         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111300         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111301         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111302         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111303         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111304         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111305         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111307         Merge from coreutils.
111308         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111309         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111310         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111311         * m4/time_r.m4 (gl_TIME_R): Likewise.
111313 2006-08-09  Karl Berry  <karl@gnu.org>
111315         * config/srclist.txt: no more gettext-tools, per Bruno.
111317 2006-08-08  Eric Blake  <ebb9@byu.net>
111319         * modules/verror: New module.
111320         * MODULES.html.sh: Document it.
111322 2006-08-08  Eric Blake  <ebb9@byu.net>
111324         * lib/verror.h, lib/verror.c: New files.
111326 2006-08-08  Eric Blake  <ebb9@byu.net>
111328         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111329         verror_at_line output complies with GNU Coding Standards even when
111330         file is NULL.
111332 2006-08-07  Bruno Haible  <bruno@clisp.org>
111334         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111335         versions of AIX.
111336         Reported by Ralf Wildenhues.
111338 2006-08-07  Bruno Haible  <bruno@clisp.org>
111340         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111341         in an AC_DEFUN. Needed so that the autoconf snippets can use
111342         AC_REQUIRE.
111344 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111347         Initialize pkgdata_DATA.
111348         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111349         overriding it.
111351 2006-08-06  Eric Blake  <ebb9@byu.net>
111353         * lib/error.h: Fold in some upstream changes from glibc.
111354         * lib/error.c: Likewise.
111356 2006-08-04  Bruno Haible  <bruno@clisp.org>
111358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111359         Make the mostlyclean-local rule depend on mostlyclean-generic.
111360         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111362 2006-07-31  Bruno Haible  <bruno@clisp.org>
111364         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111365         <stdlib.h>, <string.h>.
111367 2006-07-30  Bruno Haible  <bruno@clisp.org>
111369         * modules/readlink (License): Change to LGPL.
111371 2006-07-30  Bruno Haible  <bruno@clisp.org>
111373         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111374         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111375         set PKGDATADIR to point to it.
111377 2006-07-30  Bruno Haible  <bruno@clisp.org>
111379         * modules/csharpexec (configure.ac): Comment out macro invocation.
111380         * modules/javaexec (configure.ac): Likewise.
111381         * modules/javacomp-script (configure.ac): Likewise.
111383         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111385 2006-07-30  Bruno Haible  <bruno@clisp.org>
111387         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111388         linked-list.
111390 2006-07-30  Bruno Haible  <bruno@clisp.org>
111392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111394 2006-07-30  Bruno Haible  <bruno@clisp.org>
111396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111397         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111398         get removed.
111400 2006-07-29  Bruno Haible  <bruno@clisp.org>
111402         Make it possible for gnulib-tool to work with locally modified or
111403         augmented gnulib repositories.
111404         * gnulib-tool (func_usage): Document --local-dir option.
111405         (local_gnulib_dir): New variable.
111406         Handle --local-dir option.
111407         (func_lookup_file): New function.
111408         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111409         (func_get_description, func_get_filelist, func_get_description,
111410         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111411         func_get_automake_snippet, func_get_include_directive,
111412         func_get_license, func_get_maintainer): Use func_lookup_file.
111413         (func_import, func_create_testdir): Use func_lookup_file.
111415 2006-07-29  Bruno Haible  <bruno@clisp.org>
111417         * modules/setenv (Depends-on): Add unistd.
111419 2006-07-29  Bruno Haible  <bruno@clisp.org>
111421         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
111423 2006-07-29  Bruno Haible  <bruno@clisp.org>
111425         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
111427 2006-07-29  Bruno Haible  <bruno@clisp.org>
111429         * gnulib-tool (import, update): If there is no Makefile.am, look at
111430         aclocal.m4, instead of bailing out.
111432 2006-07-29  Bruno Haible  <bruno@clisp.org>
111434         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
111435         Categorize the options by when they are useful.
111437 2006-07-29  Bruno Haible  <bruno@clisp.org>
111439         * gnulib-tool (func_usage): Document option --no-libtool.
111440         Handle option --no-libtool.
111441         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111442         for changed semantics of $libtool variable.
111443         (func_import): Likewise. If libtool is not used, show this through
111444         an option --no-libtool.
111445         (func_create_testdir): Update.
111447 2006-07-29  Bruno Haible  <bruno@clisp.org>
111449         * gnulib-tool (func_import): Extend error message about missing
111450         --doc-base.
111452 2006-07-29  Bruno Haible  <bruno@clisp.org>
111454         * gnulib-tool (func_import): Don't create the $docbase directory if
111455         there is no file to store there.
111457 2006-07-29  Bruno Haible  <bruno@clisp.org>
111459         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111460         relevant, look for configure.ac there, not in the current directory.
111461         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111463 2006-07-29  Bruno Haible  <bruno@clisp.org>
111465         * gnulib-tool (SORT): New variable.
111466         (func_usage): Undocument --assume-autoconf option.
111467         Remove --assume-autoconf option handling.
111468         (autoconf_minversion): Determine from the contents of configure.ac.
111469         (func_import): Remove autoconf_minversion handling.
111470         Suggested by Eric Blake.
111472 2006-07-29  Bruno Haible  <bruno@clisp.org>
111474         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111476 2006-07-29  Bruno Haible  <bruno@clisp.org>
111478         * config/srclist.txt (*setenv.[ch]): Remove rules.
111480 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111482         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111484 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111486         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111487         arpa/inet.h.
111489 2006-07-28  Simon Josefsson  <jas@extundo.com>
111491         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111492         * modules/inet_pton (Depends-on): Likewise.
111494 2006-07-28  Simon Josefsson  <jas@extundo.com>
111496         * m4/netinet_in_h.m4: New file.
111498 2006-07-28  Simon Josefsson  <jas@extundo.com>
111500         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111501         #include's.
111503 2006-07-28  Simon Josefsson  <jas@extundo.com>
111505         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111506         #include's.
111508 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111510         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111511         setgid on directories only if they set these bits.
111512         * lib/modechange.h: Remove obsolete comment about masks.
111514 2006-07-28  Eric Blake  <ebb9@byu.net>
111516         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111517         macro expansion.
111519 2006-07-28  Bruno Haible  <bruno@clisp.org>
111521         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111523 2006-07-28  Bruno Haible  <bruno@clisp.org>
111525         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111527 2006-07-28  Bruno Haible  <bruno@clisp.org>
111529         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111530         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111531         Define fallbacks.
111532         Avoids link error on FreeBSD 4.x.
111533         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111535         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111536         encoding.
111537         * lib/mbswidth.c (iswcntrl): Likewise.
111539 2006-07-27  Bruno Haible  <bruno@clisp.org>
111541         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111542         test.
111544 2006-07-27  Bruno Haible  <bruno@clisp.org>
111546         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111547         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111548         defined.
111550 2006-07-26  Eric Blake  <ebb9@byu.net>
111552         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111554 2006-07-26  Eric Blake  <ebb9@byu.net>
111556         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111557         like mingw that lack mkstemp.
111558         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111559         avoid compilation warning on mingw.
111561 2006-07-26  Bruno Haible  <bruno@clisp.org>
111563         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111564         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111565         INT_FAST*_MIN, INTPTR_MIN.
111567 2006-07-25  Bruno Haible  <bruno@clisp.org>
111569         * modules/version-etc (Depends-on): Add stdarg.
111571 2006-07-25  Bruno Haible  <bruno@clisp.org>
111573         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111574         complex commands.
111576 2006-07-25  Bruno Haible  <bruno@clisp.org>
111578         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111579         defined in <stdarg.h> or config.h.
111581 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111583         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111584         (gl_STDIO_SAFER): Remove.
111586 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111588         * MODULES.html.sh (File stream based Input/Output):
111589         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111590         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111591         * modules/fopen-safer, modules/tmpfile-safer: New files.
111592         * modules/stdio-safer: Remove.
111594 2006-07-24  Bruno Haible  <bruno@clisp.org>
111596         * modules/tmpdir: New file.
111597         * MODULES.html.sh (File system functions): Add it.
111599 2006-07-24  Bruno Haible  <bruno@clisp.org>
111601         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111602         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111604 2006-07-24  Bruno Haible  <bruno@clisp.org>
111606         * modules/clean-temp: New file.
111608 2006-07-24  Bruno Haible  <bruno@clisp.org>
111610         * m4/tmpdir.m4: New file, from GNU gettext.
111612 2006-07-24  Bruno Haible  <bruno@clisp.org>
111614         * lib/tmpdir.h: New file, from GNU gettext.
111615         * lib/tmpdir.c: New file, from GNU gettext.
111617 2006-07-24  Bruno Haible  <bruno@clisp.org>
111619         * lib/clean-temp.h: New file, from GNU gettext.
111620         * lib/clean-temp.c: New file, from GNU gettext.
111622 2006-07-23  Eric Blake  <ebb9@byu.net>
111624         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111625         (Depends-on): Add binary-io.
111627 2006-07-23  Eric Blake  <ebb9@byu.net>
111629         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111631 2006-07-23  Eric Blake  <ebb9@byu.net>
111633         * lib/tmpfile-safer.c: New file.
111634         * lib/stdio-safer.h (fopen_safer): Add prototype.
111635         * lib/stdio--.h (tmpfile): Make safer.
111637 2006-07-23  Bruno Haible  <bruno@clisp.org>
111639         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111640         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111641         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111642         gl_linked_remove_at): Use it.
111644 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111645         and Simon Josefsson <jas@extundo.com>
111647         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111649         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111651 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111653         * modules/close-stream: New file.
111654         * modules/closeout (Description): Make it clear that it exits
111655         with a diagnostic on error.
111656         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111657         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111659 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111661         * m4/close-stream.m4: New file.
111663 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111665         * lib/close-stream.c, lib/close-stream.h: New files.
111667 2006-07-22  Bruno Haible  <bruno@clisp.org>
111669         Merge from GNU gettext 0.15.
111671         2006-05-01  Bruno Haible  <bruno@clisp.org>
111673                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111675         2006-07-22  Bruno Haible  <bruno@clisp.org>
111677                 * modules/javaversion: New file.
111678                 * MODULES.html.sh (Java): Add javaversion.
111680         2006-03-12  Bruno Haible  <bruno@clisp.org>
111682                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111684         2005-12-04  Bruno Haible  <bruno@clisp.org>
111686                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111687                 (untested).
111689         2006-06-21  Bruno Haible  <bruno@clisp.org>
111691                 Avoid warnings from recent versions of mcs.
111692                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111693                 -o, -L, -r any more. Use options documented since mcs-1.0
111694                 instead. Similarly for -g.
111696         2005-12-04  Bruno Haible  <bruno@clisp.org>
111698                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111699                 .resources, not .resource.
111701         2005-07-09  Bruno Haible  <bruno@clisp.org>
111703                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111704                 add a .dll suffix.
111705                 Reported by Mark Junker <mjscod@gmx.de>.
111707         2006-07-22  Bruno Haible  <bruno@clisp.org>
111709                 * modules/gettext: Upgrade to gettext-0.15.
111710                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111711                 m4/visibility.m4.
111712                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111714 2006-07-22  Bruno Haible  <bruno@clisp.org>
111716         Merge from GNU gettext 0.15.
111718         2006-03-25  Bruno Haible  <bruno@clisp.org>
111720                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111722         2006-07-21  Bruno Haible  <bruno@clisp.org>
111724                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111725                 "1.1".
111727         2006-05-09  Bruno Haible  <bruno@clisp.org>
111729                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111730                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111731                 for the conftestver execution.
111733         2006-05-01  Bruno Haible  <bruno@clisp.org>
111735                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111736                 optional target-version argument. Verify that the compiler
111737                 groks source of the specified source-version, or add -source
111738                 option as necessary. Verify that the compiler produces
111739                 bytecode in the specified target-version, or add -target and
111740                 -source options as necessary. Make the result of the test
111741                 available as variable CONF_JAVAC. Also log error output in
111742                 config.log.
111744         2006-03-11  Bruno Haible  <bruno@clisp.org>
111746                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111748         2006-05-09  Bruno Haible  <bruno@clisp.org>
111750                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111751                 CLASSPATH_SEPARATOR to a semicolon.
111753         2006-03-12  Bruno Haible  <bruno@clisp.org>
111755                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111756                 available as variable CONF_JAVA, for subsequent autoconf
111757                 tests. Also log error output in config.log.
111759         2006-07-19  Bruno Haible  <bruno@clisp.org>
111761                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111762                 that getline works on glibc2 systems. Needed to avoid trouble
111763                 in relocatable.c.
111764                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111766         2005-12-04  Bruno Haible  <bruno@clisp.org>
111768                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111769                 launcher (untested).
111771         2005-12-04  Bruno Haible  <bruno@clisp.org>
111773                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111775         2006-07-22  Bruno Haible  <bruno@clisp.org>
111777                 * gettext.m4: Update from GNU gettext-0.15.
111778                 * nls.m4: Likewise.
111779                 * po.m4: Likewise.
111780                 * inttypes-pri.m4: Likewise.
111781                 * inttypes-h.m4: Renamed from inttypes.m4.
111782                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111784 2006-07-22  Bruno Haible  <bruno@clisp.org>
111786         Merge from GNU gettext 0.15.
111788         2005-07-05  Bruno Haible  <bruno@clisp.org>
111790                 * printf-args.c (printf_fetchargs): Work around broken
111791                 definition of wint_t on mingw.
111793         2005-02-12  Bruno Haible  <bruno@clisp.org>
111795                 * xallocsa.h: Add extern "C" for C++.
111797         2006-05-17  Bruno Haible  <bruno@clisp.org>
111799                 Cygwin portability.
111800                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111802         2006-04-30  Bruno Haible  <bruno@clisp.org>
111804                 * progreloc.c: Include <mach-o/dyld.h> if available.
111805                 (find_executable): Use _NSGetExecutablePath when possible.
111807         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111809                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111810                 function.
111812         2005-12-29  Bruno Haible  <bruno@clisp.org>
111814                 * progreloc.c (set_program_name_and_installdir): Fix
111815                 compilation error.
111817         2005-12-04  Bruno Haible  <bruno@clisp.org>
111819                 Cygwin portability.
111820                 * progreloc.c: Include <windows.h> also on Cygwin.
111821                 (find_executable): Add support for Cygwin.
111822                 (set_program_name_and_installdir): Handle also platforms with
111823                 nonempty EXEEXT.
111825         2006-07-11  Bruno Haible  <bruno@clisp.org>
111827                 * javacomp.c: Fix a comment.
111828                 Reported by Jim Meyering.
111830         2006-04-30  Bruno Haible  <bruno@clisp.org>
111832                 * javacomp.h (compile_java_class): Add source_version,
111833                 target_version arguments.
111834                 * javacomp.c: Rewritten to choose only a compiler that
111835                 respects the specified source_version and target_version.
111837         2006-06-27  Bruno Haible  <bruno@clisp.org>
111839                 Assume correct S_ISDIR macro.
111840                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111842         2006-07-22  Bruno Haible  <bruno@clisp.org>
111844                 * javaversion.h: New file, from GNU gettext.
111845                 * javaversion.c: New file, from GNU gettext.
111846                 * javaversion.java: New file, from GNU gettext.
111847                 * javaversion.class: New file, from GNU gettext.
111849         2006-05-17  Bruno Haible  <bruno@clisp.org>
111851                 Cygwin portability.
111852                 * javaexec.c (execute_java_class): Test for jview program
111853                 also on Cygwin.
111855         2006-04-09  Bruno Haible  <bruno@clisp.org>
111857                 * fatal-signal.c: Don't include string.h.
111858                 (at_fatal_signal): Use a copying loop instead of memcpy.
111860         2005-12-04  Bruno Haible  <bruno@clisp.org>
111862                 * csharpexec.c: Add support for 'clix' launcher (untested).
111863                 (execute_csharp_using_sscli): New function.
111864                 (execute_csharp_program): Call it.
111866         2006-06-21  Bruno Haible  <bruno@clisp.org>
111868                 Avoid warnings from recent versions of mcs.
111869                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111870                 -o, -L, -r any more. Use options documented since mcs-1.0
111871                 instead. Similarly for -g.
111873         2005-07-09  Bruno Haible  <bruno@clisp.org>
111875                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111876                 add a .dll suffix.
111877                 Reported by Mark Junker <mjscod@gmx.de>.
111879         2006-06-17  Bruno Haible  <bruno@clisp.org>
111881                 * config.charset: Update for NetBSD 3.0.
111883         2006-05-17  Bruno Haible  <bruno@clisp.org>
111885                 Cygwin portability.
111886                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111888         2006-05-16  Bruno Haible  <bruno@clisp.org>
111890                 * localcharset.c [CYGWIN]: Include <windows.h>.
111891                 (get_charset_aliases): For Cygwin, return the same CPxxx
111892                 aliases list as under WIN32.
111893                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111894                 the environment variables. Fall back to GetACP().
111896         2006-04-05  Bruno Haible  <bruno@clisp.org>
111898                 * config.charset: Update Juan Manuel Guerrero's address.
111900         2005-02-12  Bruno Haible  <bruno@clisp.org>
111902                 * allocsa.h: Add extern "C" for C++.
111904         2005-02-10  Bruno Haible  <bruno@clisp.org>
111906                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111907                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111909         2006-07-22  Bruno Haible  <bruno@clisp.org>
111911                 * gettext.h: Update to GNU gettext-0.15.
111913 2006-07-22  Bruno Haible  <bruno@clisp.org>
111915         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111916         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111917         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111919 2006-07-21  Eric Blake  <ebb9@byu.net>
111921         * modules/stdlib-safer: New file.
111922         * MODULES.html.sh (File stream based Input/Output): Add
111923         stdlib-safer.
111925 2006-07-21  Eric Blake  <ebb9@byu.net>
111927         * lib/stdlib-safer.h: New file from coreutils, required by
111928         stdlib--.h.
111930 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111932         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111934 2006-07-20  Bruno Haible  <bruno@clisp.org>
111936         * gnulib-tool: Recognize new option --assume-autoconf.
111937         (autoconf_minversion): New variable.
111938         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111940 2006-07-20  Bruno Haible  <bruno@clisp.org>
111942         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111944 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111946         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111947         Reindent and repaginate.
111949 2006-07-19  Derek Price  <derek@ximbiot.com>
111951         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111952         Correct grammar.
111954 2006-07-17  Bruno Haible  <bruno@clisp.org>
111956         * modules/list: New file.
111957         * modules/array-list: New file.
111958         * modules/carray-list, modules/carray-list-tests: New files.
111959         * modules/linked-list, modules/linked-list-tests: New files.
111960         * modules/avltree-list, modules/avltree-list-tests: New files.
111961         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111962         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111963         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111964         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111965         * modules/oset: New file.
111966         * modules/array-oset: New file.
111967         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111968         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111969         * tests/test-carray_list.c: New file.
111970         * tests/test-linked_list.c: New file.
111971         * tests/test-avltree_list.c: New file.
111972         * tests/test-rbtree_list.c: New file.
111973         * tests/test-linkedhash_list.c: New file.
111974         * tests/test-avltreehash_list.c: New file.
111975         * tests/test-rbtreehash_list.c: New file.
111976         * tests/test-avltree_oset.c: New file.
111977         * tests/test-rbtree_oset.c: New file.
111978         * MODULES.html.sh (Container data structures): New section.
111980 2006-07-17  Bruno Haible  <bruno@clisp.org>
111982         * m4/gl_list.m4: New file.
111984 2006-07-17  Bruno Haible  <bruno@clisp.org>
111986         * lib/gl_list.h: New file.
111987         * lib/gl_list.c: New file.
111988         * lib/gl_array_list.h: New file.
111989         * lib/gl_array_list.c: New file.
111990         * lib/gl_carray_list.h: New file.
111991         * lib/gl_carray_list.c: New file.
111992         * lib/gl_linked_list.h: New file.
111993         * lib/gl_linked_list.c: New file.
111994         * lib/gl_anylinked_list1.h: New file.
111995         * lib/gl_anylinked_list2.h: New file.
111996         * lib/gl_avltree_list.h: New file.
111997         * lib/gl_avltree_list.c: New file.
111998         * lib/gl_anyavltree_list1.h: New file.
111999         * lib/gl_anyavltree_list2.h: New file.
112000         * lib/gl_rbtree_list.h: New file.
112001         * lib/gl_rbtree_list.c: New file.
112002         * lib/gl_anyrbtree_list1.h: New file.
112003         * lib/gl_anyrbtree_list2.h: New file.
112004         * lib/gl_anytree_list1.h: New file.
112005         * lib/gl_anytree_list2.h: New file.
112006         * lib/gl_linkedhash_list.h: New file.
112007         * lib/gl_linkedhash_list.c: New file.
112008         * lib/gl_anyhash_list1.h: New file.
112009         * lib/gl_anyhash_list2.h: New file.
112010         * lib/gl_avltreehash_list.h: New file.
112011         * lib/gl_avltreehash_list.c: New file.
112012         * lib/gl_rbtreehash_list.h: New file.
112013         * lib/gl_rbtreehash_list.c: New file.
112014         * lib/gl_anytreehash_list1.h: New file.
112015         * lib/gl_anytreehash_list2.h: New file.
112017         * lib/gl_oset.h: New file.
112018         * lib/gl_oset.c: New file.
112019         * lib/gl_array_oset.h: New file.
112020         * lib/gl_array_oset.c: New file.
112021         * lib/gl_avltree_oset.h: New file.
112022         * lib/gl_avltree_oset.c: New file.
112023         * lib/gl_rbtree_oset.h: New file.
112024         * lib/gl_rbtree_oset.c: New file.
112025         * lib/gl_anytree_oset.h: New file.
112027 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112029         * m4/mkancesdirs.m4: New file.
112030         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112031         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112032         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112033         it.
112035 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112037         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112038         * lib/mkancesdirs.h: New files.
112039         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112040         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112041         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112042         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112043         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112044         callers changed.  Revamp internals significantly, by not
112045         attempting to create directories that are temporarily more
112046         permissive than the final results.  Do not attempt to use
112047         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112048         This removes some race conditions, fixes some bugs, and simplifies
112049         things.  Use new dirchownmod function to do owner and mode changes.
112050         * lib/mkdir-p.h: Likewise.
112051         * lib/modechange.c (octal_to_mode): New function.
112052         (struct mode_change): New member mentioned.
112053         (make_node_op_equals): New arg mentioned.  All callers changed.
112054         (mode_compile): Keep track of which mode bits the user has explicitly
112055         mentioned.
112056         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112057         New arg PMODE_BITS, to keep track of which mode bits the user
112058         mentioned; it treats S_ISUID and S_ISGID speciall.
112059         All callers changed.
112060         * lib/modechange.h: Likewise.
112062 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112064         * MODULES.html.sh: Add mkancestors.
112065         * modules/mkancesdirs: New module.
112066         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112067         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112068         The chdir-safer and afs files are now orphans; I'll remove them
112069         unless someone speaks up.
112070         Add lib/dirchownmod.c, lib/dirchownmod.h.
112071         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112072         Add lchown, mkancesdirs.
112073         (Maintainer): Add self.
112075 2006-07-15  Karl Berry  <karl@gnu.org>
112077         * gnulib-tool: help message wording/arrangement.
112079 2006-07-14  Simon Josefsson  <jas@extundo.com>
112081         * doc/gnulib.texi (Libtool and Windows): New section.
112083 2006-07-12  Simon Josefsson  <jas@extundo.com>
112085         * modules/gendocs (License): Fix license, approved by Karl.
112087 2006-07-12  Eric Blake  <ebb9@byu.net>
112089         * MODULES.html.sh: Add gendocs.
112091 2006-07-11  Eric Blake  <ebb9@byu.net>
112093         * modules/fdl: New module, to install doc/fdl.texi.
112094         * MODULES.html.sh: Add new section for documentation modules.
112095         * gnulib-tool: Avoid space-tab.
112096         (--doc-base): New option, to manage files from doc.
112098 2006-07-11  Eric Blake  <ebb9@byu.net>
112100         * m4/absolute-header.m4: Fix comments to match recent change.
112102 2006-07-11  Eric Blake  <ebb9@byu.net>
112104         * gnulib-tool: List --doc-base before --tests-base.
112106 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112108         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112110 2006-07-11  Bruno Haible  <bruno@clisp.org>
112112         * README: Mention where to put documentation.
112114 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112116         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112118 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112121         to stdint.m4.
112123 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112125         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112126         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112127         "no/such/file/stdint.h" when there is no such file, so that
112128         the resulting C code can be parsed by dodgy compilers.
112129         Problems reported by Bob Proulx.
112131 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112133         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112134         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112135         macros into the GNU _D_EXACT_NAMLEN.
112136         * lib/savedir.c:  Likewise.
112137         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112139 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112140         and Paul Eggert  <eggert@cs.ucla.edu>
112142         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112143         * m4/savedir.m4:
112144         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112145         macros into the GNU _D_EXACT_NAMLEN.
112147 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112150         around the absolute name, to work around a problem with the HP-UX
112151         11.23 native C compiler, reported by Bob Proulx.
112153 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112155         * doc/maintain.texi, make-stds.texi: Sync from
112156         <http://savannah.gnu.org/projects/gnustandards>.
112158 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112160         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112162 2006-07-09  Jim Meyering  <jim@meyering.net>
112164         * m4/glob.m4: Remove a doubled word in a comment.
112166 2006-07-09  Jim Meyering  <jim@meyering.net>
112168         * lib/argp-pv.c: Remove a doubled word in a comment.
112169         * lib/check-version.c (check_version): Likewise.
112170         * lib/javacomp.c (compile_java_class): Likewise.
112172 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112174         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112175         for the benefit of people using Autoconf 2.60.  If you want to
112176         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112177         (or m4/onceonly.m4, if pre-2.57) manually.
112179 2006-07-08  Jim Meyering  <jim@meyering.net>
112181         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112182         comment.
112183         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112184         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112185         comment.
112187 2006-07-08  Jim Meyering  <jim@meyering.net>
112189         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112191 2006-07-07  Simon Josefsson  <jas@extundo.com>
112193         * tests/test-crc.c: Change expected crc value, the test vector
112194         were probably computed using the old broken crc.c?
112196 2006-07-06  Simon Josefsson  <jas@extundo.com>
112198         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112199         now the canonical place for the M4 file).
112201         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112202         from the sys_socket dependency now.
112204         * modules/inet_pton (Files): Ditto.
112206         * modules/inet_ntop (Files): Ditto.
112208 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112210         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112211         not gl_PREREQ_GETUSERSHELL.
112213 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112215         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112216         with only one argument, for Autoconf 2.60.
112217         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112218         expand to nothing, so add a shell command to avoid syntax error.
112219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112221 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112223         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112225 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112228         no longer needed.  Check for isblank decl.
112229         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112230         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112231         of existence.
112233 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112235         * lib/getloadavg.c: Use __VMS, not VMS.
112236         * lib/getopt.c: Likewise.
112237         * lib/getpagesize.h: Likewise.
112238         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112239         and probably does not work.
112241 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112243         * lib/.cppi-disable: Add wcwidth.
112244         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112245         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112246         (ISGRAPH): Remove.  All uses changed to isgraph.
112247         (FOLD) [!defined _LIBC]: Remove special case.
112248         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112249         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112250         HAVE_ISBLANK.
112251         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112252         case.
112254 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112256         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112257         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112258         brackets.  Other minor changes to suppress some compiler
112259         warnings.
112261 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112262         and Paul Eggert  <eggert@cs.ucla.edu>
112264         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112265         of invoking obsolescent AC_HEADER_DIRENT macro.
112266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112267         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112270         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112271         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112272         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112273         * m4/readdir.m4: Remove; no longer needed.
112275 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112276         and Paul Eggert  <eggert@cs.ucla.edu>
112278         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112279         Don't worry about this obsolete case any more.
112280         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112281         directories.
112282         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112283         worry about this obsolete case any more.
112284         * lib/fts.c: Likewise.
112285         * lib/getcwd.c: Likewise.
112286         * lib/glob.h: Likewise.
112287         * lib/savedir.c: Likewise.
112289 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112291         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112292         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112293         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112294         needed.
112295         All uses removed.
112296         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112297         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112298         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112299         needed.
112300         * m4/getdate.m4 (gl_GETDATE): Likewise.
112301         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112302         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112303         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112304         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112305         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112306         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112307         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112308         needed.
112310 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112312         * lib/memcasecmp.c: Include <limits.h>.
112313         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112314         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112315         Don't assume isdigit succeeds only on '0' through '9'.
112317 2006-07-05  Eric Blake  <ebb9@byu.net>
112319         * modules/getaddrinfo (Depends-on): Add snprintf.
112321 2006-07-05  Eric Blake  <ebb9@byu.net>
112323         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112324         to avoid 'header present but could not be compiled' on cygwin.
112326 2006-07-05  Eric Blake  <ebb9@byu.net>
112328         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112329         missing from netdb.h.
112330         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112332 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112334         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112335         no longer needed.
112336         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112337         * m4/getdate.m4 (gl_GETDATE): Likewise.
112338         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112339         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112340         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112341         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112342         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112344 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112346         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112347         All uses of is_space replaced by isspace.
112348         * lib/exit.h: Don't talk about STDC_HEADERS.
112349         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112350         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112351         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112352         replaced by isprint etc.
112353         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112354         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112355         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112356         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112357         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112358         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112360 2006-07-05  Bruno Haible  <bruno@clisp.org>
112362         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112363         the function exists, before testing against AIX.
112364         Reported by Martin Lambers <marlam@marlam.de>.
112366 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112368         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112369         From Mark D. Baushke.
112371 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112373         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112374         to the absolute name, not just one, to bypass Sun C 5.8's
112375         "warning: #include of /usr/include/... may be non-portable".
112377 2006-07-04  Eric Blake  <ebb9@byu.net>
112379         * modules/dirname-tests: New test module.
112380         * tests/test-dirname.c: New file, replacing dirname.c
112381         TEST_DIRNAME section that was recently deleted.
112383 2006-07-04  Bruno Haible  <bruno@clisp.org>
112385         Assume ANSI C header files and <ctype.h> functions.
112386         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112387         (mbsnwidth): Use isprint, iscntrl instead.
112389 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112391         Merge from coreutils.
112392         * MODULES.html.sh: Add xstrtold.
112393         * modules/xstrtold: New file.
112394         * modules/cycle-check (Files): Add lib/same-inode.h.
112395         * modules/dirname (Files): Add m4/double-slash-root.m4.
112396         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112397         * modules/mkdir-p (Files): Add lib/same-inode.h.
112398         * modules/same (Files): Add lib/same-inode.h.
112400 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112402         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112403         This is to keep the terminology clean; POSIX talks about
112404         "absolute pathnames", not "full pathnames", but the GNU
112405         Coding Standards say to use "path" for something else;
112406         so use "absolute" to keep both sides happy.
112407         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112408         Set gl_absolute_header, not gl_full_header_path.
112409         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112410         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112411         All uses changed.
112413         Merge from coreutils.
112415         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112417         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
112418         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
112419         want to require the building of c-strtod.o.
112420         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
112421         needs -lm directly.
112422         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
112424         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112426         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
112427         --as-needed option if available.  Problem reported by Albert Chin in
112428         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
112429         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
112430         cc merely issues a bunch of annoying warnings for --as-needed
112431         (this problem was reported by Bob Proulx).  Also, try linking with
112432         -lm to detect a bug in binutils 2.16 (this problem was reported
112433         by Ralf Wildenhues).
112435         2006-06-18  Jim Meyering  <jim@meyering.net>
112437         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112438         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112439         macro.
112440         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112441         also check for glibc-2.4's abort-inducing bug.
112443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112444         Low-probability clean-up should be to use rmdir to get rid of
112445         the just-created directory, not unlink.
112447         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112448         configure fail, and request a bug report to inform us about it.
112449         Add a comment that, barring reports to the contrary, in 2007 we'll
112450         assume ftruncate is universally available.
112452         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112454         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112456         2006-03-12  Jim Meyering  <jim@meyering.net>
112458         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112459         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112460         * m4/same.m4 (gl_SAME): Likewise.
112461         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112463         2006-03-11  Eric Blake  <ebb9@byu.net>
112465         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112466         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112467         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112468         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112470 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112472         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112473         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112474         reported by Mark D. Baushke, one in
112475         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112477         Merge from coreutils.
112479         * lib/.cppi-disable: Add stdint_.h.
112480         * lib/.cvsignore: Add stdint.h.
112482         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112484         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112485         both double and long double versions.
112486         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112487         * lib/xstrtold.c: New file.
112488         * lib/xstrtod.h (xstrtold): New decl.
112490         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112492         * lib/filemode.c (setst): Remove.
112493         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112494         (arguably) clearer, and the generated code is a bit smaller on my
112495         Debian GNU/Linux stable x86 host.
112497         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112499         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112500         Assume that filemode.h includes sys/types.h and sys/stat.h.
112501         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112502         (ftypelet): Reorder to put common cases first, for efficiency.
112503         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112504         to do 'M'.
112505         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112506         of 10, for compatibility with FreeBSD.  All callers changed.
112507         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112508         types that can't be deduced solely from st_mode.  First arg is now a
112509         const pointer.
112510         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112511         (strmode): Renamed from mode_string.
112512         (filemodestring): New decl.
112513         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112514         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112515         needed.
112516         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112518         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112520         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112521         fsusage.h now does that.  Include fsusage.h first, to test interface.
112522         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112523         at most one method (the old code could have generated decls that
112524         didn't conform to C89, not that this was ever exercised).
112525         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112527         2006-03-19  Jim Meyering  <jim@meyering.net>
112529         Work even in a chroot where d_ino values for entries in "/"
112530         don't match the stat.st_ino values for the same names.
112531         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112532         number, iterate through all entries again, using lstat instead.
112533         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112534         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112536         * lib/getcwd.c (__getcwd): Clarify a comment.
112537         Use memcpy in place of a call to strcpy.
112539         2006-03-12  Jim Meyering  <jim@meyering.net>
112541         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112542         matches that of the current directory (which we're about to chdir ".."
112543         out of), then save the dev-ino of the parent, instead.
112545         * lib/same-inode.h (SAME_INODE): New file/macro.
112546         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112547         Include "same-inode.h", instead.
112548         * lib/same.c: Likewise.
112549         * lib/cycle-check.h: Include "same-inode.h".
112550         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112551         * lib/cycle-check.c (SAME_INODE): Remove definition.
112552         * lib/root-dev-ino.h: Include "same-inode.h".
112554         2006-03-11  Eric Blake  <ebb9@byu.net>
112556         * lib/same.c (same_name): s/base_name/last_component/
112557         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112558         * lib/filenamecat.c (file_name_concat): Likewise.
112560         2006-03-11  Eric Blake  <ebb9@byu.net>,
112561                     Paul Eggert  <eggert@cs.ucla.edu>
112563         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112564         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112565         drive prefix.
112566         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112567         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112568         (last_component): New method.
112569         * lib/dirname.c (dir_len): Determine when drive letters need a
112570         subsequent slash.  Preserve // when it is special.
112571         (dir_name): Don't append dot when drive letter is absolute.
112572         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112573         * lib/basename.c (base_name): New semantics - malloc the result.
112574         Preserve // when it is special.  Preserve relative files that look
112575         like drive letters.
112576         (base_len): Preserve // when it is special.
112577         (last_component): New method, similar to old base_name semantics.
112578         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112579         base_name.  Strip redundant slashes from ///.
112581 2006-07-03  Jim Meyering  <jim@meyering.net>
112583         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112584         macro is used before the first cycle_check call.
112586 2006-07-03  Eric Blake  <ebb9@byu.net>
112588         * modules/dirname (Depends-on): Add xstrndup.
112590 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112592         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112593         test cases, so that config.log is a bit easier to follow.
112595 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112597         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112598         both are 64 bits, since this seems to be the tradition, and this
112599         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112600         we ever run into a host that prefers long long to long in this
112601         case, we'll need another configure-time test.  Problem reported by
112602         Jim Meyering.
112604 2006-07-02  Eric Blake  <ebb9@byu.net>
112606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112608 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112610         * modules/inttypes (Depends-on): No longer depends on stdint.
112611         * modules/stdint (Description): Say more about assumptions.
112612         Say that the fast types might differ.  Say macros are used.
112613         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112614         (Makefile.am): Revise list of substituted symbols to match
112615         new stdint.m4.
112616         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112617         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112618         * tests/test-stdint.c (verify_same_types)
112619         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112620         the code conforms to C99/C89.
112621         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112622         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112624 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112626         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112627         but fix a bug, by requiring at least 64 bits.
112628         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112629         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112630         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112631         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112633         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112634         changes.  Make 2.59 a prerequisite.  Check and substitute for
112635         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112636         inttypes.h.  Do not use special include files; just use the
112637         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112638         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112639         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112640         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112641         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112642         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112643         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112644         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112645         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112646         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112647         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112648         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112649         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112650         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112651         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112652         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112653         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112654         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112655         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112656         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112657         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112658         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112659         not check for things that C99 does not require, e.g., int8_t.  If
112660         a test isn't needed unless <stdint.h> isn't working, and is
112661         unlikely to be needed for any other reason, then don't do it
112662         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112663         size_t, since we assume C89 freestanding at least.  Do not check
112664         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112665         the right thing even if the types are not defined.  Instead use:
112666         (gl_STDINT_TYPE_PROPERTIES): New macro.
112667         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112668         testing whether <sys/types.h> clashes, as Autoconf does this for
112669         us now.  All uses removed.
112670         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112671         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112672         (gl_CHECK_TYPE_SAME):
112673         Remove; no longer needed.
112674         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112675         exists, since we'll return 0 anyway in that case.
112676         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112678 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112680         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112681         possible collision with system files.
112682         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112683         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112684         WCHAR_MIN and WCHAR_MAX in this case.
112685         (<stddef.h>): Do not include; no longer needed.
112686         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112687         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112688         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112689         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112690         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112691         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112692         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112693         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112694         !defined(__c99))]: Include in this case too, since it's harmless
112695         now.
112696         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112697         dangerous to do so.
112698         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112699         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112700         (_STDINT_MIN, _STDINT_MAX): New macros.
112701         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112702         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112703         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112704         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112705         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112706         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112707         macros, not typedefs; this simplifies things quite a bit.
112708         Use long int for all types narrower than int64_t.
112709         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112710         Define in terms of long long int or int64_t or long int,
112711         not int64_t or int32_t.  This saves some compile-time testing.
112712         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112713         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112714         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112715         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112716         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112717         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112718         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112719         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112720         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112721         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112722         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112723         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112724         undef any previous version and define our own version, for
112725         simplicity and consistency with the new macros for types.
112726         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112727         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112728         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112729         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112730         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112731         @WINT_T_SUFFIX@ to keep things simple here.
112732         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112733         Simplify by assuming typical 8/16/32/64 host, since we're
112734         already doing that elsewhere anyway.
112735         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112736         and assume long long int is 64 bits if available.  This
112737         speeds up 'configure'.
112739 2006-07-01  Eric Blake  <ebb9@byu.net>
112741         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112742         Reported by Andreas Buening.
112744 2006-07-01  Eric Blake  <ebb9@byu.net>
112746         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112748 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112750         * lib/getaddrinfo.c: fixed typo
112752 2006-06-29  Jim Meyering  <jim@meyering.net>
112754         * modules/strftime (Maintainer): Add my name, since with the
112755         FPRINTFTIME changes strftime.c has forked from glibc.
112757 2006-06-29  Eric Blake  <ebb9@byu.net>
112759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112761 2006-06-29  Eric Blake  <ebb9@byu.net>
112763         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112765 2006-06-29  Eric Blake  <ebb9@byu.net>
112767         * lib/stat_.h: New file.
112769 2006-06-29  Eric Blake  <ebb9@byu.net>
112771         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112772         unused static function.
112774 2006-06-29  Eric Blake  <ebb9@byu.net>
112776         * doc/functions.texi (Function Portability): Document missing lstat
112777         on mingw.
112779 2006-06-29  Eric Blake  <ebb9@byu.net>
112781         * MODULES.html.sh: Add sys_stat.
112782         * modules/sys_stat: New module.
112783         * modules/mkstemp (Depends-on): Add sys_stat.
112785 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112787         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112789 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112791         * m4/c-bs-a.m4: Removed.
112793 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112795         * lib/strftime.c: Assume strftime() exists.
112797 2006-06-29  Derek Price  <derek@ximbiot.com>
112799         * modules/c-bs-a: Removed - \a is C89.
112800         * MODULES.html.sh: Remove c-bs-a.
112802 2006-06-29  Bruno Haible  <bruno@clisp.org>
112804         * modules/wcwidth (License): Change to LGPL.
112806 2006-06-28  Simon Josefsson  <jas@extundo.com>
112808         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112809         on _WIN32.
112811         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112812         getnameinfo.
112814 2006-06-28  Simon Josefsson  <jas@extundo.com>
112816         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112818 2006-06-28  Simon Josefsson  <jas@extundo.com>
112820         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112821         functions there.  It will succeed on Windows XP, but on Windows
112822         2000 and (presumably) earlier, it will fail, and use the internal
112823         re-implementation.
112824         (use_win32_p): New function.
112825         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112826         Support AI_NUMERICSERV to disable getservbyname.
112827         (getnameinfo): New function, only supports
112828         NI_NUMERICHOST|NI_NUMERICSERV for now.
112830         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112831         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112832         getnameinfo.
112834 2006-06-28  Eric Blake  <ebb9@byu.net>
112836         * modules/wcwidth: New file.
112837         * modules/mbchar (Depends-on): Add wcwidth.
112838         * modules/mbswidth (Depends-on): Add wcwidth.
112839         * MODULES.html.sh: Add wcwidth.
112841 2006-06-28  Eric Blake  <ebb9@byu.net>
112843         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112846 2006-06-28  Eric Blake  <ebb9@byu.net>
112848         * lib/xvasprintf.h: Fix comments.
112850 2006-06-28  Eric Blake  <ebb9@byu.net>
112852         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112853         * lib/mbswidth.c (wcwidth): Move from here...
112854         * lib/wcwidth.h: ...to this new file.
112856 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112858         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112861         it's obsolete.
112862         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112864 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112866         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112867         Autoconf 2.60 says this stuff was obsolete.
112869 2006-06-28  Bruno Haible  <bruno@clisp.org>
112871         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112873 2006-06-28  Bruno Haible  <bruno@clisp.org>
112875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112876         gt_TYPE_WCHAR_T.
112878 2006-06-28  Bruno Haible  <bruno@clisp.org>
112880         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112881         declaration for wcwidth.
112882         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112884 2006-06-28  Bruno Haible  <bruno@clisp.org>
112886         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112887         (mkdir): Define using _mkdir.
112889 2006-06-28  Bruno Haible  <bruno@clisp.org>
112891         * lib/getaddrinfo.h: Fix POSIX URL.
112892         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112893         _WIN32.
112894         (use_win32_p): Make static.
112895         (getaddrinfo): Reject service name if it is empty or does not consist
112896         solely of decimal digits, or if its value is > 65535.
112897         (getnameinfo): Remove useless casts.
112899 2006-06-27  Simon Josefsson  <jas@extundo.com>
112901         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112902         Eggert and Martin Lambers.
112904 2006-06-27  Simon Josefsson  <jas@extundo.com>
112906         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112907         Eggert and Martin Lambers.
112909 2006-06-27  Bruno Haible  <bruno@clisp.org>
112911         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112912         result to 0, not to empty.
112913         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112915 2006-06-27  Bruno Haible  <bruno@clisp.org>
112917         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112919 2006-06-26  Simon Josefsson  <jas@extundo.com>
112921         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112922         present.
112924 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112926         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112927         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112928         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112930 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112932         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112934 2006-06-26  Bruno Haible  <bruno@clisp.org>
112936         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112938 2006-06-26  Bruno Haible  <bruno@clisp.org>
112940         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112942 2006-06-26  Bruno Haible  <bruno@clisp.org>
112944         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112945         SGI C compiler in pre-C99 mode.
112946         Suggested by Mark D. Baushke and Larry Jones.
112948 2006-06-26  Bruno Haible  <bruno@clisp.org>
112950         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112951         WCHAR_MAX.
112952         Reported by Mark D. Baushke and Larry Jones.
112954 2006-06-26  Bruno Haible  <bruno@clisp.org>
112956         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112957         in pre-C99 mode.
112958         Suggested by Mark D. Baushke and Larry Jones.
112960 2006-06-23  Simon Josefsson  <jas@extundo.com>
112961             Bruno Haible  <bruno@clisp.org>
112963         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112964         Emit mostlyclean-local rule.
112965         (func_emit_tests_Makefile_am): Likewise.
112966         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112968 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112970         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112972 2006-06-23  Bruno Haible  <bruno@clisp.org>
112974         * tests/test-stdint.c: Update to match ISO C 99 Technical
112975         Corrigendum 1.
112977 2006-06-23  Bruno Haible  <bruno@clisp.org>
112979         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112981 2006-06-23  Bruno Haible  <bruno@clisp.org>
112983         * lib/stdint_.h: Treat IRIX like OpenBSD.
112985 2006-06-23  Bruno Haible  <bruno@clisp.org>
112987         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112988         ISO C 99 Technical Corrigendum 1.
112990 2006-06-22  Simon Josefsson  <jas@extundo.com>
112992         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112993         MinGW.
112995 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112997         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112998         needed.  Some compiler complained about some of them.  Problem reported
112999         by Larry Jones in
113000         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113002 2006-06-21  Simon Josefsson  <jas@extundo.com>
113004         * tests/test-getaddrinfo.c: New file.
113006         * modules/getaddrinfo-tests: New file.
113008         * MODULES.html.sh: Add inet_pton.
113010         * modules/inet_pton: New file.
113012 2006-06-21  Simon Josefsson  <jas@extundo.com>
113014         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113015         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113016         of using the (limited) gnulib implementation on Windows XP.
113018         * m4/inet_pton.m4: New file.
113020 2006-06-21  Simon Josefsson  <jas@extundo.com>
113022         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113023         variable.
113025         * lib/socket_.h: Don't define WINVER.
113027         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113028         slightly modified to work in gnulib.
113030 2006-06-21  Simon Josefsson  <jas@extundo.com>
113032         * doc/gnulib.texi (Windows sockets): Add.
113034 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113036         * lib/read-file.c (fread_file): Start with buffer allocation of
113037         0 bytes rather than 1 byte; this simplifies the code.
113038         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113039         code to free buffer and save/restore errno.
113040         (internal_read_file): Remove unused local.
113042 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113044         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113045         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113046         Problem reported by Denis Excoffier in
113047         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113049 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113051         * modules/sys_socket, modules/socklen: Include sys/types since
113052         FreeBSD 4.x's sys/socket.h needs it.
113054 2006-06-19  Simon Josefsson  <jas@extundo.com>
113056         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113058 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113060         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113062 2006-06-19  Bruno Haible  <bruno@clisp.org>
113064         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113065         and FULL_PATH_INTTYPES_H in angle brackets.
113066         Reported by Mark D. Baushke <mdb@gnu.org>.
113068 2006-06-17  Eric Blake  <ebb9@byu.net>
113070         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113071         errno.
113073 2006-06-17  Bruno Haible  <bruno@clisp.org>
113075         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113076         <sys/inttypes.h>.
113078 2006-06-17  Bruno Haible  <bruno@clisp.org>
113080         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113081         whether errno is declared. Assume <errno.h> declares errno.
113083 2006-06-17  Bruno Haible  <bruno@clisp.org>
113085         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113087 2006-06-17  Bruno Haible  <bruno@clisp.org>
113089         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113090         problem on Solaris 2.5.1.
113092 2006-06-16  Eric Blake  <ebb9@byu.net>
113094         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113095         * lib/unicodeio.c [!defined errno]: Likewise.
113096         * lib/strtol.c [!defined errno]: Likewise.
113097         * lib/strtod.c [!defined errno]: Likewise.
113099 2006-06-15  Eric Blake  <ebb9@byu.net>
113101         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113103 2006-06-15  Eric Blake  <ebb9@byu.net>
113105         * config/srclist.txt (ssize_t.m4): Lose sync.
113107 2006-06-15  Bruno Haible  <bruno@clisp.org>
113109         * modules/stdint (Files): Include m4/full-header-path.m4,
113110         m4/size_max.m4, m4/wchar_t.m4.
113111         (Makefile.am): Many more substitutions.
113112         * modules/stdint-tests: New file.
113113         * tests/test-stdint.c: New file.
113115 2006-06-15  Bruno Haible  <bruno@clisp.org>
113117         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113118         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113119         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113120         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113121         gl_CHECK_TYPE_SAME): New macros.
113123 2006-06-15  Bruno Haible  <bruno@clisp.org>
113125         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113127 2006-06-15  Bruno Haible  <bruno@clisp.org>
113129         * lib/stdint_.h: Rewritten to be fully auto-configured.
113130         Fixes bug on HP-UX/IA64.
113132 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113134         * lib/getdate.y (__attribute__): Don't define if already defined.
113135         Problem reported by Larry Jones.
113136         * lib/utimens.c (__attribute__): Likewise.
113138 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113140         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113141         reported by Andreas Schwab.
113143 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113144             Bruno Haible  <bruno@clisp.org>
113146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113147         check for the declaration of strnlen and a run test that exposes the
113148         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113149         rpl_strndup.
113151 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113152             Bruno Haible  <bruno@clisp.org>
113154         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113156 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113158         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113159         compile test, for Tru64 4.0D.
113161 2006-05-28  Karl Berry  <karl@gnu.org>
113163         * config/srclist.txt (printf-args.c): lose sync.
113165 2006-05-26  Martin Lambers  <marlam@marlam.de>
113167         * lib/getpass.c: Updates the test for the native W32 API, and adds
113168         missing includes, thus fixing compilation warnings.
113170 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113172         * lib/exclude.c (exclude_fnmatch): New function.
113173         (excluded_file_name): Call exclude_fnmatch.
113174         * lib/exclude.h (excluded_file_name): New prototype
113176 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113178         * lib/tempname.c (small_open, large_open): New macros.
113179         (__open, __open64) [!_LIBC]: Remove.
113180         (__gen_tempname): Use small_open and large_open instead of __open
113181         and __open64.  This fixes a portability bug on HP-UX 11.11i
113182         reported by Simon Wing-Tang in
113183         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113185 2006-05-24  Bruno Haible  <bruno@clisp.org>
113187         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113188         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113189         Reported by Thorsten Maerz <torte@netztorte.de> via
113190         Aaron Stone <aaron@serendipity.cx>.
113192 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113195         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113196         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113197         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113198         not really conditional on the cache.
113199         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113201 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113203         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113204         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113205         (my_usleep): Don't mishandle maximum value.
113207 2006-05-19  Jim Meyering  <jim@meyering.net>
113209         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113211 2006-05-17  Bruno Haible  <bruno@clisp.org>
113213         Cygwin portability.
113214         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113216 2006-05-17  Bruno Haible  <bruno@clisp.org>
113218         * lib/stdint_.h: Fix recognition of Cygwin.
113220 2006-05-15  Bruno Haible  <bruno@clisp.org>
113222         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113223         on libtool patch by Ralf Wildenhues.
113225 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113227         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113228         test for C99 conformance; (bool) 0.5 is an integer constant
113229         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113230         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113232 2006-05-11  Simon Josefsson  <jas@extundo.com>
113234         * m4/xvasprintf.m4: Fix obvious typo.
113236 2006-05-11  Jim Meyering  <jim@meyering.net>
113238         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113239         James Lemley.
113241 2006-05-10  Simon Josefsson  <jas@extundo.com>
113243         * lib/md4.c: Typo fix, update copyright years.
113244         (K1, K2): Don't use L because it turn computations into 64-bit on
113245         64-bit platforms.
113247 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113249         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113250         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113251         unwanted sign propagation, e.g., on hosts with 64-bit int.
113252         There still are some problems with reeelly weird theoretical hosts
113253         (e.g., 33-bit int) but it's not worth worrying about now.
113254         * lib/sha1.c (rol): Likewise.
113255         (K1, K2, K3, K4): Remove unnecessary L suffix.
113257 2006-05-10  Bruno Haible  <bruno@clisp.org>
113259         * lib/des.c: Cast to avoid warnings.
113261 2006-05-09  Bruno Haible  <bruno@clisp.org>
113263         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113264         (Depends-on): Depend also on xsize, stdarg.
113265         (configure.ac): Add gl_XVASPRINTF.
113267 2006-05-09  Bruno Haible  <bruno@clisp.org>
113269         * m4/xvasprintf.m4: New file.
113271 2006-05-09  Bruno Haible  <bruno@clisp.org>
113273         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113274         (EOVERFLOW): Define fallback value.
113275         (xstrcat): New function.
113276         (xvasprintf): Recognize the special case of a string concatenation.
113278 2006-05-08  Eric Blake  <ebb9@byu.net>
113280         * gnulib-tool (func_version): Base copyright year on CVS date.
113281         (func_emit_copyright_notice): New function.
113282         (func_emit_lib_Makefile_am): Use it.
113283         (func_emit_tests_Makefile_am): Likewise.
113284         (func_import): Likewise.
113286 2006-05-08  Bruno Haible  <bruno@clisp.org>
113288         * modules/stdarg: New file.
113289         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113291 2006-05-08  Bruno Haible  <bruno@clisp.org>
113293         * m4/stdarg.m4: New file, from GNU gettext.
113295 2006-05-08  Bruno Haible  <bruno@clisp.org>
113297         * config/srclist.txt (build-aux/config.rpath): different from latest
113298         release.
113300 2006-05-08  Bruno Haible  <bruno@clisp.org>
113302         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113304 2006-05-05  Jim Meyering  <jim@meyering.net>
113306         * m4/warning.m4: New file, derived from bison's file by the same name.
113308 2006-05-03  Bruno Haible  <bruno@clisp.org>
113310         * lib/stdint_.h: Shorter URL.
113311         * lib/inttypes.h: Likewise.
113313 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113315         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113317 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113319         * lib/verify.h: Document the internals better.  Most of this change
113320         was written by Bruno Haible.
113322 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113324         * doc/verify.texi: New file, partly based on a proposal by
113325         Bruno Haible.
113327 2006-05-02  Bruno Haible  <bruno@clisp.org>
113329         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113330         test from here...
113331         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113333 2006-04-29  Bruno Haible  <bruno@clisp.org>
113335         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113336         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113338 2006-04-29  Bruno Haible  <bruno@clisp.org>
113340         * gnulib-tool: Make --update option actually work.
113342 2006-04-29  Bruno Haible  <bruno@clisp.org>
113344         * doc/gcd.texi: New file.
113345         * doc/gnulib.texi: Include it.
113347 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113349         * lib/getdate.y (get_date): When adding relative date, start with the
113350         initial time, not with the result of the first mktime call.
113352 2006-04-25  Bruno Haible  <bruno@clisp.org>
113354         * gnulib-tool (func_import): Output the include directives in three
113355         blocks, sorted separately.
113356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113358 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113360         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113361         to define main with arguments, for C++.  Reported by Eric Blake.
113362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113363         Prefer 'int main ()' to 'int main (void)', for C++.
113364         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113366         for 'main', for C99 and C++.
113368 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113371         Don't assume that exit status -1 is valid.
113372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113373         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113374         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113375         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113376         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113377         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113378         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113379         functions can be used without declaring them, or that you can
113380         exit with status -1.
113381         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113383 2006-04-24  Karl Berry  <karl@gnu.org>
113385         * config/srclist.txt (longdouble.m4): sync lost.
113387 2006-04-24  Eric Blake  <ebb9@byu.net>
113389         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113391 2006-04-24  Bruno Haible  <bruno@clisp.org>
113393         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113394         poll() implementation in AIX.
113395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113397 2006-04-24  Bruno Haible  <bruno@clisp.org>
113399         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113400         assigned exactly once.
113402 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113403             Bruno Haible  <bruno@clisp.org>
113405         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113406         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113407         for AM_CPPFLAGS.
113409 2006-04-23  Bruno Haible  <bruno@clisp.org>
113411         * modules/copy-file: Depend on unistd.
113412         * modules/execute: Likewise.
113413         * modules/fatal-signal: Likewise.
113414         * modules/findprog: Likewise.
113415         * modules/mkdtemp : Likewise.
113416         * modules/pipe: Likewise.
113417         * modules/wait-process: Likewise.
113419 2006-04-23  Bruno Haible  <bruno@clisp.org>
113421         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
113422         condition was already detected.
113423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113425 2006-04-23  Bruno Haible  <bruno@clisp.org>
113427         * lib/copy-file.c: Include <unistd.h> unconditionally.
113428         * lib/execute.c: Likewise.
113429         * lib/fatal-signal.c: Likewise.
113430         * lib/findprog.c: Likewise.
113431         * lib/mkdtemp.c: Likewise.
113432         * lib/pipe.h: Likewise.
113433         * lib/pipe.c: Likewise.
113434         * lib/wait-process.h: Likewise.
113436 2006-04-23  Bruno Haible  <bruno@clisp.org>
113438         * gnulib-tool (func_usage): Fix --import description. Document
113439         --update.
113440         (func_import): Create temporary file in a temporary directory, if
113441         --dry-run is specified. Silence errors from 'grep' when there are no
113442         m4 files in $m4dir.
113443         (func_create_testdir): Silence errors from 'grep' when there are no
113444         m4 files in $m4dir.
113445         Reported by Karl Berry <karl@freefriends.org>.
113447 2006-04-20  Bruno Haible  <bruno@clisp.org>
113449         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113450         one argument, so that the code will be portable to Autoconf 2.60.
113451         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113452         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113453         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113455 2006-04-19  Derek Price  <derek@ximbiot.com>
113456             Eric Blake  <ebb9@byu.net>
113458         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113459         rather than "/full/path.h".  Update comment to match.  Shorten &
113460         generalize m4_translit call via AS_TR_CPP.
113462 2006-04-19  Derek Price  <derek@ximbiot.com>
113463             Eric Blake  <ebb9@byu.net>
113465         * lib/inttypes.h: Correct grammar in comment.
113467 2006-04-18  Derek Price  <derek@ximbiot.com>
113468             Paul Eggert  <eggert@cs.ucla.edu>
113470         * modules/inttypes: New file.
113471         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113473 2006-04-18  Derek Price  <derek@ximbiot.com>
113474             Paul Eggert  <eggert@cs.ucla.edu>
113476         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113477         New files.
113479 2006-04-18  Derek Price  <derek@ximbiot.com>
113480             Paul Eggert  <eggert@cs.ucla.edu>
113482         * lib/inttypes.h: New file.
113483         * lib/strtoimax.c: Assume <inttypes.h>.
113485 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113487         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113488         isn't mounted.  Problem reported by Kir Kolyshkin.
113490 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113492         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113493         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113494         Derek R. Price.
113495         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113496         implementation.
113498 2006-04-12  Eric Blake  <ebb9@byu.net>
113500         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113501         is now done automatically by the corresponding Autoconf macro.
113503 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113505         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113506         time_r.h.
113508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113510         Merge regex changes from libc, removing some of our
113511         POSIX-conformance changes that were rejected and redoing them in a
113512         less-intrusive way.
113514         * lib/regcomp.c (re_compile_internal, init_dfa):
113515         Length arg is now size_t, not Idx.  All uses changed.
113516         (peek_token): Forward decl now says internal_function.
113517         (__re_error_msgid, __re_error_msgid_idx):
113518         Now static rather than extern with attribute_hidden.
113519         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113520         For some reason libc prefers K&R style defns for external functions.
113521         (regerror) [!defined _LIBC]: Likewise.
113522         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113523         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113524         (build_range_exp, build_collating_symbol):
113525         Use K&R-style defn.
113526         (re_compile_fastmap): Use '\0' to memset, not 0.
113527         (utf8_sb_map): Make the calculations more obvious.
113528         (init_dfa, parse_bracket_exp, build_charclass_op):
113529         Call calloc and cast result, as glibc does.
113530         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113531         (build_range_exp, build_collating_symbol):
113532         Now internal functions.
113534         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113536         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113537         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113538         Don't depend on VMS; depend on __VMS instead, for POSIX
113539         namespace cleanness.
113540         (regoff_t): Define to ssize_t, not long int.
113542         Remove the REG_ macros named below.  Instead, make the old names
113543         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113544         __USE_GNU_REGEX.
113545         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113546         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113547         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113548         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113549         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113550         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113551         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113552         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113553         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113554         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113555         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113556         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113557         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113558         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113559         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113560         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113561         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113562         (REG_NREGS):
113563         Remove.  All uses replaced by the old RE_* names.
113564         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113565         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113566         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113567         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113568         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113569         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113570         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113571         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113572         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113573         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113574         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113575         Don't bother having these macros be independent of each others'
113576         values, since they no longer exist in the POSIX name space.
113578         Rename the following member names back to their old names,
113579         unless !__USE_GNU_REGEX.  All uses changed back.
113580         (buffer): Renamed from re_buffer.
113581         (allocated): Renamed from re_allocated.
113582         (used): Renamed from re_used.
113583         (syntax): Renamed from re_syntax.
113584         (fastmap): Renamed from re_fastmap.
113585         (translate): Renamed from re_translate.
113586         (can_be_null): Renamed from re_can_be_null.
113587         (regs_allocated): Renamed from re_regs_allocated.
113588         (fastmap_accurate): Renamed from re_fastmap_accurate.
113589         (no_sub): Renamed from re_no_sub.
113590         (not_bol): Renamed from re_not_bol.
113591         (not_eol): Renamed from re_not_eol.
113592         (newline_anchor): Renamed from re_newline_anchor.
113593         (num_regs): Renamed from rm_num_regs.
113594         (start): Renamed from rm_start.
113595         (end): Renamed from rm_end.
113597         (free_state): Move up a bit.
113599         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113600         #define to be empty.
113601         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113602         when that is what is intended.
113603         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113604         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113605         (MAX): New macro.
113606         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113607         All uses changed back to re_malloc, etc.  It's now the caller's
113608         responsibility to check for overflow; all callers changed.
113609         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113610         (re_x2nrealloc): Remove.
113611         (free_state): Remove decl.
113613         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113614         (re_set_registers, re_exec):
113615         Use K&R-style defn.
113617         2006-01-31  Roland McGrath  <roland@redhat.com>
113619         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113620         Reported by Mike Frysinger <vapier@gentoo.org>.
113622         2006-01-15  Andreas Jaeger  <aj@suse.de>
113624         [BZ #1950]
113625         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113626         build_wcs_upper_buffer change.
113627         (build_wcs_upper_buffer): Change return type.
113629         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113631         * lib/regex_internal.h: Include <stdint.h> if available.
113633         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113635         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113637         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113639         * lib/regcomp.c: Adjust for changed secondary hash function.
113641         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113643         * lib/regex.h: Pretty printing.
113644         Clean up namespace a bit.
113646         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113648         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113649         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113651         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113652                     Ulrich Drepper  <drepper@redhat.com>
113654         [BZ #1302]
113655         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113656         changed.
113657         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113659         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113661         [BZ #281]
113662         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113663         * lib/regcomp.c: Remove unnecessary uses of
113664         unsigned RE_TRANSLATE_TYPE.
113665         * lib/regex_internal.h: Likewise.
113666         * lib/regex_internal.c: Likewise.
113667         * lib/regexec.c: Likewise.
113668         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113670         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113672         * lib/regexec.c (find_recover_state): Remove unnecessary
113673         initialization.
113674         (transit_state_bkref): Make DFA a const pointer.
113675         (get_subexp): Likewise.
113676         (check_arrival): Likewise.
113677         (update_cur_sifted_state): Likewise.
113678         (re_search_internal): Likewise.
113679         (prune_impossible_nodes): Likewise.
113680         (acquire_init_state_context): Likewise.
113681         (proceed_next_node): Likewise.
113682         (set_regs): Likewise.
113683         (free_fail_stack_return): Likewise.
113684         (check_arrival_expand_ecl): Mark DFA parameter as const.
113685         (check_arrival_expand_ecl_sub): Likewise.
113686         (check_subexp_limits): Likewise.
113687         (sub_epsilon_src_nodes):  Likewise.
113688         (add_epsilon_src_nodes):  Likewise.
113689         (merge_state_array): Likewise.
113690         (update_regs): Likewise.
113691         (build_trtable): Likewise.
113692         (sift_states_backward): Mark MCTX parameter as const.
113693         (build_sifted_states): Likewise.
113694         (update_cur_sifted_state): Likewise.
113695         (sift_states_mkref): Likewise.
113696         (check_arrival_expand_ecl): Mark eclosure as const.
113697         (check_dst_limits_calc_pos_1): Likewise.
113698         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113699         pointer.
113701         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113703         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113704         (transit_state_sb): Likewise.
113705         (transit_state_mb): Likewise.
113706         (sift_states_iter_mb): Likewise.
113707         (check_arrival_add_next_nodes): Likewise.
113708         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113709         [_LIBC] (re_search_2_stub): Use mempcpy.
113711         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113712         mbrtowc for very simple UTF-8 case.
113714         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113715         a pointer-to-const.
113716         (re_acquire_state_context): Likewise.
113717         * lib/regex_internal.h: Adjust prototypes.
113719         * lib/regex.c: Prevent using C++ compilers.
113721         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113722         (re_acquire_state_context): Likewise.
113724 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113726         * modules/regex (Depends-on): Add ssize_t.
113728 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113730         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113731         translation table.
113733 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113735         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113737 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113738             Bruno Haible  <bruno@clisp.org>
113740         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113741         <sys/types.h> and <inttypes.h>.
113743 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113745         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113746         `__error_t_defined', so argp.h will not typedef the former.
113748 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113750         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113751         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113752         glibc names.  Even if glibc is changed to conform to POSIX, the
113753         traditional names will be available anyway, since regex depends on
113754         the extensions module.  Also, fix a longstanding typo in the
113755         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113756         reported by Emanuele Giaquinta.  Also, change sense of cached
113757         variable, so that the message makes sense.
113759 2006-03-24  Simon Josefsson  <jas@extundo.com>
113761         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113762         including some doc fixes.
113763         (base64_encode_alloc): Fix +1 bug on allocation failures.
113765 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113767         * lib/base64.c (base64_encode): Do not read past end of array with
113768         unsanitized input on systems with CHAR_BIT > 8.
113770 2006-03-24  Eric Blake  <ebb9@byu.net>
113772         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113774 2006-03-22  Karl Berry  <karl@gnu.org>
113776         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113777         * config/srclistvars.sh (COREUTILS): new var.
113779 2006-03-17  Jim Meyering  <jim@meyering.net>
113781         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113782         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113784 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113786         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113787         no longer needs it.  Instead, check that regoff_t is as least
113788         as wide as ptrdiff_t.
113790         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113791         so that our regex.h stays compatible with the installed regex.
113792         This is helpful for installers who configure --without-included-regex.
113793         Problem reported by Emanuele Giaquinta.
113795 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113797         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113798         Typedef to long int, not to off_, as POSIX will likely change
113799         in that direction.
113801 2006-03-15  Eric Blake  <ebb9@byu.net>
113803         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113805 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113807         * lib/argp-help.c (validate_uparams): Fix typo
113808         * lib/argp-parse.c (argp_default_options): Consistently begin help
113809         messages with a lowercase letter.
113811 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113813         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113814         overrun buffers and shouldn't be used (much as gets shouldn't be
113815         used).
113816         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113818 2006-03-08  Simon Josefsson  <jas@extundo.com>
113820         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113821         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113823 2006-03-08  Simon Josefsson  <jas@extundo.com>
113825         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113826         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113828 2006-03-08  Simon Josefsson  <jas@extundo.com>
113830         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113831         signal that configure disabled the device.
113833 2006-03-08  Simon Josefsson  <jas@extundo.com>
113835         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113836         languages.
113838 2006-03-07  Simon Josefsson  <jas@extundo.com>
113840         * modules/getopt (Depends-on): Add unistd.
113842         * modules/unistd: New file.
113844 2006-03-07  Simon Josefsson  <jas@extundo.com>
113846         * modules/gc-random: New file.
113848 2006-03-07  Simon Josefsson  <jas@extundo.com>
113850         * m4/unistd_h.m4: New file.
113852 2006-03-07  Simon Josefsson  <jas@extundo.com>
113854         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113855         test to be side-effect free by storing the result in the cache
113856         variable gl_cv_lib_readline, and moving the assignment of
113857         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113858         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113860 2006-03-07  Simon Josefsson  <jas@extundo.com>
113862         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113863         error on missing devices (the functions will return an error).
113865         * m4/gc.m4: Move random stuff to gc-random.m4
113867 2006-03-07  Simon Josefsson  <jas@extundo.com>
113869         * lib/unistd_.h: New file.
113871 2006-03-07  Simon Josefsson  <jas@extundo.com>
113873         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113875 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113877         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113878         Problem reported by Juan Manuel Guerrero.
113880 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113882         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113883         the unistd module.
113884         * lib/getlogin_r.c: Likewise.
113885         * lib/getlogin_r.h: Likewise.
113886         * lib/glob.c: Likewise.
113887         * lib/pagealign_alloc.c: Likewise.
113888         * lib/unistd_.h: Remove; no longer needed.
113890 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113892         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113893         Add unistd.
113894         * modules/c-stack (Depends-on): Add unistd.
113895         * modules/getlogin_r: Likewise.
113896         * modules/glob: Likewise.
113897         * modules/pagealign_alloc: Likewise.
113898         * modules/unistd (Files): Remove lib/unistd_.h.
113899         (EXTRA_DIST): Remove.
113900         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113901         need unistd_.h.
113902         (MOSTLYCLEANFILES): Remove unistd.h-t.
113904 2006-03-03  Simon Josefsson  <jas@extundo.com>
113906         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113908 2006-03-03  Simon Josefsson  <jas@extundo.com>
113910         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113911         libidn and bison.
113913 2006-03-03  Simon Josefsson  <jas@extundo.com>
113915         * build-aux/maint.mk: Add indent target.
113917 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113919         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113920         our replacement poll.h in any case, to avoid a differing
113921         declaration from a system header.  Seen on AIX.
113923 2006-03-01  Simon Josefsson  <jas@extundo.com>
113925         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113926         <kasal@ucw.cz>.
113928 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113930         * modules/gettime (Depends-on): Add extensions module.
113931         * modules/nanosleep (Depends-on): Likewise.
113932         * modules/settime (Depends-on): Likewise.
113934 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113936         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113937         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113938         pedantically.
113939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113940         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113943         not "==".  Reported by Ralf Wildenhues.
113945 2006-03-01  Karl Berry  <karl@gnu.org>
113947         * doc/Copyright/request-*: new files, synced from gnuorg.
113949 2006-03-01  Karl Berry  <karl@gnu.org>
113951         * config/srclist.txt (Copyright/*): new entries.
113953 2006-02-28  Simon Josefsson  <jas@extundo.com>
113955         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113957 2006-02-27  Simon Josefsson  <jas@extundo.com>
113959         * lib/base64.h: Indent #define's.  From Jim Meyering
113960         <jim@meyering.net>.
113962 2006-02-27  Jim Meyering  <jim@meyering.net>
113964         Revert the change of 2006-02-24, so these files can continue
113965         to be sync'd from gettext.
113966         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113967         of `config.h'.
113969 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113971         * modules/intprops: New file.
113972         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113973         Add intprops.
113974         * modules/getloadavg (Files): Remove lib/intprops.h.
113975         (Depends-on): Add intprops.
113976         * modules/human: Likewise.
113977         * modules/inttostr: Likewise.
113978         * modules/openat: Likewise.
113979         * modules/sig2str: Likewise.
113980         * modules/userspec: Likewise.
113981         * modules/utimecmp: Likewise.
113982         * modules/xnanosleep: Likewise.
113983         * modules/xstrtol: Likewise.
113985 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113987         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113988         * modules/lock-tests (TESTS): Use $(EXEEXT).
113989         * modules/tls-tests: Likewise.
113990         * modules/argp-tests: Likewise.
113991         (check_PROGRAMS): New var, replacing...
113992         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113994 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113996         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113997         `config.h'.
113999 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114001         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114003 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114005         Sync from coreutils.
114006         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114007         gl_CHDIR_SAFER.
114009 2006-02-22  Jim Meyering  <jim@meyering.net>
114011         Sync from coreutils.
114012         * m4/chdir-safer.m4: New file.
114014 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114016         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114017         AT_FDCWD exceeds INT_MAX.
114018         * lib/openat.h (AT_FDCWD): Likewise.
114020 2006-02-17  Eric Blake  <address@hidden>
114022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114024 2006-02-16  Simon Josefsson  <jas@extundo.com>
114026         * modules/getaddrinfo (Depends-on): Add sys_socket.
114028 2006-02-15  Simon Josefsson  <jas@extundo.com>
114030         * build-aux/maint.mk: Add dsyntax-check rule.
114032 2006-02-15  Eric Blake  <ebb9@byu.net>
114034         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114035         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114036         'present but cannot compile' warnings on cygwin.
114037         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114038         use ws2tcpip.h if sys/socket.h works.
114039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114040         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114042 2006-02-14  Simon Josefsson  <jas@extundo.com>
114044         * modules/maintainer-makefile (Files): Rename.
114046         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114047         and (the local) Makefile.cfg to maint-cfg.mk.
114049         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114050         to the latter.
114052         * modules/maintainer-makefile: New module.
114054         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114055         severaly stripped to make it possible to build it up from scratch
114056         with reliable tests.
114058         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114059         fixes to permit overriding the default actions when configure and
114060         makefile are not available.
114062 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114064         Sync from coreutils.
114065         * modules/lstat (Depends-on): Don't depend on xalloc.
114066         (License): Change from GPL to LGPL, since this is now simply a
114067         replacement for a libc function.
114069 2006-02-14  Jim Meyering  <jim@meyering.net>
114071         Sync from coreutils.
114073         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114074         failure on deficient systems, and simplify gnulib lgpl dependencies.
114075         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114076         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114078         * lib/xalloc-die.c: Remove unused definition of N_.
114080 2006-02-14  Jim Meyering  <jim@meyering.net>
114082         Sync from coreutils.
114083         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114084         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114085         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114086         double-quote uses of that variable, to accommodate the rare case in
114087         which getmntent is available in none of the libraries checked.  This
114088         happens at least on FreeBSD 5.0.
114090 2006-02-13  Simon Josefsson  <jas@extundo.com>
114092         * gnulib-tool (Usage): Fix --import, from
114093         karl@freefriends.org (Karl Berry).
114095 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114097         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114099 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114101         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114102         "autoupdate" on 2005-12-12.
114104 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114106         * modules/closeout (Depends-on): Remove atexit.
114108 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114110         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114111         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114113 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114115         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114116         __EXTENSIONS__ if this causes compilation to fail.  Problem
114117         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114118         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114120 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114122         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114123         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114124         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114125         All uses changed.
114127 2006-01-26  Simon Josefsson  <jas@extundo.com>
114129         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114130         prototype is visible on mingw32.
114132         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114133         for mingw32.
114135         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114136         mingw32).
114138 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114140         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114141         attempt to open for write; this always fails, at least on POSIX
114142         hosts.  This reinstates the 2006-01-09 change, which was
114143         inadvertently removed.
114145 2006-01-26  Bruno Haible  <bruno@clisp.org>
114147         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114148         Reported by Paul Eggert.
114150 2006-01-26  Bruno Haible  <bruno@clisp.org>
114151             Paul Eggert  <eggert@cs.ucla.edu>
114153         * lib/stdbool_.h (_Bool)
114154         [(! (defined __cplusplus || defined __BEOS__)
114155           && !defined __GNUC__
114156           && !(defined __HP_cc || defined __xlc__
114157                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114158                || defined __sgi))]:
114159         #define to signed char in these cases too; this simplifies
114160         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114161         etc., separately) and makes it more conservative.
114163 2006-01-25  Simon Josefsson  <jas@extundo.com>
114165         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114166         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114167         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114169 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114171         * lib/argp-namefrob.h: Bugfix. Remove stray #
114173 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114176         so that we test the test.
114177         Check for yet another HP-UX cc bug involving *bool |= bool.
114179 2006-01-25  Karl Berry  <karl@gnu.org>
114181         * config/srclist.txt (vasnprintf.c): sync lost.
114183 2006-01-25  Jim Meyering  <jim@meyering.net>
114185         Sync from the stable (b5) branch of coreutils:
114187         * lib/fts.c (fts_children): Don't let close() clobber errno from
114188         failed fchdir().
114190         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114191         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114192         a dangling symlink.  That can also happen at least for ELOOP.
114193         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114194         FYI, this bug predates the inclusion of fts.c in coreutils.
114196         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114197         in their own block, so pre-c99 compilers don't object.
114199         Avoid the double-free (first in fts_read, second in fts_close) that
114200         would occur when an `active' directory is made inaccessible (e.g.,
114201         via chmod a-x) during a traversal.
114202         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114203         before returning.  Reproduce this failure by
114204         mkdir -p a/b; cd a; chmod a-x . b
114205         Reported by Stavros Passas.
114207 2006-01-25  Jim Meyering  <jim@meyering.net>
114209         * lib/fileblocks.c: Remove more useless parentheses.
114210         * lib/readutmp.h: Likewise.
114212 2006-01-25  Bruno Haible  <bruno@clisp.org>
114214         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114215         warnings.
114216         Reported by Paul Eggert.
114218 2006-01-25  Bruno Haible  <bruno@clisp.org>
114220         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114221         rid of a trap command. For Solaris sh.
114222         Reported by Mark D. Baushke <mdb@gnu.org>.
114224 2006-01-24  Simon Josefsson  <jas@extundo.com>
114226         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114227         Bruno.
114229 2006-01-24  Karl Berry  <karl@gnu.org>
114231         * config/srclist.txt (argp-namefrob.h): sync lost.
114233 2006-01-24  Jim Meyering  <jim@meyering.net>
114235         * modules/openat (Files): Add lib/intprops.h.
114236         From Mark D. Baushke.
114238 2006-01-24  Jim Meyering  <jim@meyering.net>
114240         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114241         Reported by Mark D. Baushke.
114243 2006-01-24  Jim Meyering  <jim@meyering.net>
114245         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114247 2006-01-24  Bruno Haible  <bruno@clisp.org>
114249         * modules/strnlen (Maintainer): Change from glibc to all.
114251 2006-01-24  Bruno Haible  <bruno@clisp.org>
114253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114254         Patch by Paul Eggert.
114256 2006-01-24  Bruno Haible  <bruno@clisp.org>
114258         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114259         already has it.
114260         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114261         2005-11-26.
114263         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114264         'signed char' to avoid problems with the built-in _Bool type.
114265         Reported by Paul Eggert on 2005-11-26.
114267 2006-01-24  Bruno Haible  <bruno@clisp.org>
114269         * gnulib-tool (func_import): Avoid constructing complicated sed
114270         expressions inside backquote.
114271         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114273 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114275         These changes imported from libc.
114276         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114277         test and two separate function calls.
114278         * lib/strndup.c (__strndup): Add libc_hidden_def.
114280 2006-01-23  Simon Josefsson  <jas@extundo.com>
114282         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114283         Remove the test_*_SOURCES variable: automake infers it by default.
114284         * modules/tls-tests: Likewise.
114286 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114288         Work around porting bugs reported by Dieter in
114289         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114290         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114291         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114292         Include "getopt.h" first, to check interface.
114293         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114294         !HAVE_DECL_GETENV.
114295         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114296         (__strndup): Revert to K&R-style function dfns, the glibc style.
114297         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114298         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114299         Include strnlen.h first, to get prototype properly.
114300         (strnlen): Renamed from __strnlen.
114301         Remove weak alias.
114303 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114305         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114307 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114309         * config/srclist.txt: Adjust to reflect glibc reorganization.
114310         This affects only comments.
114312 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114314          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114315          Reported by Bruce Korb <bkorb@gnu.org>.
114317 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114319         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114320         to pacify gcc -Wswitch-default.
114322 2006-01-22  Bruno Haible  <bruno@clisp.org>
114324         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114325         temporary buffer for sprintf, take into account the precision also
114326         for 'd', 'i', 'u', 'o', 'x', 'X'.
114328 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114330         * modules/argp-tests: New module
114331         * tests/test-argp.c: New file
114332         * tests/test-argp-2.sh: New file
114334 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114336         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114337         (__argp_base_name): Removed
114338         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114339         typo.
114340         (__argp_base_name): Provide macro definition or extern declaration
114341         depending on the configuration
114343 2006-01-20  Simon Josefsson  <jas@extundo.com>
114345         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114347 2006-01-20  Simon Josefsson  <jas@extundo.com>
114349         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114351 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114353         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114354         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114355         Suggested by Bruno Haible.
114357 2006-01-20  Karl Berry  <karl@gnu.org>
114359         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114360         until changes propagate, I guess.
114362 2006-01-19  Simon Josefsson  <jas@extundo.com>
114364         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114366 2006-01-19  Simon Josefsson  <jas@extundo.com>
114368         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114370 2006-01-19  Simon Josefsson  <jas@extundo.com>
114372         * gnulib-tool: Set check_PROGRAMS.
114374         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114375         modules/des-tests, modules/gc-arcfour-tests,
114376         modules/gc-arctwo-tests, modules/gc-des-tests,
114377         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114378         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114379         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114380         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114381         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114382         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114383         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114384         test_*_SOURCES.
114386 2006-01-18  Simon Josefsson  <jas@extundo.com>
114388         * modules/socklen (Depends-on): Depend on sys_socket.
114390 2006-01-18  Simon Josefsson  <jas@extundo.com>
114392         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114393         modules/des-tests, modules/gc-arcfour-tests,
114394         modules/gc-arctwo-tests, modules/gc-des-tests,
114395         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114396         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114397         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114398         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114399         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114400         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114401         $(EXEEXT) to automake TESTS variable, for mingw32.
114403 2006-01-17  Simon Josefsson  <jas@extundo.com>
114405         * modules/socklen (Include): Need sys/socket.h.
114407 2006-01-17  Bruno Haible  <bruno@clisp.org>
114409         * modules/ssize_t (Include): Add <sys/types.h>.
114411 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
114413         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
114414         it's not portable and it doesn't work with cross-compiles.
114415         Problem reported by Bruno Haible.  Fix missing-$ typo in
114416         'test "gl_cv_ignore_unused_libraries" ...' that prevented
114417         -zignore from being used with Sun's C compiler.
114419 2006-01-12  Simon Josefsson  <jas@extundo.com>
114421         * lib/base64.c: Fix warning, reported by Bruno Haible
114422         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
114424 2006-01-12  Bruno Haible  <bruno@clisp.org>
114426         * modules/ldd: New file.
114427         * build-aux/ldd.sh.in: New file.
114428         * MODULES.html.sh (Support for building libraries and executables): Add
114429         ldd.
114431 2006-01-12  Bruno Haible  <bruno@clisp.org>
114433         * m4/ldd.m4: New file.
114435 2006-01-12  Bruno Haible  <bruno@clisp.org>
114437         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114438         endless loop while replacing $auxdir with build-aux.
114440 2006-01-11  Simon Josefsson  <jas@extundo.com>
114442         * lib/stdint_.h (SIZE_MAX): Add missing (.
114444 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114446         Sync from coreutils.
114447         * lib/md5.c: Fix commentary typos.
114448         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114449         * lib/md5.h (__attribute__): Remove; unused.
114450         * lib/sha1.c: Fix commentary to match md5 better.
114451         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114452         so that we don't need to worry about alignment.  All uses changed.
114453         This merges the 2005-10-28 md5 change into sha1.
114455 2006-01-11  Jim Meyering  <jim@meyering.net>
114457         Sync from coreutils.
114458         * lib/md5.c (OP): Fix spacing.
114460 2006-01-11  Bruno Haible  <bruno@clisp.org>
114462         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114463         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114464         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114466 2006-01-11  Bruno Haible  <bruno@clisp.org>
114468         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114469         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114470         the "early" section as well.
114472 2006-01-11  Bruno Haible  <bruno@clisp.org>
114474         Avoid "ar: no archive members specified" error on MacOS X.
114475         * gnulib-tool (func_modules_add_dummy): New function.
114476         (func_import, func_create_testdir): Invoke it.
114478 2006-01-11  Bruno Haible  <bruno@clisp.org>
114480         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114481         with $auxdir in AC_CONFIG_FILES statements.
114483 2006-01-11  Bruno Haible  <bruno@clisp.org>
114485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114486         Initialize also noinst_HEADERS to empty.
114488 2006-01-11  Bruno Haible  <bruno@clisp.org>
114490         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114491         variables.
114492         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114493         autoreconf.
114495 2006-01-11  Bruno Haible  <bruno@clisp.org>
114497         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114498         overridable by the user.
114499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114501 2006-01-10  Simon Josefsson  <jas@extundo.com>
114503         * modules/sys_socket: New file.
114505 2006-01-10  Simon Josefsson  <jas@extundo.com>
114507         * m4/sys_socket_h.m4: New file.
114509 2006-01-10  Simon Josefsson  <jas@extundo.com>
114511         * lib/socket_.h: New file.
114513 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114515         * modules/readutmp (Maintainer): Add myself.
114517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114519         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114520         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114521         People who are still concerned with buggy memcmp implementations
114522         can invoke gl_FUNC_MEMCMP themselves.
114524 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114526         * lib/regex_internal.h (BITSET_WORD_BITS):
114527         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114528         preprocessor mishandles large unsigned values as if they were signed.
114529         Problem reported by Claudio Fontana in
114530         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114532 2006-01-10  Jim Meyering  <jim@meyering.net>
114534         Avoid the double-free (first in fts_read, second in fts_close) that
114535         would occur when an `active' directory is made inaccessible (e.g.,
114536         via chmod a-x) during a traversal.
114537         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114538         before returning.  Reproduce this failure by
114539         mkdir -p a/b; cd a; chmod a-x . b
114540         Reported by Stavros Passas.
114542         Sync from coreutils.
114543         * lib/sha1.c: Tweak grammar in a comment.
114545 2006-01-10  Jim Meyering  <jim@meyering.net>
114547         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114548         Patch by Joerg Sonnenberger.
114550 2006-01-10  Bruno Haible  <bruno@clisp.org>
114552         * modules/readutmp: Depend on module free.
114553         * modules/strtok_r: Depend on module restrict.
114555 2006-01-10  Bruno Haible  <bruno@clisp.org>
114557         * modules/gettext (configure.ac): Add an invocation of
114558         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114560 2006-01-10  Bruno Haible  <bruno@clisp.org>
114562         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114563         Reported by Werner Lemberg <wl@gnu.org>.
114565 2006-01-10  Bruno Haible  <bruno@clisp.org>
114567         * lib/localcharset.c: Update from GNU gettext.
114569 2006-01-10  Bruno Haible  <bruno@clisp.org>
114571         * lib/argp.h (__const): Remove macro. Use const instead.
114572         * lib/argp-fmtstream.h (__const): Likewise.
114573         * lib/glob_.h (__const): Remove macro.
114574         * lib/glob-libc.h: Use const instead of __const.
114576 2006-01-10  Bruno Haible  <bruno@clisp.org>
114578         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114579         variable.
114580         Needed to avoid an automake error regarding the 'gettext' module.
114582 2006-01-09  Simon Josefsson  <jas@extundo.com>
114584         * modules/inet_ntop (Depends-on): Add restrict.
114586 2006-01-09  Simon Josefsson  <jas@extundo.com>
114588         * modules/gc-rijndael-tests (License): Put under LGPL.
114590         * modules/gc-des-tests (License): Likewise.
114592         * modules/gc-arcfour-tests (License): Likewise.
114594         * modules/gc-arctwo-tests (License): Likewise.
114596         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114598         * modules/gc-hmac-sha1-tests (Files): Likewise.
114600         * modules/gc-hmac-md5-tests (License): Likewise.
114602         * modules/gc-sha1-tests (License): Likewise.
114604         * modules/gc-md5-tests (License): Likewise.
114606         * modules/gc-md4-tests (License): Likewise.
114608         * modules/gc-md2-tests (License): Likewise.
114610         * modules/gc-tests (License): Likewise.
114612         * modules/des-tests (License): Likewise.
114614         * modules/md4-tests (License): Likewise.
114616         * modules/md2-tests (License): Likewise.
114618 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114620         Sync from coreutils:
114622         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114623         * modules/lib-ignore: New file.
114624         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114625         chdir-safer.m4, lchmod.m4.
114626         * modules/openat: Add mkdirat.c, openat-priv.h.
114628 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114630         Sync from coreutils.
114631         * m4/lib-ignore.m4: New file.
114632         * m4/lchmod.m4: New file.
114634 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114636         Sync from coreutils.
114637         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114638         for write access: POSIX says that must fail.
114639         * lib/fts.c (diropen): Likewise.
114640         * lib/save-cwd.c (save_cwd): Likewise.
114641         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114642         well, for minor improvements on hosts that lack O_DIRECTORY.
114643         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114644         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114645         Fall back on chown if open failed with EACCES.
114647         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114648         Report an error at compile-time if only a 1-second nominal clock
114649         resolution is found.
114651         * lib/lchmod.h: New file.
114652         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114653         (make_dir_parents): Use lchown rather than chown, and
114654         lchmod rather than chmod.
114656         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114657         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114658         "proc" reported by n0dalus.
114660         * lib/mountlist.c: Include <limits.h>.
114661         (dev_from_mount_options)
114662         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114663         New function.  It no longer assumes "dev=" has the System V meaning
114664         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114665         (read_file_system_list)
114666         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114667         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114668         dev= in that case.
114670         * lib/posixtm.h (PDS_PRE_2000): New macro.
114671         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114672         allow_century.  All usages changed.  Reject dates outside the range
114673         1969-1999 if PDS_PRE_2000 is used.
114675 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114677         Sync from coreutils.
114678         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114679         (Time of day items): Mention the possibility of leap seconds.
114680         Problem reported by Dr. David Alan Gilbert.
114682 2006-01-09  Jim Meyering  <jim@meyering.net>
114684         Sync from coreutils.
114686         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114688         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114690         * lib/modechange.c (mode_compile): Reject an invalid mode string
114691         that starts with an octal digit.  From Andreas Gruenbacher.
114693         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114694         and dup to open_safer and dup_safer, respectively.
114695         (openat_permissive): Fix typo in comment.
114697         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114698         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114699         (_): Remove; no longer needed.
114700         (openat): Renamed from rpl_openat; no need for rpl_openat
114701         since openat.h renames openat for us.
114702         Replace most of the body with a call to openat_permissive,
114703         to avoid duplicate code.
114704         Port to (probably hypothetical) environments were mode_t is
114705         wider than int.
114706         (openat_permissive): Require mode arg, so that we can check
114707         types better.  Put it just after flags.  Change cwd failure
114708         indicator from pointer-to-bool to pointer-to-errno-value.
114709         All callers changed.
114710         Invoke openat_save_fail and/or openat_restore_fail if
114711         cwd_errno is null, so that openat can call us.
114712         (openat_permissive, fdopendir, fstatat, unlinkat):
114713         Simplify errno handling to avoid some duplicate code,
114714         as it's OK to set errno on success.
114715         * lib/openat.h: Revamp code so that function macros depend on
114716         __OPENAT_PREFIX only, not also on AT_FDCWD.
114717         (openat_ro): Remove.  Caller changed to use openat_permissive.
114718         (openat_permissive): Now a macro, if not a function.
114719         (openat_restore_fail, openat_save_fail): Now always functions,
114720         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114722         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114723         and openat.c.
114724         * lib/mkdirat.c: Include openat-priv.h.
114725         Remove definitions of macros defined therein.
114726         * lib/openat.c: Likewise.
114728         * lib/mkdirat.c (mkdirat): New file and function.
114729         * lib/openat.h (mkdirat): Declare.
114731         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114733         * lib/openat.h (openat_permissive): Declare.
114734         (openat_ro): Define.
114736         * lib/openat.c (EXPECTED_ERRNO): New macro.
114737         (openat_permissive): New function -- used in remove.c rewrite.
114738         (all functions): Set errno just before returning, only if there
114739         was an actual failure.
114740         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114742         Emulate openat-family functions using Linux's procfs, if possible.
114743         Idea and some code based on Ulrich Drepper's glibc changes.
114745         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114746         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114747         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114748         before falling back on save_cwd and restore_cwd.
114749         (fdopendir, fstatat, unlinkat): Likewise.
114751         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114752         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114754         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114755         as second argument to va_arg.  Otherwise, some versions of gcc
114756         warn that `if this code is reached, the program will abort'.
114758 2006-01-09  Jim Meyering  <jim@meyering.net>
114760         Sync from coreutils.
114761         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114762         Require openat-priv.h.
114764 2006-01-09  Bruno Haible  <bruno@clisp.org>
114766         * modules/strnlen (Include): Use strnlen.h.
114768 2006-01-09  Bruno Haible  <bruno@clisp.org>
114770         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114772 2006-01-09  Bruno Haible  <bruno@clisp.org>
114774         * lib/sysexit_.h (EX_OK): New macro.
114775         Suggested by Martin Lambers <marlam@marlam.de>.
114777 2006-01-09  Bruno Haible  <bruno@clisp.org>
114779         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114780         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114782 2006-01-09  Bruno Haible  <bruno@clisp.org>
114784         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114785         numbers.
114787 2006-01-09  Bruno Haible  <bruno@clisp.org>
114789         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114790         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114791         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114792         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114794 2006-01-09  Bruno Haible  <bruno@clisp.org>
114796         * build-aux/javacomp.sh.in: New file, moved from lib/.
114797         * modules/javacomp-script (Files): Update.
114798         (configure.ac): Add AC_CONFIG_FILES invocation.
114799         (EXTRA_DIST): Remove variable.
114801         * build-aux/javaexec.sh.in: New file, moved from lib/.
114802         * modules/javaexec (Files): Update.
114803         (configure.ac): Add AC_CONFIG_FILES invocation.
114804         (EXTRA_DIST): Remove javaexec.sh.in.
114806         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114807         * modules/csharpcomp-script (Files): Update.
114808         (configure.ac): Add AC_CONFIG_FILES invocation.
114809         (EXTRA_DIST): Remove variable.
114811         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114812         * modules/csharpexec (Files): Update.
114813         (configure.ac): Add AC_CONFIG_FILES invocation.
114814         (EXTRA_DIST): Remove csharpexec.sh.in.
114816 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114818         Sync from coreutils.
114820         Add POSIX ACL support
114821         * lib/acl.h (copy_acl, set_acl): Add declarations.
114822         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114823         systems other than Linux.
114824         (chmod_or_fchmod): New function: use fchmod when possible,
114825         and chmod otherwise.
114826         (file_has_acl): Add a POSIX ACL implementation, with a
114827         Linux-specific subcase.
114828         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114829         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114830         acls are unsupported.
114831         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114832         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114833         are unsupported.
114835 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114837         Sync from coreutils.
114838         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114840 2006-01-07  Bruno Haible  <bruno@clisp.org>
114842         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114843         gl_EARLY.
114845 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114847         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114848         Problem reported for Mingw by Mark Junker.
114850 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114852         * README: Gnulib normally doesn't generate a tarball.
114854 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114856         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114857         long int, not int, for nanosecond counts, so that people who are
114858         used to POSIX struct timespec won't be surprised.  Reported by Jim
114859         Meyering.
114861 2005-12-28  Bruno Haible  <bruno@clisp.org>
114863         * build-aux/config.rpath: Update from GNU gettext.
114865 2005-12-16  Jim Meyering  <jim@meyering.net>
114867         * modules/fprintftime: New module.
114868         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114870 2005-12-16  Jim Meyering  <jim@meyering.net>
114872         * m4/fprintftime.m4: New file.
114874 2005-12-16  Jim Meyering  <jim@meyering.net>
114876         * lib/fprintftime.c, lib/fprintftime.h: New files.
114878 2005-12-15  Simon Josefsson  <jas@extundo.com>
114880         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114881         new m4/socklen.m4.
114883 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114885         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114886         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114888 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114890         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114891         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114892         struct uparams is valid. Fall back to the default values if it is
114893         not.
114895 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114897         * modules/argp (Files): Add argp-pin.c
114898         (Depends-on): dirname
114899         (lib_SOURCES): Add argp-pin.c
114901 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114903         * m4/argp.m4:  Check if program_invocation_name and
114904         program_invocation_short_name are declared and define appropriate
114905         macros if they are not.
114907 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114909         * lib/argp-help.c (__argp_base_name): New function
114910         (__argp_short_program_name): Rewrite using __argp_base_name
114911         * lib/argp-namefrob.h: Define program_invocation_name and
114912         program_invocation_short_name if requested
114913         (__argp_base_name): Add prototype
114914         * lib/argp-parse.c (argp_def): Use gettext wrappers
114915         (argp_default_parser): Use __argp_base_name
114916         * lib/argp-pin.c: New file. Defines program_invocation_name and
114917         program_invocation_short_name on systems that lack them.
114919 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114921         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114922         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114923         porting problem reported by Georg Schwarz in
114924         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114926 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114928         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114929         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114930         porting problem reported by Georg Schwarz in
114931         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114933 2005-12-05  Bruno Haible  <bruno@clisp.org>
114935         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114936         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114937         Reported by Mark Junker <mjscod@gmx.de>.
114939 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114941         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114942         Use implementation from Albert Chin, with some
114943         comments/corrections by Stepan Kasal and myself.
114945 2005-12-02  Bruno Haible  <bruno@clisp.org>
114947         * gnulib-tool (func_import): Accept GPLed build tool modules when
114948         --lgpl is given.
114949         * modules/csharpcomp-script: New file.
114950         * modules/csharpcomp: Depend on it.
114951         * modules/javacomp-script: New file.
114952         * modules/javacomp: Depend on it.
114953         Suggested by Simon Josefsson.
114955 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114957         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114958         statement, to work around an HP-UX 10.20 compiler bug reported by
114959         Peter O'Gorman.
114961 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114963         * modules/savedir (Depends-on): Add openat.
114965 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114967         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114968         (uintmax_t) [defined uintmax_t]: Do not declare.
114969         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114970         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114971         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114972         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114973         sake of portability to weird hosts that C allows (though we don't
114974         know of any practical examples).
114976         * lib/savedir.h (fdsavedir): New decl.
114977         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114978         contains most of the former guts of savedir.
114979         (savedir): Use savedirstream.
114980         Include "openat.h".
114982 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114984         * modules/obstack (Files): Add m4/ulonglong.m4.
114985         Problem reported by Davide Angelocola.
114987 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114989         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114990         coreutils no longer futzes with rounding modes.
114992 2005-11-14  Jim Meyering  <jim@meyering.net>
114994         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114995         replacement of mkstemp.
114997 2005-11-10  Simon Josefsson  <jas@extundo.com>
114999         * lib/readline.c: Remove EOL.
115001 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115003         * modules/gethrxtime (Depends-on): Add gettime.
115005 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115007         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115008         or gettimeofday; no longer needed.
115010 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115012         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115013         time business.
115014         (gethrxtime) [! (HAVE_NANOUPTIME
115015         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115016         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115017         our own approximation.
115019 2005-11-08  Eric Blake  <ebb9@byu.net>
115021         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115023 2005-11-08  Eric Blake  <ebb9@byu.net>
115025         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115027 2005-11-04  Bruno Haible  <bruno@clisp.org>
115029         * gnulib-tool: Implement --update mode.
115031 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115033         Fix porting problem reported by Theodoros V. Kalamatianos.
115034         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115035         Don't assume that futimes failing means we must fail.
115037 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115039         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115040         variables to suggest the intended function of the PATH_MAX check.
115042 2005-10-30  Kean Johnston  <jkj@sco.com>
115044         Trivial changes to support SCO systems.
115045         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115046         as PATH_MAX.
115047         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115048         where __ptr is null when no I/O is pending.
115050 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115052         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115053         leave errno alone.  Problem reported by Dmitry V. Levin.
115055 2005-10-28  Simon Josefsson  <jas@extundo.com>
115057         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115058         Test more.
115060         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115062         * modules/md2, modules/md2-tests: New files.
115064 2005-10-28  Simon Josefsson  <jas@extundo.com>
115066         * m4/inet_ntop.m4: More tests.
115068         * m4/gc-md2.m4, md2.m4: New file.
115070 2005-10-28  Simon Josefsson  <jas@extundo.com>
115072         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115073         "restrict" keywords, as per POSIX.  Protect the function
115074         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115075         Don't use K&R prototypes.  Check the sprintf return values.
115076         Re-define EAFNOSUPPORT if not present.  Indent.
115078         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115079         suggested by Bruno Haible <bruno@clisp.org>.
115081         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115083         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115085         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115086         libgcrypt).
115088         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115090         * lib/md2.h, lib/md2.c: New files.
115092 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115094         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115095         errno alone.  Problem reported by Frederic Jolliton.
115097 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115099         * modules/verify (License): Change from GPL to LGPL.  This is a
115100         tiny module and there are apparently near-equivalents that are
115101         under the BSD license.
115103 2005-10-24  Simon Josefsson  <jas@extundo.com>
115105         * modules/sha1: Relicense to LGPL.
115107 2005-10-24  Simon Josefsson  <jas@extundo.com>
115109         * lib/md4.h: Shrink buffer size, now that we changed the type.
115111 2005-10-23  Simon Josefsson  <jas@extundo.com>
115113         * gnulib-tool (func_import): Fix --tests-base.
115115 2005-10-22  Simon Josefsson  <jas@extundo.com>
115117         * modules/arcfour (Depends-on): Need stdint.
115119 2005-10-22  Simon Josefsson  <jas@extundo.com>
115121         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115122         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115124 2005-10-22  Simon Josefsson  <jas@extundo.com>
115126         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115127         suggested by Bruno Haible <bruno@clisp.org>.
115129 2005-10-22  Simon Josefsson  <jas@extundo.com>
115131         * lib/crc.h: Include stddef.h, for size_t.
115133 2005-10-22  Simon Josefsson  <jas@extundo.com>
115135         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115136         arcfour_context struct (simplify test vector testing in GNU
115137         Shishi).
115139 2005-10-21  Simon Josefsson  <jas@extundo.com>
115141         * modules/des, modules/des-tests: New files.
115143         * modules/gc-des, modules/gc-des-tests: New files.
115145         * tests/test-des.c, tests/test-gc-des.c: New file.
115147 2005-10-21  Simon Josefsson  <jas@extundo.com>
115149         * modules/arctwo, modules/arctwo-tests: New files.
115151         * tests/test-arctwo.c: New file.
115153         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115155         * tests/test-gc-arctwo.c: New file.
115157 2005-10-21  Simon Josefsson  <jas@extundo.com>
115159         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115160         Bruno Haible <bruno@clisp.org>.
115162         * m4/gc-des.m4: New file.
115164 2005-10-21  Simon Josefsson  <jas@extundo.com>
115166         * m4/arctwo.m4: New file.
115168         * m4/gc-arctwo.m4: New file.
115170 2005-10-21  Simon Josefsson  <jas@extundo.com>
115172         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115173         block.
115175 2005-10-21  Simon Josefsson  <jas@extundo.com>
115177         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115178         <bruno@clisp.org>.
115180         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115182         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115183         Bruno Haible <bruno@clisp.org>.
115185         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115186         <bruno@clisp.org>.
115188 2005-10-21  Simon Josefsson  <jas@extundo.com>
115190         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115192 2005-10-21  Simon Josefsson  <jas@extundo.com>
115194         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115196 2005-10-21  Simon Josefsson  <jas@extundo.com>
115198         * lib/des.h, lib/des.c: New files.
115200         * lib/gc-gnulib.c: Support DES.c
115202 2005-10-21  Simon Josefsson  <jas@extundo.com>
115204         * lib/arctwo.h, lib/arctwo.c: New files.
115206         * lib/gc-gnulib.c: Support ARCTWO.
115208 2005-10-21  Simon Josefsson  <jas@extundo.com>
115210         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115211         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115213 2005-10-21  Simon Josefsson  <jas@extundo.com>
115215         * gnulib-tool (func_import, func_create_testdir): Define automake
115216         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115217         Makefile.am snippet),
115218         suggested by Bruno Haible <bruno@clisp.org>.
115220         * modules/gc (Makefile.am): Use it.
115222 2005-10-21  Bruno Haible  <bruno@clisp.org>
115224         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115225         patch.
115227 2005-10-19  Simon Josefsson  <jas@extundo.com>
115229         * tests/test-gc-rijndael.c: New file.
115231         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115233 2005-10-19  Simon Josefsson  <jas@extundo.com>
115235         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115236         interface too.
115238 2005-10-19  Simon Josefsson  <jas@extundo.com>
115240         * tests/test-gc-arcfour.c: New file.
115242         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115244 2005-10-19  Simon Josefsson  <jas@extundo.com>
115246         * modules/gc-md4, modules/gc-md4-tests: New file.
115248         * tests/test-gc-md4.c: New file.
115250 2005-10-19  Simon Josefsson  <jas@extundo.com>
115252         * m4/gc-md4.m4: New file.
115254 2005-10-19  Simon Josefsson  <jas@extundo.com>
115256         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115257         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115258         <kasal@ucw.cz>.
115260 2005-10-19  Simon Josefsson  <jas@extundo.com>
115262         * m4/gc-arcfour.m4: New file.
115264         * m4/gc-rijndael.m4: New file.
115266 2005-10-19  Simon Josefsson  <jas@extundo.com>
115268         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115270 2005-10-19  Simon Josefsson  <jas@extundo.com>
115272         * lib/gc-gnulib.c: Support ARCFOUR.
115274 2005-10-19  Simon Josefsson  <jas@extundo.com>
115276         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115277         support.
115279         * lib/gc.h: Add ECB enum type.
115281         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115283 2005-10-18  Simon Josefsson  <jas@extundo.com>
115285         * tests/test-md5.c: New file.
115287         * modules/md5-tests: New file.
115289 2005-10-18  Simon Josefsson  <jas@extundo.com>
115291         * tests/test-md4.c: New file.
115293         * modules/md4, modules/md4-tests: New files.
115295 2005-10-18  Simon Josefsson  <jas@extundo.com>
115297         * m4/md4.m4: New file.
115299 2005-10-18  Simon Josefsson  <jas@extundo.com>
115301         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115303 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115305         * gnulib-tool (func_create_testdir): Omit the second check whether
115306         BUILT_SOURCES in nonempty.
115308 2005-10-17  Simon Josefsson  <jas@extundo.com>
115310         * tests/test-rijndael.c: New file.
115312 2005-10-17  Simon Josefsson  <jas@extundo.com>
115314         * modules/sha1: Depend on stdint instead of md5.
115316         * modules/md5: Depend on stdint, remove uint32_t.
115318 2005-10-17  Simon Josefsson  <jas@extundo.com>
115320         * modules/gc-sha1-tests: New file.
115322         * tests/test-gc-sha1.c: New file.
115324 2005-10-17  Simon Josefsson  <jas@extundo.com>
115326         * m4/md5.m4: Remove call to uint32_t.m4.
115328 2005-10-17  Simon Josefsson  <jas@extundo.com>
115330         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115332         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115333         md5.h.
115335         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115337         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115339 2005-10-17  Simon Josefsson  <jas@extundo.com>
115341         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115343 2005-10-17  Simon Josefsson  <jas@extundo.com>
115345         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115347 2005-10-17  Simon Josefsson  <jas@extundo.com>
115349         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115351         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115353 2005-10-17  Bruno Haible  <bruno@clisp.org>
115355         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115356         that it can also be used in a test.
115358 2005-10-16  Bruno Haible  <bruno@clisp.org>
115360         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115361         TESTS_ENVIRONMENT, so that individual tests can augment it.
115363         * gnulib-tool (func_create_testdir): Use an intermediate target for
115364         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115365         macros, like $(ALLOCA_H), which cannot be passed through the command
115366         line.
115368 2005-10-15  Simon Josefsson  <jas@extundo.com>
115370         * modules/rijndael-tests: New file.
115372         * modules/rijndael: New file.
115374 2005-10-15  Simon Josefsson  <jas@extundo.com>
115376         * m4/rijndael.m4: New file.
115378 2005-10-15  Simon Josefsson  <jas@extundo.com>
115380         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115382         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115384 2005-10-14  Simon Josefsson  <jas@extundo.com>
115386         * tests/test-arcfour.c: New file.
115388         * modules/arcfour, modules/arcfour-tests: New files.
115390 2005-10-14  Simon Josefsson  <jas@extundo.com>
115392         * m4/arcfour.m4: New file.
115394 2005-10-14  Simon Josefsson  <jas@extundo.com>
115396         * lib/arcfour.h, lib/arcfour.c: New files.
115398 2005-10-14  Roland McGrath  <roland@redhat.com>
115400         Import from libc.  [BZ #1331]
115401         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115402         macro argument.
115403         Reported by Matej Vela <vela@debian.org>.
115405 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115407         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115408         include <wchar.h>; no longer needed.
115410 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115412         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
115414 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
115415         and  Ulrich Drepper  <drepper@redhat.com>
115417         Import from libc.
115418         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
115419         instead of inline stream orientation test and two separate
115420         function calls.  Pay no attention to USE_IN_LIBIO.
115422 2005-10-13  Simon Josefsson  <jas@extundo.com>
115424         * modules/gc-hmac-md5-tests: New file.
115426         * tests/test-gc-hmac-sha1.c: New file.
115428         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
115430         * modules/gc-hmac-md5-tests: New file.
115432         * tests/test-gc-md5.c: New file.
115434         * modules/gc-md5-tests: New file.
115436 2005-10-13  Simon Josefsson  <jas@extundo.com>
115438         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115439         Move memory allocation outside of loop.
115441 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115443         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115444         intermediate directory is in a read-only file system.  Problem
115445         reported by Eric Blake.
115447 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115449         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115451 2005-10-12  Simon Josefsson  <jas@extundo.com>
115453         * tests/test-hmac-sha1.c: New file.
115455         * modules/hmac-sha1-tests: New file.
115457         * modules/hmac-sha1: New file.
115459 2005-10-12  Simon Josefsson  <jas@extundo.com>
115461         * modules/gc-sha1: New file.
115463 2005-10-12  Simon Josefsson  <jas@extundo.com>
115465         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115467         * tests/test-gc-pbkdf2-sha1.c: New file.
115469 2005-10-12  Simon Josefsson  <jas@extundo.com>
115471         * modules/gc-md5, modules/gc-hmac-md5: New files.
115473         * modules/gc (Files): Remove md5, memxor and hmac files.
115475 2005-10-12  Simon Josefsson  <jas@extundo.com>
115477         * m4/gc-pbkdf2-sha1.m4: New file.
115479         * m4/gc-hmac-sha1.m4: New file.
115481         * m4/gc-sha1: New file.
115483         * m4/hmac-sha1.m4: New file.
115485 2005-10-12  Simon Josefsson  <jas@extundo.com>
115487         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115489         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115491 2005-10-12  Simon Josefsson  <jas@extundo.com>
115493         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115494         suggested by Bruno Haible <bruno@clisp.org>.
115496 2005-10-12  Simon Josefsson  <jas@extundo.com>
115498         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115500 2005-10-12  Simon Josefsson  <jas@extundo.com>
115502         * lib/gc-pbkdf2-sha1.c: New file.
115504         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115506 2005-10-12  Simon Josefsson  <jas@extundo.com>
115508         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115510         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115512 2005-10-12  Simon Josefsson  <jas@extundo.com>
115514         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115515         GC_USE_HMAC_MD5, respectively.
115517         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115518         (gc_md5): Fix typo.
115520         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115522         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115524         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115526 2005-10-12  Bruno Haible  <bruno@clisp.org>
115528         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115529         Reported by Stepan Kasal <kasal@ucw.cz>.
115531 2005-10-11  Simon Josefsson  <jas@extundo.com>
115533         * tests/test-crc.c: New file.
115535         * modules/crc, modules/crc-tests: New files.
115537 2005-10-11  Simon Josefsson  <jas@extundo.com>
115539         * m4/crc.m4: New file.
115541 2005-10-11  Simon Josefsson  <jas@extundo.com>
115543         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115545         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115547         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115549 2005-10-11  Simon Josefsson  <jas@extundo.com>
115551         * lib/crc.h, lib/crc.c: New files.
115553         * lib/gc.h (gc_hash_buffer): Add doc.
115555 2005-10-11  Bruno Haible  <bruno@clisp.org>
115557         * modules/c-strcasestr: New file.
115558         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115560 2005-10-11  Bruno Haible  <bruno@clisp.org>
115562         * modules/c-strcase: New file.
115563         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115565 2005-10-11  Bruno Haible  <bruno@clisp.org>
115567         * lib/strcasecmp.c: Include limits.h.
115568         (strcasecmp): Avoid integer overflow on exotic platforms.
115569         * lib/strncasecmp.c: Include limits.h.
115570         (strncasecmp): Avoid integer overflow on exotic platforms.
115571         Reported by Paul Eggert.
115573 2005-10-11  Bruno Haible  <bruno@clisp.org>
115575         * lib/c-strcasestr.h: New file, from GNU gettext.
115576         * lib/c-strcasestr.c: New file, from GNU gettext.
115578 2005-10-11  Bruno Haible  <bruno@clisp.org>
115580         * lib/c-strcase.h: New file, from GNU gettext.
115581         * lib/c-strcasecmp.c: New file, from GNU gettext.
115582         * lib/c-strncasecmp.c: New file, from GNU gettext.
115584 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115586         * modules/mempcpy (License): GPL -> LGPL.
115587         * modules/strchrnul (License): Likewise.
115588         * modules/sysexits (License): Likewise.
115590 2005-10-08  Simon Josefsson  <jas@extundo.com>
115592         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115594 2005-10-07  Simon Josefsson  <jas@extundo.com>
115596         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115598 2005-10-06  Simon Josefsson  <jas@extundo.com>
115600         * tests/test-hmac-md5.c: New file.
115602         * modules/hmac-md5-tests: New file.
115604         * modules/hmac-md5: New file.
115606 2005-10-06  Simon Josefsson  <jas@extundo.com>
115608         * m4/hmac-md5.m4: New file.
115610         * m4/memxor.m4: Require gl_C_RESTRICT.
115612 2005-10-06  Simon Josefsson  <jas@extundo.com>
115614         * lib/memxor.c (memxor): Avoid casts and warnings.
115616 2005-10-06  Simon Josefsson  <jas@extundo.com>
115618         * lib/hmac-md5.c: New file.
115620         * lib/hmac.h: New file.
115622 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115625         promotes to int, not unsigned int, to catch the AIX 5.3
115626         compiler bug.
115628 2005-10-05  Simon Josefsson  <jas@extundo.com>
115630         * modules/memxor: New file.
115632         * modules/iconv (Files): Move config.rpath to havelib, it is used
115633         there.
115635         * modules/havelib (Files): Add config.rpath.
115637 2005-10-05  Simon Josefsson  <jas@extundo.com>
115639         * m4/memxor.m4: New file.
115641 2005-10-05  Simon Josefsson  <jas@extundo.com>
115643         * lib/memxor.c (memxor): Fix compiler error.
115645         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115646         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115648         * lib/memxor.h, lib/memxor.c: New files.
115650         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115651         we assume all systems have it, suggested by Jim Meyering
115652         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115653         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115654         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115655         same reasons.
115657 2005-10-05  Simon Josefsson  <jas@extundo.com>
115659         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115661 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115663         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115664         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115665         needed, since the source code now assumes these .h files.
115667 2005-10-05  Derek Price  <derek@ximbiot.com>
115669         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115671 2005-10-05  Bruno Haible  <bruno@clisp.org>
115673         * modules/stdint (License): Change to LGPL.
115675 2005-10-04  Simon Josefsson  <jas@extundo.com>
115677         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115678         D. Baushke" <mdb@gnu.org>.
115680 2005-10-04  Bruno Haible  <bruno@clisp.org>
115682         * lib/verify.h (verify_true): Provide alternative definition for C++.
115684 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115686         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115687         (SSIZE_MAX): New macro, if not already defined.
115688         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115689         than 2 GiB.
115691 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115693         Sync from coreutils.
115694         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115695         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115696         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115697         ULLONG_MAX doesn't work with 2.7.2.1.
115699 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115701         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115702         From Ben Pfaff.
115704         * modules/exclude (Depends-on): Depend on verify.
115705         * modules/strtoimax (Depends-on): Likewise.
115706         * modules/utimecmp (Depends-on): Likewise.
115708 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115710         * lib/exclude.c: Include verify.h.
115711         (verify): Remove.  All callers changed to use verify.h's version.
115712         * lib/strtoimax.c: Likewise.
115713         * lib/utimecmp.c: Likewis.e
115715         Sync from coreutils.
115716         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115717         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115718         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115719         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115720         bother returning ENOSYS if settimeofday or stime fails; just let
115721         them return whatever errno they want to return.
115722         * lib/utimens.c: Include unistd.h, for dup2.
115723         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115724         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115726 2005-10-02  Jim Meyering  <jim@meyering.net>
115728         Sync from coreutils.
115729         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115730         from glibc-2.2.5 that fails for read-only files.
115732 2005-10-02  Jim Meyering  <jim@meyering.net>
115734         Sync from coreutils.
115735         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115736         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115737         `#if HAVE_CONFIG_H'.
115738         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115739         Remove AT_FDCWD test.
115740         Do not consume the fd unless successful.
115741         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115742         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115743         block, so that we don't even try to compile it if settimeofday is
115744         available.  This works around a compilation failure on OSF1 V5.1,
115745         due to stime requiring a `long int*' while tv_sec is `int'.
115747 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115749         Sync from coreutils.
115750         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115751         against `yes', rather than just testing for nonempty.
115753 2005-10-01  Simon Josefsson  <jas@extundo.com>
115755         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115756         and Darwin.
115758         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115759         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115760         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115761         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115762         Check if struct addrinfo is declared.
115764 2005-10-01  Simon Josefsson  <jas@extundo.com>
115766         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115767         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115768         AI_* and EAI_* definitions.  Protect function declarations.
115770 2005-10-01  Jim Meyering  <jim@meyering.net>
115772         Sync from coreutils.
115774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115775         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115776         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
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  Jim Meyering  <jim@meyering.net>
115782         Sync from coreutils.
115783         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115784         in the inet and nsl libraries.  Required on Solaris 5.7.
115786 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115788         * lib/getdelim.c (getdelim): Remove unused variables.
115790 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115792         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115793         so that the code works even with ancient cpp.  Portability problem
115794         with GCC 2.7.2.1 reported by Thomas M.Ott.
115796 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115798         * modules/regex (Depends-on): Add strcase.
115800         * modules/gethostname (Licence): Change from GPL to LGPL, since
115801         gethostname.c is a trivial implementation of a standard library
115802         function.
115803         * modules/poll (License): Change from GPL to LGPL, since it's
115804         derived from LGPL code.
115806 2005-09-27  Jim Meyering  <jim@meyering.net>
115808         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115809         HAVE_CONFIG_H.
115811         * lib/intprops.h (signed_type_or_expr__): Define.
115812         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115813         for unsigned types.
115815 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115817         * lib/verify.h (verify_expr): Remove, replacing with:
115818         (verify_true): New macro that returns true instead of void.
115819         (verify_type__): Remove.
115820         (verify): Use verify_true rather than verify_type__.
115822 2005-09-26  Bruno Haible  <bruno@clisp.org>
115824         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115825         is necessary.
115826         (lib_SOURCES): Remove mbchar.c.
115827         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115828         (Files): Add m4/mbrtowc.m4.
115829         * modules/mbiter: Likewise.
115830         * modules/mbuiter: Likewise.
115832 2005-09-26  Bruno Haible  <bruno@clisp.org>
115834         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115835         compile mbchar.c if they are not both present.
115836         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115837         * m4/mbiter.m4 (gl_MBITER): Likewise.
115838         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115839         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115840         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115842 2005-09-25  Jim Meyering  <jim@meyering.net>
115844         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115845         also uses socklen_t.
115847 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115849         * lib/utimens.c (ENOSYS): Define if not already defined.
115850         (futimens): Support having a null PATH if the file descriptor
115851         is nonnegative.
115853         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115854         Remove.
115855         (__attribute): Define to empty unless GCC 3.1 or later.
115856         This works around a core dump on OpenBSD 3.4, which has GCC
115857         2.95.3, which dumps core when given __attribute__(()).  It also
115858         simplifies other tests, since we really don't want to bother with
115859         worrying about which ancient version of GCC supported what.
115860         Original problem reported by Yoann Vandoorselaere, with part of
115861         the fix suggested by Derek Price.
115863 2005-09-24  Jim Meyering  <jim@meyering.net>
115865         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115866         so we can once again use a positive bitfield width of 1 -- now we
115867         don't have to explain why we were using a bitfield width of 2.
115869 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115871         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115872         and similarly for the other external symbols.  Problem reported
115873         by James Gallager.
115875         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115876         bug reported by Jim Meyering.
115878         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115880         not needed, since socklen is a prerequisite module.
115882 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115884         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115885         Problem reported by Eric Blake.
115886         (getaddrinfo): Initialize se so that it's not garbage.
115887         Redo internal storage allocation so that it doesn't make unportable
115888         assumptions about alignment.
115889         Fix a memory leak.
115891         * lib/utimens.c (futimens): Use futimesat if available.
115892         Prefer it to futimes since it doesn't have the futimes bug.
115894         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115895         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115896         Instead, declare a function that returns a pointer to an array,
115897         and use verify_type__ to declare the size of the array.
115898         Problem and germ of a solution reported by Bruno Haible.
115899         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115900         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115902 2005-09-23  Jim Meyering  <jim@meyering.net>
115904         Sync from coreutils.
115905         Correct build failure (socklen_t not defined) on at least
115906         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115909 2005-09-23  Jim Meyering  <jim@meyering.net>
115911         * modules/getaddrinfo (Depends-on): Add socklen.
115913 2005-09-23  Bruno Haible  <bruno@clisp.org>
115915         * tests/test-verify.c: New file.
115917 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115919         Sync from coreutils.
115921         * modules/argmatch (Depends-on): Add verify.
115922         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115923         unistd-safer.
115924         * modules/save-cwd (Depends-on): Likewise.
115926         * modules/openat (Files): Add lib/openat-die.c.
115927         (Depends-on): Remove error, exitfail.
115928         Add dirname.
115930         * modules/verify: New file.
115931         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115932         with "verify" module.
115934 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115936         Sync from coreutils.
115938         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115939         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115940         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115941         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115942         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115943         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115944         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115945         Don't bother checking for string.h, stdlib.h, unistd.h.
115946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115948         module's job.
115949         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115950         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115952         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115953         (gl_GETDATE): Use it.
115955         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115957 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115959         Sync from coreutils.
115961         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115962         stat-time.h.
115963         * lib/argmatch.h: Include verify.h
115964         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115965         (ARGMATCH_ASSERT): Remove; unused.
115966         * lib/canonicalize.c: Assume STDC_HEADERS.
115967         * lib/exclude.c: Include "strcase.h".
115968         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115969         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115970         and stdio-safer.h.
115971         (getusershell): Call fopen, not fopen_safer.
115972         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115973         Do not include unistd-safer.h.
115974         (save_cwd): Don't call fd_safer; no longer needed
115975         now that we include fcntl--.h.
115977         * lib/getdate.y (relative_time): New type.
115978         (RELATIVE_TIME_0): New constant.
115979         (parser_control): Use relative_time instead of doing it ourselves.
115980         (%union): Add new relative_time rel member.
115981         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115982         Now typeless.
115983         (relunit, relunit_snumber): Now of type rel.
115984         (zone, rel, relunit, get_date): Adjust to above changes.
115986         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115987         Do not include unistd-safer.h.
115988         (getloadavg): Don't call fd_safer; no longer needed
115989         now that we include fcntl--.h.
115991         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115992         (make_dir_parents): Treat ENOSYS like EEXIST.
115994         Improve quality of diagnostics on restore_cwd failure.
115995         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115996         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115997         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115998         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115999         each time through the loop.  Do not diagnose restore_cwd failure;
116000         that is the caller's job (and perhaps the caller does not care).
116002         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116003         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116004         If the file already exists but is not a directory, don't bother
116005         to try to make its parents.
116006         Close potential file descriptor leak if we can't chdir("/") (!).
116007         Don't always return true if chdir($PWD) fails; return true only
116008         if the requested action was done successfully (except for the
116009         chdir($PWD)).
116010         Don't log final directory unless we actually made it.
116011         Refactor to avoid duplicate code to fix up permissions.
116012         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116014         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116015         to make it a bit faster and (I hope) clearer.
116016         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116017         Fix bug in formats like %2N.
116019         * lib/verify.h: New file.
116021 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116023         Sync from coreutils.
116024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116026 2005-09-22  Jim Meyering  <jim@meyering.net>
116028         Sync from coreutils.
116030         * m4/lstat.m4 (gl_FUNC_LSTAT):
116031         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116032         Remove obsolete comment.
116033         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116034         * m4/xstrtod.m4: Likewise.
116036         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116038 2005-09-22  Jim Meyering  <jim@meyering.net>
116040         Sync from coreutils.
116042         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116044         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116045         the .tm_year member, since otherwise gcc-4.0 would now warn about
116046         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116048         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116049         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116051         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116052         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116053         when run in a time zone for which daylight savings time is in effect
116054         for the starting date.
116056         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116057         stop us from restricting permissions of just-created absolute-named
116058         directories.
116059         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116060         to restore initial working directory.
116061         * lib/mkdir-p.c (make_dir_parents): New parameter:
116062         different_working_dir, to tell caller if/when we change the working
116063         directory and are unable to return to the initial one.
116064         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116065         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116066         `return false'.  This fixes a bug introduced on 2004-07-30.
116068         * lib/openat.c (fdopendir): Be sure to close the supplied
116069         file descriptor before returning.  This makes our replacement
116070         implementation a little closer to Solaris's, where fdopendir
116071         ties the file descriptor to the returned DIR* pointer.
116072         * lib/openat.c (unlinkat): New function.
116073         * lib/openat.h (unlinkat): Add prototype.
116074         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116075         (openat_restore_fail): Rename from openat_restore_die.
116076         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116078         Provide an alternative to exiting immediately upon save_cwd or
116079         restore_cwd failure.  Now, an application can arrange e.g.,
116080         to perform a longjump in that case.
116081         * lib/openat.c: Include dirname.h.
116082         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116083         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116084         and openat_restore_die rather than calling error directly.
116085         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116087         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116088         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116089         define.
116091         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116092         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116093                             int utc, int nanoseconds);
116094         Background:
116095         date should not have to allocate a megabyte of virtual memory to
116096         handle a format argument like +%1048575T.  When implemented with
116097         strftime, it must allocate such a buffer, use strftime to fill it
116098         in, print it, then free it.
116099         With fprintftime, it simply prints everything and exits.
116100         With no need for memory allocation, that's one fewer way to fail.
116101         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116102         optional field width, not before, so we accept %9:z, not %:9z.
116103         (my_strftime): Be sure to use L_('x') for literals.
116105         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116106         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116107         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116108         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116109         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116110         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116111         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116112         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116113         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116114         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116115         * lib/xgethostname.c, lib/xreadlink.c:
116116         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116118         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116119         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116120         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116121         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116122         and don't include <sys/file.h>).
116124 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116126         Sync from coreutils.
116128         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116129         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116130         [!LDAV_DONE]: Avoid unused variable warning.
116132 2005-09-21  Bruno Haible  <bruno@clisp.org>
116134         * lib/unicodeio.h (unicode_to_mb): New declaration.
116136 2005-09-20  Derek Price  <derek@ximbiot.com>
116138         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116139         getaddrinfo.h.
116141 2005-09-20  Bruno Haible  <bruno@clisp.org>
116143         * gnulib-tool: Remove trailing slashes from the values specified for
116144         --source-base, --m4-base, --tests-base, --aux-dir.
116145         Suggested by Simon Josefsson <jas@extundo.com>.
116147 2005-09-20  Bruno Haible  <bruno@clisp.org>
116149         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116150         func_modules_to_filelist, func_import, func_create_testdir): Make all
116151         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116152         change when gnulib-tool is invoked in a different locale.
116154 2005-09-19  Simon Josefsson  <jas@extundo.com>
116156         * m4/socklen.m4: Fix typo.
116158 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116160         Use a consistent style for including <config.h>.
116161         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116162         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116163         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116164         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116165         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116166         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116167         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116168         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116169         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116170         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116171         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116172         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116173         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116174         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116175         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116176         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116177         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116178         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116179         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116180         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116181         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116182         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116183         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116184         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116185         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116186         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116187         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116188         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116189         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116190         lib/xstrtoumax.c, lib/yesno.c:
116191         Standardize inclusion of config.h.
116192         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116193         lib/inttostr.h:  Removed inclusion of config.h from header files.
116194         * lib/inttostr.c:  Adjusted in-tree users.
116195         * lib/timespec.h: Remove superfluous warning to include config.h.
116196         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116197         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116198         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116199         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116200         config.h with HAVE_CONFIG_H.
116202 2005-09-19  Jim Meyering  <jim@meyering.net>
116204         * modules/pathmax (License): Change to LGPL.
116206 2005-09-19  Derek Price  <derek@ximbiot.com>
116208         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116210 2005-09-19  Bruno Haible  <bruno@clisp.org>
116212         * gnulib-tool (import): Provide default for --tests-base.
116214 2005-09-19  Bruno Haible  <bruno@clisp.org>
116216         * doc/quote.texi: New file, extracted from gnulib.texi.
116217         * doc/ctime.texi: New file, extracted from gnulib.texi.
116218         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116219         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116220         * doc/gnulib.texi: Include them.
116222 2005-09-18  Bruno Haible  <bruno@clisp.org>
116224         Portability fix.
116225         * gnulib-tool (func_readlink): New function.
116226         (func_ln_if_changed): Use it.
116228 2005-09-18  Bruno Haible  <bruno@clisp.org>
116230         * gnulib-tool: Support --with-tests also with --import.
116231         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116232         (func_import): Use variables $testsbase and $inctests. Emit a
116233         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116234         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116235         SUBDIRS += $testsdir.
116236         (func_create_testdir): Update.
116238 2005-09-18  Bruno Haible  <bruno@clisp.org>
116240         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116241         instead of $dry_run.
116242         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116243         (func_ln_if_changed): Don't handle dry-run here.
116244         (func_import): In dry-run mode, detect more precisely which actions
116245         would be performed, and don't use "...ing" verbs.
116247 2005-09-18  Bruno Haible  <bruno@clisp.org>
116249         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116250         (func_import): Use join on two temporary files instead of three nested
116251         loops, in order to determine which files are new or old.
116253 2005-09-18  Bruno Haible  <bruno@clisp.org>
116255         * gnulib-tool (func_import): Comment out code that spits out the
116256         new files with --dry-run.
116258 2005-09-18  Bruno Haible  <bruno@clisp.org>
116260         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116262 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116264         * lib/stat-time.h: New file.
116265         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116266         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116267         in a different way.
116268         (timespec_cmp): New function.
116269         * lib/utimecmp.c: Include stat-time.h.
116270         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116271         members exist, not on the obsolescent ST_MTIM_NSEC.
116272         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116274 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116276         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116278 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116280         * MODULES.html.sh (File system functions): Add stat-time.
116281         * modules/stat-time: New file.
116282         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116283         is now done in a different way, by the stat-time module.
116284         * modules/utimecmp (Depends-on): Add stat-time.
116286 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116288         * m4/st_mtim.m4: Remove.  Superseded by...
116289         * m4/stat-time.m4: New file.
116290         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116291         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116293 2005-09-15  Derek Price  <derek@ximbiot.com>
116295         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116297 2005-09-15  Derek Price  <derek@ximbiot.com>
116299         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116300         * lib/regex_internal.c: Ditto, using this...
116301         (__GNUC_PREREQ): ...new macro.
116302         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116303         using...
116304         (__GNUC_PREREQ): ...this new macro.
116306         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116308 2005-09-15  Derek Price  <derek@ximbiot.com>
116309             Paul Eggert  <eggert@cs.ucla.edu>
116311         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116312         changes, consolidating in...
116313         * lib/regex_internal.h: ...this file.
116315 2005-09-13  Jim Meyering  <jim@meyering.net>
116317         * lib/canon-host.c: Filter through gnu indent and reword comments
116318         slightly.
116319         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116321 2005-09-13  Derek Price  <derek@ximbiot.com>
116323         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116324         failure.
116325         Reported by Jim Meyering  <jim@meyering.net>.
116327 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116329         * lib/base64.c: Typo.
116330         (base64_encode): Put b64str in initialized data section.
116332 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116334         Merge glibc and coreutils changes into gnulib, plus a few
116335         extra fixes.
116336         * lib/md5.c: Use #error rather than a string.
116337         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116338         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116339         (__attribute__): Define to empty for non recent-GCC.
116340         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116341         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116342         Renamed from their non-__ counterparts, with new macros replacing
116343         them if not _LIBC.  Add __THROW attribute.
116344         (rol): Remove.
116345         (struct md5_ctx): Align buffer if using GCC.
116346         * lib/sha1.h (struct sha1_ctx): Likewise.
116347         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116348         The old name was backwards.
116349         (NOTSWAP): Remove; not used.
116350         (rol): New macro, moved here from md5.h.
116351         (sha1_process_block): Remove a FIXME that doesn't make sense.
116353 2005-09-12  Derek Price  <derek@ximbiot.com>
116355         Return usable errors from canon-host.
116356         * lib/canon-host.h: New file.
116357         * lib/canon-host.c (canon_host): Wrap...
116358         (canon_host_r): ...this new function, which now relies exclusively on
116359         getaddrinfo.
116360         (ch_strerror): New function.
116361         (last_cherror): New global.
116362         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116363         interface.
116364         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116365         void *.
116366         (freeaddrinfo): Free ai->ai_canonname when set.
116368 2005-09-12  Derek Price  <derek@ximbiot.com>
116370         Make canon-host require getaddrinfo.
116371         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116372         AC_LIBSOURCE canon-host.h.  Call...
116373         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116374         gl_GETADDRINFO.
116375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116377 2005-09-12  Derek Price  <derek@ximbiot.com>
116379         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116380         LGPL.
116381         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116383 2005-09-12  Derek Price  <derek@ximbiot.com>
116385         * lib/gai_strerror.c: Include config.h when available.  Include
116386         getaddrinfo.h before other headers to test interface.
116387         Reported by Larry Jones <lawrence.jones@ugs.com>.
116389 2005-09-12  Derek Price  <derek@ximbiot.com>
116390             Paul Eggert  <eggert@cs.ucla.edu>
116392         * modules/glob (Files): Add glob-libc.h.
116394 2005-09-12  Derek Price  <derek@ximbiot.com>
116395             Paul Eggert  <eggert@cs.ucla.edu>
116397         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116398         glob_.h, glob-libc.h.
116399         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116401 2005-09-12  Derek Price  <derek@ximbiot.com>
116402             Paul Eggert  <eggert@cs.ucla.edu>
116404         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116405         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116406         protecting things that should be done only in gnulib contexts.
116407         * lib/glob_.h: New file, containing only the glob things needed for
116408         gnulib.
116409         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116410         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116411         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116412         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
116413         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
116414         and to respect the namespace rules better.
116416 2005-09-08  Simon Josefsson  <jas@extundo.com>
116418         * modules/socklen: New file.
116420 2005-09-08  Simon Josefsson  <jas@extundo.com>
116422         * m4/socklen.m4: New file.
116424 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116426         * modules/utimens (Files): Add m4/utimbuf.m4, since
116427         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
116428         Reported by Sergey Poznyakoff.
116430 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116432         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
116433         definitions, since that's the preferred style in glibc.
116434         Fix a minor spacing issue, and update copyright notice to match
116435         glibc's.
116437 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116439         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116441 2005-09-06  Simon Josefsson  <jas@extundo.com>
116443         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116444         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116446 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116448         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116449         warning.
116451 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116453         * config/srclist.txt: Add glibc bug 1302.
116455 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116457         Change bitset word type from unsigned int to unsigned long int,
116458         as this has better performance on typical 64-bit hosts.
116459         Port bitset code to hosts with unusual word sizes.
116460         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116461         (build_collating_symbol):
116462         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116463         argument is a bitset.  This is merely a style issue, but it makes
116464         it clearer that an entire array is expected.
116465         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116466         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116467         Port to the case where bitset_word is not the same as unsigned int.
116468         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116469         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116470         Likewise.
116471         * lib/regexec.c (check_dst_limits_calc_pos_1,
116472         check_subexp_matching_top):
116473         (build_trtable, group_nodes_into_DFAstates):
116474         Likewise.
116475         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116476         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116477         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116478         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116479         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116480         * lib/regcomp.c (optimize_subexps, lower_subexp):
116481         Work even if bitset_word has holes in its bitwise representation.
116482         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116483         * lib/regexec.c (check_dst_limits_calc_pos_1,
116484         check_subexp_matching_top):
116485         Likewise.
116486         * lib/regex_internal.c (re_string_reconstruct):
116487         Don't assume UCHAR_MAX == 255.
116488         * lib/regex_internal.h (bitset_set_all): Likewise.
116489         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116490         All uses changed.
116491         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116492         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116493         All uses changed.
116494         (BITSET_WORD_MAX): New macro.
116495         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116496         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116497         (bitset_empty, bitset_copy):
116498         Prefer sizeof (bitset) to multiplying it out ourselves.
116499         (bitset_not_merge): Remove; unused.
116500         (bitset_contain): Return bool, not unsigned int with one bit on.
116501         All callers changed.
116502         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116503         alignment than re_node_set; do this by defining a new internal
116504         type struct dests_alloc and using it to allocate memory.
116506 2005-09-05  Bruno Haible  <bruno@clisp.org>
116508         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116509         links.
116511 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116513         * modules/size_max (Makefile.am): Add size_max.h
116515 2005-09-04  Derek Price  <derek@ximbiot.com>
116517         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116519 2005-09-03  Simon Josefsson  <jas@extundo.com>
116521         * gnulib-tool: Fix typo.
116523 2005-09-03  Simon Josefsson  <jas@extundo.com>
116525         * config/srclist.txt: Add glibc bug 1293.
116527 2005-09-03  Derek Price  <derek@ximbiot.com>
116529         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116530         From Larry Jones <lawrence.jones@ugs.com>.
116532 2005-09-02  Simon Josefsson  <jas@extundo.com>
116534         * modules/socklen: New file.
116536 2005-09-02  Simon Josefsson  <jas@extundo.com>
116538         * modules/havelib: New module.
116540         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116541         Use havelib.
116543 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116545         Check for arithmetic overflow when calculating sizes, to prevent
116546         some buffer-overflow issues.  These patches are conservative, in the
116547         sense that when I couldn't determine whether an overflow was possible,
116548         I inserted a run-time check.
116549         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116550         macros.
116551         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116552         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116553         (re_xnrealloc, re_x2nrealloc): New inline functions.
116554         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116555         parse_bracket_exp):
116556         (build_equiv_class, build_charclass): Check for arithmetic overflow
116557         in size expression calculations.
116558         * lib/regex_internal.c (re_string_realloc_buffers):
116559         (build_wcs_upper_buffer, re_node_set_add_intersect):
116560         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116561         (re_dfa_add_node, register_state): Likewise.
116562         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116563         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116564         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116565         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116567 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116569         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116570         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116572 2005-09-02  Bruno Haible  <bruno@clisp.org>
116574         Support for lib vs. lib64 distinction on biarch platforms.
116575         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116576         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116579 2005-09-02  Bruno Haible  <bruno@clisp.org>
116581         * gnulib-tool (import): In the other first-use case, provide defaults
116582         as well.
116584 2005-09-02  Bruno Haible  <bruno@clisp.org>
116586         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116587         patches not yet found in the latest gettext release.
116589 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116591         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116592         to avoid a collision with bits/local_lim.h in glibc.
116593         All uses changed.  Problem reported by Dmitry V. Levin in
116594         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116596         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116597         bugs in int versus size_t comparisons.
116598         (re_string_context_at): Fix bug where the code assumed that
116599         Idx is signed.
116601         Use bool where appropriate.
116602         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116603         All callers changed.
116604         (calc_eclosure_iter): Likewise, for ROOT arg.
116605         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116606         (build_charclass_op): Likewise, for NON_MATCH arg.
116607         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116608         (re_string_construct_common): Likewise, for ICASE arg.
116609         * lib/regexec.c (re_search_2_stub, re_search_stub):
116610         Likewise, for RET_LEN arg.
116611         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116612         (set_regs): Likewise, for FL_BACKTRACK arg.
116613         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116614         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116615         (calc_eclosure_iter, parse_bracket_exp):
116616         Use bool for internal variables that are booleans.
116617         * lib/regexec.c (re_search_internal, check_matching,
116618         proceed_next_node):
116619         (set_regs, build_sifted_states, sift_states_bkref):
116620         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116621         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116622         (find_collation_sequence_value):
116623         Likewise.
116624         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116625         (re_node_set_compare):
116626         Return bool, not int. All callers changed.
116627         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116628         (build_trtable, check_node_accept): Likewise.
116629         * lib/regex_internal.h: Include stdbool.h.
116631         Fix bugs uncovered when converting to bool.
116632         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116633         failure instead of charging ahead blindly.
116634         * lib/regex_internal.c (register_state): Likewise.
116635         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116636         for freeing internal storage.
116637         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116638         bitset pieces used as boolean, to avoid undefined behavior
116639         on hosts that do int overflow checking.
116641 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116643         * config/srclist.txt: Add glibc bugs 1285-1287.
116645 2005-09-01  Jim Meyering  <jim@meyering.net>
116647         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116648         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116649         Require gl_STAT_MACROS, too.
116651 2005-09-01  Bruno Haible  <bruno@clisp.org>
116653         * gnulib-tool (import): In the first-use case, provide defaults.
116655 2005-09-01  Bruno Haible  <bruno@clisp.org>
116657         * gnulib-tool (func_import): Remove the .tmp files.
116659 2005-09-01  Bruno Haible  <bruno@clisp.org>
116661         * gnulib-tool (func_import): Fix handling of symbolic links.
116663 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116665         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116666         old glibc regex code mishandles strings longer than 2**31 bytes.
116667         This patch fixes this when the regex code is used in gnulib
116668         (i.e., outside glibc).
116670         This patch should not affect the use of the regex code inside
116671         glibc.  No doubt this problem also needs to be handled for glibc
116672         as well, but the result will be an incompatible change to the
116673         glibc ABI, and the old ABI will have to be supported too.  That
116674         can be the subject for another patch.
116676         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116677         governing whether the rest of this patch is active.  By default,
116678         the macro is disabled and the patch has no effect.
116679         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116680         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116681         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116682         (re_match_2, re_set_registers): Use the new types.
116683         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116684         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116685         New macros.
116686         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116687         (re_string_context_at, bin_tree_t, re_dfastate_t):
116688         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116689         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116690         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116691         (re_string_char_size_at, re_string_wchar_at):
116692         (re_string_elem_size_at):
116693         Use the new types and macros to port to 64-bit hosts.
116694         Use unsigned types for internal values, so that the code
116695         mostly works even for arrays larger than SSIZE_MAX.
116696         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116697         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116698         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116699         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116700         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116701         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116702         (calc_inveclosure, parse_dup_op, build_range_exp):
116703         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116704         (fetch_number, create_token_tree, mark_opt_subexp):
116705         Likewise.
116706         * lib/regex_internal.c (re_string_construct_common,
116707         create_ci_newstate):
116708         (create_cd_newstate, re_string_allocate, re_string_construct):
116709         (re_string_realloc_buffers, build_wcs_upper_buffer):
116710         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116711         (re_string_reconstruct, re_string_peek_byte_case):
116712         (re_string_fetch_byte_case, re_string_context_at):
116713         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116714         (re_node_set_init_copy, re_node_set_add_intersect):
116715         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116716         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116717         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116718         (re_acquire_state, re_acquire_state_context, register_state):
116719         Likewise.
116720         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116721         search_cur_bkref_entry):
116722         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116723         (re_search_internal, re_search_2_stub, re_search_stub)
116724         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116725         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116726         (update_cur_sifted_state, check_dst_limits):
116727         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116728         (check_subexp_limits, sift_states_bkref, merge_state_array):
116729         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116730         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116731         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116732         (expand_bkref_cache, check_node_accept_bytes):
116733         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116734         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116735         (acquire_init_state_context, check_halt_node_context):
116736         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116737         (sift_states_backward, clean_state_log_if_needed):
116738         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116739         (find_recover_state, transit_state_sb, transit_state_mb):
116740         (transit_state_bkref, build_trtable, match_ctx_clean):
116741         Likewise.
116742         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116743         to work around an assumption that REG_MISSING is negative.
116745         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116746         (seek_collating_symbol_entry) [defined _LIBC]:
116747         (lookup_collation_sequence_value) [defined _LIBC]:
116748         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116749         Use prototypes rather than old-style function definitions.
116750         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116751         (transit_state_sb) [0]:
116752         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116754         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116755         rm_eo.
116757         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116758         (optimize_subexps, lower_subexp):
116759         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116760         since the signed shift might overflow.  Use 1u<<31 instead.
116761         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116762         Likewise.
116763         * lib/regexec.c (check_dst_limits_calc_pos_1,
116764         check_subexp_matching_top): Likewise.
116766         * lib/regcomp.c (optimize_subexps, lower_subexp):
116767         Use CHAR_BIT rather than 8, for clarity.
116768         * lib/regexec.c (check_dst_limits_calc_pos_1):
116769         (check_subexp_matching_top): Likewise.
116770         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116771         have to worry about portability issues when shifting it left.
116772         Remove no-longer-needed test for table_size > 0.
116773         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116774         in a word, as the resulting behavior is undefined.
116775         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116776         in one case, a <= should have been an <, and in another case the
116777         whole test was missing.
116778         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116779         the standard name CHAR_BIT.
116780         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116781         this is not true on one's complement and signed-magnitude hosts.
116783         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116784         next_last_offset.
116785         (struct re_dfa_t): Remove unused member states_alloc.
116786         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116788 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116790         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116791         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116792         and large-file glibc and in 32-bit large-file Solaris.
116794 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116796         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116797         lengths fit in regoff_t; this isn't true if regoff_t is the same
116798         width as size_t.
116799         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116800         (= START + RANGE) instead of RANGE.  This avoids overflow
116801         problems when regoff_t is the same width as size_t.
116802         All callers changed.
116803         (re_search_2_stub): Check for overflow when adding the
116804         sizes of the two strings.
116805         (re_search_stub): Check for overflow when adding START
116806         to RANGE; if it occurs, substitute the extreme value.
116808 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116810         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116812 2005-08-31  Jim Meyering  <jim@meyering.net>
116814         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116815         a pointer-to-const.
116816         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116817         (register_state): Likewise.
116818         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116819         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116820         (group_nodes_into_DFAstates): Likewise.
116822 2005-08-31  Jim Meyering  <jim@meyering.net>
116824         * check-module: Add a FIXME comment.
116826 2005-08-31  Eric Blake  <ebb9@byu.net>
116828         * modules/unistd-safer (Files): Add unistd--.h.
116829         * modules/stdio-safer (Files): Add stdio--.h.
116831 2005-08-31  Derek Price  <derek@ximbiot.com>
116833         * lib/getdelim.c (getdelim): Return EOF on EOF.
116834         Reported by Larry Jones <lawrence.jones@ugs.com>.
116836 2005-08-31  Bruno Haible  <bruno@clisp.org>
116838         Avoid unnecessary diffs in the generated lib/Makefile.am.
116839         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116840         the generated files.
116841         (func_import): Don't set cmd.
116843 2005-08-31  Bruno Haible  <bruno@clisp.org>
116845         * lib/strstr.c: Include <stddef.h>, for NULL.
116846         * lib/strcasestr.c: Likewise.
116847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116849 2005-08-31  Bruno Haible  <bruno@clisp.org>
116851         * gnulib-tool: New option --macro-prefix.
116852         (func_import): Use macro_prefix.
116853         (import): Handle option --macro-prefix.
116855 2005-08-31  Bruno Haible  <bruno@clisp.org>
116857         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116858         Also use new variables cached_lgpl, cached_libtool.
116860 2005-08-31  Bruno Haible  <bruno@clisp.org>
116862         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116863         always instantiating them.
116865 2005-08-31  Bruno Haible  <bruno@clisp.org>
116867         * gnulib-tool (func_import): Read the previous cached settings
116868         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116869         earlier added by gnulib but are now dropped. Warn when a gnulib file
116870         overwrites a non-gnulib file.
116872 2005-08-31  Bruno Haible  <bruno@clisp.org>
116874         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116875         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116876         projects that don't keep autogenerated files in CVS. Put into
116877         actioncmd only the specified modules, not the transitive closure.
116879 2005-08-31  Bruno Haible  <bruno@clisp.org>
116881         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116882         Create directories that shall be filled.
116883         (import): Don't look for gl_* macros in configure.ac. Recurse across
116884         all directories containing a gnulib-cache.m4 files, if meaningful.
116886 2005-08-31  Bruno Haible  <bruno@clisp.org>
116888         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116889         (import): Set seen_libtool when we see gl_LIBTOOL.
116891 2005-08-31  Bruno Haible  <bruno@clisp.org>
116893         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116894         declaration macro definitions from generated gnulib.m4.
116896 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116898         * lib/iconvme.h: Add prototype for iconv_alloc.
116900 2005-08-29  Simon Josefsson  <jas@extundo.com>
116902         * lib/iconvme.c: Fix errno.
116904 2005-08-29  Bruno Haible  <bruno@clisp.org>
116906         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116907         that it works when the directory contains spaces.
116909 2005-08-29  Bruno Haible  <bruno@clisp.org>
116911         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116913 2005-08-29  Bruno Haible  <bruno@clisp.org>
116915         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116916         Emit more advice.
116918 2005-08-29  Bruno Haible  <bruno@clisp.org>
116919         and Stepan Kasal  <kasal@ucw.cz>
116921         * check-module: If more parameters are given, check each of them
116922         separately; add more exceptions, as noted by Jim Meyering.
116923         (check_module): New procedure.
116924         (%exempt_header): Now contains all exceptions.
116926 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116928         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116930 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116932         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116934 2005-08-28  Bruno Haible  <bruno@clisp.org>
116936         * m4/gnulib-tool.m4: New file.
116938 2005-08-27  Jim Meyering  <jim@meyering.net>
116940         * modules/unistd-safer (Files): Add pipe-safer.c.
116941         * modules/fcntl-safer (Files): Add creat-safer.c.
116943 2005-08-27  Jim Meyering  <jim@meyering.net>
116945         * m4/stdlib-safer.m4: New file.  From coreutils.
116946         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116947         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116948         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116949         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116950         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116952 2005-08-27  Jim Meyering  <jim@meyering.net>
116954         * lib/fopen-safer.c: Merge minor changes from coreutils.
116955         * lib/dup-safer.c: Likewise.
116956         * lib/fd-safer.c: Likewise.
116958         Merge from coreutils.
116959         * lib/stdio--.h: New file.
116960         * lib/stdlib--.h: New file.
116961         * lib/mkstemp-safer.c: New file.
116963         GNU tar needs these.
116964         * lib/pipe-safer.c: New file.
116965         * lib/creat-safer.c: New file.
116966         * lib/fcntl--.h (creat): Define to creat_safer.
116967         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116968         * lib/unistd--.h (pipe): Define to pipe_safer.
116969         * lib/unistd-safer.h: Declare pipe_safer.
116971 2005-08-26  Simon Josefsson  <jas@extundo.com>
116973         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116974         Haible <bruno@clisp.org>.
116976 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116978         * lib/regex_internal.h: Remove all references to
116979         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116980         or better.
116981         (bitset_not, bitset_merge, bitset_not_merge):
116982         (bitset_mask, re_string_allocate, re_string_construct):
116983         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116984         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116985         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116986         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116987         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116988         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116989         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116990         (re_acquire_state_context):
116991         Remove unnecessary forward decls.
116992         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116993         Put __attribute at function definition,
116994         now that the function decl has been removed.
116995         * lib/regex_internal.c (re_string_peek_byte_case):
116996         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116997         Likewise.
116999 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117001         * m4/regex.m4: Add AC_PREREQ(2.50).
117002         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117004 2005-08-25  Simon Josefsson  <jas@extundo.com>
117006         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117007         __fsetlocking.
117009 2005-08-25  Simon Josefsson  <jas@extundo.com>
117011         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117012         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117013         GLIBC specific code.
117015 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117017         Make regex safe for g++.  This fixes one real bug (an "err"
117018         that should have been "*err").  g++ problem reported by
117019         Sam Steingold.
117020         * lib/regex_internal.h (re_calloc): New macro, consistent with
117021         re_malloc etc.  All callers of calloc changed to use re_calloc.
117022         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117023         not int.  All callers changed.
117024         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117025         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117026         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117027         (find_recover_state): Change "err" to "*err"; this fixes what
117028         appears to be a real bug.
117029         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117030         versus int.
117032 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117034         * modules/regex (Depends-on): Add malloc, since the code
117035         assumes that !malloc(0) means failure.
117037 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117039         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117041         alloca modernization/simplification for regex.
117042         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117043         needs to be at the start of the file, and can be moved into
117044         regex_internal.h and simplified.
117045         * lib/regex_internal.h: Include <alloca.h>.
117046         (__libc_use_alloca) [!defined _LIBC]: New macro.
117047         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117048         now works outside glibc.
117050 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117052         * config/srclist.txt: Add glibc bugs 1241, 1245.
117054 2005-08-25  Jim Meyering  <jim@meyering.net>
117056         * lib/open-safer.c: Include <config.h>.
117057         Otherwise, we'd lose LARGEFILE support in any file using
117058         e.g. "fcntl--.h"
117060 2005-08-25  Bruno Haible  <bruno@clisp.org>
117062         * m4/minmax.m4: Require autoconf 2.52.
117063         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117064         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117065         alternatives of translit over the alphabet.
117066         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117068 2005-08-24  Simon Josefsson  <jas@extundo.com>
117070         * tests/test-getpass.c: New file.
117072 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117074         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117075         for GNU regex features.
117077 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117079         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117080         * lib/regex.h (regerror): Likewise.
117082         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117083         requires this.  (The code never needed it.)
117085         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117086         All uses of recently-renamed identifiers changed to use the new,
117087         POSIX-compliant names.  The code will build and run just fine
117088         without these changes, but it's better to eat our own dog food
117089         and use the standard-conforming names.
117091         * lib/regex.h: Fix a multitude of POSIX name space violations.
117092         These changes have an effect only for programs that define
117093         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117094         do not change anything for programs compiled in the normal way.
117095         Also, there is no effect on the ABI.
117097         (_REGEX_SOURCE): New macro.
117098         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117099         defined and _GNU_SOURCE is not; this fixes a name space violation.
117101         Rename the following macros to obey POSIX requirements.
117102         The old names are still visible as macros if _REGEX_SOURCE is defined.
117103         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117104         RE_BACKSLASH_ESCAPE_IN_LISTS.
117105         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117106         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117107         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117108         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117109         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117110         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117111         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117112         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117113         (REG_INTERVALS): renamed from RE_INTERVALS.
117114         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117115         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117116         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117117         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117118         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117119         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117120         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117121         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117122         RE_UNMATCHED_RIGHT_PAREN_ORD.
117123         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117124         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117125         (REG_DEBUG): renamed from RE_DEBUG.
117126         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117127         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117128         unusual, since we can't clash with the POSIX REG_ICASE.
117129         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117130         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117131         (REG_NO_SUB): renamed from RE_NO_SUB.
117132         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117133         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117134         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117135         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117136         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117137         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117138         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117139         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117140         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117141         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117142         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117143         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117144         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117145         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117146         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117147         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117148         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117149         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117150         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117151         (REG_FIXED): Renamed from REGS_FIXED.
117152         (REG_NREGS): Renamed from RE_NREGS.
117154         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117155         of other REG_* macros, since POSIX says the user is allowed to
117156         #undef these macros selectively.
117158         (reg_errcode_t): Update comment stating what other tables need
117159         to be consistent.
117161         Rename the following enum values to obey POSIX requirements.
117162         The old names are still visible as macros.
117163         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117164         is not defined, since GNU is supposed to be a superset of POSIX as
117165         much as possible, and since we want reg_errcode_t to be a signed
117166         type for implementation consistency.
117167         (_REG_NOERROR): Renamed from REG_NOERROR.
117168         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117169         (_REG_BADPAT): Renamed from REG_BADPAT.
117170         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117171         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117172         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117173         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117174         (_REG_EBRACK): Renamed from REG_EBRACK.
117175         (_REG_EPAREN): Renamed from REG_EPAREN.
117176         (_REG_EBRACE): Renamed from REG_EBRACE.
117177         (_REG_BADBR): Renamed from REG_BADBR.
117178         (_REG_ERANGE): Renamed from REG_ERANGE.
117179         (_REG_ESPACE): Renamed from REG_ESPACE.
117180         (_REG_BADRPT): Renamed from REG_BADRPT.
117181         (_REG_EEND): Renamed from REG_EEND.
117182         (_REG_ESIZE): Renamed from REG_ESIZE.
117183         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117184         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117185         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117186         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117187         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117189         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117190         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117191         changed.  But support the old name if the new one is not defined
117192         and if _REGEX_SOURCE.
117194         Change the following member names in struct re_pattern_buffer.
117195         The old names are still supported if !_REGEX_SOURCE.
117196         The new names are always supported, regardless of _REGEX_SOURCE.
117197         (re_buffer): Renamed from buffer.
117198         (re_allocated): Renamed from allocated.
117199         (re_used): Renamed from used.
117200         (re_syntax): Renamed from syntax.
117201         (re_fastmap): Renamed from fastmap.
117202         (re_translate): Renamed from translate.
117203         (re_can_be_null): Renamed from can_be_null.
117204         (re_regs_allocated): Renamed from regs_allocated.
117205         (re_fastmap_accurate): Renamed from fastmap_accurate.
117206         (re_no_sub): Renamed from no_sub.
117207         (re_not_bol): Renamed from not_bol.
117208         (re_not_eol): Renamed from not_eol.
117209         (re_newline_anchor): Renamed from newline_anchor.
117211         Change the following member names in struct re_registers.
117212         The old names are still supported if !_REGEX_SOURCE.
117213         The new names are always supported, regardless of _REGEX_SOURCE.
117214         (rm_num_regs): Renamed from num_regs.
117215         (rm_start): Renamed from start.
117216         (rm_end): Renamed from end.
117218         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117219         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117220         Prepend __ to parameter names.
117222         Undo yesterday's changes.
117224 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117226         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117227         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117228         lib/regex.c.
117230 2005-08-24  Jim Meyering  <jim@meyering.net>
117232         Sync from coreutils.
117233         * m4/fcntl-safer.m4: New file.
117235         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117236         and object files for this module.
117238 2005-08-24  Jim Meyering  <jim@meyering.net>
117240         Sync from coreutils.
117241         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117243 2005-08-24  Jim Meyering  <jim@meyering.net>
117245         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117246         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117248 2005-08-24  Jim Meyering  <jim@meyering.net>
117250         * modules/fcntl-safer: New module.
117251         * modules/fts (Depends-on): Add fcntl-safer.
117252         * MODULES.html.sh (File descriptor based Input/Output):
117253         Add fcntl-safer.
117255 2005-08-24  Bruno Haible  <bruno@clisp.org>
117257         Support for unit test modules.
117258         * modules/README: Mention tests modules.
117259         * modules/TEMPLATE-TESTS: New file.
117260         * gnulib-tool: New options --extract-tests-module, --with-tests and
117261         --tests-base (unused for the moment).
117262         (testsbase, inctests): New variables.
117263         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117264         (func_verify_module): Exclude TEMPLATE-TESTS.
117265         (func_verify_nontests_module, func_verify_tests_module): New functions.
117266         (func_get_dependencies): Add implicit dependency for tests modules.
117267         (func_get_tests_module): New function.
117268         (func_modules_transitive_closure): When --with-tests was specified,
117269         include the unit tests as well, unless explicitly avoided.
117270         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117271         (func_emit_tests_Makefile_am): New function.
117272         (func_create_testdir): When --with-tests was specified, emit a
117273         tests/ directory.
117274         * MODULES.html.sh (Future developments): Update.
117276 2005-08-24  Bruno Haible  <bruno@clisp.org>
117278         * modules/tls-tests: New file.
117279         * tests/test-tls.c: New file, from GNU gettext.
117281 2005-08-24  Bruno Haible  <bruno@clisp.org>
117283         * modules/lock-tests: New file.
117284         * tests/test-lock.c: New file, from GNU gettext.
117286 2005-08-24  Bruno Haible  <bruno@clisp.org>
117288         * lib/lock.h: Add multiple inclusion guard.
117289         * lib/tls.h: Add multiple inclusion guard.
117291 2005-08-24  Bruno Haible  <bruno@clisp.org>
117293         * gnulib-tool: Add support for the --aux-dir option to
117294         --create-testdir, --create-megatestdir, --test, --megatest.
117295         (func_create_testdir, func_create_megatestdir): Optionally emit a
117296         AC_CONFIG_AUX_DIR directive.
117297         (create-testdir, create-megatestdir, test, megatest): Provide a
117298         default value for $auxdir.
117300 2005-08-24  Bruno Haible  <bruno@clisp.org>
117302         * gnulib-tool (import): Use compound statement instead of subshell
117303         where possible.
117305 2005-08-24  Bruno Haible  <bruno@clisp.org>
117307         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117309 2005-08-24  Bruno Haible  <bruno@clisp.org>
117311         * gnulib-tool (func_version): Update.
117313 2005-08-24  Bruno Haible  <bruno@clisp.org>
117315         * gnulib-tool (func_import, func_create_testdir,
117316         func_create_megatestdir): Quote all autoconf macro arguments.
117318 2005-08-24  Bruno Haible  <bruno@clisp.org>
117320         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117321         option --force, because --force causes the aclocal.m4 of each
117322         subdirectory to be newer than the corresponding config.h.in.
117324 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117326         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117327         All contents moved to gl_REGEX.
117328         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117329         assume that it does.
117331 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117333         * lib/regex.h (REG_NOSYS)
117334         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117335         Define, since POSIX requires it as of 2001.
117336         (_REG_ENOSYS)
117337         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117338         New private symbol, used to keep the enum signed in all cases.
117339         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117340         Youngman in
117341         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117343         * lib/regex_internal.c (re_string_skip_chars, register_state):
117344         (calc_state_hash):
117345         Remove forward decls; no longer needed now that we use prototypes.
117346         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117347         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117348         (clean_state_log_if_needed): Likewise.
117350 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117352         * config/srclist.txt: Add glibc bugs 1231-1233.
117354 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117356         Fix problems reported by Sam Steingold in
117357         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117358         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117359         assumed that reg_errcode_t is a signed type, which is not
117360         necessarily true if _XOPEN_SOURCE is not defined.
117361         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117362         since some compilers warn about it otherwise.
117364 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117366         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117367         (init_word_char, create_initial_state, duplicate_node_closure):
117368         (fetch_token, peek_token_bracket, build_range_exp):
117369         (build_collating_symbol): Remove forward decls; no longer needed
117370         now that we use prototypes.
117372         * lib/regcomp.c:
117373         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117374         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117375         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117376         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117377         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117378         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117379         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117380         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117381         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117382         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117383         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117384         (build_charclass, build_charclass_op, fetch_number, create_tree):
117385         (create_token_tree, mark_opt_subexp, duplicate_tree):
117386         Use prototypes rather than old-style definitions.
117388         * lib/regex_internal.c:
117389         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117390         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117391         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117392         (re_string_reconstruct, re_string_peek_byte_case):
117393         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117394         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117395         (re_node_set_init_copy, re_node_set_add_intersect):
117396         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117397         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117398         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117399         (re_acquire_state, re_acquire_state_context, register_state):
117400         (create_ci_newstate, create_cd_newstate, free_state):
117401         Likewise.
117402         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117403         re_search_2):
117404         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117405         (re_search_internal, prune_impossible_nodes):
117406         (acquire_init_state_context, check_matching, static):
117407         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117408         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117409         (update_regs, sift_states_backward, build_sifted_states):
117410         (clean_state_log_if_needed, merge_state_array):
117411         (update_cur_sifted_state, add_epsilon_src_nodes):
117412         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
117413         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
117414         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
117415         (find_recover_state, check_subexp_matching_top, transit_state_mb):
117416         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
117417         (check_arrival, check_arrival_add_next_nodes):
117418         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117419         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117420         (check_node_accept_bytes, check_node_accept, extend_buffers):
117421         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
117422         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
117423         (sift_ctx_init):
117424         Likewise.
117426         * lib/regex_internal.h:
117427         (re_string_allocate, re_string_construct, re_string_reconstruct):
117428         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
117429         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
117430         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
117431         (re_string_context_at, re_string_peek_byte_case):
117432         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
117433         is defined, since we now use prototypes always.
117435         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
117436         C89 or better.  All uses removed.
117438 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117440         * config/srclist.txt: Add glibc bugs 1220-1227.
117442 2005-08-20  Jim Meyering  <jim@meyering.net>
117444         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117445         of unused local, dfa.
117447 2005-08-20  Bruno Haible  <bruno@clisp.org>
117449         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117451 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117453         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117454         (re_node_set_insert_last, re_dfa_add_node):
117455         Rename local variables to avoid GCC shadowing warnings.
117457 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117459         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117460         [defined lint]: Suppress bogus uninitialized-variable warnings.
117462         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117463         and let the caller return REG_ESPACE if out of space.  This
117464         removes an uninitialied-variable warning with GCC 4.0.1, and also
117465         avoids taking the address of a local variable.  All callers
117466         changed.
117468 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117470         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117471         $LIBCSRC/posix/regexec.c.
117472         Add glibc bug 1217 for regcomp.c.
117474 2005-08-19  Jim Meyering  <jim@meyering.net>
117476         * lib/regexec.c (proceed_next_node): Redo local variables to
117477         avoid GCC shadowing warnings.
117479 2005-08-18  Bruno Haible  <bruno@clisp.org>
117481         * lib/strstr.c (strstr): Fix return value in multibyte case.
117482         * lib/strcasestr.c (strcasestr): Likewise.
117484 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117486         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117488 2005-08-17  Jim Meyering  <jim@meyering.net>
117490         Make the %s format (seconds since the epoch) work for a negative
117491         number and when used with a zero-padded field width, e.g. %015s.
117493         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117494         label so that it precedes the code to set `digits'.  Otherwise,
117495         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117496         print `00-22'.  Now, it prints `-0022', as it should.
117498 2005-08-17  Bruno Haible  <bruno@clisp.org>
117500         * modules/strstr (Files): Add m4/mbrtowc.m4.
117501         (Depends-on): Add mbuiter.
117503 2005-08-17  Bruno Haible  <bruno@clisp.org>
117505         * modules/strcasestr: New file.
117506         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117507         strcasestr.
117509 2005-08-17  Bruno Haible  <bruno@clisp.org>
117511         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117513 2005-08-17  Bruno Haible  <bruno@clisp.org>
117515         * modules/mbuiter: New file.
117516         * MODULES.html.sh (Extended multibyte and wide character utilities):
117517         Add mbuiter.
117519 2005-08-17  Bruno Haible  <bruno@clisp.org>
117521         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117522         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117524 2005-08-17  Bruno Haible  <bruno@clisp.org>
117526         * m4/strcasestr.m4: New file.
117528 2005-08-17  Bruno Haible  <bruno@clisp.org>
117530         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117531         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117533 2005-08-17  Bruno Haible  <bruno@clisp.org>
117535         * lib/strcasestr.h: New file.
117536         * lib/strcasestr.c: New file.
117538 2005-08-17  Bruno Haible  <bruno@clisp.org>
117540         * lib/strcasecmp.c: Use mbuiter.h.
117542 2005-08-17  Bruno Haible  <bruno@clisp.org>
117544         * lib/mbuiter.h: New file.
117546 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117549         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117550         and gl_GETOPT are both invoked via different paths (as happens
117551         with GNU tar CVS because it uses both argp and getopt), the former
117552         wins.
117554 2005-08-16  Bruno Haible  <bruno@clisp.org>
117556         * modules/tls: New file.
117557         * MODULES.html.sh (Multithreading): Add tls.
117559 2005-08-16  Bruno Haible  <bruno@clisp.org>
117561         * modules/strnlen1: New file.
117562         * MODULES.html.sh (String handling): Add strnlen1.
117564 2005-08-16  Bruno Haible  <bruno@clisp.org>
117566         * modules/strcase (Files): Add m4/mbrtowc.m4.
117567         (Depends-on): Add strnlen1, mbchar.
117569 2005-08-16  Bruno Haible  <bruno@clisp.org>
117571         * modules/mbiter: New file.
117572         * MODULES.html.sh (Extended multibyte and wide character utilities):
117573         Add mbiter.
117575 2005-08-16  Bruno Haible  <bruno@clisp.org>
117577         * modules/mbfile: New file.
117578         * MODULES.html.sh (Extended multibyte and wide character utilities):
117579         Add mbfile.
117581 2005-08-16  Bruno Haible  <bruno@clisp.org>
117583         * modules/mbchar: New file.
117584         * MODULES.html.sh (Extended multibyte and wide character utilities):
117585         New section.
117587 2005-08-16  Bruno Haible  <bruno@clisp.org>
117589         * m4/tls.m4: New file, from GNU gettext.
117591 2005-08-16  Bruno Haible  <bruno@clisp.org>
117593         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117594         always.
117595         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117597 2005-08-16  Bruno Haible  <bruno@clisp.org>
117599         * m4/mbiter.m4: New file.
117601 2005-08-16  Bruno Haible  <bruno@clisp.org>
117603         * m4/mbfile.m4: New file.
117605 2005-08-16  Bruno Haible  <bruno@clisp.org>
117607         * m4/mbchar.m4: New file.
117609 2005-08-16  Bruno Haible  <bruno@clisp.org>
117611         * lib/tls.h: New file, from GNU gettext.
117612         * lib/tls.c: New file, from GNU gettext.
117614 2005-08-16  Bruno Haible  <bruno@clisp.org>
117616         * lib/strnlen1.h: New file.
117617         * lib/strnlen1.c: New file.
117619 2005-08-16  Bruno Haible  <bruno@clisp.org>
117621         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117622         (mbi_init): Update.
117623         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117624         NUL byte, not after it.
117626 2005-08-16  Bruno Haible  <bruno@clisp.org>
117628         * lib/strcase.h (strcasecmp): Add note in comments.
117629         * lib/strncasecmp.c: Use code from strcasecmp.c.
117630         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117631         (strcasecmp): Work correctly in multibyte locales.
117633 2005-08-16  Bruno Haible  <bruno@clisp.org>
117635         * lib/mbiter.h: New file.
117637 2005-08-16  Bruno Haible  <bruno@clisp.org>
117639         * lib/mbfile.h: New file.
117641 2005-08-16  Bruno Haible  <bruno@clisp.org>
117643         * lib/mbchar.h: New file.
117644         * lib/mbchar.c: New file.
117646 2005-08-16  Bruno Haible  <bruno@clisp.org>
117648         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117649         the valid ones. Makes the comparison operations transitive:
117650         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117651         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117653 2005-08-15  Simon Josefsson  <jas@extundo.com>
117655         * modules/ssize_t (License): Change to 'unlimited'.
117657         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117659 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117661         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117662         Add comments for each pending glibc patch.
117664 2005-08-15  Bruno Haible  <bruno@clisp.org>
117666         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117667         __cplusplus is defined.
117669 2005-08-14  Jim Meyering  <jim@meyering.net>
117671         Sync from coreutils.
117673         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117674         Use the hash-table-based cycle-detection code not just when
117675         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117676         Reported by James Youngman in
117677         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117678         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117679         FTS_TIGHT_CYCLE_CHECK.
117680         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117681         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117682         once again.
117683         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117684         * lib/fts.c (fd_safer): Remove decl.
117685         Include fcntl--.h rather than unistd-safer.h
117686         (fts_safe_changedir): Don't call fd_safer; no longer needed
117687         now that we include fcntl--.h.
117689 2005-08-12  Simon Josefsson  <jas@extundo.com>
117691         * modules/getndelim2: Use ssize_t module.
117692         * modules/getnline: Likewise.
117693         * modules/safe-read: Likewise.
117694         * modules/xreadlink: Likewise.
117696         * modules/ssize_t: New file.
117698 2005-08-12  Simon Josefsson  <jas@extundo.com>
117700         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117702 2005-08-12  Simon Josefsson  <jas@extundo.com>
117704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117705         ssize_t.
117707 2005-08-12  Simon Josefsson  <jas@extundo.com>
117709         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117710         readline, getdelim and check_version.
117711         (Support for systems lacking ISO C 99: Sizes of integer types):
117712         Add size_max.
117714 2005-08-12  Bruno Haible  <bruno@clisp.org>
117716         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117718 2005-08-11  Simon Josefsson  <jas@extundo.com>
117720         * modules/readline: New file.
117722         * modules/strnlen (Files): Add strnlen.h.
117724 2005-08-11  Simon Josefsson  <jas@extundo.com>
117726         * m4/readline.m4: New file.
117728 2005-08-11  Simon Josefsson  <jas@extundo.com>
117730         * lib/readline.h, readline.c: New file.
117732 2005-08-11  Simon Josefsson  <jas@extundo.com>
117734         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117735         gl_AVOID.
117737 2005-08-11  Bruno Haible  <bruno@clisp.org>
117739         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117741 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117743         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117745 2005-08-10  Simon Josefsson  <jas@extundo.com>
117747         * tests/test-iconvme.c: New file.
117749 2005-08-10  Simon Josefsson  <jas@extundo.com>
117751         * m4/strnlen.m4: New file.
117753         * m4/strndup.m4: Don't check for strnlen declaration, done in
117754         strnlen.m4.
117756 2005-08-10  Simon Josefsson  <jas@extundo.com>
117758         * lib/strndup.c: Use strnlen.h.
117760         * lib/strnlen.h: New file.
117762 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117764         * README: Typos.
117766 2005-08-02  Simon Josefsson  <jas@extundo.com>
117768         * modules/readline: New file.
117770 2005-08-02  Simon Josefsson  <jas@extundo.com>
117772         * modules/getdelim: New file.
117774         * modules/getline: Rewrite, don't use getndelim2.
117776 2005-08-02  Simon Josefsson  <jas@extundo.com>
117778         * m4/getline.m4: Separate out getdelim stuff into separate module.
117780         * m4/getdelim.m4: New file.
117782 2005-08-02  Simon Josefsson  <jas@extundo.com>
117784         * lib/getline.h, getline.c: Rewrite.
117786         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117788 2005-07-31  Bruno Haible  <bruno@clisp.org>
117790         * lib/lock.h (gl_lock_initializer): New macro.
117791         (gl_lock_define_initialized): Use it.
117792         (gl_rwlock_initializer): New macro.
117793         (gl_rwlock_define_initialized): Use it.
117794         (gl_recursive_lock_initializer): New macro.
117795         (gl_recursive_lock_define_initialized): Use it.
117797 2005-07-30  Karl Berry  <karl@gnu.org>
117799         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117800         Report from Ben Pfaff, regarding getopt.
117802 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117804         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117805         normal way.
117806         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117807         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117808         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117809         (gl_GETOPT): Use the new macros.  Most of the implementation
117810         is moved to the new macros.  This is for programs like Emacs
117811         that don't want all the functionality of gl_GETOPT.
117813 2005-07-26  Bruno Haible  <bruno@clisp.org>
117815         * m4/lock.m4: Update from GNU gettext.
117817 2005-07-26  Bruno Haible  <bruno@clisp.org>
117819         * lib/lock.h: Update from GNU gettext.
117820         * lib/lock.c: Update from GNU gettext.
117822 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117824         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117825         obsolescent AC_TRY_RUN.  Include the default includes files, for
117826         'exit'.
117828 2005-07-24  Bruno Haible  <bruno@clisp.org>
117830         * modules/visibility: New file.
117831         * MODULES.html.sh (Misc): Add visibility.
117833 2005-07-24  Bruno Haible  <bruno@clisp.org>
117835         * m4/visibility.m4: New file.
117837 2005-07-24  Bruno Haible  <bruno@clisp.org>
117839         * doc/visibility.texi: New file.
117841 2005-07-22  Bruno Haible  <bruno@clisp.org>
117843         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117844         $(ALLOCA_H), redundant through BUILT_SOURCES.
117845         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117846         redundant through BUILT_SOURCES.
117847         * modules/byteswap (Makefile.am): Remove explicit dependency on
117848         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117849         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117850         $(FNMATCH_H), redundant through BUILT_SOURCES.
117851         * modules/getopt (Makefile.am): Remove explicit dependency on
117852         $(GETOPT_H), redundant through BUILT_SOURCES.
117853         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117854         redundant through BUILT_SOURCES.
117855         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117856         redundant through BUILT_SOURCES.
117857         * modules/stdbool (Makefile.am): Remove explicit dependency on
117858         $(STDBOOL_H), redundant through BUILT_SOURCES.
117859         * modules/stdint (Makefile.am): Remove explicit dependency on
117860         $(STDINT_H), redundant through BUILT_SOURCES.
117861         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117862         Remove explicit dependency on $(SYSEXITS_H).
117863         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117865 2005-07-18  Simon Josefsson  <jas@extundo.com>
117867         * lib/check-version.c (check_version): Accept identical versions too.
117869 2005-07-18  Bruno Haible  <bruno@clisp.org>
117871         * modules/lock: New file.
117872         * MODULES.html.sh (Multithreading): New section.
117874 2005-07-18  Bruno Haible  <bruno@clisp.org>
117876         * m4/lock.m4: New file, from GNU gettext.
117878 2005-07-18  Bruno Haible  <bruno@clisp.org>
117880         * lib/lock.h: New file, from GNU gettext.
117881         * lib/lock.c: New file, from GNU gettext.
117883 2005-07-18  Bruno Haible  <bruno@clisp.org>
117885         * lib/lock.h (gl_once_t): New type.
117886         (gl_once_define, gl_once): New macros.
117887         * lib/lock.c (fresh_once): New variable.
117888         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117889         functions.
117891 2005-07-16  Simon Josefsson  <jas@extundo.com>
117893         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117894         workaround, suggested by Bruno.
117896 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117898         * modules/xalloc (Depends-on): Add xalloc-die.
117899         * modules/xvasprintf (Depends-on): Add xalloc-die.
117901 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117903         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117904         with a minor change.
117906 2005-07-15  Bruno Haible  <bruno@clisp.org>
117908         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117909         When using lib/poll.c, define poll as rpl_poll.
117911 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117913         * modules/argp (Depends-on): Remove unlocked-io.
117915 2005-07-14  Derek Price  <derek@ximbiot.com>
117917         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117918         for glob symlink bug.
117920 2005-07-14  Bruno Haible  <bruno@clisp.org>
117922         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117923         Instead, test for *_unlocked function declarations directly.
117925 2005-07-11  Simon Josefsson  <jas@extundo.com>
117927         * modules/size_max: New file.
117929         * modules/xsize: Depend on size_max module for size_max.m4.
117931 2005-07-11  Simon Josefsson  <jas@extundo.com>
117933         * lib/size_max.h: New file.
117935 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117937         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117938         copyright symbol and the year.
117939         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117940         (version_etc_va): Use parameterized copyright notice.
117941         Reword to conform to the current GNU coding standards.
117943 2005-07-11  Karl Berry  <karl@gnu.org>
117945         * doc/gnulib.texi (Quoting): new node.
117946         (Initial import): more info, from Patrice.
117948 2005-07-11  Bruno Haible  <bruno@clisp.org>
117950         * gnulib-tool (func_usage): Document option --avoid.
117951         (Command line options): Handle --avoid.
117952         (func_acceptable): New function.
117953         (func_modules_transitive_closure): Use it.
117955 2005-07-11  Bruno Haible  <bruno@clisp.org>
117957         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117958         Reported by Jim Meyering.
117960 2005-07-10  Bruno Haible  <bruno@clisp.org>
117962         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117963         Needed when size_t is smaller than 'unsigned int'.
117964         Reported by Paul Eggert.
117966 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117968         * modules/argp (Depends-on): Add unlocked-io
117970 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117972         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117973         block of defines.
117975 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117977         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117978         fix now.
117980 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117981         and Paul Eggert  <eggert@cs.ucla.edu>
117983         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117984         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117986 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117988         * modules/regex (Files): Add lib/regex_internal.c,
117989         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117990         (Depends-on): Add extensions.
117991         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117993 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117995         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117996         pathconf.
117997         * m4/same.m4 (gl_SAME): Likewise.
117998         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118000         * m4/regex.m4: Adjust to new libc regex implementation.
118001         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118002         all the .c and .h parts of (the new) regex.
118003         Quote the m4 stuff better.
118004         Check for RE_ICASE bug of old gnulib.
118005         Check for REG_STARTEND of recent libc.
118006         Rename local variables from jm_* to gl_*.
118007         Quote operand of "test -f".
118008         Say "recent enough" version of libc, not "version 2".
118009         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118010         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118011         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118012         Remove check for btowc, isascii.
118013         Require AM_LANGINFO_CODESET.
118015 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118017         * lib/regex.c, regex.h: Sync from libc.
118018         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118019         * lib/regexec.c:
118020         New files, synced from libc, except that regex_internal.h
118021         currently has a small porting fix.
118023 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118025         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118026         regex_internal.c, regexec.c.
118027         Add regex_internal.h too, but as a comment, since the libc version
118028         is currently broken in gnulib mode.
118030 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118032         Support programs like Emacs that use gnulib but not gettext.
118033         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118034         * modules/gettext-h: New file.
118035         * modules/gettext (Files): Remove lib/gettext.h.
118036         (Depends-on): Add gettext-h.
118037         (Makefile.am): Remove lib_SOURCES.
118038         * modules/argmatch, modules/c-stack, modules/closeout:
118039         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118040         * modules/execute, modules/file-type, modules/getaddrinfo:
118041         * modules/getopt, modules/human, modules/javacomp:
118042         * modules/javaexec, modules/mkdir-p, modules/obstack:
118043         * modules/openat, modules/pagealign_alloc, modules/pipe:
118044         * modules/quotearg, modules/regex, modules/rpmatch:
118045         * modules/unicodeio, modules/userspec, modules/version-etc:
118046         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118047         * modules/xsetenv:
118048         Depend on gettext-h, not gettext.
118050 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118052         * gnulib-tool (func_import): Add support for 'public domain' license.
118053         * modules/alloca, modules/atexit, modules/memmove:
118054         Now public domain, not GPL.
118055         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118056         * modules/realloc, modules/strerror, modules/strtod:
118057         Now LGPL, not GPL.
118059 2005-07-05  Bruno Haible  <bruno@clisp.org>
118061         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118062         autoconf CVS. Needed for mingw.
118064 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118066         Remove the dependency of the strftime module on the tzset module.
118067         * modules/strftime (Depends-on): Remove dependency on tzset.
118069 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118071         Remove the dependency of the strftime module on the tzset module.
118072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118073         gl_FUNC_TZSET_CLOBBER.
118075 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118077         Remove the dependency of the strftime module on the tzset module.
118078         * lib/strftime.c (my_strftime)
118079         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118080         Copy the input structure, to work around some of the bug with
118081         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118082         Solaris releases, you should also use the tzset module, but we won't
118083         require it as a dependency any more since we don't want LGPLed code
118084         to depend on GPLed code.
118086 2005-07-02  Jim Meyering  <jim@meyering.net>
118088         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118089         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118090         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118091         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118093 2005-07-02  Jim Meyering  <jim@meyering.net>
118095         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118097 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118099         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118100         declares only 'struct timespec;' (!).
118102 2005-07-01  Jim Meyering  <jim@meyering.net>
118104         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118105         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118106         * lib/save-cwd.c, tempname.c:
118107         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118108         and don't include <sys/file.h>).
118110 2005-06-29  Jim Meyering  <jim@meyering.net>
118112         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118113         type name.  Use the variable name instead.
118114         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118115         Likewise.
118117 2005-06-28  Simon Josefsson  <jas@extundo.com>
118119         * modules/check-version (Files): Add check-version.m4.
118121 2005-06-28  Simon Josefsson  <jas@extundo.com>
118123         * m4/check-version.m4: New file, suggested by Jim Meyering
118124         <jim@meyering.net>.
118126 2005-06-28  Simon Josefsson  <jas@extundo.com>
118128         * lib/check-version.h, lib/check-version.c: New files.
118130 2005-06-28  Simon Josefsson  <jas@extundo.com>
118132         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118133         collision with global variable.  Better indentation.  Don't
118134         increment buffer pointer beyond buffer end.  Based on comments
118135         from Paul Eggert <eggert@cs.ucla.edu>.
118137         * lib/base64.h: Indent.
118139 2005-06-28  Simon Josefsson  <jas@extundo.com>
118141         * doc/gnulib.texi (Library version handling): New section.
118143 2005-06-28  Jim Meyering  <jim@meyering.net>
118145         * check-module (find_included_lib_files): Hard-code another
118146         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118147         but modules/fts-lgpl (correctly) does not list those files.
118149         * modules/canonicalize (Files): Add lib/pathmax.h.
118151 2005-06-25  Simon Josefsson  <jas@extundo.com>
118153         * modules/check-version: New file.
118155 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118157         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118158         initializer of struct addrinfo, as an indication that we don't
118159         care how many members the structure has.
118161 2005-06-24  Derek Price  <derek@ximbiot.com>
118162         and Bruno Haible  <bruno@clisp.org>
118164         Remove stat module & update lstat.
118165         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118166         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118167         * m4/stat.m4: Remove this file.
118169 2005-06-24  Derek Price  <derek@ximbiot.com>
118170         and Bruno Haible  <bruno@clisp.org>
118172         Remove stat module & update lstat.
118173         * lib/stat.c: Remove this file...
118174         (slash_aware_lstat): ...moving this content and its support...
118175         * lib/lstat.c (rpl_lstat): ...into here.
118176         * lib/lstat.h: New file.
118178 2005-06-24  Derek Price  <derek@ximbiot.com>
118179         and Bruno Haible  <bruno@clisp.org>
118181         Remove stat module & update lstat.
118182         * config/srclist.txt (libc sources): Remove stat.
118184 2005-06-24  Derek Price  <derek@ximbiot.com>
118185         and Bruno Haible  <bruno@clisp.org>
118187         Remove stat module & update lstat.
118188         * MODULES.html.sh (stat): Remove.
118189         * MODULES.html: Regenerated.
118190         * modules/lstat (Description): Correct function name.
118191         (Files): Add "lstat.h".
118192         (Depends-on): Remove stat, add xalloc, stat-macros.
118193         * modules/stat: Remove this file.
118194         (Include): Add "lstat.h", remove <sys/stat.h>.
118196 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118198         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118199         (ranged_convert): Don't save conversion in a temporary struct.
118200         This causes a warning with GCC 4.0.0, and anyway in the typical
118201         case it's not worth the extra 100 bytes or so of code.
118202         (ranged_convert, __mktime_internal): When calling a function via a
118203         pointer P, use P () rather than (*P) (), as we now assume C89 or
118204         better.
118206 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118208         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118209         "who -r" failed to give output.  Problem reported by Tim Waugh.
118211         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118212         (xcalloc): Use it to avoid needless tests.
118213         Problem reported by Jim Meyering.
118215 2005-06-20  Derek Price  <derek@ximbiot.com>
118217         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118218         unnecessary for Autoconfs > 2.59c.
118220 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118222         * lib/argp.h (__option_is_short): Check upper limit of
118223         __key. Isprint() requires its argument to have the value
118224         of an unsigned char or EOF.
118226 2005-06-16  Jim Meyering  <jim@meyering.net>
118228         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118229         when either N or S is zero.
118231 2005-06-16  Derek Price  <derek@ximbiot.com>
118233         * m4/bison.m4: Declare YACC & YFLAGS precious.
118235 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118237         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118238         multibyte string or pattern, fall back on unibyte matching.
118239         Problem reported by James Youngman.
118241 2005-06-08  Bruno Haible  <bruno@clisp.org>
118243         * modules/csharpcomp: New file.
118244         * MODULES.html.sh (C#): Add csharpcomp.
118246 2005-06-08  Bruno Haible  <bruno@clisp.org>
118248         * m4/csharpcomp.m4: New file, from GNU gettext.
118250 2005-06-08  Bruno Haible  <bruno@clisp.org>
118252         * lib/csharpcomp.h: New file, from GNU gettext.
118253         * lib/csharpcomp.c: New file, from GNU gettext.
118254         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118256 2005-06-08  Bruno Haible  <bruno@clisp.org>
118258         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118259         warning on mingw.
118261 2005-06-07  Derek Price  <derek@ximbiot.com>
118263         Sync from CVS.
118264         * lib/glob_.h: Indent nested #ifdef.
118266 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118268         Sync from coreutils.
118269         Use "file name" when talking about file names, instead of "filename"
118270         or "path", as per the GNU coding standards.
118271         * lib/mkdir-p.c: Renamed from makepath.c.
118272         (make_dir_parents): Renamed from make_path.  All callers changed.
118273         * lib/mkdir-p.h: Likewise.  All includers changed.
118274         * lib/filenamecat.c: Renamed from path-concat.c.
118275         (file_name_concat): Renamed from path_concat.  All callers changed.
118276         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118277         * lib/filenamecat.h: Likewise.  All includers changed.
118278         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118279         in comments or local variable names.
118280         * lib/basename.c: Likewise.
118281         * lib/canonicalize.c, canonicalize.h: Likewise.
118282         * lib/dirname.c, dirname.h: Likewise.
118283         * lib/euidaccess.c: Likewise.
118284         * lib/exclude.c: Likewise
118285         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118286         * lib/fsusage.c, fsuage.h: Likewise.
118287         * lib/fts.c, fts_.h: Likewise.
118288         * lib/getcwd.c: Likewise.
118289         * lib/getloadavg.c: Likewise.
118290         * lib/mkstemp.c: Likewise.
118291         * lib/mountlist.c, mountlist.h: Likewise.
118292         * lib/openat.c, openat.h: Likewise.
118293         * lib/readlink-stub.c: Likewise.
118294         * lib/readutmp.c, readutmp.h: Likewise.
118295         * lib/rename.c: Likewise.
118296         * lib/rmdir.c: Likewise.
118297         * lib/same.c: Likewise.
118298         * lib/savedir.c: Likewise.
118299         * lib/stripslash.c: Likewise.
118300         * lib/tempname.c: Likewise.
118301         * lib/xreadlink.c: Likewise.
118302         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118303         All uses changed.
118304         * lib/exclude.h: Likewise.
118306         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118307         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118308         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118309         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118310         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118311         files have been getting away with it for years (MORE/BSD 4.3
118312         is extinct now).
118313         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118314         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118316         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118317         Define to 256, not 255, as per modern POSIX.
118319 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118321         Sync from coreutils.
118322         Use "file name" when talking about file names, instead of "filename"
118323         or "path", as per the GNU coding standards.
118324         * MODULES.html.sh: mkdir-p renamed from makepath.
118325         filenamecat renamed from path-concat.
118326         * modules/filenamecat: Renamed from modules/path-concat.
118327         (Files): filenamecat.h and filenamecat.c renamed from
118328         path-concat.h and path-concat.c.
118329         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118330         (Include): filenamecat.h, not path-concat.h.
118331         * modules/mkdir-p: Renamed from modules/makepath.
118332         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118333         makepath.c.
118334         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118335         (Include): mkdir-p.h, not makepath.h.
118337 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118339         Sync from coreutils.
118340         * m4/mkdir-p.m4: Renamed from makepath.m4.
118341         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118342         Rename files from makepath.c to mkdir-p.c, and from
118343         makepath.h to mkdir-p.h.
118344         * m4/filenamecat.m4: Renamed from path-concat.m4.
118345         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118346         Rename files from path-concat.c to filenamecat.c,
118347         and from path-concat.h to filenamecat.h.
118348         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118349         "file name" in local variables or comments.
118350         * m4/rename.m4: Likewise.
118352 2005-06-01  Bruno Haible  <bruno@clisp.org>
118354         * modules/csharpexec: New file.
118355         * MODULES.html.sh (C#): New section.
118357 2005-06-01  Bruno Haible  <bruno@clisp.org>
118359         * m4/csharp.m4: New file, from GNU gettext.
118360         * m4/csharpexec.m4: New file, from GNU gettext.
118362 2005-06-01  Bruno Haible  <bruno@clisp.org>
118364         * lib/csharpexec.h: New file, from GNU gettext.
118365         * lib/csharpexec.c: New file, from GNU gettext.
118366         * lib/csharpexec.sh.in: New file, from GNU gettext.
118368 2005-05-31  Derek Price  <derek@ximbiot.com>
118369             Paul Eggert  <eggert@cs.ucla.edu>
118371         Sync from cvs.
118372         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118374 2005-05-31  Derek Price  <derek@ximbiot.com>
118375             Paul Eggert  <eggert@cs.ucla.edu>
118377         Sync from cvs.
118378         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118380 2005-05-29  Derek Price  <derek@ximbiot.com>
118382         * config/srclist.txt (glob_.h, glob.c): Add these files.
118384 2005-05-29  Derek Price  <derek@ximbiot.com>
118386         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118387         * modules/glob: New file.
118388         * modules/getlogin_r: Add link to POSIX spec in description.
118390 2005-05-29  Derek Price  <derek@ximbiot.com>
118391             Paul Eggert  <eggert@cs.ucla.edu>
118393         * m4/glob.m4: New file.
118395 2005-05-29  Derek Price  <derek@ximbiot.com>
118396             Paul Eggert  <eggert@cs.ucla.edu>
118398         * lib/glob_.h, lib/glob.c: New files.
118400 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118402         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118403         * modules/fts-lgpl (Depends-on): Remove gettext.
118405 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118407         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118408         and don't require gt_INTTYPES_PRI.
118410 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118412         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
118414         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
118415         the configuration hassle isn't worth it.
118416         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
118417         (LONGEST_MODIFIER, PRIuMAX): Remove.
118419 2005-05-27  Bruno Haible  <bruno@clisp.org>
118421         * lib/getlogin_r.h: Remove second include of <stddef.h>.
118423 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
118425         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
118426         _POSIX_PTHREAD_SEMANTICS for Solaris.
118428 2005-05-25  Derek Price  <derek@ximbiot.com>
118430         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
118432 2005-05-25  Derek Price  <derek@ximbiot.com>
118433             Paul Eggert  <eggert@cs.ucla.edu>
118435         * modules/getlogin_r, m4/getlogin_r.m4: New files.
118436         * lib/getlogin_r.c, getlogin_r.h: New files.
118438 2005-05-25  Bruno Haible  <bruno@clisp.org>
118439             Derek Price  <derek@ximbiot.com>
118441         * lib/getlogin_r.h: Simplify API documentation.
118443 2005-05-23  Derek Price  <derek@ximbiot.com>
118445         * modules/minmax (Files): Add m4/minmax.m4.
118446         (configure.ac): Add gl_MINMAX.
118448 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118450         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118451         so that unistd-safer.h (GPL'ed code) need not be included.
118453 2005-05-22  Bruno Haible  <bruno@clisp.org>
118455         * m4/minmax.m4: New file.
118456         Based on a patch by Derek Price <derek@ximbiot.com>.
118458 2005-05-22  Bruno Haible  <bruno@clisp.org>
118460         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118461         (INT64_MIN): Fix definition.
118462         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118464         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118465         NEED_SIGNED_INT_TYPES.
118467         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118468         HAVE_SYSTEM_INTTYPES.
118470 2005-05-22  Bruno Haible  <bruno@clisp.org>
118472         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118473         Also include <sys/param.h> if it defines MIN, MAX.
118474         Based on a patch by Derek Price <derek@ximbiot.com>.
118476 2005-05-21  Jim Meyering  <jim@meyering.net>
118478         * modules/fts (Files): Add m4/inttypes-pri.m4.
118479         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118481 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118483         New fts module.
118484         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118485         (setup_dir, free_dir): New functions.
118486         (enter_dir, leave_dir): Define trivial
118487         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118488         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118489         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118490         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118491         Move to fts-cycle.c.
118492         (fts_open): Use setup_dir.
118493         (fts_close): Use free_dir.
118494         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118495         This adds a label and some gotos, but the alternatives were messier.
118496         Check for memory allocation failure when entering a dir.
118497         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118498         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118499         (FTS): New member fts_cycle, that is a union that contains the
118500         old active_dir_ht and cycle_state.  All uses changed to mention
118501         fts_cycle.ht and fts_cycle.state.
118502         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118503         fts.c, with the following changes:
118504         (setup_dir, free_dir): New functions.
118505         (enter_dir): Now returns bool.  Return true if successful, false
118506         if memory exhausted.  All callers changed.
118507         Do not bother partly cleaning up on
118508         memory allocation failure; that is free_dir's job.
118509         However, free ad if hash_insert fails, to avoid memory leak.
118510         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118511         fts->fts_options to see which union member to use.
118513 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118516         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118518 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118520         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118522 2005-05-20  Jim Meyering  <jim@meyering.net>
118524         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118525         Now a macro, to pacify GCC.
118527 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118529         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118530         of -1.
118532 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118534         * lib/chown.c (rpl_chown): Return -1 on failure.
118536 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118538         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118539         Don't check for stddef.h.
118540         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118541         don't use its results.
118542         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118543         since we include them unconditionally.  Don't require
118544         AM_STDBOOL_H, since stdbool is a prerequisite.
118545         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118546         since we assume C89 or better.
118547         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118548         as we don't use their results.
118549         Don't check for fchdir, memmove, memset, strrchr, as we use
118550         them unconditionally.
118551         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118552         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118554 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118556         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118557         Include <stddef.h> unconditionally, since we assume C89 now.
118558         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118559         * lib/fts.c: Include fts_.h first, to check interface.
118560         Do not include intprops.h; no longer needed.
118561         Include cycle-check.h and hash.h, since fts_.h no longer does.
118562         Remove unnecessary casts of closedir to void.
118563         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118564         decide whether to decrement nlinks.
118565         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118566         (FTS): Use struct hash_table * instead of Hash_table, so that
118567         we no longer need to include hash.h here.
118569 2005-05-18  Jim Meyering  <jim@meyering.net>
118571         * modules/dirfd (License): Change to LGPL.  Most of the code
118572         is already in the public domain.
118574 2005-05-18  Jim Meyering  <jim@meyering.net>
118576         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118577         Reported by Yoann Vandoorselaere.
118579 2005-05-17  Jim Meyering  <jim@meyering.net>
118581         * m4/fts.m4: New file, from coreutils.
118583 2005-05-17  Jim Meyering  <jim@meyering.net>
118585         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118587 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118589         Sync from coreutils.
118590         * m4/unlinkdir.m4: New file.
118592 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118594         Sync from coreutils.
118595         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118596         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118597         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118598         White space changes only.
118599         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118600         special.
118601         * lib/yesno.c: Include getline.h, not ctype.h.
118602         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118603         Use getline to remove arbitrary restriction on response length.
118605 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118607         * config/srclist-update: Spell out "Street" in FSF postal
118608         mail address; this is the style the FSF seems to prefer.
118610         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118611         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118612         this updates FSF postal mail address.
118614         Sync from coreutils.
118615         * modules/unlinkdir: New file.
118616         * modules/yesno (Depends-on): Add getline.
118617         * MODULES.html.sh (File system functions): Add unlinkdir.
118619 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118621         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118622         lib/strsep.h:
118623         Change the initial comment to refer to GPL, not LGPL.
118624         gnulib-tool will change it to LGPL as needed.
118626         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118627         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118628         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118629         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118630         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118631         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118632         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118633         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118634         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118635         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118636         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118637         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118638         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118639         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118640         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118641         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118642         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118643         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118644         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118645         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118646         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118647         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118648         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118649         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118650         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118651         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118652         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118653         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118654         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118655         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118656         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118657         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118658         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118659         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118660         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118661         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118662         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118663         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118664         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118665         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118666         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118667         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118668         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118669         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118670         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118671         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118672         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118673         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118674         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118675         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118676         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118677         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118678         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118679         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118680         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118681         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118682         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118683         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118684         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118685         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118686         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118687         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118688         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118689         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118690         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118691         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118692         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118693         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118694         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118695         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118696         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118697         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118698         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118699         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118700         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118701         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118702         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118703         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118704         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118705         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118706         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118707         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118708         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118709         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118710         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118711         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118712         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118713         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118714         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118715         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118716         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118717         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118718         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118719         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118720         lib/yesno.c, lib/yesno.h:
118721         Update FSF postal mail address.
118723 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118725         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118726         tests/test-memmem.c, tests/test-stpncpy.c:
118727         Update FSF postal mail address.
118729 2005-05-13  Bruno Haible  <bruno@clisp.org>
118731         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118732         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118733         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118734         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118735         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118736         Add support for 64-bit integers in the MSVC compiler.
118738 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118740         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118742 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118744         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118746 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118748         * doc/getdate.texi (General date syntax): Don't say that date
118749         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118750         Problem reported by Nic Ferrier.
118752 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118754         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118755         specified in ai_socktype. Fix invalid ai_protocol
118756         check. ai_protocol is usually set to 0 or depending on
118757         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118758         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118759         ai_socktype / ai_protocol in the returned addrinfo structure.
118761 2005-05-10  Simon Josefsson  <jas@extundo.com>
118763         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118764         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118766 2005-05-10  Karl Berry  <karl@gnu.org>
118768         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118769         (from http://www.gnu.org/licenses).
118770         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118771         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118772         fdl.texi suffices.
118774 2005-05-10  Karl Berry  <karl@gnu.org>
118776         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118777         (COPYING.DOC): remove.
118779         * config/srclist-update: new FSF address.
118781 2005-05-10  Derek Price  <derek@ximbiot.com>
118783         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118784         possible.
118786 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118787             Bruno Haible  <bruno@clisp.org>
118789         * modules/inet_ntop: New file.
118790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118791         inet_ntop.
118793 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118794             Bruno Haible  <bruno@clisp.org>
118796         * m4/inet_ntop.m4: New file.
118798 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118799             Bruno Haible  <bruno@clisp.org>
118801         * lib/inet_ntop.h: New file.
118802         * lib/inet_ntop.c: New file, from glibc with modifications.
118804 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118806         * modules/time_r (License): Change to LGPL.
118807         * modules/extensions (License): Change to LGPL.  Actually,
118808         the license is more permissive than that, but currently gnulib-tool
118809         doesn't know how to handle more-permissive licenses.
118811         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118812         Problem reported by Dave Love.
118814 2005-05-08  Jim Meyering  <jim@meyering.net>
118816         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118817         blank.
118819 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118821         * modules/argmatch (Depends-on): Add stdbool.
118822         * modules/backupfile (Depends-on): Likewise.
118823         * modules/chdir-long (Depends-on): Likewise.
118824         * modules/closeout (Depends-on): Likewise.
118825         * modules/cycle-check (Depends-on): Likewise.
118826         * modules/dirname (Depends-on): Likewise.
118827         * modules/fnmatch (Depends-on): Likewise.
118828         * modules/fsusage (Depends-on): Likewise.
118829         * modules/fwriteerror (Depends-on): Likewise.
118830         * modules/getcwd (Depends-on): Likewise.
118831         * modules/getloadavg (Depends-on): Likewise.
118832         * modules/hard-locale (Depends-on): Likewise.
118833         * modules/makepath (Depends-on): Likewise.
118834         * modules/mountlist (Depends-on): Likewise.
118835         * modules/nanosleep (Depends-on): Likewise.
118836         * modules/posixtm (Depends-on): Likewise.
118837         * modules/quotearg (Depends-on): Likewise.
118838         * modules/readtokens (Depends-on): Likewise.
118839         * modules/readtokens0 (Depends-on): Likewise.
118840         * modules/readutmp (Depends-on): Likewise.
118841         * modules/save-cwd (Depends-on): Likewise.
118842         * modules/strftime (Depends-on): Likewise.
118843         * modules/userspec (Depends-on): Likewise.
118844         * modules/utimecmp (Depends-on): Likewise.
118845         * modules/xgetcwd (Depends-on): Likewise.
118846         * modules/xnanosleep (Depends-on): Likewise.
118847         * modules/xstrtod (Depends-on): Likewise.
118848         * modules/yesno (Depends-on): Likewise.
118850 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118852         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118853         needless checks.
118855 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118857         Merge from coreutils.  Among other things,
118858         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118859         * lib/fd-safer.c: New file.
118860         * lib/fcntl-safer.h, open-safer.c: Remove.
118861         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118862         * lib/dup-safer.c: Include unistd-safer.h first.
118863         Don't include errno.h.
118864         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118865         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118866         * lib/file-type.c: Rely on file-type.h change.
118867         * lib/getloadavg.c: Include unistd-safer.h.
118868         (getloadavg): Use safer open.
118869         * lib/getusershell.c: Include "stdio-safer.h".
118870         (getusershell): Use safer fopen.
118871         * lib/long-options.c (long_options): Use NULL rather than 0.
118872         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118873         'free'.
118874         * lib/modechange.c: Likewise.
118875         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118876         (MODE_DONE): New constant.
118877         (struct mode_change): Remove 'next' member.
118878         (make_node_op_equals): New function; like the old one of the
118879         same name, except it allocates an array.
118880         (mode_compile, mode_create_from_ref): Use it.
118881         (mode_compile): Allocate result as an array, not a linked list.
118882         Parse octal string ourself, so that we catch mistakes like "+0".
118883         (mode_adjust): Arg is an array, not a linked list.
118884         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118885         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118886         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118887         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118888         Remove.  This is now stat-macros.h's job.
118889         (talloc): Remove.  All callers replaced by xalloc, so that
118890         our invokers don't have to worry about reporting memory failures.
118891         (make_node_op_equals): Remove.
118892         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118893         New constants.
118894         (struct mode_change): Moved here from modechange.h.
118895         (mode_append_entry): Remove.
118896         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118897         apps to have incorrect behavior.  Use simpler algorithm for head
118898         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118899         Detect more invalid usages rather than having somewhat-random behavior.
118900         Don't insert an "a=" action, as that leads to incorrect behavior.
118901         (mode_compile, mode_create_from_ref): Return NULL on error instead
118902         of an enum, since now there's only one way to have an error.  All
118903         callers changed.
118904         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118905         at the correct time.  Simplify calculation of "+u" and its ilk.
118906         Don't mishandle "+X".
118907         (mode_free): Remove "register" and localize decls.
118908         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118909         (struct mode_change): Move to modechange.c; callers don't
118910         need to see this stuff.
118911         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118912         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118913         (mode_change, mode_adjust): Reflect the new signatures noted above.
118914         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118915         that might redefine system include files.
118916         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118917         (my_usleep): Use NULL rather than (void *) 0.
118918         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118919         Use siginterrupt to specify that system calls should be interrupted.
118920         (rpl_nanosleep): Move initialization of suspended closer to call of
118921         my_usleep.
118922         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118923         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118924         (desirable_utmp_entry): New function.
118925         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118926         using x2nrealloc, to simplify logic.
118927         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118928         size calculation.  Do not assume utmp file is a regular file.
118929         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118930         (READ_UTMP_CHECK_PIDS): New constant.
118931         * lib/save-cwd.c: Include unistd-safer.h.
118932         (save_cwd): Use fd_safer.
118933         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118934         [!_LIBC] Include "stat-macros.h" instead.
118935         * lib/unistd-safer.h (fd_safer): New decl.
118937 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118939         * modules/getloadavg (Depends-on): Add unistd-safer.
118940         * modules/getusershell (Depends-on): Add stdio-safer.
118941         * modules/lstat (Depends-on): Remove xalloc.
118942         * modules/mkstemp (Depends-on): Add stat-macros.
118943         * modules/modechange (Depends-on): Remove xstrtol.
118944         Add stat-macros, xalloc.
118945         * modules/save-cwd (Depends-on): Add unistd-safer.
118946         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118947         * modules/unistd-safer (Files): Add lib/fd-safer.c
118948         (Makefile.am): Remove lib_SOURCES.
118950         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118951         Remove fcntl-safer; unistd-safer supersedes it.
118953 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118955         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118956         AC_HEADER_STAT.
118957         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118958         (gl_PREREQ_CHOWN): Remove.
118959         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118960         it.  Don't require AC_HEADER_STAT.
118961         (gl_PREREQ_LSTAT): Remove.
118962         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118963         Don't require AC_HEADER_STAT.
118964         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118965         (gl_PREREQ_RMDIR): Remove.
118966         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118967         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118968         the stat-macros module a prerequisite.
118969         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118970         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118971         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118972         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118973         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118974         variable names.
118975         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118976         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118977         variable prefixes.
118978         * m4/fcntl-safer.m4: Remove.
118979         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118980         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118981         Invoke gl_PREREQ_FD_SAFER.
118982         (gl_PREREQ_FD_SAFER): New macro.
118983         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118984         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118985         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118986         Remove duplicate call to AC_LIBOBJ(readutmp).
118987         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118989         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118990         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118992 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118994         * MODULES.html.sh (Misc): Add byteswap.
118996 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118998         * modules/getcwd (Depends-on): Add extensions.
118999         * modules/openat (Depends-on): Likewise.
119001 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119003         * modules/byteswap: New file.
119005 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119007         * m4/byteswap.m4: New file.
119009 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119011         * lib/byteswap_.h: New file.
119013 2005-04-25  Karl Berry  <karl@gnu.org>
119015         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119017 2005-04-25  Albert Chin  <china@thewrittenword.com>
119019         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119020         Toolkit C bug.
119022 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119024         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119025         (func_ln_if_changed): Remove forcibly for no error message
119026         in case file does not exist.
119028 2005-04-19  Simon Josefsson  <jas@extundo.com>
119030         * gnulib-tool (Options): Make --symlink mean --symbolic.
119032 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119034         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119036 2005-04-16  Simon Josefsson  <jas@extundo.com>
119038         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119040 2005-04-15  Simon Josefsson  <jas@extundo.com>
119042         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119044 2005-04-15  Simon Josefsson  <jas@extundo.com>
119046         * gnulib-tool: Rename --symlink to --symbolic.
119048 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119050         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119051         symbolic links to files instead of copying/moving.  Add --aux-dir,
119052         specifying directory relative --dir where auxiliary build tools
119053         are placed.
119055 2005-04-14  Bruno Haible  <bruno@clisp.org>
119057         * modules/allocsa (License): Change to LGPL.
119058         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119060 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119062         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119063         that "UTC +1 second" continues to work.  Problem reported
119064         by Dmitry V. Levin.
119065         (relunit_snumber): New rule.
119066         (relunit): Use it.
119068 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119070         * lib/getdate.y (universal_time_zone_table): New constant.
119071         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119072         universal_time_zone_table.
119073         (lookup_zone): Prefer universal_time_zone_table to
119074         local_time_zone_table, so that "GMT" time stamps are allowed in
119075         London during the summer.  Problem reported by Ian Abbott.
119077 2005-04-12  Jim Meyering  <jim@meyering.net>
119079         * lib/human.c (humblock): Set *options even when returning due to
119080         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119081         warning from gcc-4.
119083 2005-04-09  Jim Meyering  <jim@meyering.net>
119085         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119086         -Wuninitialized: initialize tm0.tm_year.
119088 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119090         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119091         count, since there's no maximum.  All uses changed.
119092         Add member dsts_seen.
119093         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119094         not being INT_MAX.
119095         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119096         Use pc_rels_seen to decide whether a date is absolute.
119098         * lib/getdate.y (number): Don't overwrite year.
119099         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119100         check.
119102 2005-04-02  Simon Josefsson  <jas@extundo.com>
119104         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119105         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119107 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119109         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119110         where no absolute path name can be longer than PATH_MAX.
119112 2005-03-27  Jim Meyering  <jim@meyering.net>
119114         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119116 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119118         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119119         "one's complement" -> "ones' complement" in comment, as per Knuth.
119120         "value of type" -> "type or expression" in comment.
119121         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119123 2005-03-26  Jim Meyering  <jim@meyering.net>
119125         Comment nits.
119126         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119127         Correct typos: s/or/of/.
119129 2005-03-26  Jim Meyering  <jim@meyering.net>
119131         * modules/check-include-files: Move to ../ and rename to...
119132         * check-module: ...this.
119134 2005-03-25  Jim Meyering  <jim@meyering.net>
119136         * modules/xvasprintf (Files): Add xalloc.h.
119138 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119140         * modules/gettext (Files): config/config.rpath ->
119141         build-aux/config.rpath
119142         * modules/iconv (Files): Likewise.
119143         Problem reported by Oskar Liljeblad.
119145 2005-03-23  Jim Meyering  <jim@meyering.net>
119147         * modules/check-include-files: New script to check for
119148         missing dependencies, multiple includes, etc.
119150         * modules/c-strtold (Depends-on): Add xalloc.
119151         * modules/c-strtod (Depends-on): Add xalloc.
119152         * modules/hash (Depends-on): Add xalloc.
119153         (Files): Remove lib/xalloc.h.
119155         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119156         * modules/userspec (Files): Add lib/inttostr.h.
119158 2005-03-23  Jim Meyering  <jim@meyering.net>
119160         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119162 2005-03-22  Jim Meyering  <jim@meyering.net>
119164         * modules/stat-macros: New module.
119165         * modules/canonicalize, modules/euidaccess, modules/file-type,
119166         * modules/filemode, modules/lchown, modules/makepath,
119167         * modules/rmdir, modules/stat: Depend on new stat-macros module
119168         rather than listing lib/stat-macros.h manually.
119169         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119171 2005-03-22  Jim Meyering  <jim@meyering.net>
119173         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119175 2005-03-22  Bruno Haible  <bruno@clisp.org>
119177         * config/srclist.txt: Replace target directory 'config' with
119178         'build-aux'.
119179         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119180         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119181         ../build-aux/.
119183 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119185         * modules/chdir-long (Depends-on): Add mempcpy.
119187         * modules/acl, modules/backupfile, modules/c-strtod,
119188         modules/c-strtold, modules/canon-host, modules/canonicalize,
119189         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119190         modules/exclude, modules/exitfail, modules/file-type,
119191         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119192         modules/getdate, modules/getline, modules/getpagesize,
119193         modules/getpass, modules/getugroups, modules/group-member,
119194         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119195         modules/inttostr, modules/long-options, modules/makepath,
119196         modules/md5, modules/memcasecmp, modules/memcoll,
119197         modules/modechange, modules/mountlist, modules/path-concat,
119198         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119199         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119200         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119201         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119202         modules/strftime, modules/strndup, modules/strverscmp,
119203         modules/timespec, modules/unlocked-io, modules/userspec,
119204         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119205         modules/yesno:
119206         Remove lib_SOURCES line from Makefile.am section, as this is now
119207         done automatically by the corresponding Autoconf macro.
119209 2005-03-21  Jim Meyering  <jim@meyering.net>
119211         Changes imported from coreutils.
119213         * lib/cycle-check.c: Don't include xalloc.h.
119215         * lib/path-concat.c: Don't include assert.h.
119216         (path_concat): Remove assertion that would have triggered
119217         for ABASE starting with more than one slash.
119218         Reported by Andreas Schwab.
119220         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119221         properly when ABASE is an absolute file name.
119222         Correct the description of this function.
119223         Include <assert.h>.
119224         Add an assertion and a test driver.
119225         This fixes a bug introduced on 2004-07-02.
119226         Andreas Schwab reported the resulting failure of cp --parents:
119227         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119229 2005-03-21  Jim Meyering  <jim@meyering.net>
119231         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119232         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119234 2005-03-21  Jim Meyering  <jim@meyering.net>
119235         and  Paul Eggert  <eggert@cs.ucla.edu>
119237         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119238         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119239         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119240         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119241         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119242         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119243         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119244         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119245         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119246         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119247         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119248         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119249         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119250         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119251         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119252         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119253         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119254         for these modules.
119256 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119258         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119259         (which shouldn't happen), generate nothing instead of returning 0
119260         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119262 2005-03-16  Bruno Haible  <bruno@clisp.org>
119264         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119265         HAVE_LONGLONG_64BIT.
119267 2005-03-16  Bruno Haible  <bruno@clisp.org>
119269         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119270         HAVE_LONGLONG_64BIT.
119272 2005-03-16  Bruno Haible  <bruno@clisp.org>
119274         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119275         HAVE_LONGLONG_64BIT.
119277 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119279         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119280         reliably distinguish strftime failure from empty output on POSIX
119281         hosts.
119283 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119285         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119286         (iconv_string): Don't guess a size-zero buffer, as that might cause
119287         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119288         result would be 'too large', where 'too large' is (heuristically)
119289         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119290         overflow concerns.  This will prevent some unwanted malloc failures
119291         when the inputs are very large.
119293 2005-03-15  Karl Berry  <karl@gnu.org>
119295         * config/srclist.txt (config.rpath): from gettext.
119296         * config/config.rpath: update.
119298 2005-03-15  Bruno Haible  <bruno@clisp.org>
119300         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119301         to 'negate'.
119303         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119304         variable.
119306         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119307         results.
119309 2005-03-14  Simon Josefsson  <jas@extundo.com>
119311         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119312         <fx@gnu.org>.
119314 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119316         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119317         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119318         intprops.h.
119319         * lib/strtol.c: Likewise.
119321 2005-03-14  Jim Meyering  <jim@meyering.net>
119323         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119324         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119325         to be nonzero so that we (and caller) can detect the difference
119326         between a valid zero-length expansion and an error return, even
119327         when the underlying strftime fails before writing anything into
119328         that location.
119330 2005-03-14  Bruno Haible  <bruno@clisp.org>
119332         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119333         Update from GNU gettext 0.14.3.
119335 2005-03-10  Jim Meyering  <jim@meyering.net>
119337         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119339 2005-03-10  Jim Meyering  <jim@meyering.net>
119341         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119342         so that this module works on systems without fchdir.
119344 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119346         Factor int-properties macros into a single file, except for
119347         glibc-related files.
119348         * lib/intprops.h: New file.
119349         * lib/getloadavg.c: Include it instead of limits.h.
119350         (INT_STRLEN_BOUND): Remove.
119351         * lib/human.c: Include intprops.h.
119352         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119353         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119354         302/1000.
119355         * lib/inttostr.h: Include intprops.h instead of limits.h.
119356         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119357         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119358         for consistency with intprops.h.
119359         (time_t_is_integer, twos_complement_arithmetic): Use them.
119360         * lib/sig2str.h: Include <signal.h>, intprops.h.
119361         (INT_STRLEN_BOUND): Remove.
119362         * lib/strftime.c (TYPE_SIGNED): Remove.
119363         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119364         * lib/strtol.c: Adjust comments to match intprops.h.
119365         * lib/userspec.c: Include intprops.h.
119366         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119367         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119368         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119369         instead of rolling our own expressions.
119370         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119372         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119373         instead of int.
119374         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119375         the right thing even if adding 1900 would overflow.  Similarly
119376         for tm_mon + 1 and tm_yday + 1.
119377         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119378         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119379         (DO_SIGNED_NUMBER): New macro.
119380         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119382 2005-03-07  Bruno Haible  <bruno@clisp.org>
119384         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119386 2005-03-07  Bruno Haible  <bruno@clisp.org>
119388         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119390 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119392         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119393         (func_import): Only replace files via --import when they have actually
119394         changed.
119396 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119398         * m4/mmap-anon.m4: New file.
119399         * m4/pagealign_alloc.m4: New file.
119401 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119402             Bruno Haible  <bruno@clisp.org>
119404         * modules/pagealign_alloc: New file.
119405         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119407 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119408             Bruno Haible  <bruno@clisp.org>
119410         * lib/pagealign_alloc.h: New file.
119411         * lib/pagealign_alloc.c: New file.
119413 2005-03-03  Bruno Haible  <bruno@clisp.org>
119415         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
119416         Use an all-permissive copyright notice, recommended by RMS.
119418 2005-03-02  Bruno Haible  <bruno@clisp.org>
119420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
119421         of AIX, the replacement has to be done only after <string.h> is
119422         included, therefore not in config.h. stpncpy.h does the replacement,
119423         and stpncpy.c uses it.
119425 2005-03-02  Bruno Haible  <bruno@clisp.org>
119427         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
119428         stpncpy.c uses it.
119430 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119432         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
119433         The workaround isn't strictly needed for POSIX conformance, and
119434         it's too much of a pain to configure and maintain.  We'll ask
119435         people to fix their kernels instead.
119436         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
119437         (NANOSLEEP_BUG_WORKAROUND): Remove.
119438         (xnanosleep): Remove the workaround.
119440 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119442         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119443         Reported by Derek Price.
119444         (Include): Add "timespec.h".
119446         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119448 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119450         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119451         to detect nanosleep bug.
119453 2005-03-01  Bruno Haible  <bruno@clisp.org>
119455         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119457 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119459         * modules/gethrxtime: New file.
119460         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119461         (Depends-on): Add gethrxtime.
119462         (configure.ac): Add gl_XNANOSLEEP.
119463         (Makefile.am): Remove lib_SOURCES line.
119465 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119467         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119468         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119470 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119472         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119473         * lib/timespec.h (gettime): Return void, since it always
119474         succeeds now.  All uses changed.
119475         * lib/gettime.c (gettime): Likewise.
119476         [HAVE_NANOTIME]: Prefer nanotime.
119477         Assume gettimeofday succeeds, as POSIX requires.
119478         Assime time () succeeds, since other code already does.
119479         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119480         (timespec_subtract): Remove.
119481         (NANOSLEEP_BUG_WORKAROUND): New constant.
119482         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119483         things considerably.  Use it only on GNU/Linux hosts, since the
119484         workaround shouldn't be needed elsewhere.
119486 2005-02-24  Bruno Haible  <bruno@clisp.org>
119488         * modules/gettext (Files): Add m4/glibc2.m4.
119490 2005-02-24  Bruno Haible  <bruno@clisp.org>
119492         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119493         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119494         * m4/progtest.m4:
119495         Update from GNU gettext 0.14.2.
119496         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119498 2005-02-24  Bruno Haible  <bruno@clisp.org>
119500         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119501         * lib/config.charset: Update from GNU gettext 0.14.2.
119503 2005-02-24  Bruno Haible  <bruno@clisp.org>
119505         * lib/gettext.h: Update from GNU gettext 0.14.2.
119507 2005-02-23  Simon Josefsson  <jas@extundo.com>
119509         * m4/iconvme.m4: New file.
119511 2005-02-23  Jim Meyering  <jim@meyering.net>
119513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119514         change.
119515         Thanks to Bruno Haible for catching it.
119517 2005-02-22  Simon Josefsson  <jas@extundo.com>
119519         * modules/iconvme: New file.
119521         * MODULES.html.sh: Add iconvme.
119523 2005-02-22  Simon Josefsson  <jas@extundo.com>
119525         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119527 2005-02-22  Simon Josefsson  <jas@extundo.com>
119529         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119531 2005-02-22  Jim Meyering  <jim@meyering.net>
119533         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119534         s/ifndef/ifdef/.
119536 2005-02-20  Neil Conway  <neilc@samurai.com>
119538         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119539         returned by OSX/Darwin if the specified buffer is not large
119540         enough for the hostname.
119542 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119544         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119545         pass it to _help, otherwise the latter coredumps trying to
119546         dereference state.root_argp.
119548 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119550         * modules/chdir-long (Depends-on): Add memrchr.
119551         * modules/memrchr (Files): Add lib/memrchr.h.
119552         (Include): "memrchr.h".
119554 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119556         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119558 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119560         * lib/memrchr.h: New file.
119561         * lib/chdir-long.c: Include it.
119562         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119563         Don't bother including stddef.h.
119565 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119567         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119568         inclusion.
119569         Include <sys/types.h>, for dev_t.
119570         (ME_DUMMY, ME_REMOTE): Move from here....
119571         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119572         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119573         Dmitry V. Levin.
119574         Include mountlist.h first, to test the interface.
119576 2005-01-29  Bruno Haible  <bruno@clisp.org>
119578         * lib/progname.c (program_name): Initialize.
119579         Needed when linking statically on MacOS X.
119581 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119583         Sync from coreutils.
119584         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119585         (Depends-on): Add c-strtod.
119586         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119588 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119590         Sync from coreutils.
119591         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119593         Remove files that are specific to coreutils.
119594         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119596 2005-01-28  Bruno Haible  <bruno@clisp.org>
119598         * modules/javacomp: New file.
119599         * MODULES.html.sh (Java): Add javacomp.
119601 2005-01-28  Bruno Haible  <bruno@clisp.org>
119603         * m4/javacomp.m4: New file, from GNU gettext.
119605 2005-01-28  Bruno Haible  <bruno@clisp.org>
119607         * lib/javacomp.sh.in: New file, from GNU gettext.
119608         * lib/javacomp.h: New file, from GNU gettext.
119609         * lib/javacomp.c: New file, from GNU gettext.
119611 2005-01-26  Simon Josefsson  <jas@extundo.com>
119613         * lib/gai_strerror.c: Use GPL in header.
119615 2005-01-26  Bruno Haible  <bruno@clisp.org>
119617         * modules/javaexec: New file.
119618         * MODULES.html.sh (Java): Add javaexec.
119620 2005-01-26  Bruno Haible  <bruno@clisp.org>
119622         * m4/javaexec.m4: New file, from GNU gettext.
119624 2005-01-26  Bruno Haible  <bruno@clisp.org>
119626         * lib/javaexec.sh.in: New file, from GNU gettext.
119627         * lib/javaexec.h: New file, from GNU gettext.
119628         * lib/javaexec.c: New file, from GNU gettext.
119630 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119632         * modules/lchown (Depends-on): Remove lchown.h
119634 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119636         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119637         must be defined if the header file was not found, in order
119638         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119640 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119642         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119643         initializers for struct pentry_state.
119644         (__argp_error): Check return value of __asprintf
119645         (__argp_failure): Translate error message
119647         * lib/argp-parse.c: Removed braces around the expansion of N_()
119649 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119651         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119652         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119653         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119654         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119655         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119656         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119657         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119658         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119659         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119660         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119661         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119662         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119663         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119664         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119665         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119666         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119667         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119668         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119669         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119670         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119671         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119672         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119673         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119674         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119675         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119676         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119677         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119678         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119679         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119680         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119681         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119682         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119683         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119684         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119685         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119686         Use an all-permissive copyright notice, recommended by RMS.
119688 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119690         * modules/chdir-long (Depends-on): Remove mempcpy.
119692 2005-01-21  Jim Meyering  <jim@meyering.net>
119694         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119695         same value as for Solaris 9.
119697         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119698         component length.  This included changing the parameter to be
119699         of type `char *' rather than `char const *'.
119700         * lib/chdir-long.h (chdir_long): Update prototype.
119702         * lib/openat.c (fdopendir, fstatat): New functions.
119703         * lib/openat.h: Include headers required for use of DIR and struct
119704         stat.
119705         [AT_SYMLINK_NOFOLLOW]: Define.
119706         (fdopendir, fstatat): Add prototypes.
119708 2005-01-21  Bruno Haible  <bruno@clisp.org>
119710         * modules/classpath: New file.
119711         * MODULES.html.sh (Java): Add classpath.
119713 2005-01-21  Bruno Haible  <bruno@clisp.org>
119715         * lib/classpath.h: New file, from GNU gettext.
119716         * lib/classpath.c: New file, from GNU gettext.
119718 2005-01-20  Simon Josefsson  <jas@extundo.com>
119720         * modules/version-etc-fsf: New file.
119722 2005-01-20  Simon Josefsson  <jas@extundo.com>
119724         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119725         * lib/version-etc.c: Remove version_etc_copyright.
119726         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119727         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119729 2005-01-20  Simon Josefsson  <jas@extundo.com>
119731         * lib/base64.h (isbase64): Add.
119733         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119734         using a unsigned prototype, don't inline.
119735         (base64_decode): Use it.
119737 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119739         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119740         it.
119742 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119744         * lib/save-cwd.c (save_cwd): Remove code to support the case
119745         where fchdir is missing or flaky.
119747 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119749         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119751 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119753         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119754         AC_LIBSOURCES now does this.
119755         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119756         with new ullong_max module.
119758 2005-01-19  Bruno Haible  <bruno@clisp.org>
119760         * modules/sh-quote: New file.
119761         * MODULES.html.sh (Executing programs): Add sh-quote.
119763 2005-01-19  Bruno Haible  <bruno@clisp.org>
119765         * lib/sh-quote.h: New file, from GNU gettext.
119766         * lib/sh-quote.c: New file, from GNU gettext.
119768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119770         Merge from coreutils.
119771         * m4/ullong_max.m4: New file.
119772         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119773         (gl_MACROS): Assume localeconv exists.
119775 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119777         Merge changes from coreutils, as described below in several
119778         changelogs dated today.
119780         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119781         (O_DIRECTORY): Remove; not needed here, since "." must be
119782         a directory.  All uses removed.
119783         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119784         universal on Suns, and we also need to test for IRIX.
119785         Revamp code to use 'if' rather than '#if'.
119786         Avoid unnecessary comparison of cwd->desc to 0.
119788         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119789         for known valid error numbers rather than observed invalid ones.
119791 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119793         * modules/ullong_max: New file.
119795         * modules/chdir-long, modules/openat: New files.
119796         * modules/save-cwd (Depends-on): Depend on chdir-long.
119797         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119799 2005-01-18  Jim Meyering  <jim@meyering.net>
119801         Merge from coreutils.
119802         * m4/chdir-long.m4, m4/openat.m4: New files.
119803         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119804         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119805         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119806         is sane and DOES follow symlinks.  Besides, testing 20 different
119807         systems found no broken chown implementations.
119808         Prompted by a change in rsync's copy of this macro.
119809         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119811         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119813         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119814         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119815         NULL-means-set-to-current-time semantics.
119816         Remove temporary file immediately, rather than waiting
119817         for configure's at-exit trap code to do it.
119819 2005-01-18  Jim Meyering  <jim@meyering.net>
119821         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119823         * lib/utimens.c (futimens): Account for the fact that futimes
119824         can also fail with errno == ENOSYS or errno == ENOENT.
119825         Patch from Dmitry V. Levin.
119827         Change the name of the robust chdir function from chdir to chdir_long.
119828         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119829         (restore_cwd): Use chdir_long, not chdir.
119830         * lib/chdir-long.c: Renamed from chdir.c.
119831         * lib/chdir-long.h: Renamed from chdir.h.
119832         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119833         Hurd.
119835 2005-01-18  Bruno Haible  <bruno@clisp.org>
119837         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119838         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119839         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119840         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119841         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119842         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119843         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119844         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119845         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119846         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119847         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119848         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119849         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119850         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119851         Use an all-permissive copyright notice, recommended by RMS.
119853 2005-01-18  Bob Proulx  <bob@proulx.com>
119855         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119856         simplify offsetof() macro construct to avoid compile failure with
119857         native HP-UX 11.0 ANSI C compiler.
119859 2005-01-17  Bruno Haible  <bruno@clisp.org>
119861         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119862         redundant because stpncpy.m4 takes care of it.
119864 2005-01-17  Bruno Haible  <bruno@clisp.org>
119866         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119868 2005-01-17  Bruno Haible  <bruno@clisp.org>
119870         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119871         used.
119873 2005-01-17  Bruno Haible  <bruno@clisp.org>
119875         * lib/fwriteerror.h (fwriteerror): Change specification to include
119876         fclose.
119877         * lib/fwriteerror.c: Include <stdbool.h>.
119878         (fwriteerror): At the end, close the file stream. Record whether
119879         stdout was already closed.
119881 2005-01-17  Bruno Haible  <bruno@clisp.org>
119883         * lib/execute.c (environ): Declare if needed.
119884         * lib/pipe.c (environ): Likewise.
119885         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119887 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119889         * modules/argp: Depend on vsnprintf
119891 2005-01-10  Jim Meyering  <jim@meyering.net>
119893         * modules/closeout (Depends-on): Add atexit.
119895 2005-01-06  Bruno Haible  <bruno@clisp.org>
119897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119899 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119901         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119902         definitions to be after all include files, to avoid collisions.
119903         Problem reported by Bob Proulx.
119905 2005-01-04  Jim Meyering  <jim@meyering.net>
119907         Changes imported from coreutils.
119908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119909         as the mkstemp template, use a temporary directory and an
119910         8.3-friendly template to avoid trouble on systems like DJGPP.
119911         Reported by Juan M. Guerrero via Stepan Kasal.
119912         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119913         close. Remove the temporary directory right away, rather than waiting
119914         for configure's at-exit trap code to do it.
119915         Suggestion from Stepan Kasal.
119917 2005-01-01  Simon Josefsson  <jas@extundo.com>
119919         * gnulib-tool: Print #include directives when --import'ing.
119921 2004-12-28  Simon Josefsson  <jas@extundo.com>
119923         * tests/test-base64.c: Include required header files.  Remove
119924         unused variables.
119926 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119928         * modules/error (Depends-on): Remove gettext.
119930 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119932         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119933         not needed.  This removes a dependency on the gettext module.
119934         [defined _LIBC]: Do not include <libintl.h>; not needed.
119936 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119938         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119939         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119941 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119943         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119944         HAVE_DECL_STRTOLD.
119946 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119948         * modules/getdate (Depends-on): Remove alloca-opt.
119950 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119952         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119954 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119956         * lib/argp-parse.c: Include <stddef.h>.
119957         (alignof, alignto): New macros.
119958         (parser_init): Don't assume that void * is aligned sufficiently
119959         for struct option.
119961         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119962         need to extend the stack.
119963         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119964         large.
119966 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119968         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119970 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119972         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119973         (2004-10-24) change.  Apparently this was a false alarm.
119975         * modules/getdate: Depend on alloca-opt, not alloca.
119977 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119979         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119980         Remove now-obsolete comment about AIX.
119981         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119982         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119983         (YYMAXDEPTH): New macro.
119985 2004-12-18  Simon Josefsson  <jas@extundo.com>
119987         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119989 2004-12-18  Bruno Haible  <bruno@clisp.org>
119991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119993 2004-12-18  Bruno Haible  <bruno@clisp.org>
119995         * lib/fatal-signal.c (fatal_signals): Make non-const.
119996         (init_fatal_signals): New function.
119997         (uninstall_handlers, install_handlers): Ignore signals that were set to
119998         SIG_IGN.
119999         (at_fatal_signal): Call init_fatal_signals.
120000         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120001         SIG_IGN.
120002         Reported by Paul Eggert.
120004 2004-12-18  Bruno Haible  <bruno@clisp.org>
120006         * doc/alloca.texi: New file.
120007         * doc/alloca-opt.texi: New file.
120009 2004-12-17  Jim Meyering  <jim@meyering.net>
120011         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120012         Otherwise, install-sh could exit with improper exit status when
120013         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120015 2004-12-16  Simon Josefsson  <jas@extundo.com>
120017         * tests/test-base64.c: Add license.
120019 2004-12-15  Stepan Kasal  <address@hidden>
120021         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120023 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120025         * modules/getcwd (Files): Add m4/d-ino.m4.
120026         Suggested by Mark D. Baushke.
120028 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120030         * lib/getdate.y (textint): New member "negative".
120031         (time_zone_hhmm): New function.
120032         Expect 14 shift-reduce conflicts, not 13.
120033         (o_colon_minutes): New rule.
120034         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120035         (yylex): Set the "negative" member of signed numbers.
120037 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120039         * doc/getdate.texi (Time of day items, Time zone items):
120040         Describe new formats +00:00, UTC+00:00.
120042 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120044         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120045         spurious "-l"s.  Problem reported by Stepan Kasal.
120047 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120049         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120050         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120052 2004-12-04  Simon Josefsson  <jas@extundo.com>
120054         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120055         Vandoorselaere <yoann@prelude-ids.org>.
120057 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120059         Changes imported from coreutils.
120060         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120061         exist.
120062         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120064 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120066         Changes imported from coreutils.
120067         * lib/hard-locale.c: Assume <locale.h> exists.
120068         Include "strdup.h".
120069         (GLIBC_VERSION): New macro.
120070         (hard_locale): Assume setlocale exists.
120071         Rewrite to avoid #ifdef.
120072         Use strdup rather than malloc + strcpy.
120073         * lib/human.c: Assume <locale.h> exists.
120074         (human_readable): Assume localeconv exists.
120076 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120078         * modules/hard-locale (Depends-on): Add strdup.
120080 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120082         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120083         convert T2, not T.  (Imported from libc.)
120085 2004-11-30  Simon Josefsson  <jas@extundo.com>
120087         * modules/restrict (License): Change to LGPL.
120089 2004-11-30  Simon Josefsson  <jas@extundo.com>
120091         * m4/restrict.m4: Add copyright and copying conditions.
120093 2004-11-30  Simon Josefsson  <jas@extundo.com>
120095         * m4/base64.m4: New file.
120097 2004-11-30  Simon Josefsson  <jas@extundo.com>
120099         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120100         base64.
120102         * tests/test-base64.c: New file.
120104         * modules/base64: New file.
120106 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120109         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120111         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120113 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120115         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120116         (__getcwd.c): Don't restore errno; glibc doesn't.
120117         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120118         first, falling back to our code only if its results look suspicious.
120119         Ensure that the resulting buffer is only as large as necessary.
120121         * lib/readutmp.c: Include readutmp.h first.
120122         Include <errno.h>, since readutmp.h no longer does that.
120123         * lib/readutmp.h: Don't include <errno.h>,
120124         <sys/param.h>, <time.h>; not needed to establish interface.
120125         (errno): Remove decl.
120126         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120127         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120128         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120130 2004-11-28  Simon Josefsson  <jas@extundo.com>
120132         * lib/base64.h, base64.c: New file.
120134 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120136         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120138 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120140         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120141         (Depends-on): Remove pathmax, same.  Add mempcpy.
120142         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120143         (Makefile.am): Append getcwd.h to lib_SOURCES.
120144         (Include): Add getcwd.h.
120145         (Maintainer): Change from Jim Meyering to "all, glibc",
120146         since getdate now uses intended-for-glibc code.
120147         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120148         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120150 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120152         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120153         HP's ANSI C compiler.
120154         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120155         Declaring int functions causes warnings on some modern systems and
120156         shouldn't be needed to compile on ancient ones.
120157         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120158         defined.
120160         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120161         with the following changes.
120162         (__set_errno): Parenthesize properly.
120163         Include <stdbool.h>.
120164         (MIN, MAX, MATCHING_INO): New macros.
120165         (__getcwd): Define with prototype, not K&R form.
120166         Use heuristics to allocate default buffer on stack if possible.
120167         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120168         behavior, and to avoid the PATH_MAX limit when computing
120169         ../../../../...
120170         Use MATCHING_INO to compare inode number to file.
120171         Check for arithmetic overflow in size calculations.
120172         Fix bug in reallocation of dot array that caused getcwd to fail
120173         on directories nested deeper than 75.
120174         Be more careful about saving errno on error.
120175         Do not use realloc; use only free+malloc, as this is a bit
120176         more flexible and avoids a needless copy operation.
120177         Do not inspect st_dev and st_ino for symbolic links; POSIX
120178         doesn't specify the latter.
120179         Check for closedir errors.
120180         Avoid needless casts.
120181         Use "#ifdef weak_alias" around weak_alias, to be like other
120182         glibc code.
120183         The following changes to getcwd.c have effect only when used in
120184         gnulib; they have no effect inside glibc proper.
120185         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120186         as alloca isn't used.
120187         (alloca, __alloca): Likewise.
120188         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120189         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120190         unconditionally, as gnulib assumes C89 or better.
120191         Do not include <sys/param.h>.
120192         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120193         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120194         better.
120195         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120196         Include <dirent.h> in a way that is compatible with modern Autoconf.
120197         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120198         New macros, if not already defined.
120199         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120200         Use "_LIBC", not "defined _LIBC", for consistency.
120201         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120202         a mempcpy module.
120203         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120204         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120205         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120206         credit only to Jim Meyering and adjust the copyright dates.
120207         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120208         <stdlib.h>, <unistd.h>, "pathmax.h".
120209         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120210         (INITIAL_BUFFER_SIZE): Remove.
120211         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120213 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120216         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120217         Use the _ONCE methods, for efficiency.
120218         Check for fcntl.h.  In test program, include <errno.h>
120219         and <fcntl.h> if available.  Remove old K&R cruft from
120220         test program.  Check for common errors in GNU/Linux,
120221         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120222         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120223         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120224         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120225         name accordingly.
120226         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120227         accommodate new getcwd.c.
120228         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120229         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120230         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120231         that's all we need now.
120233 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120235         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120236         argp-parse.c depends on getopt internals, that means we should
120237         always use our getopt, to be on the safe side.
120238         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120239         order not to spoil the result of an eventual previous invocation
120240         of gl_GETOPT_SUBSTITUTE.
120242 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120244         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120245         redefinition warnings. To avoid them, include the defines
120246         in `#if !defined __need_getopt ... #endif'. The only place
120247         where __getopt_argv_const is used is in definitions
120248         of getopt_long and getopt_long_only below, which are as well
120249         protected by `#ifndef __need_getopt'.
120250         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120251         __need_getopt after including <stdio.h> and <unistd.h> These
120252         headers might have defined it.
120254 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120256         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120258 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120260         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120261         (futimens): New function, which uses futimes if available.
120262         (futimens, utimens): Support timespec==NULL, with same semantics
120263         as utime and utimens.
120264         * lib/utimens.h (futimens): New decl.
120266 2004-11-23  Jim Meyering  <jim@meyering.net>
120268         * lib/getopt_.h: Remove trailing blanks.
120270 2004-11-23  Jim Meyering  <jim@meyering.net>
120272         * lib/__fpending.c: Add comment.
120274 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120276         * modules/canonicalize (Depends-on): Add xreadlink.
120277         Problem reported by James Youngman.
120279 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120281         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120282         New macros.
120283         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120284         optopt): Use them instead of invoking ## directly; otherwise, the
120285         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120287 2004-11-19  Bruno Haible  <bruno@clisp.org>
120289         * lib/strtok_r.c: Move comments from here...
120290         * lib/strtok_r.h: ... to here.
120292 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120294         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120295         implementations that mishandle size_t overflow.
120297 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120299         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120300         might fail.  Problem reported by Yoann Vandoorselaere.
120301         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120302         implementations that mishandle size_t overflow.
120304 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120306         * modules/canon-host (Depends-on): Add strdup.
120308 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120310         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120312 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120314         * lib/canon-host.c: Include "strdup.h".
120315         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120316         Use strdup instead of malloc/strcpy to duplicate strings.
120318         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120319         (human_space_before_unit): New constant.
120320         * lib/human.c (human_readable): Support it.
120322         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120323         (xgetcwd): Set errno correctly when failing.
120324         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120325         the failure is actually due to a PATH_MAX problem.
120327         Further getopt changes to make it more likely that glibc will
120328         buy the changes back.
120329         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120330         (getopt): Use it, so to preserve glibc semantic
120331         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120332         when compiling for libc.
120333         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120334         (getopt_long, getopt_long_only): Use it.
120336         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120337         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120338         (getopt): Argv is now char * const *, as per standard.
120339         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120340         not char *__getopt_argv_const *.
120341         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120342         _getopt_long_only_r): Likewise.
120343         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120344         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120345         _getopt_long_r, _getopt_long_only_r): Likewise.
120346         * lib/getopt_.h (__getopt_argv_const): Remove.
120347         (getopt): Argv is now char * const *, as per standard.
120349         * lib/getdate.y (tORDINAL): New token.
120350         (day, relunit): Allow it for relative times.
120351         (relative_time_table): Use tORDINAL for ordinals.
120353 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120355         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120356         Document that "second" isn't allowed as an ordinal number.
120358 2004-11-16  Jim Meyering  <jim@meyering.net>
120360         * modules/closeout (Depends-on): Add fpending.
120362 2004-11-15  Jim Meyering  <jim@meyering.net>
120364         * lib/closeout.c: Include "__fpending.h" once again.
120365         Include <stdbool.h>.
120366         (close_stdout): Don't fail just because stdout was closed initially,
120367         since some programs don't write to stdout in the normal course of
120368         operation (other than --version and --help), and we don't want this
120369         function to make e.g. `touch file >&-' fail.
120370         But do fail if it was closed and someone has tried to write to it.
120371         E.g., `printf foo >&-' must fail.
120373 2004-11-13  Jim Meyering  <jim@meyering.net>
120375         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120377 2004-11-12  Simon Josefsson  <jas@extundo.com>
120379         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120380         small doc fix is still pending.
120382 2004-11-11  Simon Josefsson  <jas@extundo.com>
120384         * modules/strtok_r: New file.
120386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120387         strtok_r.
120389 2004-11-11  Simon Josefsson  <jas@extundo.com>
120391         * m4/strtok_r.m4: New file.
120393         * m4/getopt.m4: Replace opterr.
120395 2004-11-11  Simon Josefsson  <jas@extundo.com>
120397         * lib/strtok_r.h, strtok_r.c: New file.
120399 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120401         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120402         of replacing opterr, getopt, etc.  This should handle the
120403         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120405 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120407         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120408         we can stop lying to compilers about the constness of argv when we
120409         are compiled outside glibc.
120410         (getopt, getopt_long, getopt_long_only): Use it.
120411         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120412         _getopt_internal, getopt): Likewise.
120413         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120414         _getopt_long_only_r): Likewise.
120415         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120416         _getopt_long_r, _getopt_long_only_r): Likewise.
120418         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
120419         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
120420         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
120421         the other external symbols.
120422         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
120423         declaration, since the above renaming now works around collisions.
120425 2004-11-11  Jim Meyering  <jim@meyering.net>
120427         * lib/linebreak.c: Remove trailing blanks.
120428         * lib/alloca_.h: Likewise.
120429         * lib/acosl.c: Likewise.
120430         * lib/euidaccess.c: Likewise.
120431         * lib/allocsa.h: Likewise.
120433 2004-11-10  Simon Josefsson  <jas@extundo.com>
120435         * m4/getaddrinfo.m4: New file.
120437 2004-11-10  Simon Josefsson  <jas@extundo.com>
120439         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120441 2004-11-10  Simon Josefsson  <jas@extundo.com>
120443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120444         getaddrinfo.
120446         * modules/getaddrinfo: New file.
120448 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120450         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120452 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120454         * lib/mktime.c (SHR): New macro, which is a portable
120455         substitute for >> that should work even on Crays.
120456         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120457         Problem reported by Mark D. Baushke in
120458         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120459         * lib/getdate.y (SHR): Likewise.
120460         (tm_diff): Use it.
120461         * lib/strftime.c (SHR): Likewise.
120462         (tm_diff): Use it.
120463         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120464         quote_these_too, so that right shifts are well defined.  All uses
120465         changed.
120467 2004-11-10  Jim Meyering  <jim@meyering.net>
120469         Ensure that no close failure goes unreported.
120470         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120471         return early when it seems there's nothing to flush.
120472         Don't include __fpending.h.
120474 2004-11-10  Jim Meyering  <jim@meyering.net>
120476         * modules/closeout (Depends-on): Remove fpending.
120478 2004-11-10  Jim Meyering  <jim@meyering.net>
120480         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120482 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120484         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120485         gl_FUNC_STRFTIME.
120486         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120487         and AC_REQUIRE when possible, to avoid duplicate checks.
120488         Check for <wchar.h>.
120490 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120492         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120494 2004-11-09  Bruno Haible  <bruno@clisp.org>
120496         * m4/sockpfaf.m4: New file.
120498 2004-11-05  Bruno Haible  <bruno@clisp.org>
120500         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120501         Reported by Mark D. Baushke <mdb@cvshome.org>.
120503 2004-11-04  Bruno Haible  <bruno@clisp.org>
120505         2004-09-11  Bruno Haible  <bruno@clisp.org>
120506                 * allocsa.valgrind: New file.
120507         2004-02-06  Bruno Haible  <bruno@clisp.org>
120508                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120509                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120510                 Reported by Christopher Seip <chris.seip@hp.com>.
120512 2004-11-04  Bruno Haible  <bruno@clisp.org>
120514         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120515         (Makefile.am): Distribute it.
120517 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120519         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120520         with errno == ERANGE if the buffer is too small.
120521         Problem reported by Mark D. Baushke.
120523 2004-11-03  Albert Chin  <china@thewrittenword.com>
120524             Paul Eggert  <eggert@cs.ucla.edu>
120526         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120527         equivalent, substitute $ac_type for equivalent type rather than
120528         blindly using uint32_t *always* which won't work if uint32_t is not
120529         available.  Define _UINT32_T to work around typedef of uint32_t if
120530         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120531         2.5.1.
120533 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120535         * m4/jm-macros.m4: Sync from coreutils.
120536         (gl_MACROS): Check for mbrlen, for pathchk.
120537         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120539 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120541         * lib/xreadlink.c (MAXSIZE): New macro.
120542         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120543         size does not exceed MAXSIZE.  Avoid cast.
120544         As suggested by Mark D. Baushke in
120545         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120546         if readlink fails with buffer size just under MAXSIZE, try again
120547         with MAXSIZE.
120549 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120551         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120553 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120554         and  Paul Eggert  <eggert@cs.ucla.edu>
120556         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120557         (get_date): Overparenthesize to avoid GCC warning.
120559 2004-11-02  Bruno Haible  <bruno@clisp.org>
120561         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120562         returns void.
120564 2004-11-02  Bruno Haible  <bruno@clisp.org>
120566         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120567         function returns void.
120569 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120572         fflush_unlocked, flockfile, funlockfile, funlockfile,
120573         fputs_unlocked, putc_unlocked.
120575 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120577         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120578         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120579         already declared.
120581 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120583         * modules/getdate (Files): Add doc/getdate.texi.
120584         (Depends-on): Add setenv, xalloc.
120586 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120588         * lib/getdate.y: Add support for TZ="foo" within a date string.
120589         Fix some bugs near time_t boundaries.  Reject dates with
120590         out-of-range components, e.g., "Sept 31".
120591         Include <stdlib.h>, "setenv.h", "xalloc.h".
120592         (ISDIGIT_LOCALE): Remove; unused.
120593         Note that the TZ and time functions used here are not reentrant.
120594         (mktime_ok, get_tz): New functions.
120595         (TZBUFSIZE): New constant.
120596         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120597         This requires that we sometimes generate our own TZ="XXX..." setting.
120599 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120601         * doc/getdate.texi: New file, from coreutils with modifications for
120602         the new TZ parsing.
120604 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120606         * lib/mktime.c (not_equal_tm): Remove redundant check.
120608 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120610         * modules/regex (lib_SOURCES): Add regex.c.
120611         Reported by James Youngman in
120612         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120614 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120616         * lib/getdate.y: Use Bison 1.875 features, and some minor
120617         code cleanups.  This change does not affect semantics.
120618         Don't include <stdlib.h>; no longer needed.
120619         Don't include unlocked-io.h; only the "#if TEST" code uses
120620         stdio, and performance isn't crucial there.
120621         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120622         Bison 1.875 features as described below.
120623         All uses of "PC." replaced by "pc->".
120624         (YYSTYPE): Add a forward declaration.
120625         (yylex, yyerror): Use full prototypes in forward decls.
120626         Use "%pure-parser" rather than obsolescent "%pure_parser".
120627         Use %parse-param and %lex-param instead of obsolescent
120628         YYPARSE_PARAM and YYLEX_PARAM.
120629         (meridian_table, month_and_day_table, time_units_table,
120630         relative_time_table, time_zone_table, military_table,
120631         lookup_zone, lookup_word, get_date):
120632         Use NULL instead of 0 where appropriate.
120633         (to_hour): Avoid abort (), to avoid a dependency on
120634         stdlib.h.
120635         (yyerror, yylex): Now accepts parser_control * arg.
120636         (main) [TEST]: Use '\0' rather than 0 for char.
120638 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120640         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120642 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120644         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120645         It's now the caller's responsibility to handle the case where
120646         !HAVE_GETPAGESIZE && !defined getpagesize.
120648         * lib/mktime.c (leapyear): Arg is long int, not int.
120650 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120652         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120654 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120656         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120657         missing.  Problem reported by James Youngman.
120659 2004-10-16  Simon Josefsson  <jas@extundo.com>
120661         * gnulib-tool: Fix comments.  Fix parse problem.
120662         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120664 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120666         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120667         implementation of getopt_long.  Problem reported by Alexander Taler in:
120668         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120670 2004-10-15  Bruno Haible  <bruno@clisp.org>
120672         * gnulib-tool: Untabify. Initialize supplied_libname.
120673         (func_usage): More homogenous output.
120674         (func_modules_transitive_closure, func_modules_to_filelist,
120675         func_emit_lib_Makefile_am): New functions.
120676         (func_import): New function, extracted from big case statement. Use
120677         func_get_license, func_modules_transitive_closure,
120678         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120679         opt_lgpl. Don't use test -a, as it's not portable.
120680         (func_create_testdir): Use func_modules_transitive_closure,
120681         func_modules_to_filelist, func_emit_lib_Makefile_am.
120683 2004-10-15  Bruno Haible  <bruno@clisp.org>
120685         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120687 2004-10-15  Bruno Haible  <bruno@clisp.org>
120689         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120690         the portions belonging to each module.
120691         Suggested by Derek Robert Price <derek@ximbiot.com>.
120693 2004-10-12  Simon Josefsson  <jas@extundo.com>
120695         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120696         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120697         to real functions.
120699 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120701         * modules/vsnprintf: New file.
120703 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120705         * m4/vsnprintf.m4: New file.
120707 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120709         * lib/vsnprintf.h: New file.
120710         * lib/vsnprintf.c: New file.
120712 2004-10-11  Bruno Haible  <bruno@clisp.org>
120714         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120715         vsnprintf.
120717 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120719         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120721 2004-10-07  Bruno Haible  <bruno@clisp.org>
120723         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120724         fits into the provided buffer.
120726 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120728         * lib/diacrit.c, diacrit.h: Add GPL notice.
120730         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120731         notice.
120732         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120733         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120734         This avoids a potential constant-folding bug.
120736 2004-10-05  Bruno Haible  <bruno@clisp.org>
120738         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120739         for the declaration of strsep.
120741 2004-10-05  Bruno Haible  <bruno@clisp.org>
120743         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120745 2004-10-04  Simon Josefsson  <jas@extundo.com>
120747         * modules/memmem: New file.
120748         * tests/test-memmem.c: New file.
120749         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120751 2004-10-04  Simon Josefsson  <jas@extundo.com>
120753         * m4/memmem.m4: New file.
120755 2004-10-04  Simon Josefsson  <jas@extundo.com>
120757         * lib/memmem.h: New file.
120758         * lib/memmem.c: New file, taken from glibc.
120760 2004-10-04  Simon Josefsson  <jas@extundo.com>
120762         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120763         '#ifdef USE_UNLOCKED_IO'.
120765 2004-10-04  Simon Josefsson  <jas@extundo.com>
120767         * config/srclist.txt: Add memmem from glibc.
120769 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120771         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120773         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120774         modules/exclude, modules/getdate, modules/getline,
120775         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120776         modules/getusershell, modules/linebuffer, modules/md5,
120777         modules/mountlist, modules/posixtm, modules/readtokens,
120778         modules/readutmp, modules/regex, modules/sha1,
120779         modules/version-etc, modules/yesno:
120780         Remove dependency on unlocked-io.
120782 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120784         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120786         * m4/unlocked-io.m4: Add copyright notice.
120787         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120789 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120791         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120792         * lib/xmalloc.c (xmemdup): Likewise.
120793         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120794         XFREE): Remove these long-obsolescent macros.
120795         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120796         * lib/xstrdup.c: Remove.
120798         * lib/regex.c (re_comp): Cast gettext return value to char *,
120799         Problem reported by Martin Neitzel via Mark D. Baushke.
120801 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120803         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120804         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120805         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120806         regex.c, sha1.c, version-etc.c, yesno.c:
120807         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120808         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120809         the includer's responsibility.
120811         Sync from coreutils.
120813         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120814         points to the start of a string, as the C Standard says the
120815         resulting behavior is undefined.
120817         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120818         simple -> simple_backups, numbered_existing ->
120819         numbered_existing_backups, numbered -> numbered_backups
120820         to avoid shadowing problems.  All uses changed.
120821         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120822         * lib/backupfile.c (check_extension, numbered_backup):
120823         Rename locals to avoid shadowing 'basename'.
120824         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120825         once.
120827         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120828         * lib/.cvsignore: Add getopt.h.
120830 2004-10-04  Bruno Haible  <bruno@clisp.org>
120832         * modules/README: New file.
120833         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120834         not a module.
120836 2004-10-02  Jim Meyering  <jim@meyering.net>
120838         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120840 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120842         * modules/strsep: New file.
120844 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120846         * m4/strsep.m4: New file.
120848 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120850         * lib/strsep.h: New file.
120851         * lib/strsep.c: New file.
120853 2004-10-01  Simon Josefsson  <jas@extundo.com>
120855         * lib/snprintf.c (snprintf): Handle size==0.
120857 2004-10-01  Simon Josefsson  <jas@extundo.com>
120858             Bruno Haible  <bruno@clisp.org>
120860         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120861         (snprintf): Declare 'args'.
120863 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120865         * lib/snprintf.c: Remove comments as to why each header is needed.
120867 2004-10-01  Bruno Haible  <bruno@clisp.org>
120869         * MODULES.html.sh: Add strsep.
120871 2004-09-30  Simon Josefsson  <jas@extundo.com>
120873         * modules/snprintf: New file.
120875 2004-09-30  Simon Josefsson  <jas@extundo.com>
120877         * m4/snprintf.m4: New file.
120879 2004-09-30  Simon Josefsson  <jas@extundo.com>
120881         * lib/snprintf.h, lib/snprintf.c: New files.
120883 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120885         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120886         (hol_entry_help): Never translate an empty string.
120887         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120888         * lib/argp.h (OPTION_NO_TRANS): New option.
120890 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120892         * modules/argp (Maintainer): Replace Simon Josefsson
120893         by Sergey Poznyakoff.
120895 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120897         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120898         changes merged back into glibc.
120900 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120902         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120904 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120906         * lib/xvasprintf.c: Include xalloc.h.
120907         (xvasprintf): Use xalloc_die, not xmalloc_die.
120909 2004-09-29  Bruno Haible  <bruno@clisp.org>
120911         * modules/alloca-opt: New file, derived from modules/alloca.
120912         * modules/allocsa: Depend on alloca-opt instead of alloca.
120913         * modules/setenv: Likewise.
120914         * modules/vasnprintf: Likewise.
120915         * MODULES.html.sh: Add alloca-opt.
120917 2004-09-28  Simon Josefsson  <jas@extundo.com>
120919         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120920         LGPL, and to replace license template from GPL to LGPL.
120922 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120924         * modules/dummy: Change license to LGPL.
120926 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120928         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120930 2004-09-24  Simon Josefsson  <jas@extundo.com>
120932         * modules/minmax (License): Change from GPL to LGPL.
120934 2004-09-23  Simon Josefsson  <jas@extundo.com>
120936         * gnulib-tool (--import): Typo.
120938 2004-09-23  Simon Josefsson  <jas@extundo.com>
120940         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120942 2004-09-22  Bruno Haible  <bruno@clisp.org>
120944         * modules/*: Add 'License' field.
120945         * gnulib-tool: Accept --extract-license option.
120946         (func_get_license): New function.
120948 2004-09-21  Bruno Haible  <bruno@clisp.org>
120950         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120951         Reported by Simon Josefsson.
120953 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120955         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120956         gl_AC_TYPE_LONG_LONG.
120958 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120960         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120962 2004-09-18  Simon Josefsson  <jas@extundo.com>
120963         and  Paul Eggert  <eggert@cs.ucla.edu>
120965         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120966         calls with autoreconf.  Define GL_LIB.
120968 2004-09-14  Karl Berry  <karl@gnu.org>
120970         * config/srclist.txt: unsync setenv.c, sigh.
120972 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120974         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120975         Problem reported by Bruno Haible in:
120976         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120978 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120980         * config/srclist.txt: Comment out argp-pvh.c.
120982 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120984         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120985         in case some system header has #define'd it.  Problem reported by
120986         Soeren D. Schulze in
120987         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120989 2004-09-09  Karl Berry  <karl@gnu.org>
120991         * regex.[ch]: delete from the root.  These were supposed to be
120992                 synced with emacs cvs, but this has not happened for about
120993                 a year, and anyway nothing else uses emacs regex.[ch].
120994                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120995                 lib/regex[.ch] is untouched.
120997 2004-09-09  Bruno Haible  <bruno@clisp.org>
120999         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121001 2004-09-09  Bruno Haible  <bruno@clisp.org>
121003         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121004         modifications.
121005         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121007 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121009         * modules/xvasprintf: New file.
121010         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121012 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121014         * lib/xvasprintf.h: New file.
121015         * lib/xvasprintf.c: New file.
121016         * lib/xasprintf.c: New file.
121018 2004-09-08  Bruno Haible  <bruno@clisp.org>
121020         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121022 2004-09-08  Bruno Haible  <bruno@clisp.org>
121024         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121025         length is > INT_MAX.
121026         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121027         more.
121029 2004-09-08  Bruno Haible  <bruno@clisp.org>
121031         * lib/stdint_.h: New file, taken from GNU clisp.
121033 2004-09-08  Bruno Haible  <bruno@clisp.org>
121034             Oskar Liljeblad  <oskar@osk.mine.nu>
121036         * modules/stdint: New file.
121037         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121039 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121041         Import from coreutils.
121042         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121043         strings on unbounded length.  alloca's performance benefits aren't
121044         that important here.
121045         (V_STRDUP): Remove.
121046         (parse_with_separator): New function, with most of the internals
121047         of the old parse_user_spec.  Allow user to omit both user and group,
121048         for compatibility with FreeBSD.
121049         Clone only the user name, not the entire spec.
121050         Do not set *uid, *gid unless entirely successful.
121051         Avoid memory leak in some failing cases.
121052         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121053         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121054         (parse_user_spec): Rewrite to use parse_with_separator.
121056 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121058         * modules/userspec: Don't depend on alloca.
121060 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121062         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121064 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121066         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121067         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121068         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121070 2004-08-16  Simon Josefsson  <jas@extundo.com>
121072         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121073         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121074         Add --dry-run for --import.
121075         Let user provided command line parameters override configure.ac
121076         settings.
121078 2004-08-12  Simon Josefsson  <jas@extundo.com>
121080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121081         as discussed with Paul Eggert in threads rooted at
121082         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121083         and
121084         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121085         Before, the test was empty, and relied on ELIDE_CODE in source
121086         code.)
121087         (gl_PREREQ_GETOPT): New macro.
121088         (gl_GETOPT): Use them.
121090 2004-08-12  Simon Josefsson  <jas@extundo.com>
121092         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121093         * lib/getopt_.h: Renamed from getopt.h.
121095 2004-08-12  Simon Josefsson  <jas@extundo.com>
121097         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121098         Change default library name from libfoo to libgnu.
121099         Now, if you have a configure.ac that says:
121100                 gl_SOURCE_BASE(gl)
121101                 gl_M4_BASE(gl/m4)
121102                 gl_MODULES(error getopt etcetera)
121103                 gl_INIT
121104         you can import all you need by running:
121105                 ../gnulib/gnulib-tool --import
121107         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121108         (Makefile.am): Rewrite, use logic from argz.
121109         (Include): Use <getopt.h> instead of "getopt.h".
121111 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121113         * modules/argp (Files): Add m4/unlocked-io.m4.
121114         (Depends-on): Add extensions.
121116 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121118         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121119         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121120         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121121         Check for program_invocation_name, program_invocation_short_name,
121122         flockfile, funlockfile, features.h, _getopt_long_only_r.
121124 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121126         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121127         its complicated substitute.
121128         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121129         and program_invocation_name.
121130         (__argp_basename) [!_LIBC]: Remove; the only use was
121131         replaced by its body.
121132         (__argp_short_program_name): Change condition from
121133         !defined __argp_short_program_name to
121134         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121135         to match argp-namefrob.h.
121136         (__argp_failure): Don't assume strerror_r returns char *.
121137         * lib/argp-parse.c (N_): Define unconditionally.
121138         (argp_default_options): Fill out initializers with 0 to avoid
121139         gcc warnings.
121141 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121143         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121144         getopt1.c.
121146 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121148         Merge from coreutils.
121150         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121152         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121153         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121155 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121157         Merge from coreutils.
121159         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121160         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121161         for Reliant Unix 5.43.
121163         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121164         (union fooround): Use uintmax_t, not long int.
121165         The rest is a merge from libc:
121166         [defined _LIBC]: Include <shlib-compat.h>.
121167         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121169         * lib/settime.c (settime): Recode to avoid warning with
121170         Sun Forte C 6U2.
121172         * lib/strverscmp.c: Convert to UTF-8.
121174 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121176         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121177         m4/uintmax_t.m4.
121179 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121181         * modules/xalloc-die: New file.
121182         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121184         * modules/md5 (Files): Add m4/uint32_t.m4.
121185         * modules/sha1: Renamed from modules/sha.
121186         (Files):
121187         Rename lib/sha.h to lib/sha1.h.
121188         Rename lib/sha.c to lib/sha1.c.
121189         Rename m4/sha.m4 to m4/sha1.m4.
121190         (lib_SOURCES): Likewise.
121191         (configure.ac): Rename gl_SHA to gl_SHA1.
121192         (Include): sha.h -> sha1.h.
121194 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121196         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121197         * m4/sha1.m4: Renamed from sha.m4.
121198         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121200 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121202         * lib/obstack.h (obstack_empty_p):
121203         Don't assume that chunk->contents is suitably aligned.
121204         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121205         Likewise. Problem reported by Benno in
121206         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121208         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121209         readable.  This could be improved further but it'd take some work.
121211 2004-08-08  Simon Josefsson  <jas@extundo.com>
121213         * modules/xgethostname (Depends-on): Remove exit and error (not
121214         used).
121216         * modules/getpass-gnu: Add getpass.h.
121217         (Depends-on): Add stdbool.
121218         * modules/getpass: Add getpass.h.
121220 2004-08-08  Simon Josefsson  <jas@extundo.com>
121222         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121223         Check getpass declaration.
121225 2004-08-08  Simon Josefsson  <jas@extundo.com>
121227         * lib/xgethostname.c: Don't include error.h (not used).
121229         * lib/getpass.h: Add.
121230         * lib/getpass.c: Include getpass.h first.
121232 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121234         * lib/xalloc-die.c: New file.
121235         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121236         All uses removed.
121237         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121238         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121239         xalloc-die.c.
121240         (_, N_, xalloc_die): Move to xalloc-die.c.
121241         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121242         so that we needn't mess with xalloc_msg_memory_exhausted.
121244         * lib/sha1.h: Renamed from sha.h.
121245         (SHA1_H): Renamed from _SHA_H.
121246         (sha1_ctx): Renamed from sha_ctx.
121247         (sha1_init_ctx): Renamed from sha_init_ctx.
121248         (sha1_process_block): Renamed from sha_process_block.
121249         (sha1_process_bytes): Renamed from sha_process_bytes.
121250         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121251         (sha1_read_ctx): Renamed from sha_read_ctx.
121252         (sha1_stream): Renamed from sha_stream.
121253         (sha1_buffer): Renamed from sha_buffer.
121254         * lib/sha1.c: Likewise; renamed from sha.c.
121255         Do not include <sys/types.h>.
121256         Include <stddef.h> rather than <stdlib.h>.
121258 2004-08-08  Bruno Haible  <bruno@clisp.org>
121260         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121261         FILESYSTEM_PREFIX_LEN.
121262         * lib/progreloc.c: Likewise.
121263         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121265 2004-08-06  Simon Josefsson  <jas@extundo.com>
121267         * modules/progname (Depends-on): Don't depend on stdbool.
121269 2004-08-06  Simon Josefsson  <jas@extundo.com>
121271         * modules/getsubopt: New file.
121272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121273         getsubopt.
121275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121277         More merge from coreutils.
121279         * m4/utimens.m4, m4/utimecmp.m4: New files.
121280         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121281         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121282         prereq.m4, sha.m4: Import changes from coreutils.
121284 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121286         More merge from coreutils.
121287         * modules/raise, modules/readtokens0, modules/utimens:
121288         * modules/utimecmp, module/xnanosleep: New files.
121289         * modules/strftime: Add lib/strftime.h.
121290         Change include from <time.h> to "strftime.h".
121291         * modules/yesno: Add lib/yesno.h.
121292         * modules/backupfile: Remove lib/addext.c.
121293         * modules/euidaccess: Add stat-macros.h.
121294         * modules/canonicalize, modules/euidaccess,
121295         modules/filemode, modules/lchown, modules/makepath,
121296         modules/rmdir, modules/stat: Likewise.
121298 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121300         Merge from tar.
121301         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121302         SIZE_MAX is a valid preprocessor constant.
121303         (__argp_basename): Change from "#ifndef _LIBC"
121304         to "#ifndef __argp_short_program_name", so that
121305         we don't compile these functions for tar.
121307         More merges from coreutils.
121308         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121309         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121310         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121311         * lib/addext.c: Remove; no longer needed.
121312         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121313         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121314         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121315         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121316         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121317         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121318         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121319         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121320         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121321         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121322         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121323         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121324         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121325         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121326         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121327         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121328         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121329         Import changes from coreutils.
121331 2004-08-05  Simon Josefsson  <jas@extundo.com>
121333         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121335 2004-08-05  Simon Josefsson  <jas@extundo.com>
121337         * m4/getsubopt.m4: New file.
121339 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121341         Merge from coreutils.
121343         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121344         * m4/getcwd-path-max.m4: New files.
121346         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121347         FILESYSTEM_PREFIX_LEN ->
121348         FILE_SYSTEM_PREFIX_LEN.
121349         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121350         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121351         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121352         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121354         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121355         prerequisite modules now handle the DOS stuff.
121356         Don't check for unistd.h.
121358 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121360         Merge from coreutils.
121362         * lib/.gdb-history: Remove; this doesn't belong here.
121364         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121365         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121366         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121367         * lib/getcwd.c: New files.
121369         * lib/dirname.h: Include <stdbool.h>.
121370         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121371         for consistency with POSIX terminology.  All uses changed.
121372         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121373         (strip_trailing_slashes): Use bool for booleans.
121374         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121376         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121377         sometimes returns a positive errno value even when it succeeds.
121378         (print_errno_message) [!LIBC]: Fall back on strerror if
121379         __strerror_r fails.
121381         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121382         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121383         (longest_relative_suffix): New function.
121384         (path_concat): Use it.  Assume first argument is not NULL.
121385         Port to DOS.  Omit redundant separators.
121386         Report an error instead of returning NULL.
121387         Use mempcpy instead of memcpy.
121388         (xpath_concat): Remove: not declared or used.
121390         * lib/same.h: Include <stdbool.h>
121391         (same_name): Return bool, not int.
121392         * lib/same.c (same_name): Likewise.
121393         (errno): Don't declare; we assume C89 or better now.
121395         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121396         if not already defined.
121398         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121399         * lib/dup-safer.c (errno): Likewise.
121401 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121403         Merge from coreutils.
121404         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121405         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121406         * modules/path-concat: Don't depend on strdup.
121408 2004-08-03  Simon Josefsson  <jas@extundo.com>
121410         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121411         * lib/progname.h: Don't include stdbool.h.
121413 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121415         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
121416         * MODULES.html.sh (func_all_modules): Remove fatal.
121418 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121420         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
121422 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121424         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
121425         working.
121427 2004-08-02  Simon Josefsson  <jas@extundo.com>
121429         * lib/getsubopt.h: New file, with comments from Bruno Haible.
121430         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
121431         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
121433 2004-08-01  Simon Josefsson  <jas@extundo.com>
121435         * lib/xgetdomainname.c: Include stdlib.h, for free().
121437 2004-07-19  Bruno Haible  <bruno@clisp.org>
121439         * MODULES.html.sh (func_all_modules): Add dummy.
121441 2004-07-16  Simon Josefsson  <jas@extundo.com>
121443         * modules/dummy: New file.
121445 2004-07-16  Simon Josefsson  <jas@extundo.com>
121447         * lib/dummy.c: New file.
121449 2004-07-16  Bruno Haible  <bruno@clisp.org>
121451         * lib/backupfile.h: Add extern "C" for C++.
121452         * lib/closeout.h: Likewise.
121453         * lib/copy-file.h: Likewise.
121454         * lib/findprog.h: Likewise.
121455         * lib/full-write.h: Likewise.
121456         * lib/pathname.h: Likewise.
121457         * lib/progname.h: Likewise.
121458         * lib/stpcpy.h: Likewise.
121459         * lib/stpncpy.h: Likewise.
121460         * lib/strcase.h: Likewise.
121461         * lib/strstr.h: Likewise.
121462         * lib/xalloc.h: Likewise.
121464         * lib/mbswidth.h: Add extern "C" for C++.
121465         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121467 2004-07-13  Robert Millan  <robertmh@gnu.org>
121469         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121471 2004-07-09  Simon Josefsson  <jas@extundo.com>
121473         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121474         failed without this.)
121476 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121478         * modules/chown (Files): Add lib/fchown-stub.c, since
121479         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121481 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121483         * lib/fchown-stub.c: New file.
121485 2004-06-24  Jim Meyering  <jim@meyering.net>
121487         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121491         * modules/argz: Omit "#include".
121493         * MODULES.html.sh (func_all_modules): Add calloc, to match
121494         2004-06-01 addition of calloc module.
121496 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121498         * m4/argz.m4: New file, which is autoupdated from libtool.
121500 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121502         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121503         libtool.
121505 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121507         * config/srclist-update: Don't insist on "USA." before the
121508         close-comment, as libtool omits the period and puts the */ on a
121509         separate line.
121510         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121511         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121513 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121515         * modules/argz: New file.
121516         * MODULES.html.sh (func_all_modules): Add argz.
121518 2004-06-12  Jim Meyering  <jim@meyering.net>
121519         and  Paul Eggert  <eggert@cs.ucla.edu>
121521         * modules/hash (Files): Add lib/xalloc.h.
121522         * modules/pipe (Depends-on): Add wait-process.
121523         * modules/stat (Depends-on): Add xalloc.
121524         * modules/userspec (Files): Add lib/userspec.h.
121525         * modules/xstrto
121527         Upgrade from gettext-0.13.
121528         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121529         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121530         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121532 2004-06-10  Jim Meyering  <jim@meyering.net>
121534         * lib/calloc.c: New file.
121536 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121538         * lib/getdate.y (yylex): Allow space between sign and number.
121539         Problem reported by Dan Jacobson.
121541 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121543         Merge from coreutils CVS.
121545         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121546         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121547         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121548         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121549         xstrtol.m4: Fix copyright date and/or serial number.
121551         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121552         See if we need an fchown replacement.
121553         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121554         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121555         and use the replacement function if we detect either defect.
121557         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121558         gl_UTIMECMP.
121560 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121561         and  Jim Meyering  <jim@meyering.net>
121563         Merge from coreutils CVS.
121565         * lib/stat-macros.h: New file, with contents from file-type.h
121566         and coreutils' system.h.
121567         * lib/file-type.c: Include "stat-macros.h".
121568         * lib/file-type.h (file_type): Move all macro definitions to new file,
121569         stat-macros.h.
121571         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121572         Wrap old code with this conditional.
121573         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121574         function that does not dereference symlinks.
121575         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121577         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121578         dependency problems.
121579         (xreadlink): Accept new arg SIZE, for efficiency.
121580         All decls and uses changed.
121581         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121583         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121584         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121586         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121587         sysexits.h.
121589 2004-06-01  Jim Meyering  <jim@meyering.net>
121591         * m4/calloc.m4: New file.
121593 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121595         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121596         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121597         Also, fix a typo in a diagnostic.
121599 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121601         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121602         or AC_FUNC_REALLOC.
121604 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121606         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121607         macros to be defined.
121608         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121609         the allocator returns NULL because the requested size is zero.
121611 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121613         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121614         var.  Add comment explaining why libc still defines it.  This
121615         merges the following patch from glibc:
121616         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121618 2004-05-20  Andreas Schwab  <schwab@suse.de>
121620         * m4/free.m4: Replace free if it not known to work, not the other
121621         way round.
121623 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121625         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121626         present in glibc since revision 1.1 of this file.
121627         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121628         obstack_alignment_mask, obstack_alloc, obstack_base,
121629         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121630         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121631         obstack_grow0, obstack_init, obstack_int_grow,
121632         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121633         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121634         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121635         nonexistent functions.
121637 2004-05-18  Karl Berry  <karl@gnu.org>
121639         * config/srclist.txt: break link for vasnprintf.c.
121641 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121643         Port obstack to the AS/400, where pointers are 16 bytes wide and
121644         you cannot cast an integer to a valid pointer.  This patch is
121645         currently waiting to be integrated into glibc; see
121646         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121648         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121649         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121650         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121651         (struct obstack): temp member is now a union of a pointer and
121652         an integer, instead of an integer.  All integer uses changed.
121653         This does not affect the physical layout of struct obstack,
121654         except on hosts (like the AS/400) where the size or alignment of
121655         void * is greater than that of ptrdiff_t.
121656         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121657         __STDC__)]: Store temporary in pointer member of union, not
121658         integer member.
121659         * lib/obstack.c: Include <stddef.h>, for offsetof.
121660         (struct fooalign): Remove; it doesn't need a name.
121661         (union fooround): Change double to long double, and add void *.
121662         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121663         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121664         not a macro.  Hence the values are always int; so remove all
121665         casts-to-int in uses.
121667 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121669         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121670         we can get this patch merged into glibc.
121672 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121673             Paul Eggert  <eggert@cs.ucla.edu>
121675         * m4/argp: Depend on alloca.
121677 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121678             Paul Eggert  <eggert@cs.ucla.edu>
121680         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121681         freecoding.
121683 2004-05-17  Bruno Haible  <bruno@clisp.org>
121685         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121686         precision that consists of a '.' followed by an empty digit string.
121687         Patch by Tor Lillqvist <tml@iki.fi>.
121689 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121691         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121692         for backward compatibility with older code.  We need our own
121693         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121694         it under some other name, and our alloca.h will define it.
121696 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121697             Derek Price  <derek@ximbiot.com>
121699         * lib/alloca.c: Include <alloca.h>, to get our interface.
121700         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121701         include <alloca.h> first.  Use C89 prototype for alloca; this
121702         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121703         Use #elif for simplicity, since we can assume C89 now.
121704         Don't try to source the system alloca.h since it will not be found
121705         and to prevent recursively including its replacement.
121706         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121707         * lib/regex.c: Likewise.
121709 2004-05-16  Derek Price  <derek@ximbiot.com>
121710             Paul Eggert  <eggert@cs.ucla.edu>
121712         getline cleanup.  This changes the getndelim2 API: both order of
121713         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121714         no delimiter).
121716         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121717         interface does that.
121718         (getline): Always use getdelim, so that we don't have two
121719         copies of this code.
121720         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121721         if available.
121722         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121723         (GETNDELIM2_MAXIMUM): New macro.
121724         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121725         instead of the old practice of delim2==0.  All callers changed.
121726         Return -1 on overflow, instead of returning junk.
121727         Do not set *linesize unless allocation succeeds.
121728         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121729         that we include sys/types.h.
121730         * lib/getnline.h: Likewise.
121731         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121732         (getndelim2): Reorder arguments.
121733         * lib/getnline.c (getnline, getndelim):
121734         Don't discard the NMAX argument.
121735         (getnline): Invoke getndelim, to avoid code duplication.
121736         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121737         of (size_t) -1 by callers of the getnline family.
121739 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121741         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121742         Check for gettimeofday.
121743         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121744         Check for settimeofday, stime.
121746 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121748         * lib/nanosleep.c (suspended): Change its type from int to
121749         sig_atomic_t volatile.
121750         (first_call): Make it private to rpl_nanosleep, and have it
121751         be zero initially as that's a bit faster.
121752         (my_usleep): Round up fractional times instead of truncating them,
121753         as this is the usual meaning for 'sleep'.
121755         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121756         doesn't work.
121757         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121758         (ENOSYS): Define if not defined.
121759         (settime): Fall back on stime if it exists and settimeofday fails.
121760         But don't bother with fallbacks if a method fails with errno == EPERM.
121762 2004-05-11  Jim Meyering  <jim@meyering.net>
121764         Prior to this change, the save_cwd caller required read access to the
121765         current directory on most systems (ones with the fchdir function).
121767         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121768         fails, try write-only, and finally, resort to using xgetcwd.
121770 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121772         * lib/obstack.c, obstack.h: Import changes from libc.
121774 2004-04-28  Bruno Haible  <bruno@clisp.org>
121776         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121777         also implicitly appends .exe to executables.
121778         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121779         accepts Windows pathnames.
121780         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121781         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121782         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121783         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121784         Reported by Derek Robert Price <derek@ximbiot.com>.
121786 2004-04-21  Karl Berry  <karl@gnu.org>
121788         * config/srclist.txt (localcharset.c): break sync.
121790 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121792         * m4/host-os.m4: Add a copyright notice.
121794 2004-04-20  Jim Meyering  <jim@meyering.net>
121796         Change UTILS_ to gl_ in AC_DEFINE'd names.
121797         Change utils_- and jm_-prefixed variables, too.
121798         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121799         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121803         Don't emit trailing blanks.
121804         Also rename jm_-prefixed variables to have gl_ prefix.
121806         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121807         Also rename jm_-prefixed variables to have gl_ prefix.
121809         * m4/jm-macros.m4: Reflect the renamings.
121810         * m4/prereq.m4: Likewise.
121812 2004-04-20  Jim Meyering  <jim@meyering.net>
121814         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121815         memory.
121817 2004-04-20  Jim Meyering  <jim@meyering.net>
121818             Bruno Haible  <bruno@clisp.org>
121820         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121821         memory when realloc fails.
121823 2004-04-19  Jim Meyering  <jim@meyering.net>
121825         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121826         now that readutmp.c may call `free (0)'.
121828 2004-04-19  Bruno Haible  <bruno@clisp.org>
121830         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121831         * m4/inttypes_h.m4: Likewise.
121832         * m4/stdint_h.m4: Likewise.
121833         * m4/intmax_t.m4: Likewise.
121834         * m4/uintmax_t.m4: Likewise.
121836 2004-04-18  Jim Meyering  <jim@meyering.net>
121838         * m4/prereq.m4: Don't forbid jm_ prefix.
121840         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121841         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121842         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121843         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121844         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121845         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121846         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121847         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121848         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121849         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121850         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121851         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121852         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121853         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121854         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121855         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121856         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121857         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121858         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121860 2004-04-18  Jim Meyering  <jim@meyering.net>
121862         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121863         failure, don't leak memory and do call END_UTMP_ENT.
121865 2004-04-16  Jim Meyering  <jim@meyering.net>
121867         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121868         coreutils' stat program.
121869         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121871 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121873         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121874         C89.
121875         (CHAR_BIT): Remove, since we assume C89.
121876         Include <stdint.h> if available, as per current Autoconf CVS advice.
121878 2004-03-31  Jim Meyering  <jim@meyering.net>
121880         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121881         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121882         * m4/xalloc.m4: Likewise.
121884 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121886         Merge from coreutils.
121888         * m4/inttostr.m4: New file.
121889         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121890         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121891         Require gl_CLOCK_TIME.
121892         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121894 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121896         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121897         not bool, to be more consistent with Unix conventions.
121898         Suggested by Bruno Haible.
121900         Merge from coreutils.
121902         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121903         * lib/umaxtostr.c: New files.
121905         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121906         the usual <time.h> dance.
121907         (get_date): Change signature to support fractional time stamps.
121908         All callers changed.
121909         * lib/getdate.y: Include "getdate.h" first, as we can now
121910         assume C89 and don't need to worry about 'const'.
121911         Similarly, include "unlocked-io.h" near start, not in middle.
121912         Include <limits.h>.
121913         (textint.value): Use long int rather than int.
121914         (textint.digits): Use size_t rather than int.
121915         (BILLION, LOG10_BILLION): New constants.
121916         (parser_control): New member rel_ns.  Members day_ordinal,
121917         time_zone, month, day, hour, minutes, rel_year, rel_month,
121918         rel_day, rel_hour, rel_minutes, rel_seconds
121919         are now long int, not int.  Member seconds is now struct timespec,
121920         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121921         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121922         not int.
121923         (%union.intval): Now long int, not int.
121924         New member timespec.
121925         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121926         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121927         (spec): Now is a timespec or an item list.
121928         (timespec, items): New nonterminals.
121929         (time, rel, relunit, number, get_date):
121930         Add support for fractional seconds.
121931         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121932         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121933         (to_hour): First arg is now long int, not int.
121934         (to_year): Returns long int, not int.
121935         Don't treat year -70 like 70.
121936         (tm_diff): Returns long int, not int.
121937         (lookup_word): Use bool instead of int when appropriate.
121938         (yylex): Use size_t for count, not int.
121939         Detect overflow when parsing large integer constants.
121940         Add support for fractions.
121941         (get_date): Make pointers 'const' if possible.
121942         Use more-portable code to detect integer overflow.
121943         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121944         Don't use ctime; it's not reliable if the year has >4 digits.
121946         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121947         This is for compatibility with BSD.
121949         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121950         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121951         From coreutils' system.h.
121953         * lib/userspec.c: Don't include "posixver.h".
121954         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121955         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121956         compatible extension.  Simplify code by removing a boolean int
121957         that was always nonzero if a string was nonnull.
121959 2004-03-30  Jim Meyering  <jim@meyering.net>
121961         Merge from coreutils.
121963         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121964         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121965         on some systems one must include <grp.h> before it.
121966         Reported by Christian Krackowizer.
121968 2004-03-30  Jim Meyering  <jim@meyering.net>
121970         Merge from coreutils.
121972         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121974         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121975         an empty input stream.
121977         * lib/readtokens.c: Include <stdbool.h>.
121978         (readtoken): Use `size_t' rather than int/long.
121979         All callers adjusted.
121980         Use `bool' rather than `int' where appropriate.
121981         Use memset rather than an explicit loop.
121982         Use x2nrealloc rather than xrealloc.
121983         Allow the use of `\0' as a delimiter.
121984         (readtokens): Likewise.
121985         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121987 2004-03-30  Jim Meyering  <jim@meyering.net>
121989         * m4/realloc.m4: Remove file, since now it does no more than
121990         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121991         the `configure.ac' section of module/realloc.
121992         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121994 2004-03-30  Bruno Haible  <bruno@clisp.org>
121996         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121997         nonnull.
121999 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122001         Merge changes to getloadavg.c from coreutils and Emacs.
122003         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122004         Define to an expression, not to the empty string.
122005         Include cloexec.h and xalloc.h.
122006         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122007         Use set_cloexec_flag rather than rolling our own.
122008         * lib/cloexec.c, lib/cloexec.h: New files.
122010 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122012         * m4/cloexec.m4: New file.
122014 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122016         * lib/getopt.h: Sync with libc CVS.
122018 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122019             Bruno Haible  <bruno@clisp.org>
122021         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122022         mbswidth.
122024 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122025             Bruno Haible  <bruno@clisp.org>
122027         * lib/mbswidth.h: Include <wchar.h> only if
122028         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122029         <wchar.h>.
122030         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122032 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122034         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122035         Sync with libc CVS.
122036         * lib/getopt_int.h: New file, also synced from libc.
122038 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122040         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122041         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122042         Bring back getopt.c, getopt.h, getopt1.c.
122044 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122046         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122047         All uses changed.  Check for sa_sigaction member; this fixes
122048         a bug first reported by Jason Andrade in
122049         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122051 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122053         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122054         '#if' expressions.  Unlike the code it replaces, it does not
122055         depend on (defined _SC_PAGESIZE).  However, it does depend on
122056         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122057         first reported by Jason Andrade in
122058         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122060 2004-02-25  Simon Josefsson  <jas@extundo.com>
122062         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122064 2004-02-25  Simon Josefsson  <jas@extundo.com>
122066         * lib/strdup.h: New file.
122067         * lib/strdup.c: Include it.
122068         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122069         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122071 2004-02-23  Karl Berry  <karl@gnu.org>
122073         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122074         (from fencepost.gnu.org:/gd/gnuorg).
122076 2004-02-23  Karl Berry  <karl@gnu.org>
122078         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122079         * config/srclist.txt: add maintain/standards documents.
122081 2004-02-18  Bruno Haible  <bruno@clisp.org>
122083         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122084         Reported by Derek Robert Price <derek@ximbiot.com>.
122086 2004-02-16  Karl Berry  <karl@gnu.org>
122088         * config/mkinstalldirs, install-sh: update from automake.
122090 2004-02-06  Karl Berry  <karl@gnu.org>
122092         * m4/po.m4: update from gettext 0.14.1.
122094 2004-02-06  Karl Berry  <karl@gnu.org>
122096         * lib/config.charset: update from gettext 0.14.1.
122098 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122100         Add comments and code, prompted by suggestions from Bruno Haible
122101         for sh-quote.
122102         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122103         describing the enum quoting_style values.
122104         * lib/quotearg.c (quotearg_alloc): New function.
122105         (quotearg_buffer_restyled): Treat lone { and } as special.
122106         Treat = as special.  Work around bug with older shells
122107         that "see" a '\' that is really the 2nd byte of a multibyte char.
122108         Quote empty string with shell_quoting_style.
122110 2004-02-03  Bruno Haible  <bruno@clisp.org>
122112         * m4/pipe.m4: New file, from GNU gettext.
122114 2004-02-03  Bruno Haible  <bruno@clisp.org>
122116         * lib/pipe.h: New file, from GNU gettext.
122117         * lib/pipe.c: New file, from GNU gettext.
122119 2004-01-27  Bruno Haible  <bruno@clisp.org>
122121         * m4/execute.m4: New file, from GNU gettext.
122123 2004-01-27  Bruno Haible  <bruno@clisp.org>
122125         * lib/execute.h: New file, from GNU gettext.
122126         * lib/execute.c: New file, from GNU gettext.
122127         * lib/w32spawn.h: New file, from GNU gettext.
122129 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122131         Merge from diffutils.
122133         * lib/file-type.c (file_type): Add typed memory objects.
122134         * lib/file-type.h (S_TYPEISTMO): New macro.
122136         * lib/c-stack.h (c_stack_action): Remove argv argument.
122137         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122138         (die): Don't calculate message unless segv_action returns.
122139         (get_stack_location, min_address_from_argv, max_address_from_argv,
122140         volatile stack_base, volatile_stack_size): Remove.
122141         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122142         that every segmentation violation is a stack overflow.  (Ouch!)
122143         See Debian bug 136249 (still outstanding) for more info about why
122144         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122146 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122148         Exit-status fix from coreutils.
122150         Use exit_failure consistently in place of EXIT_FAILURE,
122151         so that program exit statuses are consistent on failure.
122153         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122154         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122155         * lib/argmatch.h: Comment fix to match the above.
122156         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122157         Now a macro referring to exit_failure, instead of a separate
122158         variable.  Include "exitfail.h" to get it.
122159         * lib/xstrtol.h: Include "exitfail.h".
122160         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122162         * lib/long-options.c (parse_long_options): Use prototype
122163         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122164         for clarity.
122166 2004-01-21  Jim Meyering  <jim@meyering.net>
122168         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122169         so as not to conflict with a different-sized __mktime_internal
122170         function in GNU libc.
122171         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122172         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122174 2004-01-20  Karl Berry  <karl@gnu.org>
122176         * config/config.guess: update from config.
122178         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122180 2004-01-20  Bruno Haible  <bruno@clisp.org>
122182         Safer stack allocation.
122183         * lib/setenv.c: Include allocsa.h.
122184         (alloca): Remove fallback definition.
122185         (freea): Remove macro.
122186         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122187         instead of freea.
122189 2004-01-20  Bruno Haible  <bruno@clisp.org>
122191         * m4/eealloc.m4: New file, from GNU gettext.
122193 2004-01-20  Bruno Haible  <bruno@clisp.org>
122195         * m4/allocsa.m4: New file, from GNU gettext.
122197 2004-01-20  Bruno Haible  <bruno@clisp.org>
122199         * lib/xallocsa.h: New file, from GNU gettext.
122200         * lib/xallocsa.c: New file, from GNU gettext.
122202 2004-01-20  Bruno Haible  <bruno@clisp.org>
122204         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122206 2004-01-20  Bruno Haible  <bruno@clisp.org>
122208         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122209         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122210         specially.
122212 2004-01-20  Bruno Haible  <bruno@clisp.org>
122214         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122215         patch.
122217 2004-01-20  Bruno Haible  <bruno@clisp.org>
122219         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122221 2004-01-20  Bruno Haible  <bruno@clisp.org>
122223         * lib/eealloc.h: New file.
122225 2004-01-20  Bruno Haible  <bruno@clisp.org>
122227         * lib/binary-io.h: Avoid warnings on Cygwin.
122229 2004-01-20  Bruno Haible  <bruno@clisp.org>
122231         * lib/allocsa.h: New file, from GNU gettext.
122232         * lib/allocsa.c: New file, from GNU gettext.
122234 2004-01-18  Karl Berry  <karl@gnu.org>
122236         * doc/gpl.texi, doc/lgpl.texi: new files.
122238 2004-01-18  Karl Berry  <karl@gnu.org>
122240         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122241         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122243 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122245         Merge from coreutils.
122247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122248         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122249         (gl_DEFAULT_POSIX2_VERSION): Move
122250         the documentation from 'configure' into 'config.hin',
122251         so that 'configure --help' isn't burdened by it and
122252         we don't have to worry about its formatting there.
122253         Reword the documentation so that it's more succinct
122254         and can be run together into a single paragraph.
122255         * m4/same.m4 (gl_SAME): Check for pathconf.
122257 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122259         Merge from coreutils.
122261         * lib/posixver.c: Include posixver.h.
122263         * lib/same.c: Include <stdbool.h>, <limits.h>.
122264         (_POSIX_NAME_MAX): Define if not defined.
122265         (MIN): New macro.
122266         (same_name): If file names are silently truncated, report
122267         that the file names are the same if they are the same after
122268         the silent truncation.
122270         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122271         conversion function.
122272         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122273         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122274         longer needed.
122276 2004-01-15  Jim Meyering  <jim@meyering.net>
122278         Merge from coreutils.
122280         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122281         if no library is required.
122282         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122283         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122284         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122285         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122286         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122287         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122288         value, $ac_cv_search_crypt, if it's "none required".
122289         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122290         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122291         not gl_FUNC_GETLOADAVG.
122292         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122293         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122295 2004-01-15  Jim Meyering  <jim@meyering.net>
122297         Merge from coreutils.
122299         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122300         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122301         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122303         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122304         optional configure-time default.
122306         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122308         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122310 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122312         Merge from coreutils.
122314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122315         value, $ac_cv_search_nanosleep, if it's "none required".
122317 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122319         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122320         with like-named macro in fnmatch.c.
122321         (EXT): Use an internal constant instead.
122323         Merge fnmatch patches from glibc.
122324         * lib/fnmatch.c (mbsinit): Remove define.
122325         Add libc_hidden_ver (__fnmatch, fnmatch).
122326         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122327         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122329 2004-01-14  Karl Berry  <karl@gnu.org>
122331         * config/install-sh: update from automake.
122333 2004-01-13  Karl Berry  <karl@gnu.org>
122335         * config/install-sh: update from automake.
122337 2004-01-09  Karl Berry  <karl@gnu.org>
122339         * config/install-sh: update from automake.
122341 2004-01-05  Karl Berry  <karl@gnu.org>
122343         * config/config.{sub,guess}: update from config.
122345 2003-12-31  Karl Berry  <karl@gnu.org>
122347         * config/depcomp: update from automake.
122349 2003-12-14  Karl Berry  <karl@gnu.org>
122351         * lib/config.charset: update from gettext-runtime.
122353 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122355         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122356         Bug reported by Alfred M. Szmidt.
122358 2003-12-03  Bruno Haible  <bruno@clisp.org>
122360         * m4/gettext.m4: Upgrade from gettext-0.13.
122361         * m4/po.m4: Upgrade from gettext-0.13.
122362         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122363         * m4/intmax.m4: New file, from gettext-0.13.
122364         * m4/printf-posix.m4: New file, from gettext-0.13.
122366 2003-11-29  Karl Berry  <karl@gnu.org>
122368         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122370 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122371             Bruno Haible  <bruno@clisp.org>
122373         * lib/printf-parse.h: Don't include sys/types.h.
122374         (ARG_NONE): New macro.
122375         (char_directive): Change type of *arg_index fields to size_t.
122376         * lib/printf-parse.c: Don't include sys/types.h.
122377         (SSIZE_MAX): Remove macro.
122378         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122379         Remove unnecessary overflow check.
122380         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122381         fields.
122383 2003-11-25  Bruno Haible  <bruno@clisp.org>
122385         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122387 2003-11-25  Bruno Haible  <bruno@clisp.org>
122389         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122390         gt_TYPE_SSIZE_T.
122392 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122394         * modules/alloca: Remove dependency on xalloc.
122396 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122398         * lib/alloca.c: Remove dependency on xalloc module.
122399         (xalloc_die): Remove.
122400         (memory_full) [!defined emacs]: New macro.
122401         [!defined emacs]: Don't include xalloc.h.
122402         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122403         address arithmetic overflows.  Change datatypes a bit to avoid
122404         unnecessary casts.
122406 2003-11-22  Jim Meyering  <jim@meyering.net>
122408         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122409         s/size/size_t/.
122411 2003-11-21  Karl Berry  <karl@gnu.org>
122413         * config/config.{sub,guess}: update from config.
122415 2003-11-18  Karl Berry  <karl@gnu.org>
122417         * config/config.{sub,guess}: update from config.
122419         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
122421 2003-11-17  Paul Eggert  <eggert@twinsun.com>
122423         * README: Mention that S+T cannot overflow if S is the size of
122424         an existing object and T is sufficiently small.
122426 2003-11-17  Jim Meyering  <jim@meyering.net>
122428         On systems without utime and without a utimes function capable of
122429         dealing with a NULL struct utimbuf* argument, this utime replacement
122430         could -- in unusual circumstances -- leak a file descriptor.
122431         * lib/utime.c: Include <unistd.h> and <errno.h>.
122432         (utime_null): Be sure to close `fd' and to preserve errno.
122433         Reported by Geoff Collyer via Arnold Robbins.
122435 2003-11-17  Bruno Haible  <bruno@clisp.org>
122437         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122438         (Depends-on): Add xsize.
122440 2003-11-17  Bruno Haible  <bruno@clisp.org>
122442         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122444 2003-11-17  Bruno Haible  <bruno@clisp.org>
122446         * lib/vasnprintf.c (alloca): Remove fallback definition.
122447         (freea): Remove definition.
122448         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122449         Reported by Paul Eggert.
122451 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122452             Bruno Haible  <bruno@clisp.org>
122454         Protect against address arithmetic overflow.
122455         * lib/printf-args.h: Include stddef.h.
122456         (arguments): Change type of field 'count' to size_t.
122457         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122458         'unsigned int' where appropriate.
122459         * lib/printf-parse.h: Include sys/types.h.
122460         (char_directive): Change type of *arg_index fields to ssize_t.
122461         (char_directives): Change type of fields 'count', max_*_length to
122462         size_t.
122463         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122464         (SSIZE_MAX): Define fallback value.
122465         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122466         instead of 'int' where appropriate. Check a_allocated, d_allocated
122467         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122468         * lib/vasnprintf.c: Include xsize.h.
122469         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122470         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122471         overflow. Avoid wraparound when converting a width or precision from
122472         decimal to binary.
122474 2003-11-16  Bruno Haible  <bruno@clisp.org>
122476         Update from GNU gettext.
122477         * lib/printf-parse.c: Generalize to it can be compiled for wide
122478         strings.
122479         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122480         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122481         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122482         SNPRINTF): New macros.
122483         Don't include <alloca.h> if the file is used inside libintl.
122484         (local_wcslen): New function, for Solaris 2.5.1.
122485         (VASNPRINTF): Use it instead of wcslen.
122487 2003-11-16  Bruno Haible  <bruno@clisp.org>
122489         * lib/xsize.h (xmax): New function.
122490         (xsum, xsum3, xsum4): Declare as "pure" functions.
122492 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122494         * modules/xalloc (Files): Undo latest change, since xalloc.h
122495         no longer needs SIZE_MAX or PTRDIFF_MAX.
122497 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122499         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122500         gl_PTRDIFF_MAX.
122502 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122504         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122505         "return", to pacify some unknown compiler.  Problem reported
122506         by Joerg Schilling.
122508 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122510         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122511         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122512         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122513         heuristic is just as accurate as far as we know, and it removes a
122514         dependency on size_max.m4 and ptrdiff_max.m4.
122516 2003-11-11  Bruno Haible  <bruno@clisp.org>
122518         * modules/xsize (Files): Add m4/size_max.m4.
122519         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122521 2003-11-11  Bruno Haible  <bruno@clisp.org>
122523         * m4/size_max.m4: New file.
122524         * m4/ptrdiff_max.m4: New file.
122525         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122526         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122527         (gl_XALLOC): Invoke it.
122529 2003-11-11  Bruno Haible  <bruno@clisp.org>
122531         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122532         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122533         defined.
122535 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122537         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122538         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122539         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122540         From Bruno Haible.
122541         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122542         not (size_t) -1, since it's defined here.
122544 2003-11-09  Karl Berry  <karl@gnu.org>
122546         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122548 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122550         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122551         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122552         Reject sizes of exactly SIZE_MAX bytes.
122553         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122554         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122556 2003-11-05  Bruno Haible  <bruno@clisp.org>
122558         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122559         SIZE_MAX defined in <limits.h> on Solaris.
122561 2003-11-04  Jim Meyering  <jim@meyering.net>
122563         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122564         variable names, rather than @VAR@.
122565         * modules/poll: Likewise.
122567 2003-11-04  Bruno Haible  <bruno@clisp.org>
122569         * modules/xsize: New file.
122570         * modules/linebreak: Depend on xsize.
122571         * MODULES.html.sh (func_all_modules): Add xsize.
122573 2003-11-04  Bruno Haible  <bruno@clisp.org>
122575         * m4/xsize.m4: New file.
122577 2003-11-04  Bruno Haible  <bruno@clisp.org>
122579         * lib/xsize.h: New file.
122580         * lib/linebreak.c: Include xsize.h.
122581         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122582         argument for overflow.
122583         Suggested by Paul Eggert.
122585 2003-11-03  Karl Berry  <karl@gnu.org>
122587         * config/config.{guess,sub}: update from config.
122589 2003-11-03  Jim Meyering  <jim@meyering.net>
122591         * modules/userspec (lib_SOURCES): Add userspec.h.
122592         (Include): Add "userspec.h".
122593         Improve description.
122595 2003-11-03  Jim Meyering  <jim@meyering.net>
122597         * lib/userspec.c: Include "userspec.h".
122598         * lib/userspec.h: New file.
122600 2003-11-03  Bruno Haible  <bruno@clisp.org>
122602         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122604 2003-11-03  Bruno Haible  <bruno@clisp.org>
122606         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122607         available, to avoid (extremely rare) race condition.
122608         Suggested by Paul Eggert.
122610 2003-11-02  Karl Berry  <karl@gnu.org>
122612         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122614 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122616         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122617         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122618         (read_filesystem_list): Set and use me_type_malloced.
122619         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122620         whatever the type happens to be), for brevity and consistency.
122621         Check for size calculation overflow on Alphas running OSF/1.
122623 2003-10-31  Jim Meyering  <jim@meyering.net>
122625         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122627         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122629 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122630             Bruno Haible  <bruno@clisp.org>
122632         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122633         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122635 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122637         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122638         netbsd*-gnu*.  Suggested by Robert Millan.
122640 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122642         * modules/group-member: Depend on stdbool.
122644 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122646         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122650         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122651         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122652         after the 'gnu' in these cases.  This fixes some bugs in the
122653         previous change, and is based on suggestions by Robert Millan.
122655 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122657         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122658         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122659         no longer needed.
122660         * lib/quotearg.c (quotearg_n_options): Use it.
122661         * lib/group-member.c: Include <stdbool.h>.
122662         (free_group_info): Arg is now const *; don't free arg.
122663         (get_group_info): Now returns bool and accepts struct group_info *,
122664         rather than returning a malloc'ed struct group_info *.
122665         All uses changed.  Check for overflow in internal size calculation.
122667         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122668         rather than xmalloc/xrealloc.
122669         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122670         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122671         conformance bug: the old code used a pointer after freeing the
122672         storage that it addressed.
122673         * lib/hash.c (hash_initialize): Simplify the code by using
122674         xalloc_oversized rather than doing it by hand.
122675         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122676         the buffer preserved.  Use free and xmalloc instead.
122677         * lib/quotearg.c (quotearg_n_options): Likewise.
122678         Use a simpler test for size overflow.  Don't use xalloc_oversized
122679         because unsigned int might be wider than size_t (!); this suggests
122680         that we should switch from unsigned int to size_t for slot numbers.
122682 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122684         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122685         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122686         NetBSD kernels.  Requested by Richard Stallman.
122688 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122690         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122691         to allocate the returned structure.  Do not allocate a subarray,
122692         as x2nrealloc will do that.
122693         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122694         instead of xnrealloc.
122695         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122697 2003-10-27  Bruno Haible  <bruno@clisp.org>
122699         * lib/stdbool_.h: Better support for BeOS.
122701 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122703         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122704         now uses inline.
122706 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122708         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122709         callers that want to do their own size-overflow checking.  Include
122710         <stdbool.h>, since xalloc_oversized returns bool.
122711         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122712         to use xalloc_oversized.
122714         Add two functions x2realloc, x2nrealloc, for programs that grow
122715         arrays dynamically by doubling their sizes.
122716         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122717         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122718         New functions.
122720         Port to C99 semantics for 'inline' of external functions.
122721         Bug reported by Bruno Haible.
122722         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122723         with the old contents of xnmalloc.
122724         (xnmalloc, xmalloc): Use it.
122725         (xnrealloc_inline): New static inline function,
122726         with the old contents of xnrealloc.
122727         (xnrealloc, xrealloc): Use it.
122729         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122730         that.
122732 2003-10-26  Karl Berry  <karl@gnu.org>
122734         * config/srclist.txt (COPYING.DOC): no longer available from
122735         /gd/gnuorg; don't know where the ultimate source is.
122737 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122739         Fix several address-calculation bugs in the hash modules,
122740         plus some minor code cleanup.
122742         * lib/hash.h: Include <stdbool.h>, for bool.
122743         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122744         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122745         hash_get_n_entries, hash_get_max_bucket_length,
122746         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122747         hash_rehash): Use size_t rather than unsigned.
122748         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122749         hash_get_n_buckets_used, hash_get_n_entries,
122750         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122751         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122752         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122753         Likewise.
122754         (SIZE_MAX): Define if not defined.
122755         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122756         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122757         hash_print):
122758         Use const * when possible.
122759         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122760         (check_tuning): Fix bug: if tuning parameters were very close to
122761         0 or 1, rounding errors could have caused subscript violations.
122762         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122763         (hash_initialize): Add 'fail:' label
122764         to free table and return NULL, and use it to simplify code.
122765         Use calloc rather than clearing the storage ourself.
122766         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122767         buffer size calculations.
122768         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122769         Include <stddef.h>, for size_t.
122770         * lib/hash-pjw.c (hash_pjw): Likewise.
122771         Switch to method described by Bruno Haible.
122772         Include <limits.h>, for CHAR_BIT.
122773         (SIZE_BITS): New macro.
122775 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122777         * m4/getline.m4 (AM_FUNC_GETLINE):
122778         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122779         hosts.  Problem reported by Derek Robert Price in
122780         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122781         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122782         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122784 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122786         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122787         ceiling the allocation at NMAX bytes rather than silently
122788         discarding input bytes before NMAX is reached.  This makes
122789         a difference only if NMAX exceeds SIZE_MAX / 2.
122791         * lib/obstack.c: Merge from glibc.
122792         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122793         Add libc_hidden_def (_obstack_newchunk).
122794         (_obstack_free) [! defined _LIBC]: Remove.
122795         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122796         a clone of the function body.
122797         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122798         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122800         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122801         glibc.
122802         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122803         arg to memcpy.
122805         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122806         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122807         Don't use lvalue casts, as GCC plans to remove support for them
122808         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122809         was also present in the non-GCC version, indicating that this
122810         code had always been buggy and had never been widely used.
122811         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122812         Use the fast variant of each macro, rather than copying the
122813         definiens of the fast variant; that way, we'll be more likely to
122814         catch future bugs in the fast variants.
122816 2003-10-20  Bruno Haible  <bruno@clisp.org>
122818         * modules/wait-process: New file.
122819         * MODULES.html.sh (func_all_modules): Add wait-process.
122821 2003-10-20  Bruno Haible  <bruno@clisp.org>
122823         * m4/wait-process.m4: New file.
122825 2003-10-20  Bruno Haible  <bruno@clisp.org>
122827         * lib/wait-process.h: New file, from GNU gettext.
122828         * lib/wait-process.c: New file, from GNU gettext.
122830 2003-10-19  Jim Meyering  <jim@meyering.net>
122832         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122833         HPUX 10.20.
122835 2003-10-18  Karl Berry  <karl@gnu.org>
122837         * config/config.guess: update from config.
122839 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122841         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122842         (getgroups): First arg is int, not size_t.
122843         Don't let 'free' mangle errno.
122845 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122847         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122849 2003-10-16  Karl Berry  <karl@gnu.org>
122851         * config/config.{guess,sub}: update from config.
122853 2003-10-16  Jim Meyering  <jim@meyering.net>
122855         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122856         memcpy.
122858 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122860         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122861         (SIZE_MAX): Remove.
122862         (new_exclude, add_exclude_file): Initial size no longer needs to
122863         be a power of 2.
122864         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122865         our own address arithmetic overflow checking.
122867         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122868         (fnmatch): Do not alloca more than 2000 wide characters;
122869         instead, use malloc for large buffers.
122870         Check for address arithmetic overflow, and return -1
122871         with errno set to ENOMEM in that case.
122872         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122873         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122874         instead, return -1.  Check for address arithmetic overflow.
122876 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122878         Handle invalid suffixes and overflow independently, so that
122879         callers can treat them independently as needed.  Fix some bugs in
122880         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122881         suffix for a human-readable blocksize.  The major caller-visible
122882         change is the addition of a new
122883         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122884         that both overflow and suffix chars were found.
122886         * lib/human.c (humblock): Don't check separately for invalid suffix
122887         char; that is xstrtoumax's job (now that its bug is fixed).
122888         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122889         INTMAX_MAX]: New macros.
122890         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122891         TYPE_MAXIMUM): New macros.
122892         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122893         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122894         if overflow occurs, as it's what __strtol does and it's more useful
122895         in practice.
122896         (__xstrtol): If __strtol reports some error other than ERANGE,
122897         reflect it to the caller as LONGINT_INVALID.  If it reports
122898         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122899         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122900         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122901         value.
122902         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122903         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122904         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122905         [defined UINTMAX_MAX]: New macros.
122907 2003-10-14  Bruno Haible  <bruno@clisp.org>
122909         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122911 2003-10-14  Bruno Haible  <bruno@clisp.org>
122913         * m4/sig_atomic_t: New file, from GNU gettext.
122914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122916 2003-10-14  Bruno Haible  <bruno@clisp.org>
122918         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122919         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122920         Also use volatile where needed.
122922 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122924         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122925         Change maintainer from Bruno Haible to 'all'.
122927 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122929         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122931 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122933         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122934         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122935         and define in terms of the other primitives.
122936         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122937         (SIZE_MAX): Define if not already defined.
122938         (array_size_overflow): New function.
122939         (xalloc_die): Abort instead of exiting if 'error' returns.
122940         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122941         (xmalloc, xrealloc): Use them.
122942         (xcalloc): Check for address arithmetic overflow.
122943         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122944         a bit faster than strcpy.
122946 2003-10-10  Simon Josefsson  <jas@extundo.com>
122948         * modules/argp (Depends-on): Add restrict and strcase.
122950 2003-10-10  Simon Josefsson  <jas@extundo.com>
122952         * m4/argp.m4: Add AC_C_INLINE.
122954 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122956         Merge getpass from libc, plus a few fixes.
122958         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122959         Include <stdbool.h>.
122960         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122961         __fsetlocking to empty.
122962         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122963         do include <bits/libc-lock.h>.
122964         Do not include <fcntl.h>; not needed.
122965         [_LIBC]: Include <wchar.h>.
122966         (NOTCANCEL_MODE): New macro.
122967         (flockfile, funlockfile) [_LIBC]: New macros.
122968         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122969         [!_LIBC]: New macros.
122970         (call_fclose): New function.
122971         (getpass): Use it.  Save tty stream separately; this simplifies the
122972         code and makes it more reliable if stdin happens to equal stdout.
122973         Invoke __fsetlocking on tty.
122974         Handle thread cancellation if needed.
122975         Namespace cleanup (use __tcgetattr, __getline).
122976         Use bool for Booleans.
122977         [USE_IN_LIBIO]: Handle wide streams.
122978         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122979         stream might go where.
122981         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122982         doesn't have to include <stdio.h> before us.
122983         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122984         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122985         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122986         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122987         if not declared, so that we can use getpass.c code from libc without
122988         rewriting it.
122989         (flockfile, ftrylockfile, funlockfile): New macros.
122991 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122993         * modules/getpass: Depend on stdbool.
122995 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122997         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122999 2003-10-07  Karl Berry  <karl@gnu.org>
123001         * config/config.{guess,sub}: update from config.
123003 2003-10-06  Jim Meyering  <jim@meyering.net>
123004             Bruno Haible  <bruno@clisp.org>
123006         This lets translators provide better translations for the
123007         "Written by ..." part of --version output.
123008         * lib/version-etc.h: Include stdarg.h.
123009         (version_etc_copyright): Declare as readonly.
123010         (version_etc): Make this function variadic with a NULL-terminated list
123011         of author name strings.
123012         (version_etc_va): New declaration.
123013         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123014         (version_etc_copyright): Declare as readonly.
123015         (version_etc_va): New function. Provide a different translatable string
123016         for each possible number of authors < 10. Abbreviate when there are 10
123017         authors or more.
123018         (version_etc): Make this function variadic. Call version_etc_va.
123019         Suggestion from Gary V. Vaughan.
123021         * lib/long-options.h (parse_long_options): Change prototype: the
123022         authors string is moved to the end and becomes variadic.
123023         * lib/long-options.c: Include stdarg.h.
123024         (parse_long_options): Make this function variadic, too.
123025         Call version_etc_va, not version_etc.
123027 2003-10-06  Bruno Haible  <bruno@clisp.org>
123029         * modules/version-etc-2: Remove file.
123030         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123032 2003-10-06  Bruno Haible  <bruno@clisp.org>
123034         * modules/fatal-signal: New file.
123035         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123037 2003-10-06  Bruno Haible  <bruno@clisp.org>
123039         * m4/fatal-signal.m4: New file.
123040         * m4/signalblocking.m4: New file, from GNU gettext.
123042 2003-10-06  Bruno Haible  <bruno@clisp.org>
123044         * lib/version-etc-2.h: Remove file.
123045         * lib/version-etc-2.c: Remove file.
123047 2003-10-06  Bruno Haible  <bruno@clisp.org>
123049         * lib/fatal-signal.h: New file, from GNU gettext.
123050         * lib/fatal-signal.c: New file, from GNU gettext.
123052 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123054         * README: Rework advice for preventing empty .o files.
123055         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123056         not <sys/types.h>.
123058 2003-10-04  Karl Berry  <karl@gnu.org>
123060         * lib/argp*: update from libc.
123062 2003-10-04  Karl Berry  <karl@gnu.org>
123064         * config/config.{guess,sub}: update from config.
123066 2003-10-02  Bruno Haible  <bruno@clisp.org>
123068         * modules/lchown (Include): Add lchown.h.
123069         * modules/time_r (Include): Use "..." syntax.
123070         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123072 2003-10-01  Simon Josefsson  <jas@extundo.com>
123074         * MODULES.html.sh (func_all_modules): Move gethostname from section
123075         'based on' to section 'lacking' POSIX:2001.
123077 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123079         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123080         to output mode on the same stream.
123082 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123084         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123085         Fix arg typo in previous patch.
123087 2003-09-28  Jim Meyering  <jim@meyering.net>
123089         * lib/error.c: Correct cpp indentation.
123091 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123093         * modules/free: New file.
123095 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123097         * m4/free.m4: New file.
123099 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123101         * lib/minmax.h (MIN, MAX)
123102         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123103         Omit the special code that used __typeof__, since we worry that
123104         it could be more trouble than it's worth.  See:
123105         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123106         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123108         * lib/free.c: New file.
123110 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123112         Trivial fixes to Makefile.am parts of module listings.
123113         * modules/strstr: Append strstr.h to lib_SOURCES.
123114         * modules/strcase: Likewise, for strcase.h.
123116 2003-09-27  Karl Berry  <karl@gnu.org>
123118         * config/mkinstalldirs: update from automake.
123120 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123122         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123123         (error_tail): Do not loop, reallocating temporary buffer, since
123124         the output cannot contain more wide characters than the input
123125         contains bytes, the size must be big enough already.  This avoids
123126         one potential size overflow calculation.  Check for size overflow
123127         when calculating temporary buffer size.  Free temporary buffer
123128         when done, if it was allocated with malloc; this plugs a memory
123129         leak.  Remove casts from void * to pointers, that are no longer
123130         needed now that we're assuming C89 or better.
123132         Merge error changes from glibc.
123134         * lib/error.c, error.h: Update copyright notice header to match glibc.
123135         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123136         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123137         Disable cancellation while printing error.
123138         * lib/error.h: Prepend __ to parameter names.
123140 2003-09-26  Jim Meyering  <jim@meyering.net>
123142         * lib/error.c (error_tail): Move some declarations
123143         into inner scope where the local variables are used.
123145 2003-09-26  Bruno Haible  <bruno@clisp.org>
123147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123148         stpncpy().
123149         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123151 2003-09-26  Bruno Haible  <bruno@clisp.org>
123153         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123154         (stpncpy): Define as alias for gnu_stpncpy.
123155         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123157 2003-09-25  Simon Josefsson  <jas@extundo.com>
123159         * lib/xgetdomainname.h: New file.
123160         * lib/xgetdomainname.c: New file.
123162 2003-09-25  Simon Josefsson  <jas@extundo.com>
123163             Bruno Haible  <bruno@clisp.org>
123165         * modules/getdomainname: New file.
123166         * modules/xgetdomainname: New file.
123167         * MODULES.html.sh (func_all_modules): Add getdomainname,
123168         xgetdomainname.
123170 2003-09-25  Simon Josefsson  <jas@extundo.com>
123171             Bruno Haible  <bruno@clisp.org>
123173         * m4/getdomainname.m4: New file.
123175 2003-09-25  Simon Josefsson  <jas@extundo.com>
123176             Bruno Haible  <bruno@clisp.org>
123178         * lib/getdomainname.h: New file.
123179         * lib/getdomainname.c: New file.
123181 2003-09-25  Karl Berry  <karl@gnu.org>
123183         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123185 2003-09-25  Karl Berry  <karl@gnu.org>
123187         * config/install-sh: update from automake.
123189 2003-09-25  Bruno Haible  <bruno@clisp.org>
123191         * modules/version-etc-2: New file, from modules/version-etc with
123192         modifications.
123193         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123195 2003-09-25  Bruno Haible  <bruno@clisp.org>
123197         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123198         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123200 2003-09-24  Simon Josefsson  <jas@extundo.com>
123202         * modules/xgethostname: Add xgethostname.h.
123204 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123206         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123207         the buffer associated with the argument.  Bug reported by
123208         Simon Josefsson.
123210 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123212         * README: Document assumptions that 'int' is at least 32 bits
123213         wide, that integer arithmetic is 2's complement without overflow,
123214         that there are no holes in integer values, that adding sizes of
123215         two nonoverlapping objects can't overflow, and that all-bits-zero
123216         yields scalar zero.  Fix spelling and capitalization typos.
123218 2003-09-19  Karl Berry  <karl@gnu.org>
123220         * lib/argp.h: update from libc.
123222 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123225         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123226         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123228 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123230         * gnulib-tool: Use "test -h", not "test -L", for portability
123231         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123232         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123233         (sed_extract_prog): Issue s commands one-by-one, rather than
123234         using \| in one s command.
123236 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123238         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123239         input error, instead of returning NULL the next time we are called
123240         (and therefore losing track of errno).
123242 2003-09-16  Bruno Haible  <bruno@clisp.org>
123244         * gnulib-tool (func_create_testdir): Warn about duplicated
123245         dependencies.
123247 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123249         * modules/argmatch, modules/fatal, modules/obstack,
123250         modules/xalloc, modules/xgethostname: Sort dependencies by
123251         importance, not alphabetically.
123253 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123255         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123256         fails, so that the caller gets the proper errno.
123258         * lib/readutmp.c (read_utmp): Likewise.
123259         Check for fstat error.  Close stream and free storage
123260         when failing.
123262 2003-09-14  Karl Berry  <karl@gnu.org>
123264         * config/srclist.txt (strdup.c): disable for c89 changes.
123266 2003-09-14  Jim Meyering  <jim@meyering.net>
123268         * lib/getloadavg.c: Correct cpp indentation.
123269         * lib/strdup.c: Likewise.
123270         * lib/vasnprintf.c: Likewise.
123272 2003-09-14  Bruno Haible  <bruno@clisp.org>
123274         * modules/fwriteerror: New file.
123275         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123277 2003-09-14  Bruno Haible  <bruno@clisp.org>
123279         * lib/fwriteerror.h: New file.
123280         * lib/fwriteerror.c: New file.
123282 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123284         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123285         modules/xgethostname, modules/xalloc: Depend on exit.
123287 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123289         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123291         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123292         and AC_MINIX, too, so that their extensions are available.
123294         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123295         This macro has been superseded by gl_BACKUPFILE.
123297         More patches to assume C89 or better.
123299         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123301         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123302         unconditionally.
123303         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123304         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123305         Include <string.h>, <stdlib.h> unconditionally.
123306         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123307         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123308         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123309         headers or for string.h.
123310         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123311         or strtoul.
123313         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123314         headers.
123315         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123316         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123317         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123318         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123320         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123321         memcpy, memset.
123322         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123323         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123324         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123325         strtol.
123326         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123327         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123328         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123329         strtoul.
123331 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123333         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123334         * lib/obstack.c [!defined _LIBC]: Likewise.
123335         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123336         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123337         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123339         More changes to assume C89 or better.
123341         * lib/error.c (error_tail): Assume vprintf.
123343         * lib/argmatch.c (getenv): Remove decl.
123344         * lib/progreloc.c (get_full_program_name): Define via prototype.
123345         * lib/setenv.c (clearenv): Likewise.
123346         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123347         needed.
123348         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123349         (malloc, memcpy): Remove decls.
123350         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123351         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123352         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123353         (memcpy): Remove macro.
123354         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123355         (__P): Remove.  All uses removed.
123356         (PTR): Remove.  All uses changed to void *.
123357         (CHAR_BIT, NULL): Remove.
123358         (spaces, zeros, memset_space, memset_zero)
123359         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123360         Remove.
123361         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123362         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123363         Define with prototype.
123364         Remove now-unnecessary prototype decl.
123365         (extra_args_spec): Assume ANSI C.  All uses changed.
123366         (extra_args_spec_iso): Remove.
123367         (my_strftime, emacs_strftimeu): Define via prototype.
123368         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123369         unconditionally.
123370         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123371         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123372         (strtoul, strtol): Remove decls.
123373         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123374         LONG_MAX): Remove.
123375         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123376         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123377         (LOCALE_PARAM_PROTO): New macro.
123378         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123379         (INTERNAL (strtol), strtol): Define with a prototype.
123380         (PARAMS): Remove.  All uses removed.
123381         * lib/tempname.c: Include <string.h> unconditionally.
123382         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123383         * lib/xgethostname.c (main): Define with a prototype.
123384         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123385         Include <stdlib.h> unconditionally.
123386         (calloc, malloc, realloc, free): Remove decls.
123387         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123388         Include <stdlib.h> unconditionally.  Sort include file names.
123389         (strtod): Remove.
123390         (xstrtod): Define with a prototype.
123391         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123392         (strtol, strtoul): Remove decls.
123394 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123396         More patches to assume C89 or better.
123397         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123398         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123399         string.h, memchr, STDC_HEADERS.
123401 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123403         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123404         Include <stdlib.h>, <string.h> unconditionally.
123405         Remove now-unnecessary cast to char *.
123406         * lib/strnlen.c: Include <string.h> unconditionally.
123407         * lib/yesno.c (yesno): Define with a prototype.
123409 2003-09-11  Bruno Haible  <bruno@clisp.org>
123411         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
123413 2003-09-10  Jim Meyering  <jim@meyering.net>
123415         * lib/error.c: Correct indentation of cpp directives.
123417 2003-09-10  Bruno Haible  <bruno@clisp.org>
123419         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
123420         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
123421         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
123422         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
123423         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
123424         <stdlib.h> and <string.h> checks.
123425         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
123426         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
123428 2003-09-10  Bruno Haible  <bruno@clisp.org>
123430         * lib/strcspn.c: Include <string.h> unconditionally.
123431         * lib/strpbrk.c: Include <string.h> unconditionally.
123432         * lib/strstr.c: Include <string.h> unconditionally.
123433         * lib/unicodeio.c: Include <string.h> unconditionally.
123434         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
123435         * lib/unsetenv.c: Likewise.
123436         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
123437         * lib/yesno.c: Include <stdlib.h> unconditionally.
123438         (rpmatch): Add prototype.
123440 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123442         More patches to assume C89 or better.
123443         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123444         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123445         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123446         or for string.h.
123447         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123448         stdlib.h.
123449         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123450         C headers.
123451         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123452         string.h.
123453         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123454         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123455         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123456         or for string.h.
123457         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123458         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123459         C headers.
123460         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123461         memcpy.
123462         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123463         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123464         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123465         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123466         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123467         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123468         string.h, free.
123469         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123470         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123471         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123472         C headers, or for string.h.
123473         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123474         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123475         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123476         headers, memory.h, stdlib.h, string.h, strings.h.
123477         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123478         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123479         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123480         strchr.
123481         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123482         headers, memory.h, string.h.
123483         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123484         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123485         free.
123486         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123487         headers.
123488         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123489         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123490         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123491         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123492         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123494 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123496         More K&R removal.
123498         * lib/acosl.c (main): Use a prototype.
123499         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123500         tanl.c: Likewise.
123502         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123504         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123505         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123506         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123507         with a prototype.
123508         * lib/getopt.c (const): Remove macro.
123509         Include <string.h> unconditionally.
123510         (my_index): Remove; all uses changed to strchr.
123511         (strlen): Remove decl.
123512         (exchange): Remove forward decl; no longer needed.
123513         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123514         Define with prototype.
123515         * lib/getopt1.c (const): Remove macro.
123516         (getopt_long, getopt_long_only, main): Define with prototype.
123518         * lib/getugroups.c: Include <string.h> unconditionally.
123520         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123521         (getusershell, setusershell, endusershell, readname, main):
123522         Define with prototypes.
123524         * lib/group-member.c: Include group-member.h first.
123525         Include <stdlib.h> unconditionally.
123527         * lib/hard-locale.c: Include hard-locale.h first.
123528         Include <stdlib.h>, <string.h> unconditionally.
123530         * lib/hash.c (free, malloc): Remove decls.
123531         Include <stdlib.h> unconditionally.
123533         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123534         (getenv): Do not declare.
123536         * lib/idcache.c: Include <string.h> unconditionally.
123538         * lib/long-options.c: Include long-options.h first, to test interface.
123539         Include <stdlib.h> unconditionally.
123541         * lib/makepath.c: Include makepath.h first, to test interface.
123542         Include <stdlib.h> and <string.h> unconditionally.
123544         * lib/linebuffer.c: Include <stdlib.h>.
123545         (free): Remove decl.
123547         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123548         stddef.h. rpl_malloc returns void *, not char *.
123549         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123550         prototype.
123552         * lib/md5.h: Include <limits.h> unconditionally.
123553         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123554         (__P): Remove; all uses removed.
123555         * lib/md5.c: Include "md5.h" first.
123556         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123557         md5_buffer, md5_process_bytes, md5_process_block):
123558         Define with prototypes.
123559         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123560         * lib/sha.c: Include "sha.h" first.
123561         Include <stdlib.h>, <string.h> unconditionally.
123563         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123564         * lib/memcmp.c (__ptr_t): Likewise.
123565         * lib/memrchr.c (__ptr_t): Likewise.
123566         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123567         Include <string.h> unconditionally.
123568         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123569         * lib/memchr.c: Include <stdlib.h> unconditionally.
123570         * lib/memchr.c (LONG_MAX): Remove.
123571         * lib/memrchr.c (LONG_MAX): Likewise.
123572         * lib/memchr.c (__memchr): Define via a prototype.
123573         * lib/memrchr.c (__memrchr): Likewise.
123574         * lib/memcmp.c (__P): Remove, and remove all uses.
123575         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123576         Remove forward decls; no longer needed.
123577         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123578         Use types required by C89 in prototype.
123580         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123581         * lib/savedir.c: Likewise.
123582         * lib/mkdir.c (free): Remove decl.
123583         * lib/rmdir.c (rmdir): Define with a prototype.
123584         * lib/savedir.c: Include savedir.h first, to test interface.
123586         * lib/mktime.c (STDC_HEADERS): Remove.
123587         Include <stdlib.h>, <string.h> unconditionally.
123589         * lib/modechange.c: Include <stdlib.h> unconditionally.
123590         (malloc): Remove decl.
123592         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123593         (free): Remove decl.
123595         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123596         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123597         (This type really should be intptr_t, but that's a C99ism.)
123598         (_obstack_memcpy): Remove: all uses changed to memcpy.
123599         Include <string.h> unconditionally.
123600         (struct obstack): Assume __STDC__ for types of members
123601         chunkfun, freefun, extra_arg.
123602         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123603         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123604         obstack_begin, obstack_specify_allocation,
123605         obstack_specify_allocation_with_arg, obstack_chunkfun,
123606         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123607         Remove unprototyped decls and the macros that use them.
123608         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123609         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123610         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123611         (defined __STDC__ && __STDC__)]:
123612         Remove nonprototyped code.
123613         Include <stdlib.h> unconditionally.
123614         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123615         _obstack_allocated_p, _obstack_free, obstack_free,
123616         _obstack_memory_used, print_and_abort):
123617         Define using prototypes.
123618         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123619         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123620         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123621         obstack_next_free, obstack_object_size, obstack_room) [0]:
123622         Remove unused, unprototyped code.
123624         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123626         * lib/physmem.c (physmem_total, physmem_available, main): Define
123627         with prototypes.
123629         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123630         (main): Define with a prototype.
123632         * lib/posixver.c (getenv): Remove decl.
123634         * lib/putenv.c (malloc): Returns void *, not char *.
123635         Include <string.h> unconditionally.
123636         (strchr, memcpy, NULL): Do not define.
123638         * lib/readtokens.c: Include readtokens.h first, to test interface.
123639         Include <stdlib.h>, <string.h> unconditionally.
123640         (init_tokenbuffer): Define with a prototype.
123642         * lib/regex.c (PARAMS): Remove.  All uses removed.
123643         All uses of _RE_ARGS removed, too.
123644         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123645         unconditionally.
123646         (bzero): Assume memset exists.
123647         (memcmp, memcpy, NULL): Remove.
123648         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123649         char, or assignments to local vars of type signed char.
123650         (init_syntax_once, PREFIX(extract_number_and_incr),
123651         PREFIX(print_partial_compiled_pattern),
123652         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123653         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123654         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123655         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123656         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123657         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123658         wcs_compile_range, byte_compile_range, truncate_wchar,
123659         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123660         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123661         count_mbs_length, wcs_re_match_2_internal,
123662         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123663         PREFIX(alt_match_null_string_p),
123664         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123665         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123666         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123667         now-unnecessary declaration, if any.
123668         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123669         regcomp, regexec):
123670         Remove now-unnecessary casts among pointer types.
123671         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123673         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123674         (free): Remove decl.
123676         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123678         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123679         (free): Remove decl.
123681         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123682         * lib/xgetcwd.c: Likewise.
123684         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123685         (free): Remove decl.
123687         * lib/strchrnul.c (strchrnul): Define with a prototype.
123688         Fix bug: c_in was not converted to char before searching.
123690         The following changes are not K&R related:
123692         * lib/group-member.h: Include <sys/types.h>, so that this file is
123693         self-contained.
123694         * lib/makepath.h: Likewise.
123696         * lib/getusershell.c (readname, default_index, line_size, readname):
123697         Use size_t, not int, for sizes.
123698         (readname): If the size overflows, report an error instead of
123699         looping forever.
123701 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123703         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123704         libc.
123706 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123708         * README: New section: portability guidelines.
123710 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123712         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123713         C89 spec.
123715 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123717         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123719 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123721         Assume C89 or better; remove K&R cruft.
123722         A few of these changes were first proposed by Derek Robert Price
123723         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123725         * lib/addext.c: Include <string.h> unconditionally.
123726         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123727         Don't declare getenv or malloc.
123729         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123730         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123731         (NULL): Remove.
123732         (find_stack_direction, alloca): Use prototypes.
123734         * lib/atexit.c (atexit): Define using a prototype.
123736         * lib/basename.c, dirname.c, stripslash.c:
123737         Include <string.h> unconditionally.
123739         * lib/bcopy.c: Include <stddef.h>.
123740         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123742         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123744         * lib/error.h (error, error_at_line, error_print_progname)
123745         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123746         * lib/error.c: Include error.h first, to check interface.
123747         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123748         (VA_START): Remove; all uses changeed to va_start.
123749         (exit, strerror): Remove decls.
123750         (error_print_progname): Prototype uncondionally.
123751         Don't include <errno.h>; no longer needed.
123752         (private_strerror): Remove.
123753         (error_tail): Always define.
123754         (error, error_at_line): Assume C89 or better; always use prototypes.
123755         * lib/fatal.c: Include "fatal.h" first, to test interface.
123756         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123757         (VA_START): Remove; all uses changed to va_start.
123758         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123759         this case.
123760         (exit): Remove decl.
123761         (fatal): Prototype unconditionally.  Assume va_start works.
123762         Abort at end, to pacify gcc.
123764         * lib/euidaccess.c (main): Define with a prototype.
123766         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123768         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123770         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123771         prototypes.
123772         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123773         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123774         (getenv): Remove decl.
123775         (fnmatch): Define using a prototype.
123776         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123777         (FCT): Define using a prototype.
123779         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123781         * lib/gethostname.c: Include <stddef.h>.
123782         (gethostname): Define with prototype.  Length is size_t, not int.
123784 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123786         Assume C89 or better; remove K&R cruft.
123787         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123788         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123789         string.h, getenv, malloc.
123790         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123791         headers.
123792         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123793         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123794         do not check for strerror.
123795         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123796         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123797         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123798         do not check for doprnt or vprintf.
123799         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123800         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123802 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123804         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123805         getversion.c should have been removed then, but was accidentally
123806         preserved.
123808         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123809         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123811 2003-09-08  Karl Berry  <karl@gnu.org>
123813         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123814                 config, forget about prep.
123816         * config/depcomp, missing: update from automake.
123818 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123820         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123821         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123823 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123825         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123826         copy_tm_result.  Bug reported by Simon Josefsson in
123827         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123829 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123831         * m4/time_r.m4: New file.
123832         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123833         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123834         is. Check for timegm declaration.
123835         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123836         Do not check for gmtime_r.
123837         Replace mktime if __mktime_internal does not exist and if mktime
123838         hasn't been replaced already.
123840 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123842         * lib/time_r.c, lib/time_r.h: New files.
123844         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123845         __localtime_r.
123846         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123847         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123849         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123850         __gmtime_r.
123851         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123852         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123853         Include <time_r.h>.
123855         * lib/timegm.c: Switch to glibc implementation, with the following
123856         changes:
123857         [defined HAVE_CONFIG_H]: Include <config.h>.
123858         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123859         (__mktime_internal) [!defined _LIBC]: New decl.
123860         (__gmtime_r) [!defined _LIBC]: New macro and function.
123861         (timegm): Use a prototype, since gnulib assumes C89.
123862         Do not bother declaring tmp to be const, as it's not really usefu.
123863         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123864         (timegm): Declare only if HAVE_DECL_TIMEGM.
123866 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123868         * MODULES.html.sh (func_all_modules): Add time_r.
123869         * modules/time_r: New file.
123870         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123871         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123873 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123875         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123876         Bug reported by Lute Kamstra in
123877         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123879         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123880         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123881         course with correspondingly smaller numbers for tomorrow and
123882         yesterday.  From Tadayoshi Funaba.  Originally installed into
123883         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123884         coreutils merge?).
123886 2003-08-31  Simon Josefsson  <jas@extundo.com>
123888         * modules/timegm: New file.
123889         * MODULES.html.sh (func_all_modules): Add timegm.
123891 2003-08-31  Simon Josefsson  <jas@extundo.com>
123893         * m4/timegm.m4: New file.
123895 2003-08-31  Simon Josefsson  <jas@extundo.com>
123897         * lib/timegm.h: New file.
123898         * lib/timegm.c: New file.  Based on
123899         wget-1.8.2/src/http.c:mktime_from_utc.
123901 2003-08-31  Karl Berry  <karl@gnu.org>
123903         * lib/argp.h: update from libc.
123905 2003-08-28  Bruno Haible  <bruno@clisp.org>
123907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123908         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123909         followed by '#define fnmatch fnmatch_posix' gives an error.
123911 2003-08-28  Bruno Haible  <bruno@clisp.org>
123913         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123914         warning on QNX, which defines O_BINARY to 000000.
123916 2003-08-27  Jim Meyering  <jim@meyering.net>
123918         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123919         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123920         would fail after 32.  Reported by Danny Levinson.  Details here:
123921         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123923 2003-08-24  Bruno Haible  <bruno@clisp.org>
123925         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123926         MSVC7 <stdio.h> is included later.
123928 2003-08-22  Simon Josefsson  <jas@extundo.com>
123930         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123932 2003-08-20  Karl Berry  <karl@gnu.org>
123934         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123936 2003-08-20  Bruno Haible  <bruno@clisp.org>
123938         * modules/progname: New file.
123939         * MODULES.html.sh (func_all_modules): Add progname.
123941 2003-08-20  Bruno Haible  <bruno@clisp.org>
123943         * lib/progname.h: New file, from GNU gettext.
123944         * lib/progname.c: New file, from GNU gettext.
123945         * lib/progreloc.c: New file, from GNU gettext.
123947 2003-08-19  Jim Meyering  <jim@meyering.net>
123949         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123950         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123952 2003-08-19  Bruno Haible  <bruno@clisp.org>
123954         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123955         more.
123957 2003-08-19  Bruno Haible  <bruno@clisp.org>
123959         * lib/xstrdup.c: Assume <string.h> exists.
123961 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123963         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123964         in makefile rules.
123966 2003-08-18  Jim Meyering  <jim@meyering.net>
123968         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123969         * m4/lib-ld.m4: Likewise.
123971 2003-08-18  Jim Meyering  <jim@meyering.net>
123973         * lib/setenv.h: Indent nested cpp directive.
123974         * lib/vasnprintf.c: Remove trailing blanks.
123976 2003-08-17  Simon Josefsson  <jas@extundo.com>
123978         * modules/xstrndup: New file.
123979         * MODULES.html.sh (func_all_modules): Add xstrndup.
123981 2003-08-17  Simon Josefsson  <jas@extundo.com>
123983         * modules/argp: Fix autoconf macro name. Add more dependencies.
123985 2003-08-17  Simon Josefsson  <jas@extundo.com>
123987         * m4/xstrndup.m4: New file.
123989 2003-08-17  Simon Josefsson  <jas@extundo.com>
123991         * m4/argp.m4: New file.
123993 2003-08-17  Simon Josefsson  <jas@extundo.com>
123994             Bruno Haible  <bruno@clisp.org>
123996         * lib/xstrndup.h: New file.
123997         * lib/xstrndup.c: New file.
123999 2003-08-17  Bruno Haible  <bruno@clisp.org>
124001         * modules/strndup (Files, Include): Add lib/strndup.h.
124003 2003-08-17  Bruno Haible  <bruno@clisp.org>
124005         * modules/euidaccess (Files): Add lib/euidaccess.h.
124007 2003-08-17  Bruno Haible  <bruno@clisp.org>
124009         * lib/strndup.h: New file.
124011 2003-08-17  Bruno Haible  <bruno@clisp.org>
124013         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124014         like AC_GNU_SOURCE.
124015         * modules/extensions (configure.ac): Comment out the invocation of
124016         gl_USE_SYSTEM_EXTENSIONS.
124018 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124020         Merges from coreutils, etc.
124021         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124022         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124023         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124024         fixing a typo.
124025         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124026         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124028 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124030         Document merge from coreutils.
124031         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124032         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124033         * modules/utime: Add m4/utimes-null.m4.
124035 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124037         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124038         space, undoing this 2003-08-12 change:
124039         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124041 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124043         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124044         strtoul.c from libc, undoing this 2003-08-12 change:
124045         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124047 2003-08-16  Jim Meyering  <jim@meyering.net>
124049         Merges from coreutils.
124050         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124051         prefix.  Adjust cache variables similarly.  Create 500 rather than
124052         just 300 files, to exercise bug on Darwin6.5, too.
124053         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124054         $missing_dir.
124055         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124056         AM_SYS_POSIX_TERMIOS.
124057         Reported by mkc@mathdogs.com.
124058         Also change use of $am_cv_sys_posix_termios
124059         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124060         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124061         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124062         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124063         in /proc/mounts until it finds one with matching device number.  This
124064         is unnecessary when the FILE argument *is* a mount point.  No stat call
124065         is necessary in that case.  So, disable the statvfs-testing code on
124066         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124067         as RedHat bug# 84846.
124068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124069         to 1MB, so as not to render systems with no stack size limit (e.g.,
124070         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124071         Include <unistd.h>.  On some systems,
124072         it is required for the definition of _SC_PAGESIZE.
124074 2003-08-16  Jim Meyering  <jim@meyering.net>
124076         Merge from coreutils.
124077         * lib/xstrtoimax.c: #else #if -> #elif.
124078         * lib/xstrtoumax.c: Likewise.
124080 2003-08-16  Jim Meyering  <jim@meyering.net>
124082         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124083         * m4/utimes.m4: Removed.
124084         * m4/utimes-null.m4: Renamed from utimes.m4.
124086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124087         to 1MB, so as not to render systems with no stack size limit (e.g.,
124088         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124089         Include <unistd.h>.  On some systems,
124090         it is required for the definition of _SC_PAGESIZE.
124092 2003-08-16  Jim Meyering  <jim@meyering.net>
124093         and Paul Eggert  <eggert@cs.ucla.edu>
124095         Merges from coreutils, etc.
124097         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124098         using the latest version from cvs.  This avoids problems with #line
124099         directives using a vendor (Sun) compiler.
124100         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124101         Don't set GETGROUPS_LIB here; now it's
124102         done via getgroups.m4's wrapper function.
124103         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124104         rather than just in sh-util/configure.in, so that the
124105         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124106         same.
124107         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124108         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124109         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124110         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124111         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124112         Remove code that is now done by the newly-required macros.
124113         Append $(EXEEXT) to DF_PROG.
124114         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124115         Do not invoke or require the following here,
124116         since prereq.m4 or some gnulib .m4 now does this for us:
124117         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124118         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124119         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124120         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124121         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124122         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124123         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124124         AC_FUNC_OBSTACK.
124125         Do not replace the following functions, as this is now the job
124126         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124127         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124128         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124129         atexit getpass, strdup, getpagesize.
124130         Replace 'raise'.
124131         Do not check for the following functions, as this is now the job
124132         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124133         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124134         setregid.
124135         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124136         Check for sys/sysctl.h.
124137         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124138         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124139         of checking for ssize_t ourselves.
124141         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124142         Require every macro that gnulib/modules/* suggests for us.
124143         (jm_PREREQ_ADDEXT): New macro.
124144         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124145         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124147         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124148         (gl_PHYSMEM): Use it.
124149         Also check for `table' function.
124150         Check for new headers and functions.
124151         Add check for sys/sysmp.h.
124152         With suggestions from Kaveh Ghazi.
124153         Ignore headers that are present but cannot be compiled.  This
124154         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124155         C 5.4.
124157 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124159         Document merge from coreutils.
124160         * modules/userspec: Depend on posixver.
124161         * modules/strftime: Depend on tzset.
124163 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124165         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124166         rather than tab, after '#' in shell-script copyright notices.
124167         Suggested by Bruno Haible.
124169 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124171         * config/srclist-update: Use three spaces, rather than tab, after '#'
124172         in shell-script copyright notices.  Suggested by Bruno Haible.
124173         Remove unnecessary parenthesization in regular expression.
124175 2003-08-15  Jim Meyering  <jim@meyering.net>
124177         Merge from coreutils.
124178         * lib/xgethostname.c: Include <stdlib.h>.
124179         (xghostname): Don't exit for anything other than memory-related
124180         failure; just return NULL.
124181         * lib/userspec.c: Include "posixver.h".
124182         (parse_user_spec): Accept `.' as a separator only
124183         in pre-POSIX-200112 mode.
124184         * lib/strtoimax.c: Use #elif rather than #else #if.
124185         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124186         Remove function, now that we can rely on a working tzset function.
124187         [!_LIBC]: Ensure that the required autoconf test has been run.
124188         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124189         Use underlying_strftime for %r.
124190         * lib/sha.c: Merge in some clean-up and optimization changes from
124191         glibc.
124192         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124193         Ensure that it is a multiple of 64.
124194         Rearrange loop exit tests so as to avoid performing an
124195         additional fread after encountering an error or EOF.
124196         * lib/realloc.c: Update copyright date.
124198 2003-08-15  Jim Meyering  <jim@meyering.net>
124199         and Paul Eggert  <eggert@twinsun.com>
124201         Merge from coreutils.
124202         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124203         member but strut utmpx does not.  Needed for AIX 4.3.3.
124204         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124206 2003-08-15  Jim Meyering  <jim@meyering.net>
124207         and Paul Eggert  <eggert@cs.ucla.edu>
124209         Merges from coreutils, etc.
124210         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124211         Require gl_FUNC_TZSET_CLOBBER.
124212         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124213         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124214         members.
124216 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124218         Help the merge from coreutils.
124219         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124220         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124221         * m4/tzset.m4: Use it too.
124223 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124225         * modules/tzset: New file.
124227 2003-08-14  Jim Meyering  <jim@meyering.net>
124229         Merges from coreutils.
124230         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124231         variable names, rather than @FNMATCH_H@.
124232         * modules/alloca: Likewise for $(ALLOCA_H).
124234         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124235         the three copies of the literal target, `fnmatch.h'.
124236         * modules/alloca (alloca.h): Likewise.
124238 2003-08-14  Jim Meyering  <jim@meyering.net>
124240         Merge from coreutils.
124241         * m4/tzset.m4: New file.
124242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124243         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124244         otherwise, AIX 5.1 systems would end up using the latter.
124245         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124246         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124247         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124248         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124250 2003-08-14  Jim Meyering  <jim@meyering.net>
124252         Merge from coreutils.
124253         * lib/obstack.h: Whitespace changes.
124254         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124255         and xcalloc return values.
124256         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124257         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124258         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124259         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124260         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124261         error from mntctl.
124262         Use mntctl's return value to drive the entry-processing loop, since
124263         we can't rely on the value of the vmt_length member in the last
124264         entry.  On some systems doing so could result in exhausting
124265         virtual memory.  Based in part on a patch from Mike Jetzer.
124267 2003-08-14  Jim Meyering  <jim@meyering.net>
124268         and Paul Eggert  <eggert@twinsun.com>
124270         Merges from coreutils, plus other fixes.
124271         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124272         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124273         for credits and details.  Thanks to Kaveh Ghazi for helping
124274         to keep these files in sync.
124275         (ARRAY_SIZE): Define it.
124276         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124277         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124278         (memcasecmp): Don't assume size_t fits in unsigned int.
124279         Remove casts and duplicate code.
124280         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124281         (memcpy): Remove definition.
124282         Merge in some clean-up and optimization changes from glibc.
124283         [BLOCKSIZE]: Move definition to top of file.
124284         Ensure that it is a multiple of 64.
124285         Rearrange loop exit tests so as to avoid performing an
124286         additional fread after encountering an error or EOF.
124287         * lib/md5.h (md5_uintptr): Define.
124288         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124289         return to the initial working directory.  Preserve errno
124290         for caller.
124291         * lib/idcache.c: Include "xalloc.h".
124292         (xmalloc, xrealloc): Remove decls.
124293         (getuser): Remove casts no longer required in C89.
124294         * lib/human.c: Include stdio.h, for sprintf.
124295         * lib/group-member.c: Include "xalloc.h".
124296         (xmalloc, xrealloc): Remove decls.
124297         (get_group_info): Remove casts no longer required in C89.
124298         * lib/getusershell.c (readname): Remove casts no longer required in
124299         C89.
124300         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124301         * lib/getline.c: Whitespace fix, from coreutils.
124303 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124305         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124306         Check for isascii.
124308         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124309         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124310         Undo previous (whitespace-only) change.
124312 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124314         * lib/exclude.c: Include <ctype.h>
124315         (IN_CTYPE_DOMAIN): New macro.
124316         (is_space): New fn.
124317         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124318         and empty lines.
124320         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124321         Undo previous (whitespace-only) change.
124323 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124325         * config/srclist-update: Change update back to the old behavior,
124326         leaving whitespace alone.  Use one 'sed' command rather than a
124327         pipeline.
124328         (fixlicense): Now a variable, not a function.
124329         (remove_trailing_blanks): Remove.
124330         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124331         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124332         Undo previous (whitespace-only) change.
124334 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124336         Merge from coreutils.
124337         * modules/euidaccess: Add lib_SOURCES, include for new
124338         file euidaccess.h
124340 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124342         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124343         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124344         Normalize leading white space and remove trailing white space.
124346         Merge from coreutils
124347         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124349         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124350         0.12.1.  These files are now being upgraded automatically by
124351         ../config/srclist-update.
124353 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124355         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124356         Normalize leading white space and remove trailing white space.
124357         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124358         notice, as per ../config/srclist-update.
124360         Merge from coreutils.
124361         * lib/euidaccess.h: New file.
124362         * lib/euidaccess.c: Include it.
124363         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124364         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124365         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124367 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124369         * config/srclist-update: Add copyright notice.
124370         (remove_id_lines, remove_trailing_blanks): New constants.
124371         (fixfile): Use them to normalize spacing a bit in copied files.
124372         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124373         Normalize leading white space and remove trailing white space.
124375         * config/texinfo.tex: Sync with texinfo.
124377         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124378         strtoul.c from libc, to merge coreutils whitespace changes.
124380         * config/srclist.txt: Get the following m4 files from gettext:
124381         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124382         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124383         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124384         wint_t.m4.
124386 2003-08-12  Karl Berry  <karl@gnu.org>
124388         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124389         been made.
124391 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124393         * modules/gnu-source, m4/gnu-source.m4:
124394         Remove; we're assuming Autoconf 2.54 or later now.
124395         Suggested by Bruno Haible.
124396         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124398 2003-08-11  Bruno Haible  <bruno@clisp.org>
124400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124402 2003-08-11  Bruno Haible  <bruno@clisp.org>
124404         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124405         (vasnprintf): Use it instead of wcslen.
124407 2003-08-11  Bruno Haible  <bruno@clisp.org>
124409         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124410         value to ensure that _Bool promotes to int. Use #define for _Bool when
124411         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
124413 2003-08-10  Karl Berry  <karl@gnu.org>
124415         * lib/regex.h: update from libc (whitespace fix).
124417 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124419         Merge some files from coreutils.  These changes were
124420         originally made by Jim Meyering.
124421         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
124422         many older Unixes require this.
124423         * lib/alloca.c (alloca): Remove cast to argument of free;
124424         no longer needed in C89.
124425         * lib/alloca_.h, regex.h: Fix white space to match
124426         what GNU indent does.
124428 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124430         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
124431         apparently Emacs's Unicode mode got confused before my 2003-08-05
124432         checkin.
124434 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124436         * m4/extensions.m4: New file.
124437         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124438         Require gl_USE_SYSTEM_EXTENSIONS.
124439         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124440         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124442 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124444         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124445         * modules/extensions, modules/gnu-source: New files.
124446         * modules/timespec, modules/unlocked-io: Depend on extensions.
124448 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124450         * modules/restrict: New file.
124451         * MODULES.html.sh (func_all_modules): Add restrict.
124452         * modules/regex: Depend on restrict.
124454 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124456         * m4/restrict.m4: New file.
124457         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124459 2003-08-07  Bruno Haible  <bruno@clisp.org>
124461         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124462         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124464 2003-08-07  Bruno Haible  <bruno@clisp.org>
124466         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124467         makes the module 'getndelim2' compatible with the module 'getline'.
124469 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124471         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124472         byte with "\201" to avoid glitches when editing that source file
124473         with multi-gnome-terminal.
124475 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124477         * lib/bumpalloc.h: Remove.
124479 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124481         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124482         * modules/bumpalloc: Remove.
124484 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124486         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124487         GNU coding style.
124489         Merge from coreutils.
124490         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124491         1. From glibc.
124492         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124493         from Karl Berry, implemented by Jim Meyering.
124494         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124495         from Dmitry V. Levin.
124496         Remove anachronistic cast of xrealloc.
124497         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124498         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124499         type. Otherwise, it wouldn't compile with at least /bin/cc on
124500         ymp-cray-unicos9.0.2.X.
124501         Combine two mostly-identical uses of alloca into one.
124502         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124504 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124506         [From Emacs.]
124508         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124509         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124510         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124511         obsolete NLIST_NAME_UNION.
124512         [__GNU__]: Undef BSD and FSCALE.
124513         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124515 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124517         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124518         an enum type, so that it's guaranteed to promote to int.  See:
124519         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124521 2003-08-03  Karl Berry  <karl@gnu.org>
124523         * config/depcomp: update from automake.
124525 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124527         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124528         (strerror): Don't assume that a printable int fits in 14 bytes.
124530 2003-07-31  Bruno Haible  <bruno@clisp.org>
124532         * modules/getpass-gnu: New file.
124533         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124535 2003-07-31  Bruno Haible  <bruno@clisp.org>
124537         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124539 2003-07-24  Karl Berry  <karl@gnu.org>
124541         * config/missing: update from automake.
124543 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124544             Bruno Haible  <bruno@clisp.org>
124546         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124547         * lib/getline.c (getline, getdelim): Likewise.
124548         Remove _GNU_SOURCE define; now it's defined in config.h through
124549         m4/getline.m4.
124551 2003-07-23  Karl Berry  <karl@gnu.org>
124553         * config/config.sub: update from prep.
124555 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124557         * modules/xalloc (Depends-on): Add exitfail.
124558         * modules/xmemcoll: Likewise.
124560 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124562         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124563         over-parenthesization in macros.
124565         Sync with coreutils.
124567         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124568         required by C99.
124570         Use `exit_failure' for xalloc and xmemcoll instead of their own
124571         private exit-failure variables.
124572         * lib/xalloc.h (xalloc_exit_failure): Remove.
124573         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124574         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124575         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124576         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124577         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124579 2003-07-20  Jim Meyering  <jim@meyering.net>
124581         * modules/closeout (Depends-on): Add exitfail.
124582         Suggestion from Bruno Haible.
124584 2003-07-19  Karl Berry  <karl@gnu.org>
124586         * config/config.sub: update from prep.
124588 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124590         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124591         Remove.
124592         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124593         to test that it can stand by itself.  Include "exitfail.h".
124594         Clients should set exit_failure instead.
124595         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124597 2003-07-18  Bruno Haible  <bruno@clisp.org>
124599         * modules/getndelim2: New file.
124600         * modules/getline: Share files with module getndelim2.
124601         * modules/getnline: Depend on getndelim2 instead of sharing files with
124602         it. Add getnline.c to lib_SOURCES.
124603         * MODULES.html.sh (func_all_modules): Add getndelim2.
124605 2003-07-18  Bruno Haible  <bruno@clisp.org>
124607         * m4/getndelim2.m4: New file.
124608         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124609         invoke gl_PREREQ_GETNDELIM2.
124610         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124611         gl_PREREQ_GETNDELIM2.
124612         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124613         gl_GETNDELIM2.
124615 2003-07-18  Bruno Haible  <bruno@clisp.org>
124617         * lib/getndelim2.h: New file.
124618         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124619         getndelim2.h.
124620         (getndelim2): Make non-static. Change return type to ssize_t.
124621         * lib/getline.h: Change argument names.
124622         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124623         * lib/getnline.c: Include getndelim2.h.
124625 2003-07-18  Andreas Schwab  <schwab@suse.de>
124627         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124629 2003-07-17  Karl Berry  <karl@gnu.org>
124631         * config/config.sub: update from prep.
124633 2003-07-17  Bruno Haible  <bruno@clisp.org>
124635         * modules/getnline: New file.
124636         * modules/getline: Add lib/getndelim2.c to source file list.
124637         * MODULES.html.sh (func_all_modules): Add getnline.
124639 2003-07-17  Bruno Haible  <bruno@clisp.org>
124641         * m4/getnline.m4: New file.
124643 2003-07-17  Bruno Haible  <bruno@clisp.org>
124645         * m4/Makefile.am.in: Remove file.
124646         * m4/Makefile.am: Remove file.
124647         * m4/Makefile.in: Remove file.
124649 2003-07-17  Bruno Haible  <bruno@clisp.org>
124651         * lib/getnline.h: New file.
124652         * lib/getnline.c: New file.
124653         * lib/getndelim2.c: New file, extracted from getline.c.
124654         (getndelim2): Renamed from getdelim2, with added nmax argument.
124655         * lib/getline.c: Include getndelim2.c.
124656         (getdelim2): Moved out to getndelim2.c.
124657         (getline, getdelim): Update.
124659 2003-07-17  Bruno Haible  <bruno@clisp.org>
124661         * lib/Makefile.am: Remove file.
124662         * lib/Makefile.in: Remove file.
124664 2003-07-17  Bruno Haible  <bruno@clisp.org>
124666         * configure.in: Remove file.
124667         * Makefile.in: Remove file.
124669 2003-07-17  Bruno Haible  <bruno@clisp.org>
124671         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124673 2003-07-16  Karl Berry  <karl@gnu.org>
124675         * config/srclist-update: was running fixlicense twice, which caused
124676                 texinfo.tex to be nullified for some reason.  Simplify,
124677                 $gplsrc is no longer needed as far as I can see?
124679 2003-07-16  Jim Meyering  <jim@meyering.net>
124681         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124683 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124685         * config/srclist.txt: Get the following files from gettext-runtime/intl
124686         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124687         ref-del.sin.  From Bruno Haible.
124688         * config/srclist-update (fixfile): Change grep pattern again, since the
124689         previous fix didn't work (there was another trailing $).  Use
124690         '[$]' to escape the $s.
124692 2003-07-15  Karl Berry  <karl@gnu.org>
124694         * lib/vasnprintf.c: update from gettext.
124696 2003-07-15  Karl Berry  <karl@gnu.org>
124698         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124699         gets expanded when surrounded by '$'.
124701 2003-07-15  Jim Meyering  <jim@meyering.net>
124703         * modules/save-cwd: Don't depend on error.  From Derek Price.
124705 2003-07-15  Jim Meyering  <jim@meyering.net>
124707         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124709 2003-07-14  Simon Josefsson  <jas@extundo.com>
124711         * modules/mempcpy: New file.
124712         * MODULES.html.sh (func_all_modules): Add mempcpy.
124714 2003-07-14  Simon Josefsson  <jas@extundo.com>
124716         * m4/mempcpy.m4: New file.
124718 2003-07-14  Simon Josefsson  <jas@extundo.com>
124720         * lib/mempcpy.h: New file.
124721         * lib/mempcpy.c: New file.
124723 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124725         * modules/getdate, modules/posixtm: Depend on mktime.
124727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124729         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124730         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124731         unicodeio.c, unicodeio.h, unlocked-io.h:
124732         Switch from LGPL to GPL.
124734 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124736         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124737         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124738         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124739         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124740         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124741         updated automatically by ../config/srclist-update.  This changes
124742         their license from LPGL to GPL.
124744 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124746         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124747         assumed to refer to the root of the most recent stable gettext version.
124748         * config/srclistvars.sh: Add defaults for eggert.
124749         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124750         Match "This program" as well as "The program".  This is needed
124751         for gettext.
124753 2003-07-14  Jim Meyering  <jim@meyering.net>
124755         Don't emit diagnostics.  Let callers do that.
124756         * lib/save-cwd.c: Don't include "error.h".
124757         (save_cwd): Don't call error.  Ensure that errno is valid
124758         when returning nonzero.
124760         * lib/save-cwd.h (restore_cwd): Update prototype.
124761         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124762         Simplify.  Don't call error upon failure.  Let callers do that.
124763         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124764         when auditing is enabled.  But don't bother updating the #if.
124766 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124768         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124769         it breaks C++ compilation.
124770         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124772 2003-07-10  Simon Josefsson  <jas@extundo.com>
124774         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124776 2003-07-10  Jim Meyering  <jim@meyering.net>
124778         * m4/clock_time.m4: Remove trailing blank.
124779         * m4/intmax_t.m4: Likewise.
124781 2003-07-10  Jim Meyering  <jim@meyering.net>
124783         * lib/vasnprintf.c: Remove trailing blanks.
124784         Make cpp indentation consistent.
124786 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124788         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124789         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124790         Switch from LGPL to GPL.
124792 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124794         * config/srclist.txt: Sort sublists.  Add
124795         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124796         that differ from gnulib for one reason or another; we'd like this list
124797         to be smaller but for now let's document what we have.
124799 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124801         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124802         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124803         and sweeter "eval x=$x".
124804         * config/srclist.txt: Get lib/argp* from glibc.
124806 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124808         * lib/mktime.c: Fix some boundary cases and remove need for floating
124809         point.
124811         Issue a compile-time diagnostic if time_t is floating point, or if
124812         two's complement arithmetic is not in effect, or if arithmetic
124813         right shift does not propagate the sign.  These assumptions were
124814         all in the original code but they weren't checked.
124816         (TIME_T_MIDPOINT, verify): New macros.
124817         (__isleap): Remove; it has integer overflow problems.
124818         (leapyear): New function, without those problems.
124819         (ydhms_tm_diff): Remove; splitting into two parts.
124820         (ydhms_diff): New function, containing the arithmetic part of
124821         the old ydhms_tm_diff function.  Issue a compile-time
124822         diagnostic if we are not using C99 integer division.
124823         Avoid casts when possible.
124824         (guess_time_tm): New function, containing the checking part of
124825         the old ydhms_tm_diff function.  Return the new value, rather than
124826         the difference between it and the old.  Accept a new argument T
124827         so that *T specifies the old value.  Check for overflow in the result.
124829         (__mktime_internal): Use a time_t offset, not a long int offset.
124830         This undoes the 2003-06-04 change, which is no longer needed now
124831         that we have better overflow checking.
124832         (localtime_offset): Likewise.
124834         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124835         and long are 64-bit but int is only 32-bit.
124836         (ydhms_diff): Use long int to store year1 and yday1.
124837         Issue a compile-time diagnostic if long int is not wide enough.
124839         (__mktime_internal): Use long int to store adjusted year and yday.
124840         Use plain C rather than preprocessor commands, if that doesn't
124841         affect efficiency.
124842         Check for overflow (and try to repair) after each probe
124843         rather than checking only at the very end.  This avoids some bugs
124844         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124845         does not equal GMT offset at maximum time).
124846         Use integer to check for overflow rather than floating point; this
124847         is more portable to non-IEEE hosts, and is a tad faster.
124848         When we detect that we are oscillating between two values,
124849         don't check whether tm_isdst has the requested value, since
124850         we already know the answer.  When tm_isdst has the wrong value,
124851         use a different heuristic to find the right one, based on the
124852         extreme values actually observed in practice in tz2003a,
124853         rather than the (overly optimistic) "previous 3 calendar quarters".
124855         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124856         "T const" to accommodate glibc style.
124857         (check_result): Use less-confusing report format.  "long" -> "long int.
124858         (main): Likewise.
124859         Don't loop if the iteration overflows time_t.
124860         Allow a negative step in the iteration.
124862 2003-07-06  Karl Berry  <karl@gnu.org>
124864         * config/depcomp: update from automake.
124865         * config/config.sub: update from prep.
124867 2003-07-03  Karl Berry  <karl@gnu.org>
124869         * config/config.guess: update from prep.
124871 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124873         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124874         xreadlink.c now includes it unconditionally.
124876 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124878         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124879         having it depend on HAVE_SYS_TYPES_H.
124881 2003-07-01  Bruno Haible  <bruno@clisp.org>
124883         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124884         <sys/types.h> should be sufficient.
124885         Reported by Paul Eggert.
124887 2003-06-26  Karl Berry  <karl@gnu.org>
124889         * config/depcomp: update from automake.
124891 2003-06-26  Bruno Haible  <bruno@clisp.org>
124893         * modules/human: Depend on module stdbool.
124895 2003-06-25  Bruno Haible  <bruno@clisp.org>
124897         * modules/readlink: New file.
124898         * modules/xreadlink: Depend on it.
124899         * MODULES.html.sh (func_all_modules): Add readlink.
124901 2003-06-25  Bruno Haible  <bruno@clisp.org>
124903         * m4/readlink.m4: New file.
124905 2003-06-25  Bruno Haible  <bruno@clisp.org>
124907         * lib/readlink.c: New file.
124909 2003-06-22  Karl Berry  <karl@gnu.org>
124911         * config/srclist.txt: update mkinstalldirs from automake.
124912         * config/mkinstalldirs: update.
124914 2003-06-22  Bruno Haible  <bruno@clisp.org>
124916         Portability to mingw32.
124917         * m4/ssize_t.m4: New file, from GNU gettext.
124918         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124919         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124921 2003-06-22  Bruno Haible  <bruno@clisp.org>
124923         * modules/safe-read: Add m4/ssize_t.m4.
124924         * modules/xreadlink: Add m4/ssize_t.m4.
124926 2003-06-20  Bruno Haible  <bruno@clisp.org>
124928         Assume C89, so PARAMS isn't needed.
124929         * lib/unicodeio.h (PARAMS): Remove.
124930         * lib/unicodeio.c: Don't use PARAMS.
124932 2003-06-18  Karl Berry  <karl@gnu.org>
124934         * config/config.{guess,sub}: update from prep.
124936 2003-06-18  Jim Meyering  <jim@meyering.net>
124938         Merge changes from coreutils.
124939         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124940         Remove explicit declarations of xmalloc and realloc.
124941         Include xalloc.h.
124942         (read_utmp): Remove anachronistic cast of xmalloc.
124944 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124946         Assume C89, so PARAMS isn't needed.
124947         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124948         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124949         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124950         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124951         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124952         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124953         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124954         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124955         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124956         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124957         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124958         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124959         no longer needed. Anyway, config.h should always be included before any
124960         other file.
124962 2003-06-11  Simon Josefsson  <jas@extundo.com>
124964         * modules/sysexits: New file.
124965         * MODULES.html.sh (func_all_modules): Add sysexits.
124967 2003-06-11  Simon Josefsson  <jas@extundo.com>
124969         * lib/sysexit_.h: New file.
124971 2003-06-11  Derek Price  <derek@ximbiot.com>
124973         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124974         necessary.
124976 2003-06-11  Bruno Haible  <bruno@clisp.org>
124978         * m4/sysexits.m4: New file.
124980 2003-06-10  Simon Josefsson  <jas@extundo.com>
124982         * lib/argp.h: New file, from glibc.
124983         * lib/argp-ba.c: New file, from glibc.
124984         * lib/argp-eexst.c: New file, from glibc.
124985         * lib/argp-fmtstream.c: New file, from glibc.
124986         * lib/argp-fmtstream.h: New file, from glibc.
124987         * lib/argp-fs-xinl.c: New file, from glibc.
124988         * lib/argp-help.c: New file, from glibc.
124989         * lib/argp-namefrob.h: New file, from glibc.
124990         * lib/argp-parse.c: New file, from glibc.
124991         * lib/argp-pv.c: New file, from glibc.
124992         * lib/argp-pvh.c: New file, from glibc.
124993         * lib/argp-xinl.c: New file, from glibc.
124995 2003-06-10  Simon Josefsson  <jas@extundo.com>
124997         * modules/strchrnul: New file.
124999 2003-06-10  Simon Josefsson  <jas@extundo.com>
125001         * modules/argp: New file.
125003 2003-06-10  Simon Josefsson  <jas@extundo.com>
125005         * m4/strchrnul.m4: New file.
125007 2003-06-10  Simon Josefsson  <jas@extundo.com>
125009         * lib/strchrnul.h: New file.
125010         * lib/strchrnul.c: New file.
125012 2003-06-10  Bruno Haible  <bruno@clisp.org>
125014         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125016 2003-06-07  Karl Berry  <karl@gnu.org>
125018         * config/config.{guess,sub}: update from prep.
125020 2003-06-07  Jim Meyering  <jim@meyering.net>
125022         * modules/strtod: Use $(...) notation, not @...@ for
125023         AC_REPLACE'd variables.
125024         * modules/localcharset: Likewise.
125026 2003-06-07  Jim Meyering  <jim@meyering.net>
125028         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125029         in place of my name in the copyright comment.
125030         Remove definition and uses of __P.
125032         From coreutils.
125033         * lib/stat.c: Don't declare xmalloc explicitly.
125034         Instead, include "xalloc.h".
125035         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125036         xrealloc, and xcalloc return values.
125037         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125038         Improve comment.
125039         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125041 2003-06-07  Bruno Haible  <bruno@clisp.org>
125043         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125044         avoid AC_CONFIG_LINKS.
125045         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125046         fnmatch.h, to avoid AC_CONFIG_LINKS.
125047         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125049 2003-06-07  Bruno Haible  <bruno@clisp.org>
125051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125052         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125053         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125054         directory.
125055         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125056         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125057         directory.
125059 2003-06-06  Jim Meyering  <jim@meyering.net>
125061         Merge from coreutils.
125062         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125063         Consolidate declarations and initializations of *_base* locals.
125065         Merge from coreutils.
125066         This avoids a core dump on systems without GNU putenv,
125067         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125068         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125069         (unsetenv): New static function, from GNU libc.
125070         (rpl_putenv): Use it.
125072         * lib/modechange.c: Remove trailing blanks.
125074         Merge from coreutils.
125075         * lib/fsusage.c: Remove declaration of statfs.
125076         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125078         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125080 2003-06-06  Jim Meyering  <jim@meyering.net>
125082         * lib/stdbool_.h: Renamed from stdbool.h.in.
125084 2003-06-06  Jim Meyering  <jim@meyering.net>
125085             Bruno Haible  <bruno@clisp.org>
125087         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125088         Adjust Makefile.am snippet not to redirect directly to target.
125089         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125091 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125093         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125094         mismatch, look in future quarters as well as past.  This fixes a
125095         bug when processing fall-backwards gaps immediately after a long
125096         period of daylight-saving time.
125098         * lib/mktime.c: Assume freestanding C89 or better.
125099         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125100         (__P): Remove; not used.
125101         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125102         (mktime, not_equal_tm, print_tm, check_result,
125103         main): Use prototypes.  Use const * where appropriate.
125104         (main): Fix typo in testing code that uncovered by above changes.
125105         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125107 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125109         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125110         locale.h, localeconv.  This merges changes from coreutils.
125112         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125113         It can be removed after the next Autoconf is released.
125114         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125115         needed.
125117 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125119         * lib/mktime.c: Fix Debian bug 177940
125120         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125121         (localtime_offset): Now long int, not time_t, because we want it
125122         to be guaranteed to be signed.  All uses changed.
125123         (__mktime_internal): If overflow would occur when adding offset,
125124         don't add it.
125126         Merge 'human' changes from coreutils.  Rewrite to support
125127         locale-specific notations like thousands separators.
125128         * lib/human.c: Simplify authorship notice.
125129         Include human.h immediately after config.h.
125130         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125131         <limits.h>: Do not include, since human.h does.
125132         (SIZE_MAX, UINTMAX_MAX): New macros.
125133         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125134         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125135         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125136         (power_letter): Renamed from suffixes.
125137         (generate_suffix_backwards): Remove.
125138         (adjust_value): Now takes int style (because of human.h changes)
125139         and long double value (for greater precision on some platforms).
125140         (group_number): New function.
125141         (human_readable): Use it.  Use integer options, not enum.
125142         Put the options before the sizes in the arg list.
125143         Support all the new options.
125144         The old human_readable function has been removed;
125145         use inttostr.h instead.
125146         (human_readable, default_block_size, humblock):
125147         Use uintmax_t, not int, for block sizes.
125148         (human_readable_inexact, block_size_types): Remove.
125149         (block_size_opts): New constant.
125150         (human_options): Renamed from human_block_size, with new signature
125151         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125152         * lib/human.h: Add copyright and authorship notice.
125153         Include <limits.h> and <stdbool.h> unconditionally.
125154         (PARAMS): Remove.  All uses removed.
125155         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125156         (enum human_inexact_style): Remove tag; now a nameless enum.
125157         (human_floor, human_ceiling, human_round_to_even): Now have
125158         values 2, 0, 1 rather than -1, 1, 0.
125159         (human_group_digits, human_suppress_point_zero, human_autoscale,
125160         human_base_1024, human_SI, human_B): New constants.
125161         (human_readable_inexact, human_block_size): Remove.
125162         (human_readable): Size args are now uintmax_t, not int.
125163         (human_options): New decl.
125165         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125166         unnecessary now that we assume C89 or better.  This change
125167         imported from coreutils.
125169         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125170         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125171         in the 2003-05-30 sync from glibc.
125173         .h files should stand alone, but we shouldn't include <sys/types.h>
125174         if we can get away with just <stddef.h>.
125176         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125177         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125178         rather than <sys/types.h>, as we merely need size_t.
125179         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125180         to get size_t.
125181         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125182         Include <stdio.h>, to get FILE.
125183         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125184         memcasecmp.h has included <stddef.h> and all we need is size_t.
125185         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125186         our interface, instead of including <sys/types.h>
125188 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125190         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125191         now, as glibc mktime is buggy on non-glibc systems.
125193 2003-06-03  Karl Berry  <karl@gnu.org>
125195         * config/config.sub: update from prep.
125197 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125199         [from coreutils]
125200         Fix some minor time-related bugs with POSIX time arguments.
125201         Some valid time stamps were being rejected (notably -1, and
125202         time stamps before 1900 on 64-bit hosts).  And some invalid
125203         time stamps were being accepted, e.g. September 31.
125205         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125206         that we can return (time_t) -1 successfully.
125207         * lib/posixtm.c: Likewise.
125208         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125209         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125210         (t): Remove static var.
125211         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125212         of static var.  All uses changed.
125213         (year): Do not reject years before 1900; they can occur with
125214         64-bit time_t.
125215         (posix_time_parse): Do not check for out-of-range components;
125216         that is now the caller's responsibility, since our checks were
125217         only approximations.
125218         (posixtime): Use mktime to check for out-of-range components,
125219         since it knows them exactly.
125220         If mktime returns (time_t) -1, check whether an error actually occurred
125221         by invoking localtime on -1.
125222         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125223         posixtime failures better.
125224         Improve the test data (in comments only).
125226 2003-06-02  Karl Berry  <karl@gnu.org>
125228         * config/mkinstalldirs (version): new variable.
125229         (--version): new option.
125230         (usage): improve message.
125232 2003-05-30  Karl Berry  <karl@gnu.org>
125234         * lib/mktime.c: update from libc.
125236 2003-05-30  Bruno Haible  <bruno@clisp.org>
125238         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125239         * config/config.rpath: Upgrade to gettext-0.12.1.
125241 2003-05-30  Bruno Haible  <bruno@clisp.org>
125243         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125244         * m4/nls.m4: New file, from gettext-0.12.1.
125245         * m4/po.m4: New file, from gettext-0.12.1.
125246         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125248 2003-05-30  Bruno Haible  <bruno@clisp.org>
125250         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125251         * lib/localcharset.h: Likewise.
125252         * lib/localcharset.c: Likewise.
125254 2003-05-29  Karl Berry  <karl@gnu.org>
125256         * config/config.rpath: update from gettext.
125258 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125260         Assume the headers required for C89 freestanding compilers.
125261         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125262         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125263         * m4/human.m4 (gl_HUMAN): Likewise.
125264         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125265         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125266         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125267         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125269         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125271 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125273         Assume the headers required for C89 freestanding compilers.
125274         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125275         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125276         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125277         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125278         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125279         define, since <limits.h> is guaranteed to do that.
125280         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125281         * lib/exclude.c: Include <stdbool.h> unconditionally.
125282         * lib/tempname.c: Include <stddef.h> unconditionally.
125283         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125284         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125285         <stddef.h> does that.
125286         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125287         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125288         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125289         needed.
125290         * lib/xstrtol.c: Likewise.
125291         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125292         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125294         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125295         warnings on some platforms.
125297         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125298         arbitrarily.
125300 2003-05-26  Jim Meyering  <jim@meyering.net>
125302         Merge in a change from coreutils:
125303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125304         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125305         that condition, rather than `-1' which is slightly misleading.
125306         Change the name of the cache variable to have the gl_ prefix.
125307         Prompted by a patch from Richard Dawe for DJGPP.
125309 2003-05-24  Karl Berry  <karl@gnu.org>
125311         * config/config.guess: update from prep.
125313 2003-05-22  Karl Berry  <karl@gnu.org>
125315         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125317 2003-05-20  Karl Berry  <karl@gnu.org>
125319         * config/config.guess: update from prep.
125321 2003-05-18  Karl Berry  <karl@gnu.org>
125323         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125324         might actually be set by the user.
125326         * config/depcomp, install-sh, mdate-sh: update from automake.
125328 2003-05-17  Bruno Haible  <bruno@clisp.org>
125330         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125331         invalid expansion for AC_EGREP_CPP.
125332         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125333         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125334         Suggested by Akim Demaille <akim@epita.fr> in
125335         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125337 2003-05-12  Jim Meyering  <jim@meyering.net>
125339         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125340         the space-padded-by-default conversion specifiers, %e, %k, %l.
125342 2003-05-12  Bruno Haible  <bruno@clisp.org>
125344         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125345         the string is longer than 4 KB.
125347 2003-05-11  Karl Berry  <karl@gnu.org>
125349         * config/config.{guess,sub}: update from prep.
125351 2003-05-09  Bruno Haible  <bruno@clisp.org>
125353         * modules/error: Add m4/strerror_r.m4 to file list.
125355 2003-05-03  Bruno Haible  <bruno@clisp.org>
125357         Upgrade to Unicode-4.0.
125358         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125359         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125360         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125361         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125362         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125363         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125364         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125365         Change width of U+E0100..U+E01EF from 1 to 0.
125367 2003-04-25  Jim Meyering  <jim@meyering.net>
125369         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125370         of type size_t, not int.
125372 2003-04-25  Bruno Haible  <bruno@clisp.org>
125374         * lib/copy-file.c: Include <stddef.h>, for size_t.
125376 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125378         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125379         code which expansion is under static control.  Patch imported from
125380         Akim Demaille's patch to Bison; see
125381         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125383 2003-04-14  Bruno Haible  <bruno@clisp.org>
125385         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125387 2003-04-11  Jim Meyering  <jim@meyering.net>
125389         Merge changes from Coreutils.
125391         2003-03-22  Jim Meyering  <jim@meyering.net>
125393         * lib/strftime.c (widen): Cast alloca return value to proper type.
125395         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125397         From GNU libc.
125398         * lib/strftime.c (my_strftime): Handle very large width
125399         specifications for numeric values correctly.  Improve checks for
125400         overflow.
125402         2003-01-19  Jim Meyering  <jim@meyering.net>
125404         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125405         definitions.
125406         (nl_get_alt_digit) [! defined my_strftime]: Define.
125407         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125408         _nl_get_alt_digit and _nl_get_walt_digit.
125410         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125411         libc. These changes have no effect outside of _LIBC.
125413 2003-04-10  Bruno Haible  <bruno@clisp.org>
125415         * modules/findprog: New file.
125416         * MODULES.html.sh (func_all_modules): Add it.
125418 2003-04-10  Bruno Haible  <bruno@clisp.org>
125420         * m4/findprog.m4: New file.
125421         * m4/eaccess.m4: New file.
125423 2003-04-10  Bruno Haible  <bruno@clisp.org>
125425         * lib/findprog.h: New file, from GNU gettext.
125426         * lib/findprog.c: New file, from GNU gettext.
125428 2003-04-05  Jim Meyering  <jim@meyering.net>
125430         Merge changes from Coreutils.
125432         * lib/exclude.h (PARAMS): Remove definition and uses.
125433         * lib/exclude.c: Remove uses of `PARAMS'.
125435         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
125436         Add test-cases for DOS filenames. Declare program_name.
125437         (main): Set up program_name.  Patch by Rich Dawe.
125439         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125440         error from mntctl.
125441         Use mntctl's return value to drive the entry-processing loop, since
125442         we can't rely on the value of the vmt_length member in the last
125443         entry.  On some systems doing so could result in exhausting
125444         virtual memory.  Based in part on a patch from Mike Jetzer.
125446 2003-04-04  Bruno Haible  <bruno@clisp.org>
125448         * modules/linebreak: New file.
125449         * MODULES.html.sh (func_all_modules): Add it.
125451 2003-04-04  Bruno Haible  <bruno@clisp.org>
125453         * m4/linebreak.m4: New file.
125455 2003-04-04  Bruno Haible  <bruno@clisp.org>
125457         * lib/linebreak.h: New file, from GNU gettext.
125458         * lib/linebreak.c: New file, from GNU gettext with slight
125459         modifications.
125460         * lib/lbrkprop.h: New file, from GNU gettext.
125462 2003-04-03  Bruno Haible  <bruno@clisp.org>
125464         * modules/utf8-ucs4: New file.
125465         * modules/utf16-ucs4: New file.
125466         * modules/ucs4-utf8: New file.
125467         * modules/ucs4-utf16: New file.
125468         * MODULES.html.sh (func_all_modules): Add them.
125470 2003-04-03  Bruno Haible  <bruno@clisp.org>
125472         * m4/utf-ucs4.m4: New file.
125473         * m4/ucs4-utf.m4: New file.
125475 2003-04-03  Bruno Haible  <bruno@clisp.org>
125477         * lib/utf8-ucs4.h: New file, from GNU gettext.
125478         * lib/utf16-ucs4.h: New file, from GNU gettext.
125479         * lib/ucs4-utf8.h: New file, from GNU gettext.
125480         * lib/ucs4-utf16.h: New file, from GNU gettext.
125482 2003-04-02  Bruno Haible  <bruno@clisp.org>
125484         * modules/binary-io: New file.
125485         * MODULES.html.sh (func_all_modules): Add it.
125487 2003-04-02  Bruno Haible  <bruno@clisp.org>
125489         * lib/binary-io.h: New file, from GNU gettext.
125491 2003-04-01  Bruno Haible  <bruno@clisp.org>
125493         * modules/pathname: New file.
125494         * MODULES.html.sh (func_all_modules): Add it.
125496 2003-04-01  Bruno Haible  <bruno@clisp.org>
125498         * lib/pathname.h: New file, from GNU gettext.
125499         * lib/concatpath.c: New file, from GNU gettext.
125501 2003-03-30  Bruno Haible  <bruno@clisp.org>
125503         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125505 2003-03-30  Bruno Haible  <bruno@clisp.org>
125507         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125508         function chown() doesn't exist.
125510 2003-03-28  Bruno Haible  <bruno@clisp.org>
125512         * modules/copy-file: New file.
125513         * MODULES.html.sh (func_all_modules): Add it.
125515 2003-03-28  Bruno Haible  <bruno@clisp.org>
125517         * m4/copy-file.m4: New file.
125519 2003-03-28  Bruno Haible  <bruno@clisp.org>
125521         * lib/copy-file.h: New file, from GNU gettext.
125522         * lib/copy-file.c: New file, from GNU gettext.
125524 2003-03-18  Jim Meyering  <jim@meyering.net>
125526         * lib/quote.c (quote_n): Fix typo in comment.
125528 2003-03-18  Bruno Haible  <bruno@clisp.org>
125530         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125531         checking.
125532         * m4/onceonly_2_57.m4: Likewise.
125534 2003-03-17  Bruno Haible  <bruno@clisp.org>
125536         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125537         (m4_quote): Remove macro.
125538         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125540 2003-03-14  Jim Meyering  <jim@meyering.net>
125542         Merge changes from Coreutils.
125543         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125544         to be const, in order to avoid warnings.
125545         (obstack_room): Likewise.
125546         (obstack_empty_p): Likewise.
125548 2003-03-14  Bruno Haible  <bruno@clisp.org>
125550         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125551         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125553 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125555         Merge changes from Bison.
125556         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125557         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125558         when compiling Bison 1.875's `bitset bset = obstack_alloc
125559         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125560         * lib/hash.c: Include <stdbool.h> unconditionally.
125562 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125564         * m4/onceonly.m4 (m4_quote): New macro.
125565         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125566         Quote AC_FOREACH variable-expansions properly.
125568 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125570         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125572 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125574         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125575         Reported by Bruce Becker; see:
125576         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125578 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125579             Bruno Haible  <bruno@clisp.org>
125581         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125582         Reported by John Hughes, see
125583         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125585 2003-02-20  Bruno Haible  <bruno@clisp.org>
125587         * MODULES.html.sh (func_all_modules): Add poll.
125589 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125591         * modules/poll: New file.
125593 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125595         * lib/poll_.h: New file.
125596         * lib/poll.c: New file.
125598 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125600         * m4/poll.m4: New file.
125602 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125604         * modules/mathl: New file.
125606 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125608         * lib/mathl.h: New file.
125609         * lib/acosl.c: New file.
125610         * lib/asinl.c: New file.
125611         * lib/atanl.c: New file.
125612         * lib/ceill.c: New file.
125613         * lib/cosl.c: New file.
125614         * lib/expl.c: New file.
125615         * lib/floorl.c: New file.
125616         * lib/frexpl.c: New file.
125617         * lib/ldexpl.c: New file.
125618         * lib/logl.c: New file.
125619         * lib/sincosl.c: New file.
125620         * lib/sinl.c: New file.
125621         * lib/sqrtl.c: New file.
125622         * lib/tanl.c: New file.
125623         * lib/trigl.c: New file.
125624         * lib/trigl.h: New file.
125626 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125628         * m4/mathl.m4: New file.
125630 2003-02-18  Bruno Haible  <bruno@clisp.org>
125632         * MODULES.html.sh (func_all_modules): Add mathl.
125634 2003-02-17  Bruno Haible  <bruno@clisp.org>
125636         * modules/mkdtemp: New module.
125637         * MODULES.html.sh (func_all_modules): Add it.
125639 2003-02-17  Bruno Haible  <bruno@clisp.org>
125641         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125643 2003-02-17  Bruno Haible  <bruno@clisp.org>
125645         * lib/mkdtemp.h: New file, from GNU gettext.
125646         * lib/mkdtemp.c: New file, from GNU gettext.
125648 2003-02-02  Jim Meyering  <jim@meyering.net>
125650         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125651         e.g. glibc-2.2.93.
125653 2003-01-31  Bruno Haible  <bruno@clisp.org>
125655         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125656         'rpl_rename'.
125657         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125658         'rpl_strnlen'.
125659         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125660         'rpl_strtod'.
125661         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125662         'rpl_utime'.
125664 2003-01-31  Bruno Haible  <bruno@clisp.org>
125666         * lib/rename.c: #undef rename before defining rpl_rename.
125667         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125669 2003-01-30  Bruno Haible  <bruno@clisp.org>
125671         * modules/vasnprintf, modules/vasprintf: New modules.
125672         * MODULES.html.sh (func_all_modules): Add them.
125674 2003-01-30  Bruno Haible  <bruno@clisp.org>
125676         * m4/signed.m4: New file, from GNU gettext.
125677         * m4/longdouble.m4: New file, from GNU gettext.
125678         * m4/wchar_t.m4: New file, from GNU gettext.
125679         * m4/wint_t.m4: New file, from GNU gettext.
125680         * m4/vasnprintf.m4: New file.
125681         * m4/vasprintf.m4: New file.
125683 2003-01-30  Bruno Haible  <bruno@clisp.org>
125685         * lib/printf-args.h: New file, from GNU gettext.
125686         * lib/printf-args.c: New file, from GNU gettext.
125687         * lib/printf-parse.h: New file, from GNU gettext.
125688         * lib/printf-parse.c: New file, from GNU gettext.
125689         * lib/vasnprintf.h: New file, from GNU gettext.
125690         * lib/vasnprintf.c: New file, from GNU gettext.
125691         * lib/asnprintf.c: New file, from GNU gettext.
125692         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125693         * lib/vasprintf.c: New file, from GNU gettext.
125694         * lib/asprintf.c: New file, from GNU gettext.
125696 2003-01-29  Bruno Haible  <bruno@clisp.org>
125698         * modules/stpncpy: New module.
125699         * MODULES.html.sh (func_all_modules): Add it.
125701 2003-01-29  Bruno Haible  <bruno@clisp.org>
125703         * m4/stpncpy.m4: New file.
125705 2003-01-29  Bruno Haible  <bruno@clisp.org>
125707         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125708         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125710 2003-01-28  Bruno Haible  <bruno@clisp.org>
125712         * modules/c-ctype: New module.
125713         * MODULES.html.sh (func_all_modules): Add it.
125715 2003-01-28  Bruno Haible  <bruno@clisp.org>
125717         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125718         Paul Eggert.
125719         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125720         Paul Eggert.
125722 2003-01-27  Bruno Haible  <bruno@clisp.org>
125724         * modules/xsetenv: New module.
125725         * MODULES.html.sh (func_all_modules): Add it.
125727 2003-01-27  Bruno Haible  <bruno@clisp.org>
125729         * lib/xsetenv.h: New file, from GNU gettext.
125730         * lib/xsetenv.c: New file, from GNU gettext.
125732 2003-01-23  Jim Meyering  <jim@meyering.net>
125734         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125735         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125737 2003-01-23  Bruno Haible  <bruno@clisp.org>
125739         * modules/minmax: New module.
125740         * MODULES.html.sh (func_all_modules): Add it.
125742 2003-01-23  Bruno Haible  <bruno@clisp.org>
125744         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125745         Eggert.
125747 2003-01-22  Bruno Haible  <bruno@clisp.org>
125749         * modules/exit: New module.
125750         * MODULES.html.sh (func_all_modules): Add it.
125752 2003-01-22  Bruno Haible  <bruno@clisp.org>
125754         * lib/exit.h: New file, from GNU gettext.
125756 2003-01-19  Bruno Haible  <bruno@clisp.org>
125758         * gnulib-tool: Recognize option --extract-maintainer.
125759         (func_get_maintainer): New function.
125760         * modules/*: Add Maintainer entry.
125762 2003-01-16  Jim Meyering  <jim@meyering.net>
125764         * m4/regex.m4: The `regex' struct is both input and output.
125765         Initialize it before each use.  Patch by Tim Waugh.
125767 2003-01-16  Bruno Haible  <bruno@clisp.org>
125769         * MODULES.html.sh: Add a table of contents. Add the module name as
125770         leftmost column. Add hyperlinks.
125772 2003-01-15  Bruno Haible  <bruno@clisp.org>
125774         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125776 2003-01-15  Bruno Haible  <bruno@clisp.org>
125778         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125779         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125780         suffix.
125782 2003-01-15  Bruno Haible  <bruno@clisp.org>
125784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125786 2003-01-15  Bruno Haible  <bruno@clisp.org>
125788         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125789         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125791 2003-01-14  Jim Meyering  <jim@meyering.net>
125793         * lib/same.c (same_name): Tweak a comment.
125795 2003-01-14  Bruno Haible  <bruno@clisp.org>
125797         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125798         when a string comparison is sufficient.
125800 2003-01-14  Bruno Haible  <bruno@clisp.org>
125802         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125803         'unsigned int'.
125805 2003-01-14  Bruno Haible  <bruno@clisp.org>
125807         * lib/hash-pjw.c: Add comment about low quality of this function.
125809 2003-01-13  Bruno Haible  <bruno@clisp.org>
125811         * modules/stpcpy: Distribute lib/stpcpy.h.
125812         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125814 2003-01-13  Bruno Haible  <bruno@clisp.org>
125816         * modules/*: Add a description.
125817         * modules/strpbrk: Fix Makefile.am snippet.
125818         * modules/strtoimax: Fix dependencies.
125819         * modules/strtoumax: Likewise.
125821 2003-01-13  Bruno Haible  <bruno@clisp.org>
125823         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125824         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125825         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125827 2003-01-13  Bruno Haible  <bruno@clisp.org>
125829         * gnulib-tool (func_create_testdir): Store config/* files in the main
125830         directory.
125831         * config.rpath: Move to ...
125832         * config/config.rpath: ... here.
125833         * modules/gettext: Contains config/config.rpath, not config.rpath.
125834         * modules/iconv: Likewise.
125836 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125838         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125839         to avoid collisions with libcurses and libreadline.
125841         * m4/getstr.m4: Remove.
125842         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125844 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125846         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125847         to avoid collisions with libcurses and libreadline.
125849         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125850         * lib/getstr.h, getstr.c: Remove.
125851         * lib/getline.c: Include "getline.h", to check interface.
125852         Move body of old getstr.c here: this defines MIN_CHUNK and
125853         declares getdelim2, which is renamed from getstr.
125854         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125856         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125857         All uses changed.
125858         * lib/linebuffer.h: Likewise.
125859         (readline): Remove backward-compatibility macro.
125861 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125863         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125864         to avoid collisions with libcurses and libreadline.
125865         * getstr: Remove.
125866         * MODULES.html.sh: Remove getstr.
125867         * modules/getline: Depend on unlocked-io, not getstr.
125869 2003-01-12  Jim Meyering  <jim@meyering.net>
125871         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125873 2003-01-10  Bruno Haible  <bruno@clisp.org>
125875         * modules/alloca: Change Makefile.am requirements. Simplify Include
125876         requirements. Add lib/alloca_.h to file list.
125878 2003-01-10  Bruno Haible  <bruno@clisp.org>
125880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125882 2003-01-10  Bruno Haible  <bruno@clisp.org>
125884         * lib/alloca_.h: New file.
125885         * lib/getdate.y: Unconditionally include alloca.h.
125886         * lib/makepath.c: Likewise.
125887         * lib/setenv.c: Likewise.
125888         * lib/userspec.c: Likewise.
125890 2003-01-09  Karl Berry  <karl@gnu.org>
125892         * MODULES.html.sh: include `dirname $0` in PATH, to find
125893         gnulib-tool.
125895 2003-01-09  Bruno Haible  <bruno@clisp.org>
125897         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125898         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125900 2003-01-09  Bruno Haible  <bruno@clisp.org>
125902         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125904 2003-01-09  Bruno Haible  <bruno@clisp.org>
125906         * lib/stdbool.h.in: New file.
125908 2003-01-09  Bruno Haible  <bruno@clisp.org>
125910         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125911         * MODULES.html.sh: Likewise.
125913 2003-01-08  Jim Meyering  <jim@meyering.net>
125915         * lib/full-write.c: Undefine and define-away `const' after inclusion
125916         of errno.h, not before.  Suggestion from Bruno Haible.
125918 2003-01-08  Bruno Haible  <bruno@clisp.org>
125920         * modules/full-read: Depend on full-write.
125922 2003-01-08  Bruno Haible  <bruno@clisp.org>
125924         * lib/safe-read.c: Include specification header first, to ensure its
125925         selfcontainedness.
125926         * lib/full-write.c: Likewise.
125928 2003-01-07  Jim Meyering  <jim@meyering.net>
125930         * lib/full-write.c: Rework so that it may serve to define full_read,
125931         too.
125932         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125934 2003-01-07  Bruno Haible  <bruno@clisp.org>
125936         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125937         <inttypes.h>.
125938         * lib/xstrtol.h: Likewise.
125939         * lib/xstrtoimax.c: Likewise.
125940         * lib/xstrtoumax.c: Likewise.
125941         * lib/human.h: Likewise.
125943         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125944         on systems that have <inttypes.h> but not <stdint.h>.
125946 2003-01-07  Bruno Haible  <bruno@clisp.org>
125948         * MODULES.html.sh: Add copyright notice.
125949         (missed_files): Omit CVS directory entries.
125950         (func_module): Make it work with sed-3.02.
125951         * MODULES.txt: Remove file.
125953 2003-01-06  Jim Meyering  <jim@meyering.net>
125955         * lib/version-etc.c: Update year in translatable copyright string.
125957 2003-01-03  Karl Berry  <karl@gnu.org>
125959         * config/config.{guess,sub}: update from prep.
125961 2003-01-02  Karl Berry  <karl@gnu.org>
125963         * doc/COPYING.DOC: belatedly updated to 1.2.
125965 2003-01-01  Karl Berry  <karl@gnu.org>
125967         * gnulib-tool (func_verify_module): report module name $module in
125968         error message, not $1.
125969         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125970         be created, only if it doesn't exist.
125971         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125973 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125975         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125977 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125979         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125980         memcmp if strcoll doesn't work.
125982 2002-12-31  Bruno Haible  <bruno@clisp.org>
125984         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125985         nonempty.
125987 2002-12-31  Bruno Haible  <bruno@clisp.org>
125989         * lib/memcoll.c (STRCOLL): New macro.
125990         (memcoll): Use it.
125992 2002-12-31  Bruno Haible  <bruno@clisp.org>
125994         * lib/localcharset.h: New file.
125995         * lib/localcharset.c: Include it.
125996         * lib/unicodeio.c: Likewise.
125998 2002-12-31  Bruno Haible  <bruno@clisp.org>
126000         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126001         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126003 2002-12-31  Bruno Haible  <bruno@clisp.org>
126005         * lib/getline.h: Include <stddef.h>, for size_t.
126007         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126008         * lib/unicodeio.c: Don't include <stddef.h>.
126010 2002-12-31  Bruno Haible  <bruno@clisp.org>
126012         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126013         HAVE_TM_ZONE.
126015 2002-12-24  Karl Berry  <karl@gnu.org>
126017         * config/config.guess: update from prep.
126019 2002-12-24  Bruno Haible  <bruno@clisp.org>
126021         General infrasructure.
126022         * m4/README: Rewritten.
126023         * m4/onceonly.m4: New file.
126024         * m4/onceonly_2_57.m4: New file.
126026         Module atexit.
126027         * m4/atexit.m4: New file.
126029         Module strtod.
126030         * m4/strtod.m4: New file.
126032         Module strtol.
126033         * m4/strtol.m4: New file.
126035         Module strtoul.
126036         * m4/strtoul.m4: New file.
126038         Module memchr.
126039         * m4/memchr.m4: New file.
126041         Module memcmp.
126042         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126043         (jm_FUNC_MEMCMP): Invoke it.
126045         Module memcpy.
126046         * m4/memcpy.m4: New file.
126048         Module memmove.
126049         * m4/memmove.m4: New file.
126051         Module memset.
126052         * m4/memset.m4: New file.
126054         Module strcspn.
126055         * m4/strcspn.m4: New file.
126057         Module strpbrk.
126058         * m4/strpbrk.m4: New file.
126060         Module strstr.
126061         * m4/strstr.m4: New file.
126063         Module strerror.
126064         * m4/strerror.m4: New file.
126066         Module mktime.
126067         * m4/mktime.m4: Renamed from jm-mktime.m4.
126068         (gl_PREREQ_MKTIME): New macro.
126069         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126071         Module malloc.
126072         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126073         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126074         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126076         Module realloc.
126077         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126078         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126079         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126081         Module strftime.
126082         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126083         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126084         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126085         gl_TM_GMTOFF.
126086         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126088         Module xalloc.
126089         * m4/xalloc.m4: New file.
126091         Module alloca.
126092         * m4/alloca.m4: New file.
126094         Module putenv.
126095         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126096         (jm_FUNC_PUTENV): Invoke it.
126098         Module setenv.
126099         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126100         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126101         when invoked twice.
126102         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126103         gt_FUNC_SETENV.
126105         Module memrchr.
126106         * m4/memrchr.m4: New file.
126108         Module stpcpy.
126109         * m4/stpcpy.m4: New file.
126111         Module strcase.
126112         * m4/strcase.m4: New file.
126114         Module strdup.
126115         * m4/strdup.m4: New file.
126117         Module strnlen.
126118         * m4/strnlen.m4: New file.
126120         Module strndup.
126121         * m4/strndup.m4: New file.
126123         Module xstrtod.
126124         * m4/xstrtod.m4: New file.
126126         Module xstrtol.
126127         * m4/xstrtol.m4: New file.
126129         Module getdate.
126130         * m4/getdate.m4: New file.
126132         Module unlocked-io.
126133         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126134         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126135         * m4/jm-glibc-io.m4n: Remove file.
126137         Module long-options.
126138         * m4/long-options.m4: New file.
126140         Module md5.
126141         * m4/md5.m4: New file.
126143         Module sha.
126144         * m4/sha.m4: New file.
126146         Module getstr.
126147         * m4/getstr.m4: New file.
126149         Module getline.
126150         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126151         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126152         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126153         simply getline. Infoke gl_PREREQ_GETLINE.
126155         Module obstack.
126156         * m4/obstack.m4: New file.
126158         Module hash.
126159         * m4/hash.m4: New file.
126161         Module readtokens.
126162         * m4/readtokens.m4: New file.
126164         Module strverscmp.
126165         * m4/strverscmp.m4: New file.
126167         Module stdbool.
126168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126169         OSF/1.
126171         Module strtoll.
126172         * m4/strtoll.m4: New file.
126174         Module strtoull.
126175         * m4/strtoull.m4: New file.
126177         Module strtoimax.
126178         * m4/strtoimax.m4: New file.
126180         Module strtoumax.
126181         * m4/strtoumax.m4: New file.
126183         Module xstrtoimax.
126184         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126185         jm_AC_PREREQ_XSTRTOIMAX.
126186         Moved the strtol prerequisites to strtol.m4.
126187         Moved the strtoll prerequisites to strtoll.m4.
126188         Moved the strtoimax prerequisites to strtoimax.m4.
126190         Module xstrtoumax.
126191         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126192         jm_AC_PREREQ_XSTRTOUMAX.
126193         Moved the strtoul prerequisites to strtoul.m4.
126194         Moved the strtoull prerequisites to strtoull.m4.
126195         Moved the strtoumax prerequisites to strtoumax.m4.
126197         Module chown.
126198         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126199         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126201         Module dup2.
126202         * m4/dup2.m4: New file.
126204         Module ftruncate.
126205         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126206         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126208         Module getgroups.
126209         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126210         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126212         Module gettimeofday.
126213         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126214         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126215         gl_PREREQ_GETTIMEOFDAY.
126217         Module mkdir.
126218         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126219         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126221         Module mkstemp.
126222         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126223         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126224         jm_AC_TYPE_UINTMAX_T.
126225         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126227         Module stat.
126228         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126229         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126231         Module lstat.
126232         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126233         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126235         Module timespec.
126236         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126237         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126238         * m4/st_mtim.m4: Indentation.
126240         Module nanosleep.
126241         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126242         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126243         gl_PREREQ_NANOSLEEP.
126245         Module regex.
126246         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126247         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126248         (gl_REGEX): New macro.
126250         Module rename.
126251         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126252         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126254         Module rmdir.
126255         * m4/rmdir.m4: New file.
126257         Module utime.
126258         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126259         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126260         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126262         Module dirname.
126263         * m4/dirname.m4: New file.
126265         Module getopt.
126266         * m4/getopt.m4: New file.
126268         Module unistd-safer.
126269         * m4/unistd-safer.m4: New file.
126271         Module fnmatch.
126272         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126273         declaration.
126274         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126275         (gl_FUNC_FNMATCH_POSIX): New macro.
126276         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126277         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126278         simply fnmatch.
126280         Module exclude.
126281         * m4/exclude.m4: New file.
126283         Module human.
126284         * m4/human.m4: New file.
126286         Module acl.
126287         * m4/acl.m4: Nop.
126289         Module backupfile.
126290         * m4/backupfile.m4: New file.
126291         * m4/d-ino.m4: Indentation.
126293         Module fsusage.
126294         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126295         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126296         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126298         Module dirfd.
126299         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126300         requirements.
126302         Module euidaccess.
126303         * m4/euidaccess.m4: New file.
126305         Module file-type.
126306         * m4/file-type.m4: New file.
126308         Module fileblocks.
126309         * m4/fileblocks.m4: New file.
126311         Module filemode.
126312         * m4/filemode.m4: New file.
126314         Module isdir.
126315         * m4/isdir.m4: New file.
126317         Module lchown.
126318         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126319         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126321         Module makepath.
126322         * m4/makepath.m4: New file.
126324         Module modechange.
126325         * m4/modechange.m4: New file.
126327         Module mountlist.
126328         * m4/mountlist.m4: New file.
126329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126330         Indentation.
126332         Module path-concat.
126333         * m4/path-concat.m4: New file.
126335         Module pathmax.
126336         * m4/pathmax.m4: New file.
126338         Module same.
126339         * m4/same.m4: New file.
126341         Module save-cwd.
126342         * m4/save-cwd.m4: New file.
126344         Module savedir.
126345         * m4/savedir.m4: New file.
126347         Module xgetcwd.
126348         * m4/xgetcwd.m4: New file.
126349         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126351         Module xreadlink.
126352         * m4/xreadlink.m4: New file.
126354         Module safe-read.
126355         * m4/safe-read.m4: New file.
126357         Module safe-write.
126358         * m4/safe-write.m4: New file.
126360         Module closeout.
126361         * m4/closeout.m4: New file.
126363         Module stdio-safer.
126364         * m4/stdio-safer.m4: New file.
126366         Module getpass.
126367         * m4/getpass.m4: New file.
126369         Module getugroups.
126370         * m4/getugroups.m4: New file.
126372         Module group-member.
126373         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126374         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126376         Module idcache.
126377         * m4/idcache.m4: New file.
126379         Module userspec.
126380         * m4/userspec.m4: New file.
126382         Module gettime.
126383         * m4/clock_time.m4: New file.
126384         * m4/gettime.m4: New file.
126386         Module settime.
126387         * m4/settime.m4: New file.
126389         Module posixtm.
126390         * m4/posixtm.m4: New file.
126392         Module gethostname.
126393         * m4/gethostname.m4: New file.
126395         Module canon-host.
126396         * m4/canon-host.m4: New file.
126398         Module gettext.
126399         * m4/codeset.m4: New file, from gettext-0.11.5.
126400         * m4/gettext.m4: New file, from gettext-0.11.5.
126401         * m4/glibc21.m4: New file, from gettext-0.11.5.
126402         * m4/iconv.m4: New file, from gettext-0.11.5.
126403         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126404         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126405         * m4/inttypes.m4: New file, from gettext-0.11.5.
126406         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126407         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126408         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126409         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126410         * m4/lib-link.m4: New file, from gettext-0.11.5.
126411         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126412         * m4/progtest.m4: New file, from gettext-0.11.5.
126413         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
126414         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
126415         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
126417         Module localcharset.
126418         * m4/localcharset.m4: New file.
126420         Module hard-locale.
126421         * m4/hard-locale.m4: New file.
126423         Module mbswidth.
126424         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
126425         onceonly macros.
126426         * m4/mbrtowc.m4: Add comment.
126428         Module memcasecmp.
126429         * m4/memcasecmp.m4: New file.
126431         Module memcoll.
126432         * m4/memcoll.m4: New file.
126434         Module unicodeio.
126435         * m4/unicodeio.m4: New file.
126437         Module rpmatch.
126438         * m4/rpmatch.m4: New file.
126440         Module yesno.
126441         * m4/yesno.m4: New file.
126443         Module exitfail.
126444         * m4/exitfail.m4: New file.
126446         Module c-stack.
126447         * m4/c-stack.m4 (gl_C_STACK): New macro.
126448         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126450         Module error.
126451         * m4/error.m4 (gl_ERROR): New macro.
126452         (jm_PREREQ_ERROR): Use onceonly macros.
126454         Module fatal.
126455         * m4/fatal.m4: New file.
126457         Module getloadavg.
126458         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126459         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126461         Module getpagesize.
126462         * m4/getpagesize.m4: New file.
126464         Module getusershell.
126465         * m4/getusershell.m4: New file.
126467         Module physmem.
126468         * m4/physmem.m4: New file.
126470         Module posixver.
126471         * m4/posixver.m4: New file.
126473         Module quotearg.
126474         * m4/quotearg.m4: New file.
126476         Module quote.
126477         * m4/quote.m4: New file.
126479         Module readutmp.
126480         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126482         Module sig2str.
126483         * m4/sig2str.m4: New file.
126485         Other.
126486         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126487         ulonglong.m4.
126488         * m4/intmax_t.m4: New file.
126489         * m4/d-type.m4: Indentation.
126490         * m4/jm-macros.m4: Update.
126491         * m4/prereq.m4 (jm_PREREQ): Update.
126492         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126493         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126494         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126495         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126496         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126497         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126498         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126499         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126500         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126501         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126502         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126503         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126504         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126505         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126506         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126507         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126508         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126509         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126510         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126512 2002-12-24  Bruno Haible  <bruno@clisp.org>
126514         * MODULES.txt: Update according to m4/ changes.
126516         Module gettext.
126517         * config.rpath: New file, from gettext-0.11.5.
126519         * modules/*: New module descriptions.
126520         * gnulib-tool: New file.
126521         * MODULES.html.sh: New file.
126523 2002-12-21  Karl Berry  <karl@gnu.org>
126525         * doc/fdl.texi: update to version 1.2.
126527 2002-12-19  Karl Berry  <karl@gnu.org>
126529         * config/config.guess: update from prep.
126531 2002-12-18  Bruno Haible  <bruno@clisp.org>
126533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126534         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126536 2002-12-17  Bruno Haible  <bruno@clisp.org>
126538         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126539         stdlib.h, string.h.
126541 2002-12-17  Bruno Haible  <bruno@clisp.org>
126543         * lib/canon-host.c (strdup): Remove unused declaration.
126545         * lib/fsusage.c: Include full_read.h.
126546         (get_fs_usage): Use full_read instead of safe_read.
126548         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126550 2002-12-12  Karl Berry  <karl@gnu.org>
126552         * config/config.guess: update from prep.
126554 2002-12-11  Bruno Haible  <bruno@clisp.org>
126556         * m4/setenv.m4: New file, from gettext-0.11.5.
126558 2002-12-11  Bruno Haible  <bruno@clisp.org>
126560         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126561         not unsetenv().
126562         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126563         modifications:
126565         2002-12-11  Bruno Haible  <bruno@clisp.org>
126567                 * setenv.c (alloca): Fall back to malloc.
126568                 (freea): New macro.
126569                 (setenv): Use freea() to free memory allocated with alloca().
126571         2002-11-13  Bruno Haible  <bruno@clisp.org>
126573                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126574                 function declarations.
126575                 * unsetenv.c (unsetenv): Likewise.
126577         2002-03-04  Bruno Haible  <bruno@clisp.org>
126579                 Portability to AIX 4.3.3.
126580                 * unsetenv.c: New file, extracted from setenv.c.
126581                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126583         2001-12-20  Bruno Haible  <bruno@clisp.org>
126585                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126586                 use malloc instead. For SunOS 4.
126588         2001-12-11  Bruno Haible  <bruno@clisp.org>
126590                 * setenv.c: Declare alloca.
126591                 (compar_fn_t): New typedef.
126592                 (KNOWN_VALUE, STORE_VALUE): Use it.
126594         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126595         setenv.h.
126597 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126599         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126600         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126601         Choose values that are less likely to collide with system fnmatch
126602         options.
126603         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126604         defined (e.g., a pure POSIX system).
126605         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126606         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126608 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126610         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126611         a pain in practice to deal with generated m4 files.  This change
126612         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126614         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126615         and jm-glibc-io.m4, as they are no longer a special case.
126616         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126617         kludge and the auto-generation stuff.  Check only whether the
126618         functions are declared, not whether they exist, since older hosts
126619         that don't declare the functions can't use the optimization anyway.
126621 2002-12-06  Jim Meyering  <jim@meyering.net>
126623         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126625         Merge in changes from libc's misc/error.c, in preparation
126626         for the merge of gnulib's changes back into libc.
126628         * lib/error.c (_): Define only if not already defined.
126629         Move definition to follow all #include directives.
126630         Include unlocked-io.h only if !_LIBC.
126631         [_LIBC]: Include <libio/libioP.h>.
126632         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126633         (fflush): Tweak definition to use INTUSE.
126634         (putc): Define.
126636 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126638         * lib/alloca.c [defined emacs]: Include "lisp.h".
126639         (xalloc_die) [defined emacs]: New macro.
126640         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126641         [! defined emacs]: Include <xalloc.h>.
126642         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126643         (pointer): Typedef to POINTER_TYPE *.
126644         (malloc): Remove decl; we now always use xmalloc.
126645         (alloca): Use old-style definition, since Emacs needs this.
126646         Check for arithmetic overflow when computing combined size.
126648 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126650         Do not generate unlocked-io.h automatically, since it's easier to
126651         maintain it by hand.
126653         * lib/unlocked-io.h: New file, from GNU diffutils,
126654         but with proper copyright notice and attribution.
126655         * lib/gen-uio: Remove.
126656         * lib/Makefile.am: Add copyright notice.
126657         (libfetish_a_SOURCES): Add unlocked-io.h.
126658         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126659         (DISTCLEANFILES, io_functions): Remove macros.
126660         (EXTRA_DIST): Remove gen_uio.
126661         (unlocked-io.h): Remove rule.
126663 2002-12-04  Jim Meyering  <jim@meyering.net>
126665         Reflect the fact that stat.c and lstat.c are no longer generated.
126666         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126667         (DISTCLEANFILES): Likewise.
126668         (EXTRA_DIST): Likewise.
126669         (all_local): Don't depend on stat.c or lstat.c.
126670         (stat.c, lstat.c): Remove rules.
126671         (EXTRA_DIST): Remove xstat.in.
126673         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126674         * lib/stat.c: New file.  Contents mostly from xstat.in.
126675         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126676         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126678         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126679         too.
126680         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126682 2002-12-03  Jim Meyering  <jim@meyering.net>
126684         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126685         but not semantics, to minimize the differences between these two files.
126686         (safe_read): Change comment to mention SAFE_READ_ERROR.
126688         * lib/safe-read.c (IS_EINTR): Define.
126689         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126691 2002-12-02  Jim Meyering  <jim@meyering.net>
126693         * lib/safe-read.c (EINTR): Define.
126694         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126695         (INT_MAX): Provide fallback.
126696         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126698         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126700 2002-12-02  Bruno Haible  <bruno@clisp.org>
126702         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126703         Define, taken from safe-read.c.
126704         (INT_MAX): Provide fallback.
126705         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126706         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126708         * lib/safe-read.c (EINTR): Remove definition.
126709         (safe_read): Don't use EINTR if it is absent.
126711 2002-12-01  Jim Meyering  <jim@meyering.net>
126713         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126714         zero.
126715         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126717 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126719         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126720         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126721         with `if (! (value < limit)) abort ();', for readability.
126723 2002-11-26  Karl Berry  <karl@gnu.org>
126725         * lib/strdup.c: copy from libc again, with jim's ok.
126726         * lib/.cppi-disable: re-add strdup.c
126728 2002-11-25  Karl Berry  <karl@gnu.org>
126730         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126731         instead of "strtol.c".
126733 2002-11-25  Karl Berry  <karl@gnu.org>
126735         * config/install-sh: update from automake for variable quoting, $0 in
126736         error msgs, etc.
126738         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126739         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126740         entry.
126742 2002-11-25  Jim Meyering  <jim@meyering.net>
126744         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126746 2002-11-24  Karl Berry  <karl@gnu.org>
126748         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126749         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126751 2002-11-24  Jim Meyering  <jim@meyering.net>
126753         Update from coreutils:
126755         * lib/mktime.c: Merge in changes from libc.
126757         Avoid a link-time failure on some Linux systems.
126758         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126759         (otherwise).
126760         (__mon_yday): Declare with the STATIC attribute.
126761         (__mktime_internal): Likewise.
126762         Based on a report from Greg Schafer.
126764 2002-11-23  Jim Meyering  <jim@meyering.net>
126766         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126767         Use `unsigned', not `int', as type of index.
126769         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126771         * lib/fsusage.c: Remove unneeded parentheses around operands of
126772         `defined'.
126774 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126776         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126777         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126778         so that we can be included first.
126779         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126780         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126781         No need to include stddef.h or sys/types.h any more.
126782         Surround local include files with "", not "<>".
126783         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126784         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126785         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126786         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126787         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126788         (ISPRINT): Remove; no longer needed now that we assume C89.
126790         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126791         Preserve errno.
126793         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126794         quotearg_char): Use SIZE_MAX rather than
126795         (size_t) -1 when we are talking about "infinity".
126797         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126799 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126801         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126802         hint that one should use `if (! x) abort ();' rather than `assert
126803         (x);', and anyway it's one less thing to worry about configuring.
126804         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126805         hash_rehash, hash_insert): Use abort rather than assert.
126807 2002-11-22  Bruno Haible  <bruno@clisp.org>
126809         * lib/safe-read.h: Assume C89. Add comments.
126810         (safe_read): Change return type to size_t.
126811         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126812         byte counts > SSIZE_MAX correctly.
126813         * lib/safe-write.h: New file.
126814         * lib/safe-write.c: New file.
126815         * lib/full-read.h: New file.
126816         * lib/full-read.c: New file.
126817         * lib/full-write.h: Assume C89. Add comments.
126818         * lib/full-write.c: Include safe-write.h.
126819         (full_write): Rewritten to use safe_write.
126820         Suggested by Jim Meyering and Paul Eggert.
126822 2002-11-21  Jim Meyering  <jim@meyering.net>
126824         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126826         Merge in changes from the coreutils.
126828         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126829         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126830         <stdint.h>.
126831         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126832         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126833         int.  Work more efficiently if X is the same width as uintmax_t.
126834         Do not compare X to -1, to avoid bogus compiler warning.
126835         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126836         Don't assume that f_frsize and f_bsize are the same type.
126838         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126839         warning on FreeBSD.
126841         * lib/makepath.c (make_path): Restore umask *before* creating the final
126842         component.
126843         (make_path): Minor reformatting.
126845         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126846         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126847         HAVE_MALLOC/HAVE_REALLOC.
126849         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126850         dummy ones.  At least on GNU/Linux systems, `auto' means something
126851         else.
126852         From Michael Stone.
126854 2002-11-21  Bruno Haible  <bruno@clisp.org>
126856         Remove case insensitive option matching.
126857         * lib/argmatch.h (argcasematch): Remove declaration.
126858         (ARGCASEMATCH): Remove macro.
126859         (__xargmatch_internal): Remove case_sensitive argument.
126860         (XARGMATCH): Update.
126861         (XARGCASEMATCH): Remove macro.
126862         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126863         case_sensitive argument.
126864         (argcasematch): Remove function.
126865         (__xargmatch_internal): Remove case_sensitive argument.
126866         (main): Use XARGMATCH instead of XARGCASEMATCH.
126868         * lib/xmalloc.c: Change compile-time error message. Add comment about
126869         required autoconf version.
126871 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126873         Merge argmatch cleanups from Bison.  Assume C89.
126875         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126876         Include stdlib.h, for EXIT_FAILURE.
126877         Always include <string.h>, since we assume C89.
126878         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126879         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126880         Include <stddef.h> instead, since it's all we need for size_t.
126881         (PARAMS): Remove.  All uses removed.
126882         (ARRAY_CARDINALITY): Do not bother to #undef.
126883         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126884         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126885         Remove unnecessary parentheses.
126886         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126887         Insert necessary parentheses.
126888         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126889         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126891 2002-11-19  Bruno Haible  <bruno@clisp.org>
126893         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126894         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126896         * lib/mbswidth.h (PARAMS): Remove macro.
126897         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126898         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126900         * lib/gcd.h (PARAMS): Remove macro.
126901         (gcd): Use ANSI C function declarations.
126902         * lib/gcd.c (gcd): Likewise.
126904 2002-11-15  Bruno Haible  <bruno@clisp.org>
126906         * lib/strcspn.c: Include <stddef.h>.
126907         (strcspn): Use ANSI C function declaration. Change return type to
126908         size_t. Use NULL.
126909         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126910         (strpbrk): Use NULL.
126911         * lib/strpbrk.h (PARAMS): Remove macro.
126912         (strpbrk): Use ANSI C function declaration.
126913         * lib/strstr.c: Don't include <sys/types.h>.
126914         * lib/strstr.h (PARAMS): Remove macro.
126915         (strstr): Use ANSI C function declarations.
126917 2002-11-14  Karl Berry  <karl@gnu.org>
126919         * config/mkinstalldirs: `do' on separate line, instead of
126920         `for var; do'.
126922 2002-11-06  Bruno Haible  <bruno@clisp.org>
126924         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126925         * lib/gcd.c (gcd): Likewise.
126927 2002-11-05  Bruno Haible  <bruno@clisp.org>
126929         * lib/gcd.h: New file, from gettext-0.11.5.
126930         * lib/gcd.c: New file, from gettext-0.11.5.
126932 2002-11-05  Bruno Haible  <bruno@clisp.org>
126934         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126935         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126936         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126937         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126939         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126940         <libintl.h>.
126941         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126942         <libintl.h>.
126944         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126945         * lib/human.c: Include gettext.h instead of <libintl.h>.
126946         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126947         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126948         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126949         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126950         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126951         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126952         (textdomain): Remove definition.
126953         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126955         * lib/long-options.c: Remove include of <libintl.h> and definition of
126956         _.
126957         * lib/same.c: Remove include of <libintl.h> and definition of _.
126959 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126961         * lib/config.charset: A few additions for Solaris.
126963 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126965         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126966         * lib/localcharset.c (locale_charset): Declare as extern "C".
126968 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126970         * lib/config.charset: msdos in uk_UA uses CP1125.
126972 2002-11-04  Bruno Haible  <bruno@clisp.org>
126974         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126975         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126976         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126977         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126978         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126980 2002-11-04  Bruno Haible  <bruno@clisp.org>
126982         * lib/localcharset.c (locale_charset): Don't return an empty string.
126984 2002-11-04  Bruno Haible  <bruno@clisp.org>
126986         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126987         aliases.
126989 2002-11-04  Bruno Haible  <bruno@clisp.org>
126991         * lib/config.charset: Update for newest glibc. Add canonical names
126992         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126994 2002-11-04  Bruno Haible  <bruno@clisp.org>
126996         * lib/config.charset: Add support for NetBSD.
126998 2002-11-04  Bruno Haible  <bruno@clisp.org>
127000         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127002 2002-11-01  Bruno Haible  <bruno@clisp.org>
127004         * configure.in: Add AC_CONFIG_AUX_DIR call.
127005         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127006         test/Makefile.
127007         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127009 2002-09-28  Karl Berry  <karl@gnu.org>
127011         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127012         installed automake until the next release, since changes have been
127013         made.
127015 2002-09-25  Karl Berry  <karl@gnu.org>
127017         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127018         * lib/getopt*: copy from libc/posix.
127019         * lib/gettext.h: copy from gettext.
127020         * lib/.cppi-disable: add strdup.c, gettext.h.
127022 2002-09-25  Karl Berry  <karl@gnu.org>
127024         * config/srclist.txt: enable gettext.h check.
127025         * config/config.{guess,sub}: update from prep.
127026         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127027                 from automake 1.6.3.
127028         See srclist*.
127030 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127032         * regex.c (PATFETCH): Remove the translating fetch.
127033         (PATFETCH_RAW): Rename to PATFETCH.
127034         (set_image_of_range): New fun.
127035         (SET_RANGE_TABLE_WORK_AREA): Use it.
127036         (regex_compile): Don't translate the pattern chars so eagerly.
127037         Only do it when inserting an `exactn' bytecode or when handling
127038         a char-range.
127039         (mutually_exclusive_p): Avoid empty statement.
127041 2002-07-06  Jim Meyering  <meyering@lucent.com>
127043         * m4/README: Don't mention Makefile.am.in.
127044         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127046 2002-07-01  Jim Meyering  <meyering@lucent.com>
127048         * lib/c-stack.c: Include sys/time.h.
127049         From Volker Borchert.
127051 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127053         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127055 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127057         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127058         New macro.  Use it uniformly instead of
127059         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127060         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127061         reported by Vin Shelton.
127063 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127065         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127066         Do not assume SA_SIGINFO behavior.
127067         Bug reported by Jim Meyering on NetBSD 1.5.2.
127069 2002-06-22  Jim Meyering  <meyering@lucent.com>
127071         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127075         now that configure.ac uses AC_GNU_SOURCE.
127076         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127077         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127079         Update to latest tools.  Suggestions from Paul Eggert.
127080         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127081         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127082         * m4/fnmatch.m4: Likewise.
127083         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127084         to AC_HEADER_STDBOOL
127086 2002-06-22  Jim Meyering  <meyering@lucent.com>
127088         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127089         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127091 2002-06-22  Jim Meyering  <meyering@lucent.com>
127093         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127095         * lib/exitfail.c, exitfail.h: Likewise.
127096         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127098         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127099         of fnmatch.h.
127100         (EXTRA_DIST): Add fnmatch_loop.c.
127101         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127103         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127104         * lib/fnmatch.c: Update from diffutils-2.8.2.
127105         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127106         * lib/fnmatch.h: Remove file.
127108 2002-06-21  Jim Meyering  <meyering@lucent.com>
127110         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127111         * m4/mbrtowc.m4: Likewise.
127113         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127114         * m4/mbswidth.m4: Reflect name change:
127115         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127118         * m4/lib-link.m4: Update from gettext-0.11.2.
127119         * m4/gettext.m4: Likewise.
127121         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127122         From Alfred M. Szmidt.
127124 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127126         * lib/file-type.h: Report an error if neither S_ISREG nor
127127         S_IFREG is defined, instead of using a test specific to glibc
127128         2.2.  This should be safe, since POSIX requires S_ISREG and
127129         Unix Version 7 had S_IFREG.  We don't need to check for
127130         <sys/types.h> since we don't use any symbols that it defines.
127132 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127134         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127135         $@-t, so that each temporary file name is unique and valid in the first
127136         8 characters, for operation under DOS.
127138 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127142 2002-06-15  Jim Meyering  <meyering@lucent.com>
127144         Work even with DJGPP 2.03, which lacks support for symlinks.
127145         From Richard Dawe.
127146         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127147         is defined.
127148         * lib/lchown.c (S_ISLNK): Likewise.
127150 2002-06-15  Jim Meyering  <meyering@lucent.com>
127152         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127153         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127154         have been included before this file.
127156 2002-06-14  Jim Meyering  <meyering@lucent.com>
127158         * lib/file-type.h: Use the version from diffutils-2.8.2.
127159         * lib/file-type.c: Likewise.
127161 2002-06-07  Jim Meyering  <meyering@lucent.com>
127163         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127164         They're needed at least for NetBSD 1.5.2.
127165         ($statxfs_includes): Include those same headers.
127166         ($statxfs_includes): Include sys/vfs.h if available.
127167         ($statxfs_includes): Likewise for sys/statvfs.h.
127168         Check for the following members in both structs statfs and statvfs:
127169         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127171 2002-06-01  Jim Meyering  <meyering@lucent.com>
127173         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127174         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127176 2002-05-28  Jim Meyering  <meyering@lucent.com>
127178         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127179         Reported by Volker Borchert.
127181 2002-05-27  Jim Meyering  <meyering@lucent.com>
127183         Fix a problem seen only on nonconforming systems whereby ls.c's
127184         use of localtime, and then of gettimeofday would cause trouble:
127185         the localtime call used to initialize rpl_gettimeofday's save
127186         mechanism would clobber ls's current local time information so
127187         that in any long listing the first file would always be listed
127188         with date 1970-01-01.  Analysis by Volker Borchert.
127190         * lib/gettimeofday.c (localtime): Undefine.
127191         (rpl_localtime): New function.
127193 2002-05-27  Jim Meyering  <meyering@lucent.com>
127195         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127196         localtime.
127198         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127199         use the replacement function; it wouldn't resolve at link time.
127200         Reported by Volker Borchert.
127202 2002-05-22  Jim Meyering  <meyering@lucent.com>
127204         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127205         file-type.h.
127206         * lib/file-type.h: New file.
127207         * lib/file-type.c (file_type): New file/function.  Extracted from
127208         diffutils.
127210 2002-04-30  Jim Meyering  <meyering@lucent.com>
127212         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127214 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127216         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127218 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127220         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127221         Do not check for alloca.h (no longer used) or stdbool.h (was never
127222         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127224 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127226         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127228 2002-04-29  Jim Meyering  <meyering@lucent.com>
127230         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127231         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127232         Use AC_FUNC_STRNLEN here instead.
127234         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127235         With autoconf-2.53a, it's part of AC_PROG_CC.
127237 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127239         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127242 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127244         * lib/sig2str.h, lib/sig2str.c: New files.
127245         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127247 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127249         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127250         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127251         of 127, since 64 is the largest conceivable number for ancient
127252         nonstandard hosts.
127253         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127255 2002-04-28  Jim Meyering  <meyering@lucent.com>
127257         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127259 2002-04-24  Jim Meyering  <meyering@lucent.com>
127261         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127262         (jm_PREREQ): Use it.
127264         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127265         mach/mach.h fcntl.h.
127266         Check for this function: setlocale.
127268 2002-04-24  Jim Meyering  <meyering@lucent.com>
127270         * lib/gettext.h: New file, from Gettext.
127271         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127272         (libfetish_a_SOURCES): Add gettext.h.
127274 2002-04-16  Jim Meyering  <meyering@lucent.com>
127276         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127277         ut_pid, ut_id, ut_exit.
127279 2002-04-16  Jim Meyering  <meyering@lucent.com>
127281         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127282         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127283         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127285 2002-04-12  Jim Meyering  <meyering@lucent.com>
127287         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127288         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127289         existence of the getmntinfo function.  Needed for Darwin 5.3.
127291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127292         This is necessary at least on Darwin 5.3.
127294         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127295         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127296         strnlen.o in the library, and that makes some versions of ranlib
127297         object.
127299 2002-04-12  Jim Meyering  <meyering@lucent.com>
127301         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127303 2002-04-09  Jim Meyering  <meyering@lucent.com>
127305         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127306         to be more precise.  Rather than saying we're checking whether the
127307         function `works', say what we're testing.
127308         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127309         Reported by Bruno Haible.
127311 2002-03-10  Jim Meyering  <meyering@lucent.com>
127313         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127314         Suggestion from Santiago Vila.
127316 2002-03-08  Jim Meyering  <meyering@lucent.com>
127318         * lib/rename.c: Mention that this wrapper is needed also on
127319         mips-dec-ultrix4.4 systems.
127321 2002-03-02  Jim Meyering  <meyering@lucent.com>
127323         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127324         not HAVE_CLOCK_SETTIME.
127326 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127328         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127329         Check for clock_settime.
127331 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127333         * lib/nanosleep.h: Rename to....
127334         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127336         * lib/gettime.c: New file.
127337         * lib/settime.c: New file.
127338         * lib/stime.c: Remove.
127340         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127341         timespec.h.  Remove nanosleep.h.
127343 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127345         * m4/acl.m4: New file.
127346         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127347         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127349 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127351         * lib/acl.c, lib/acl.h: New files.
127352         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127354 2002-02-24  Jim Meyering  <meyering@lucent.com>
127356         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127357         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127358         cause trouble.  Reported by Nelson Beebe.
127360 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127362         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127363         compilers that don't know that xalloc_die never returns.
127365 2002-02-20  Jim Meyering  <meyering@lucent.com>
127367         * lib/getdate.c: Regenerate using bison-1.33.
127369 2002-02-17  Jim Meyering  <meyering@lucent.com>
127371         * config/config.guess (main): Don't use `head -1'; it's no longer
127372         portable. Use `sed 1q' instead.
127374 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127376         * m4/codeset.m4: Upgrade to gettext-0.11.
127377         * m4/gettext.m4: Upgrade to gettext-0.11.
127378         * m4/glibc21.m4: Upgrade to gettext-0.11.
127379         * m4/iconv.m4: Upgrade to gettext-0.11.
127380         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127381         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127382         * m4/lib-ld.m4: New file, from gettext-0.11.
127383         * m4/lib-link.m4: New file, from gettext-0.11.
127384         * m4/lib-prefix.m4: New file, from gettext-0.11.
127385         * m4/progtest.m4: Upgrade to gettext-0.11.
127387 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127389         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127390         (jm_PREREQ): Use it.
127392 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127394         * lib/posixver.c, lib/posixver.h: New files.
127395         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127397 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127398             Bruno Haible  <bruno@clisp.org>
127400         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127401         (fwrite_success_callback): New declaration.
127402         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127403         print_unicode_char. Call failure callback instead of error.
127404         (fwrite_success_callback): New function.
127405         (exit_failure_callback): New function.
127406         (fallback_failure_callback): New function.
127407         (print_unicode_char): Call unicode_to_mb.
127409 2002-01-26  Jim Meyering  <meyering@lucent.com>
127411         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127412         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
127414 2002-01-26  Jim Meyering  <meyering@lucent.com>
127416         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
127418 2002-01-22  Paul Eggert  <eggert@twinsun.com>
127420         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
127422 2002-01-22  Jim Meyering  <meyering@lucent.com>
127424         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
127425         Otherwise, some versions of automake would omit the rule that makes
127426         Makefile from Makefile.in.
127428 2002-01-21  Paul Eggert  <eggert@twinsun.com>
127430         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
127431         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127432         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
127433         (memcoll): Set errno to zero if there is no error.
127435         * lib/quotearg.c (quotearg_buffer_restyled):
127436         Fix bug with quoting buffers containing NUL when backslashing escapes.
127437         This bug was exposed by the other changes in this patch.
127438         (quotearg_n_options): New arg ARGSIZE.
127439         All callers changed.
127440         (quoting_options_from_style): New function.
127441         (quotearg_n_style): Use it.
127442         (quotearg_n_style_mem): New function.
127444         * lib/quotearg.h (quotearg_n_style_mem): New function.
127446 2002-01-19  Jim Meyering  <meyering@lucent.com>
127448         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127449         Remove useless quotes: DF_PROG="df".
127450         * m4/strnlen.m4: New file.
127452 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127454         * lib/backupfile.c (ISDIGIT): Comment fix.
127455         * lib/getdate.y (ISDIGIT): Likewise.
127456         * lib/posixtm.c (ISDIGIT, year): Likewise.
127457         * lib/strverscmp.c (ISDIGIT): Likewise.
127458         * lib/userspec.c (ISDIGIT): Likewise.
127460 2002-01-16  Jim Meyering  <meyering@lucent.com>
127462         * lib/getdate.y: Add three semicolons, each just before a closing
127463         brace. Bison (as of version 1.31) no longer papers over that mistake.
127465 2002-01-05  Jim Meyering  <meyering@lucent.com>
127467         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127469 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127471         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127472         not silently exit merely because the output buffer happens to
127473         have nothing pending.
127475 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127477         See the big note in ../ChangeLog.
127478         * lib/human.c (suffixes): Prefer K to k for 1024.
127479         (generate_suffix_backwards): New function.
127480         (human_readable_inexact): Use it.
127481         * lib/xstrtol.c (__xstrtol): If there is no number but there
127482         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127483         Accept 'K' as well as 'k'.
127485 2001-12-15  Jim Meyering  <meyering@lucent.com>
127487         * lib/regex.h (__restrict_arr): Update from libc.
127489         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127490         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127491         (STREQ): Define.
127493 2001-12-14  Jim Meyering  <meyering@lucent.com>
127495         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127496         Suggestion from Bruno Haible.
127498 2001-12-10  Jim Meyering  <meyering@lucent.com>
127500         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127501         xrealloc, Instead, include "xalloc.h".
127502         (initbuffer): Don't cast xmalloc return value to char*.
127503         (readline): Reword comment.
127504         Don't cast xrealloc return value to char*
127505         Return NULL, not 0.
127507 2001-12-09  Jim Meyering  <meyering@lucent.com>
127509         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127510         about `signed and unsigned type in conditional expression'.
127511         * lib/posixtm.c (posix_time_parse): Likewise.
127513         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127515         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127516         to avoid a pedantic warning.
127518         * lib/getstr.c: Don't include assert.h.
127519         (getstr): Remove warning-evoking assertions.
127520         Return -1 if offset parameter is out of bounds.
127521         Change the type of a local from int to size_t.
127523         * lib/strftime.c (my_strftime_localtime_r): Include this function
127524         definition in the `#if ! HAVE_TM_GMTOFF' block.
127526         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127527         Include xalloc.h instead.
127529 2001-12-02  Jim Meyering  <meyering@lucent.com>
127531         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127532         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127533         included.
127535         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127536         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127538 2001-11-30  Akim Demaille  <akim@epita.fr>
127540         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127541         before being defined.
127543 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127545         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127546         First arg is int, not unsigned.
127547         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127548         (SIZE_MAX, UINT_MAX): New macros.
127549         (quotearg_n_options): Abort if N is negative.
127550         Avoid overflow check on hosts where size_t is 64 bits and int
127551         is 32 bits, as overflow is impossible there.
127552         Fix off-by-one typo that caused unnecessary reallocation.
127554 2001-11-27  Jim Meyering  <meyering@lucent.com>
127556         * lib/tempname.c: Merge with version from libc.
127557         * lib/regex.c: Likewise.
127559         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127560         systems for which STDC_HEADERS is 0, it was not included, resulting in
127561         a warning about an integer-to-pointer conversion problem with getenv.
127562         Reported by Volker Borchert.
127564 2001-11-26  Jim Meyering  <meyering@lucent.com>
127566         * lib/gtod.h: Remove file.
127567         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127568         * lib/gettimeofday.c: Don't include gtod.h.
127569         (GTOD_init): Remove function.
127570         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127571         Suggestion from Volker Borchert.
127573 2001-11-23  Jim Meyering  <meyering@lucent.com>
127575         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127576         it.
127577         * lib/hash.c (struct hash_table): Define it here instead.
127579 2001-11-22  Jim Meyering  <meyering@lucent.com>
127581         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127583 2001-11-20  Jim Meyering  <meyering@lucent.com>
127585         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127586         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127588 2001-11-19  Jim Meyering  <meyering@lucent.com>
127590         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127591         directory.  Use "conftestXXXXXX" as the template.
127592         Suggestion from Paul Eggert.
127594         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127595         immediately, so the test doesn't mistakenly hit the max-open-files
127596         limit.
127598 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127600         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127601         (TEMPORARIES): New macro.
127602         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127603         removes an artificial limitation (e.g. HP-UX 10.20, where
127604         TMP_MAX is 17576).
127606 2001-11-18  Jim Meyering  <meyering@lucent.com>
127608         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127610 2001-11-18  Jim Meyering  <meyering@lucent.com>
127612         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127613         on SunOS 4.
127615         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127616         files will be created before anything else.
127618 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127620         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127621         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127623 2001-11-17  Jim Meyering  <meyering@lucent.com>
127625         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127626         Prompted by a report from Bob Proulx.
127628         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127629         Instead, require UTILS_FUNC_MKSTEMP.
127631 2001-11-17  Jim Meyering  <meyering@lucent.com>
127633         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127634         Now, that's done as part of AC_FUNC_STRTOD.
127636 2001-11-17  Jim Meyering  <meyering@lucent.com>
127638         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127639         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127640         rather than group writable.  Patch by Juan F. Codagnone.
127642         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127643         xrealloc, Instead, include "xalloc.h".
127645         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127646         Remove explicit declarations of xmalloc, xrealloc,
127647         and xstrdup.  Instead, include "xalloc.h".
127649         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127650         unlocked-io.h.
127651         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127652         Likewise.
127653         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127655         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127656         Reported by Padraig Brady.
127658         * lib/mkstemp.c: #undef mkstemp.
127659         Include config.h.
127660         (rpl_mkstemp): Rename from mkstemp.
127661         Protoize.
127663 2001-11-16  Jim Meyering  <meyering@lucent.com>
127665         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127666         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127667         determine the amount of total physical memory, use pstat_getstatic.
127668         HPUX-11 doesn't define _SC_PHYS_PAGES.
127669         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127670         If sysconf couldn't be used to determine the amount of available
127671         physical memory, use both pstat_getstatic and pstat_getdynamic.
127672         Based on a patch from Bob Proulx.
127674 2001-11-10  Jim Meyering  <meyering@lucent.com>
127676         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127677         (jm_PREREQ): Use it.
127679 2001-11-09  Jim Meyering  <meyering@lucent.com>
127681         * m4/jm-macros.m4: Require autoconf-2.52f.
127682         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127683         Use these AC_-prefixed names, not the AM_-prefixed ones.
127685         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127687 2001-11-05  Jim Meyering  <meyering@lucent.com>
127689         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127691 2001-11-04  Jim Meyering  <meyering@lucent.com>
127693         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127694         $DEFS.
127696 2001-11-03  Jim Meyering  <meyering@lucent.com>
127698         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127699         of AC_DEFUN.
127701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127702         know the name of the variable in the macro definition.
127704 2001-11-03  Jim Meyering  <meyering@lucent.com>
127706         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127707         in argmatch_to_argument call.
127709         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127710         argument.
127712         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127713         e.g., a fault due to an attempt to free a NULL pointer.
127715 2001-11-01  Jim Meyering  <meyering@lucent.com>
127717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127718         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127720 2001-11-01  Jim Meyering  <meyering@lucent.com>
127722         * lib/dirfd.c, lib/dirfd.h: New files.
127723         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127725         * lib/hash.c (hash_print) [TESTING]: Clean up.
127727 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127729         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127730         to avoid a warning if -Wall.
127732 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127734         * README: New file
127735         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127736         (per RMS's instructions, this is now the canonical source)
127737         * lgpl/, gpl/: New directories.
127739 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127741         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127743 2001-10-21  Jim Meyering  <meyering@lucent.com>
127745         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127746         this code would end up calling gettext even in packages built
127747         with --disable-nls.
127748         * lib/getopt.c (_): Likewise.
127749         * lib/regex.c (_): Likewise.
127751 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127753         * m4/error.m4 (jm_PREREQ_ERROR):
127754         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127755         AC_FUNC_STRERROR_R does that.
127756         Check for strerror declaration.
127758         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127759         are supposed to have them these days.
127760         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127761         Merge changes from latest Autoconf CVS.
127762         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127763         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127764         POSIX decided to standardize on the int flavor of strerror_r.
127766 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127768         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127769         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127770         Use strerror_r that is only a macro, even if it is not a function.
127771         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127772         (private_strerror): Use prototypes, not old-style function definition.
127773         (print_errno_message): New function.
127774         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127775         char*-flavored one.
127776         (error_tail, error, error_at_line): Use it.
127778 2001-10-11  Jim Meyering  <meyering@lucent.com>
127780         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127781         and quote_n (1, ... to avoid clobbering a buffer.
127783 2001-10-05  Jim Meyering  <meyering@lucent.com>
127785         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127786         hash-pjw.h.
127787         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127788         * lib/hash-pjw.h: New file.
127790 2001-09-30  Jim Meyering  <meyering@lucent.com>
127792         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127793         `struct fsstat' has the `f_fstypename' member.
127794         Use that to define FS_TYPE, which is now used to make
127795         the getfsstat link test tighter.
127797 2001-09-30  Jim Meyering  <meyering@lucent.com>
127799         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127800         Include <sys/ucred.h>, for Apple Darwin.
127801         Include sys/mount.h and sys/fs_types.h only if available.
127802         (FS_TYPE): Define.
127803         (read_filesystem_list): Use FS_TYPE.
127805 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127807         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127808         a boolean context.
127810 2001-09-29  Jim Meyering  <meyering@lucent.com>
127812         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127813         [one-argument getmntent function]): Include stdio.h before mntent.h.
127814         SunOS 4.1.x needs it for the declaration of `FILE'.
127815         Patch by Volker Borchert.
127817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127818         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127819         sys/fs_types.h, and make the link-test for getfsstat guard #include
127820         directives with appropriate #if HAVE_*_H tests so that we can
127821         detect getfsstat on Apple Darwin1.3.7 systems.
127822         Reported by Nelson Beebe.
127823         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127825 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127827         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127828         #defines strtoimax.  Also treat the other strto* functions
127829         like strtoimax.
127831         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127832         Check for strtoul and strtoumax,
127833         as those declarations are made even in the signed case.
127834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127835         Likewise, for strtol and strtoimax.
127837 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127839         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127840         #defines strtoimax.  Also treat the other strto* functions
127841         like strtoimax.
127843         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127844         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127845         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127847 2001-09-26  Jim Meyering  <meyering@lucent.com>
127849         Most macros in unlocked-io.h had the wrong number of arguments.
127850         * lib/gen-uio: New script.
127851         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127852         * lib/unlocked-io.hin: Remove file.
127853         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127854         rather than trying to embed it here.
127855         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127856         Reported by Padraig Brady.
127858 2001-09-25  Volker Borchert  <bt@teknon.de>
127860         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127861         `result'.
127863 2001-09-24  Jim Meyering  <meyering@lucent.com>
127865         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127867 2001-09-23  Jim Meyering  <meyering@lucent.com>
127869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127870         instead of the mere test for existence of mntent.h.  The latter
127871         would get a false-positive on AIX 3.4 systems.
127872         In the outer getmntent if-block, don't die if neither of the getmntent
127873         tests succeeds.  Instead, just fall through and continue with the
127874         remaining tests.
127876 2001-09-23  Jim Meyering  <meyering@lucent.com>
127878         * lib/mountlist.c: Remove useless parentheses in #if directives.
127879         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127880         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127882 2001-09-22  Jim Meyering  <meyering@lucent.com>
127884         * m4/gettext.m4: New file.  From gettext.
127885         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127886         * m4/progtest.m4: Likewise
127887         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127888         * m4/glibc21.m4: Likewise.
127890         * m4/libintl.m4: Remove.  No longer used.
127892 2001-09-22  Jim Meyering  <meyering@lucent.com>
127894         * lib/localcharset.c: Update from latest gettext.
127895         * lib/config.charset: Likewise.
127897 2001-09-20  Jim Meyering  <meyering@lucent.com>
127899         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127900         strtoimax.
127901         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127902         strtoumax.
127904 2001-09-20  Jim Meyering  <meyering@lucent.com>
127906         * lib/xstrtol.c (strtoimax): Guard declaration with
127907         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127908         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127909         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127910         (strtoumax): Likewise, for completeness (it wasn't necessary).
127912 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127914         * lib/strtoimax.c (HAVE_LONG_LONG):
127915         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127916         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127917         to work around bug in IBM C compiler.
127919 2001-09-17  Jim Meyering  <meyering@lucent.com>
127921         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127922         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127923         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127924         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127925         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127926         whenever the right hand side need not be expanded by the shell.
127928 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127930         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127931         library.  It's not correct, as some older glibcs are buggy.
127932         fnmatch wasn't fixed until glibc 2.2.
127934         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127935         special shell magic here.
127937 2001-09-16  Jim Meyering  <meyering@lucent.com>
127939         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127940         * m4/jm-macros.m4: Require it.
127942 2001-09-16  Jim Meyering  <meyering@lucent.com>
127944         * lib/mkdir.c: New file.
127946 2001-09-15  Jim Meyering  <meyering@lucent.com>
127948         * m4/jm-macros.m4: Check for help2man.
127950 2001-09-11  Jim Meyering  <meyering@lucent.com>
127952         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127953         The body, by Paul Eggert, was moved here from configure.in.
127954         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127956 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127958         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127959         (jm_PREREQ): Use it.
127961 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127963         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127964         Use ssize_t, not int, to store result of readlink.
127965         Check for ssize_t overflow as well as size_t overflow,
127966         as POSIX says the result of readlink is implementation-defined
127967         when ssize_t overflows.
127968         Remove unnecessary cast to char*.
127969         Use free+malloc instead of realloc, as the storage doesn't need
127970         to be preserved and it's clearer and can be more efficient that way.
127971         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127972         * lib/xreadlink.h (xreadlink): Update prototype.
127974 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127976         * lib/xgetcwd.c: Revert some of the previous change; intead,
127977         fix the HAVE_GETCWD_NULL code to behave more like the
127978         !HAVE_GETCWD_NULL code used to.
127980         Include "xalloc.h".
127981         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127982         invoke xalloc_die.
127984 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127986         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127987         sys/param.h, as pathmax.h includes them.
127989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127991         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127992         (jm_PREREQ_XGETCWD): New macro.
127994         * m4/getcwd.m4: New file.
127996 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127998         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127999         like the HAVE_GETCWD_NULL code.
128000         Include pathmax.h if not HAVE_GETCWD.
128001         Do not include xalloc.h.
128002         (INITIAL_BUFFER_SIZE): New symbol.
128003         Do not use xmalloc / xrealloc, since the caller is responsible for
128004         handling errors.  Preserve errno around `free' during failure.
128005         Do not overrun buffer when using getwd.
128007 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128009         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128010         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128011         getcwd (NULL, 0).
128013 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128015         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128016         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128017         spotted by Jim Meyering.
128019 2001-09-03  Jim Meyering  <meyering@lucent.com>
128021         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128022         failure.
128024 2001-09-02  Jim Meyering  <meyering@lucent.com>
128026         * lib/error.c: Update from GNU libc.
128028 2001-09-01  Jim Meyering  <meyering@lucent.com>
128030         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128031         Used by df.
128033 2001-09-01  Jim Meyering  <meyering@lucent.com>
128035         * lib/xreadlink.c: New file.
128036         * lib/xreadlink.h: New file.
128037         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128038         xreadlink.h.
128040         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128041         doesn't conflict with sparc Solaris 7's definition in
128042         /usr/include/sys/int_types.h.
128044         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128045         files.
128046         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128047         and strncasecmp as r-values.  Unixware didn't have declarations.
128049 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128051         * lib/xstrtol.h: Add copyright notice.
128052         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128053         LONGINT_INVALID_SUFFIX_CHAR.
128055 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128057         * lib/xstrtol.c (strtoimax): New decl.
128059 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128061         * lib/xgetcwd.c: Don't include pathmax.h.
128062         Include stdlib.h and unistd.h if available.
128063         Include xalloc.h.
128064         (xmalloc, xstrdup, free): Remove decls.
128065         (xgetcwd): Don't assume sizes fit in unsigned.
128066         Check for overflow when computing sizes.
128067         Simplify reallocation code.
128069 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128071         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128072         a directory's st_size can have an arbitrary value, so the old
128073         usage could waste an arbitrary amount of memory.  All uses
128074         changed.
128075         * lib/savedir.h: Update prototype.
128077 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128079         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128081         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128082         old strtoimax.c.
128084         Also, make the following further changes to make this file's
128085         configuration more similar to that of strtol.c:
128086         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128087         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128088         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128089         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128090         changed to signed values.
128092         And make the following changes as well:
128093         Fix copyright notice, as 1999 was missing.
128094         (verify): New macro.
128095         (strtoimax): Check sizes at compile-time, not run-time.
128096         Prefer strtol to strtoll if both work.
128097         (main): Remove; it was not that useful and was a pain to maintain.
128099         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128101 2001-08-31  Jim Meyering  <meyering@lucent.com>
128103         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128104         Use an initial, malloc'd, buffer of length 128 rather than
128105         a statically allocated one of length 1024.
128107 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128109         Simplify code, partly by assuming autoconf 2.52 semantics.
128111         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128113         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128114         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128115         All uses removed.
128116         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128117         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128118         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128119         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128120         jm_AC_HEADER_INTTYPES_H.
128121         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128123         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128125         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128126         Quote first arg of AC_DEFUN.
128127         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128128         since they are needed to parse the include file even if we need
128129         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128131         but with opposite signedness.
128133 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128135         Merge 'exclude' changes from tar 1.13.22.
128136         This fixes one or two unlikely storage allocation overflow bugs,
128137         but doesn't change user-visible behavior otherwise.
128139 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128142         (jm_PREREQ_EXCLUDE): New macro.
128144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128146         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128147         tm to be declared.
128149 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128151         * lib/hash.c: Remove '2001' from copyright notice.
128153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128155         * lib/full-write.h: New file.
128156         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128157         * lib/full-write.c: Correct credits, as cccp.c no longer
128158         exists and anyway it was so heavily changed from the old cccp
128159         code as to be unrecognizable.  Include full-write.h.
128160         (full_write): Return size_t, with short writes meaning failure.
128161         All callers changed.  This fixes a bug with large buffers
128162         on 64-bit hosts.
128163         * lib/utime.c: Include full-write.h.
128165 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128167         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128168         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128169         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128170         Include if available.
128171         (<xalloc.h>): Include
128172         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128173         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128174         collide with FNM macros.
128175         (struct patopts): New struct.
128176         (struct exclude): Use it, as exclude patterns now come with options.
128177         (new_exclude): Support above changes.
128178         (new_exclude, add_exclude_file):
128179         Initial size must now be a power of two to simplify overflow checking.
128180         (free_exclude, fnmatch_no_wildcards): New function.
128181         (excluded_filename): No longer requires options arg, as the options
128182         are determined by add_exclude.  Now returns bool, not int.
128183         (excluded_filename, add_exclude):
128184         Add support for the fancy new exclusion options.
128185         (add_exclude, add_exclude_file): Now takes int options arg.
128186         Check for arithmetic overflow when computing sizes.
128187         (add_exclude_file): xrealloc might modify errno, so don't
128188         realloc until after errno might be used.
128190         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128191         New macros.
128192         (free_exclude): New decl.
128193         (add_exclude, add_exclude_file): Now takes int options arg.
128194         (excluded_filename): No longer requires options arg, as the options
128195         are determined by add_exclude.  Now returns bool, not int.
128197 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128199         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128201 2001-08-27  Jim Meyering  <meyering@lucent.com>
128203         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128205         * lib/version-etc.c (N_): Remove definition.
128206         Revert most of last change.
128207         Instead, simply don't mark the `Copyright...' string for translation.
128208         Based on advice from Paul Eggert.
128210         * lib/strtoxmax.c: Tweak comment.
128212 2001-08-26  Jim Meyering  <meyering@lucent.com>
128214         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128216         * m4/xstrtoimax.m4: New file.
128217         * m4/xstrtoumax.m4: Add comments explaining why we
128218         AC_REPLACE_FUNCS(strtol).
128220 2001-08-26  Jim Meyering  <meyering@lucent.com>
128222         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128223         of copyright with `%s' so translators don't get an untranslated
128224         message in 2002.
128225         (COPYRIGHT_YEAR): Define.
128226         (version_etc): Use fprintf rather than fputs.
128227         Suggestion from Ulrich Drepper.
128229         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128231         * lib/strtoll.c: New file, from GNU libc.
128232         * lib/xstrtoimax.c: New file.
128234         * lib/xstrtol.h: Add xstrtoimax.
128235         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128236         * lib/strtoimax.c: New file.  Likewise, but first define
128237         STRTOUXMAX_SIGNED.
128239         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128240         ...
128241         * lib/strtoxmax.c: ... then renamed to this.
128243 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128245         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128246         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128247         (jm_AC_TYPE_INTMAX_T): New macro.
128248         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128250         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128252         * m4/longlong.m4: Renamed from ulonglong.m4.
128253         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128254         * m4/uintmax_t.m4: Removed.
128256 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128258         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128259         Port to Solaris 8, where 'sed' requires a space after the 'r'
128260         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128261         Redirect output to $tmp just once.
128263 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128265         * lib/addext.c (<errno.h>): Include.
128266         (errno): Declare if not defined.
128267         (addext): Work correctly when pathconf returns -1 and leaves
128268         errno alone because there is no limit.  Also, work even if
128269         pathconf returns a value greater than SIZE_MAX.
128271 2001-08-12  Jim Meyering  <meyering@lucent.com>
128273         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128274         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128275         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128276         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128277         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128278         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128279         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128280         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128281         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128282         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128283         utime.m4, utimes.m4, xstrtoumax.m4:
128284         Quote the first argument in each use of AC_DEFUN.
128286 2001-08-12  Jim Meyering  <meyering@lucent.com>
128288         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128289         Simply `return getcwd (NULL, 0);'.
128290         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128291         Use 1300 as initial value for length, not PATH_MAX.
128293         * lib/pathmax.h: Clean up cpp syntax.
128295 2001-08-12  Jim Meyering  <meyering@lucent.com>
128297         * lib/gettimeofday.c: New file.
128298         * lib/gtod.h: New file.
128299         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128301 2001-08-05  Jim Meyering  <meyering@lucent.com>
128303         * m4/jm-macros.m4: Require autoconf-2.52.
128305 2001-08-04  Jim Meyering  <meyering@lucent.com>
128307         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128308         stmt, to get in sync with glibc.
128310 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128312         The following changes are from gettext 0.10.39 as maintained by
128313         Bruno Haible.
128315         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128316         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128317         with inverted sense.  All uses changed.
128319         * lib/mbswidth.c: Don't include <limits.h>.
128320         Include <stdlib.h> and <string.h> unconditionally.
128321         (iswcntrl, mbsinit, ISCNTRL): New macros.
128322         (mbsnwidth): Use K&R style function declarations.
128323         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128324         can optimize it when MB_CUR_MAX == 1.
128325         The width of control characters is zero, not 1.
128327 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128329         The following changes are from gettext 0.10.39 as maintained by
128330         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128332         * m4/codeset.m4: Upgrade to serial AM1.
128333         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128334         all uses changed.  Quote first arg of AC_DEFUN.
128335         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128337         * m4/iconv.m4: Upgrade to serial AM2.
128338         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128339         Add --with-libconv-prefix.
128340         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128341         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128342         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128343         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128344         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128346         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128347         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128348         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128349         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128350         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128351         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128353         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128354         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128356         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128357         string.h any more.
128359         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128360         not the default value.
128362         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128363         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128364         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128365         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128366         Also check for iswcntrl, used for wcwidth fallback.
128367         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128368         to Autoconf 2.13.
128370 2001-08-03  Jim Meyering  <meyering@lucent.com>
128372         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128373         as it was in the original.  Reported by Paul Eggert.
128375 2001-07-16  Jim Meyering  <meyering@lucent.com>
128377         * m4/gettimeofday.m4: New file.
128378         Prompted by a report from Bernhard Baehr.
128380 2001-07-15  Jim Meyering  <meyering@lucent.com>
128382         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128383         stuff. Now it's in ../Makefile.cfg.
128385 2001-07-15  Jim Meyering  <meyering@lucent.com>
128387         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128388         (BUILT_SOURCES): Add unlocked-io.h.
128389         (io_functions): Define.
128390         (unlocked-io.h): New rule.
128391         (DISTCLEANFILES): Add unlocked-io.h.
128392         (all-local): Depend on unlocked-io.h, to ensure it is created.
128394         * lib/unlocked-io.hin: New file
128396         * lib/regex.c: Update from glibc.
128398 2001-07-05  Jim Meyering  <meyering@lucent.com>
128400         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128401         recommendation.
128402         (libfetish_a_SOURCES): Put all .h files here instead.
128403         Remove a thus-exposed (better checks in automake) duplicate and
128404         two unnecessary .h files.
128406 2001-07-04  Jim Meyering  <meyering@lucent.com>
128408         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128409         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128410         distcheck failure.
128412 2001-07-02  Jim Meyering  <meyering@lucent.com>
128414         The following changes were prompted by suggestions from Bruno Haible.
128416         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
128417         is now generated.
128418         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
128419         definition of EXTRA_DIST.
128420         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
128421         ensure that the generated file is created/updated whenever the list
128422         of $(unlocked_functions) is changed.
128423         (jm-glibc-io.m4): New rule.
128424         (unlocked-io.h): New rule -- currently unused.
128426 2001-06-24  Jim Meyering  <meyering@lucent.com>
128428         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
128429         unmatched right bracket, rather than kludging it with an extra,
128430         falsely-matching quote in a comment.  Patch by Akim Demaille.
128432 2001-06-11  Jim Meyering  <meyering@lucent.com>
128434         * lib/regex.c: Update from GNU libc.
128436 2001-05-27  Jim Meyering  <meyering@lucent.com>
128438         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128439         Check for ut_type in struct utmp.
128441 2001-05-27  Jim Meyering  <meyering@lucent.com>
128443         * lib/readutmp.h (UT_TYPE): Define.
128445 2001-05-24  Jim Meyering  <meyering@lucent.com>
128447         * lib/argmatch.c: Include "quote.h".
128448         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128449         quote function.  Reported by Göran Uddeborg.
128451 2001-05-22  Jim Meyering  <meyering@lucent.com>
128453         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128454         now that we use the package-supplied version unconditionally.
128455         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128457 2001-05-21  Jim Meyering  <meyering@lucent.com>
128459         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128460         shell syntax errors.
128462 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128464         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128466 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128468         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128469         Don't bother to check library strftime, since
128470         we'll be using our own my_strftime function anyway.
128471         Define my_strftime instead of strftime.
128473 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128475         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128476         which is not yet declared.
128478 2001-05-15  Jim Meyering  <meyering@lucent.com>
128480         * m4/regex.m4: Use proper quoting so brackets appear in the test
128481         program.
128482         Reported by, and with help from, Bruno Haible.
128484 2001-05-13  Jim Meyering  <meyering@lucent.com>
128486         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128487         undefined.
128489 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128491         dirname code cleanup.  base_name now behaves more compatibly
128492         with POSIX basename when given file names that have trailing
128493         slashes, and similarly for dir_name.  Add new primitives
128494         base_len and dir_len.  Put the directory-name-related decls
128495         into dirname.h.
128497         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128498         * lib/backupfile.c (base_name): Likewise.
128499         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128500         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128501         * lib/makepath.c (strip_trailing_slashes): Likewise.
128502         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128503         ISSLASH): Likewise.
128504         * lib/rename.c (strip_trailing_slashes): Likewise.
128505         * lib/same.c (base_name): Likewise.
128506         * lib/stripslash.c (ISSLASH): Likewise.
128508         * lib/addext.c: Include <dirname.h> after size_t is defined.
128509         * lib/backupfile.c: Likewise.
128511         * lib/addext.c (addext): Use base_len to trim redundant
128512         trailing slashes instead of doing it ourselves.
128513         But do not trim the last slash if it is not redundant.
128515         * lib/backupfile.c (find_backup_file_name,
128516         max_backup_version): Use base_len instead of rolling it ourselves.
128517         Handle the case of "" and (on DOS) "C:" correctly.
128519         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128520         needed. Include <string.h>, <dirname.h>.
128521         (base_name): Allow file names ending in slashes, other than names
128522         that are all slashes.  In this case, return the basename followed
128523         by the slashes.  This is more general, and can be used in places
128524         where the original base_name purposely had an assertion failure.
128525         (base_len): New function.
128527         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128528         Do not include <assert.h>; no longer needed.
128529         Include xalloc.h.
128530         (memrchr): Remove decl.
128531         (dir_name_r): Remove.
128532         (dir_len): Renamed from dirlen.  All callers changed.
128533         Rewrite in terms of base_name, for simplicity and consistency.
128534         (dir_name): Never return NULL.  All callers changed.
128535         Do not include <stdlib.h> in test program; no longer needed.
128536         return 0; is fine for test program.
128538         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128539         New macros.
128540         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128542         * lib/path-concat.c (path_concat): Use base_len to compute
128543         base length, not strlen; this means we cannot rely on memcpy
128544         to null-terminate.
128546         * lib/same.c (STREQ): Remove.
128547         (same_name): Handle the case where the basename ends in trailing '/'.
128549         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128550         a slash was stripped.  Do not strip the last slash after a
128551         file system prefix.
128553 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128555         * lib/Makefile.am (libfetish_a_SOURCES):
128556         Add strftime.c, since we now compile it on all hosts.
128558         * lib/strftime.c (my_strftime):
128559         Define to nstrftime if emacs, but only if my_strftime is not defined.
128560         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128561         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128562         Add one more extra argument: a nanoseconds value.
128563         All uses changed.
128564         (ns): New macro.
128565         (my_strftime function): Add %N format.
128566         (emacs_strftimeu): Renamed from emacs_strftime,
128567         with extra ut argument.
128569 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128571         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128573 2001-04-21  Jim Meyering  <meyering@lucent.com>
128575         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128576         doesn't interfere.
128578 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128580         * m4/ftruncate.m4: Check for chsize.
128581         Link with ftruncate.o unconditionally if ftruncate is missing.
128582         This was required when cross-compiling to i586-mingw32msvc.
128584 2001-04-08  Jim Meyering  <meyering@lucent.com>
128586         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128587         recomputed; that's necessary when the offset spans a DST transition.
128588         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128590 2001-04-02  Jim Meyering  <meyering@lucent.com>
128592         * lib/regex.h, regex.c: Update from GNU libc.
128594 2001-03-24  Jim Meyering  <meyering@lucent.com>
128596         * m4/jm-macros.m4: Require autoconf-2.49d.
128598 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128600         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128602 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128604         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128606 2001-03-17  Jim Meyering  <meyering@lucent.com>
128608         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128609         now that the version in autoconf is equivalent.
128610         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128612         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128613         Suggestion from Akim Demaille.
128615         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128616         (jm_PREREQ_TEMPNAME): New function.
128618 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128620         * lib/tempname.c (uint64_t): Define to uintmax_t if
128621         not defined, and if UINT64_MAX is not defined.
128622         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128623         Reported by John David Anglin.
128625 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128627         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128628         resolve alias if codeset is empty.
128629         * lib/config.charset (BeOS): Use wildcard syntax.
128631 2001-03-13  Jim Meyering  <meyering@lucent.com>
128633         * lib/path-concat.c (path_concat)
128634         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128635         concatenating e.g., `C:' and `foo'.
128636         From Bruno Haible.
128638 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128640         * lib/localcharset.c (locale_charset): Don't use
128641         setlocale(LC_CTYPE,NULL). Don't return NULL.
128642         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128644 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128646         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128647         support for DOS/DJGPP.
128649 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128651         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128652         lacks mkstemp.  Compile our own tempname.c if we compile our own
128653         mkstemp.c, as mkstemp relies on tempname.
128655 2001-03-01  Jim Meyering  <meyering@lucent.com>
128657         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128658         AH_VERBATIM really does output its argument verbatim.
128660 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128662         * lib/Makefile.am (libfetish_a_SOURCES):
128663         Add dup-safer.c, fopen-safer.c.
128664         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128666         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128667         * lib/unistd-safer.h: New files.
128669 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128671         The mkstemp replacement is taken from glibc 2.2.2, with some
128672         portability fixes for use outside glibc, as follows:
128674         * lib/tempname.c (struct_stat64): New macro.
128675         (direxists, __gen_tempname): Use it.
128676         This avoids a portability problem with Solaris 8.
128678         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128679         (<stddef.h>, <stdint.h>, <string.h>):
128680         Include only if STDC_HEADERS || _LIBC.
128681         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128682         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128683         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128684         (__set_errno): Define this macro if <errno.h> doesn't.
128685         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128686         Define these macros if <stdio.h> doesn't.
128687         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128688         Define these macros if <sys/stat.h>
128689         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128690         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128691         __xstat64): Define if not _LIBC.
128692         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128693         (__gen_tempname): Invoke gettimeofday only if
128694         HAVE_GETTIMEOFDAY || _LIBC;
128695         otherwise, fall back on plain "time".
128696         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128698         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128700         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128702 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128704         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128706 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128708         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128709         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128710         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128711         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128713 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128715         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128716         Remove workaround macros for hosts that have mbrtowc but not
128717         mbstate_t, as we now insist on proper declarations for both
128718         before using mbrtowc.
128720 2001-02-17  Jim Meyering  <meyering@lucent.com>
128722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128723         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128724         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128725         UnixWare 7.1.1.
128727         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128728         rather than AC_CACHE_VAL.
128730 2001-02-17  Jim Meyering  <meyering@lucent.com>
128732         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128733         around included file name.
128735         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128737         * lib/strftime.c: Update from GNU libc (the only changes were to
128738         comments).
128740 2001-02-17  Jim Meyering  <meyering@lucent.com>
128742         * lib/regex.c: Update from libc.
128744 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128746         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128747         clash.
128749 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128751         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128752         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128753         Reported by Mark Hounschell via Paul Eggert.
128755 2001-02-07  Jim Meyering  <meyering@lucent.com>
128757         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128759 2001-02-05  Jim Meyering  <meyering@lucent.com>
128761         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128762         it includes the patch required for `large file' support with at least
128763         HP-UX's 10.20 /bin/cc.
128765 2001-02-03  Jim Meyering  <meyering@lucent.com>
128767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128768         AS_IF, now that it works once again (mysteriously).
128769         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128771 2001-01-30  Jim Meyering  <meyering@lucent.com>
128773         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128774         * m4/chown.m4: Rename conftestchown to conftest.chown.
128775         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128776         s/conftestdir2/conftest.d2/.
128777         * m4/utimes.m4: s/conftestdata/conftest.data/
128778         Inspired by Pavel Roskin's change in autoconf.
128780 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128782         * lib/config.charset: Update for FreeBSD 4.2.
128784 2001-01-27  Jim Meyering  <meyering@lucent.com>
128786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128787         a use of AS_IF.
128788         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128790 2001-01-26  Jim Meyering  <meyering@lucent.com>
128792         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128793         quotearg.c includes it.
128795 2001-01-26  Jim Meyering  <meyering@lucent.com>
128797         * lib/quotearg.c: Include stddef.h.
128798         * lib/quote.c: Include stddef.h.
128799         Reported by Axel Kittenberger.
128801         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128802         line in double quotes so that it evokes a better diagnostic.
128803         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128804         Reported by Axel Kittenberger.
128806 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128808         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128809         as if it was a `charset'.
128811 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128813         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128814         has const.
128816 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128818         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128819         to avoid a warning.  Add back 'const' to inptr.
128821 2001-01-20  Jim Meyering  <meyering@lucent.com>
128823         Be sure that headers are checked before used in code compiled
128824         for the type checks.
128825         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128826         In place of that, invoke jm_CHECK_ALL_TYPES.
128827         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128828         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128829         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128830         The check for ssize_t was mistakenly run before the test for unistd.h.
128832         The configure-time check for stdbool.h was missing.
128833         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128834         (jm_PREREQ_HASH): New function.
128836 2001-01-17  Jim Meyering  <meyering@lucent.com>
128838         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128839         for autoconf-2.49c.
128840         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128842 2001-01-16  Jim Meyering  <meyering@lucent.com>
128844         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128845         From Bruno Haible.
128847 2001-01-14  Jim Meyering  <meyering@lucent.com>
128849         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128850         foo and bar.  Create conftestdir/ in the script, not in the C code.
128851         Remove directories in the script, not in the C code.
128852         Remove conftestdir{,2} before trying to create the directory.
128853         Make the entire configure script fail if the mkdir fails.
128855 2001-01-14  Jim Meyering  <meyering@lucent.com>
128857         * lib/rename.c: New file.  From Volker Borchert.
128858         Include stdlib.h, string.h or strings.h, and xalloc.h.
128859         Use strip_trailing_slashes rather than open-coding it.
128861 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128863         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128865 2001-01-03  Jim Meyering  <meyering@lucent.com>
128867         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128868         of local `inptr' to avoid warning with some system declarations of
128869         iconv.
128871 2001-01-02  Volker Borchert  <bt@teknon.de>
128873         * m4/rename.m4: New file.
128874         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128876 2001-01-01  Jim Meyering  <meyering@lucent.com>
128878         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128879         even on systems with utmpx.h.  It's necessary for the declaration of
128880         utmp's ut_user member.  Reported by Andreas Jaeger.
128882         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128883         available. They are required for the declarations of getgrgid and
128884         getpwuid resp.
128885         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128886         Reported by Andreas Jaeger.
128888 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128890         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128891         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128892         so `make install' also works in VPATH builds.
128894 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128896         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128897         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128898         can be used in subdirectories.
128900 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128902         * lib/modechange.c: Do not assume that mode_t uses the
128903         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128904         the other-execute bit of FOO even if S_IXOTH != 1.
128906         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128907         WOTH, XOTH, ALLM): New macros.
128908         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128909          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128910         Use them.
128911         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128912         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128913         (mode_compile):
128914         No need to use uintmax_t; unsigned long is long enough.
128915         Don't bother to get suffix since we don't use it.
128917 2000-12-26  Jim Meyering  <meyering@lucent.com>
128919         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128920         better with autoheader.
128922 2000-12-24  Jim Meyering  <meyering@lucent.com>
128924         * lib/hash.c (is_prime): Return explicit boolean values.
128925         (hash_get_first): Return NULL to appease Irix5.6's 89.
128926         Reported by Nelson Beebe.
128928 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128930         * lib/localcharset.c (locale_charset): Add support for Win32.
128932 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128934         * lib/physmem.h, lib/physmem.c: New files.
128936         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128937         (noinst_HEADERS): Add physmem.h.
128939         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128940         't' for compatibility with Solaris 8 sort.
128942 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128944         * lib/config.charset: Add support for BeOS.
128946 2000-12-17  Jim Meyering  <meyering@lucent.com>
128948         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128949         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128951 2000-12-16  Jim Meyering  <meyering@lucent.com>
128953         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128954         N and M) would have treated it like `chown N:N FILE'.
128956         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128958 2000-12-16  Jim Meyering  <meyering@lucent.com>
128960         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128961         SHELLS_FILE to a file name that's useful on djgpp systems.
128962         Include stdlib.h.
128963         (ADDITIONAL_DEFAULT_SHELLS): Define.
128964         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128965         Based mostly on a patch from Prashant TR.
128967 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128969         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128970         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128971         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128973 2000-12-08  Andreas Schwab  <schwab@suse.de>
128975         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128976         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128978 2000-12-07  Jim Meyering  <meyering@lucent.com>
128980         * lib/stripslash.c (ISSLASH): Define.
128981         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128982         `/'.
128983         From Prashant TR.
128985         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128986         (dir_name_r): Declare this function as static.
128987         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128988         manifest itself on a name containing a mix of slashes and
128989         backslashes.
128990         Make this function work with names starting with a DOS-style
128991         drive letter and colon prefix.
128992         (dir_name): Append `.' if necessary.
128993         Based mostly on patches from Prashant TR and Eli Zaretskii.
128995         * lib/dirname.h (dir_name_r): Remove prototype.
128997 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128999         * m4/off_t-format.m4: Remove this file.
129000         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129002 2000-12-06  Jim Meyering  <meyering@lucent.com>
129004         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129005         replacement strtoull, we may well need the replacement strtoul, too.
129006         Check for declarations of strtoul and strtoull.
129007         Check for strtol.  Mainly as a cue to cause automake to include
129008         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129009         Check for limits.h -- strtol.c needs it.
129011 2000-12-05  Jim Meyering  <meyering@lucent.com>
129013         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129015 2000-12-04  Jim Meyering  <meyering@lucent.com>
129017         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129018         Also include memory.h, stdlib.h, unistd.h if appropriate.
129019         Reported by Andreas Jaeger (conflicting declaration of malloc).
129021 2000-12-02  Jim Meyering  <meyering@lucent.com>
129023         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129024         * m4/jm-macros.m4 (jm_MACROS): require it.
129026 2000-12-02  Jim Meyering  <meyering@lucent.com>
129028         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129030 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129032         * lib/memrchr.c: Include <config.h> before any system include file.
129034 2000-11-30  Jim Meyering  <meyering@lucent.com>
129036         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129038 2000-11-30  Jim Meyering  <meyering@lucent.com>
129040         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129042 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129044         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129046 2000-11-26  Jim Meyering  <meyering@lucent.com>
129048         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129050 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129052         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129053         size of (size_t) -1; it's not portable.
129055 2000-11-17  Jim Meyering  <meyering@lucent.com>
129057         * lib/strstr.c: Update from GNU libc.
129059 2000-11-17  Akim Demaille  <akim@epita.fr>
129061         * lib/obstack.h: Formatting changes.
129062         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129063         prevent type checking.
129064         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129065         cast the value to (void *): assigning a `foo *' to a `void *'
129066         variable is valid.
129067         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129069 2000-11-16  Jim Meyering  <meyering@lucent.com>
129071         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129073 2000-11-11  Jim Meyering  <meyering@lucent.com>
129075         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129077 2000-11-10  Jim Meyering  <meyering@lucent.com>
129079         * lib/obstack.h: Update from GNU libc.
129080         * lib/obstack.c: Likewise.
129082 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129084         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129086 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129088         * lib/getusershell.c (setusershell): Use rewind rather than
129089         fseek/fseeko, to avoid configuration hassles with fseeko.
129090         Don't bother opening SHELLS_FILE if shellstream is NULL;
129091         it's not necessary.
129093 2000-11-05  Jim Meyering  <meyering@lucent.com>
129095         * lib/makepath.h (make_dir): Declare.
129096         * lib/makepath.c (make_dir): Remove `static' attribute.
129097         Tweak a comment.
129099 2000-11-04  Jim Meyering  <meyering@lucent.com>
129101         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129103 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129105         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129106         last one in a bucket, advance to the next bucket.
129108 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129110         * lib/fnmatch.c: Do not comment out all the code if we are using
129111         the GNU C library, because in some cases we are replacing buggy
129112         code in the GNU C library itself.
129114 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129116         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129117         (regex_compile): Catch bogus \(\1\).
129119 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129121         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129122         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129123         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129125 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129127         * lib/error.h, getline.h, modechange.h:
129128         Remove "2000" from Copyright line, as the file hasn't been
129129         changed this year other than in the copyright notice.
129131         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129132         was changed this year.
129134 2000-10-29  Jim Meyering  <meyering@lucent.com>
129136         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129137         renaming.
129138         * m4/ls-mntd-fs.m4: Likewise
129140 2000-10-29  Jim Meyering  <meyering@lucent.com>
129142         * lib/xstat.in: Fix grammar in comment.
129144 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129146         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129147         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129148         doesn't define __restrict_arr.
129150 2000-10-28  Jim Meyering  <meyering@lucent.com>
129152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129153         (jm_PREREQ_MEMCHR): New function.
129155 2000-10-28  Jim Meyering  <meyering@lucent.com>
129157         * lib/memchr.c: Update from libc.
129158         Adjust for portability:
129159         [HAVE_STDLIB_H]: Include stdlib.h.
129160         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129161         Undef __memchr, too.
129162         [!weak_alias]: Define __memchr to memchr.
129164         * lib/regex.c: Update from libc.
129165         * lib/regex.h: Likewise.
129166         * lib/getopt1.c: Likewise.
129167         * lib/memcmp.c: Likewise.
129169         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129170         Avoid using fseek, when possible -- it's broken by design.
129171         Patch by Ulrich Drepper.
129173 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129175         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129176         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129177         Giving in to popular pressure to shut up the compiler with casts.
129179 2000-10-26  Jim Meyering  <meyering@lucent.com>
129181         * lib/strftime.c: Update from libc.
129183 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129185         * regex.c: More `unsigned char' -> `re_char' changes.
129186         Also change several `int' into `re_wchar_t'.
129187         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129188         (PUSH_FAILURE_POINTER): Don't cast any more.
129189         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129190         We want GCC to complain, since this piece of code makes
129191         re_match non-reentrant, which *should* be fixed.
129192         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129193         (EXTEND_BUFFER): Use RETALLOC.
129194         (SET_LIST_BIT): Don't cast.
129195         (re_wchar_t): New type.
129196         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129197         that those two functions will always properly return.
129198         (IMMEDIATE_QUIT_CHECK): Cast to void.
129199         (analyse_first): Use recursion rather than an explicit stack.
129200         (re_compile_fastmap): Can't fail anymore.
129201         (re_search_2): Don't check re_compile_fastmap for failure.
129202         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129203         Now also sets the new value (passed in a new argument).
129204         (re_match_2_internal): Use it.
129205         Also, use a new var `reg' of type size_t when looping through regs
129206         rather than reuse the inappropriate `mcnt'.
129208 2000-10-25  Jim Meyering  <meyering@lucent.com>
129210         * lib/obstack.c: Update from libc.
129212 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129214         * regex.c (regex_compile): Change the way of handling a range from
129215         a char less than 256 to a char not less than 256.
129217 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129219         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129220         NT-Emacs only.
129221         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129222         so that re_search functions only quit when callers expect them to.
129224 2000-10-23  Jim Meyering  <meyering@lucent.com>
129226         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129227         wrong.  That set_locale call must not have any side effects.
129228         From Paul Eggert.
129230 2000-10-22  Jim Meyering  <meyering@lucent.com>
129232         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129233         [CYCLIC]: Remove now-unused definition.
129235         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129236         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129237         Suggestion from Ulrich Drepper.
129239 2000-10-21  Jim Meyering  <meyering@lucent.com>
129241         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129242         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129243         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129245 2000-10-21  Jim Meyering  <meyering@lucent.com>
129247         * lib/dirname.c (memrchr): Declare if necessary.
129248         (dir_name): Remove the restriction that there be no
129249         trailing slashes.  Now, this code skips past them, effectively
129250         ignoring them.
129251         [TEST_DIRNAME] (main): New unit tests.
129253         * lib/memrchr.c: New file from GNU libc.
129254         Undef __memrchr, too.
129255         [!weak_alias]: Define __memrchr to memrchr.
129256         Guard weak_alias use with `#ifdef weak_alias'.
129258 2000-10-21  Jim Meyering  <meyering@lucent.com>
129260         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129261         (dir_name): Use dir_name_r.
129262         * lib/dirname.h (dir_name_r): Declare it.
129264 2000-10-17  Jim Meyering  <meyering@lucent.com>
129266         * lib/quote.h (PARAMS): Define and use.
129267         Reported by Akim Demaille.
129269         * lib/getopt.c: Update from libc.
129271 2000-10-16  Jim Meyering  <meyering@lucent.com>
129273         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129274         setlocale.
129275         From Jan Fedak.
129277 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129279         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129281 2000-09-25  Jim Meyering  <meyering@lucent.com>
129283         * lib/md5.h (rol): Define (from GnuPG).
129285         * lib/sha.c: Give credit (GnuPG) where due.
129286         (M): Use rol rather than open-coding it.
129287         Add a FIXME comment.
129289 2000-09-21  Jim Meyering  <meyering@lucent.com>
129291         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129292         Reported by Michael Stone.
129294 2000-09-20  Jim Meyering  <meyering@lucent.com>
129296         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129297         (noinst_HEADERS): Add sha.h.
129298         Based on code from Scott G. Miller and from GnuPG.
129300 2000-09-18  Jim Meyering  <meyering@lucent.com>
129302         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129303         LIBS. Otherwise, everyone ends up linking with -lelf for some
129304         configurations.
129305         Reported by Mike Stone.
129307 2000-09-15  Jim Meyering  <meyering@lucent.com>
129309         * lib/regex.c: Update from libc.
129311 2000-09-10  Jim Meyering  <meyering@lucent.com>
129313         * lib/getopt.c (_getopt_internal): Update from glibc.
129315 2000-09-09  Jim Meyering  <meyering@lucent.com>
129317         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129318         think it should be used as a general replacement for isascii.
129319         * lib/fnmatch.c: Likewise.
129320         * lib/mbswidth.c: Likewise
129321         * lib/regex.c: Likewise.
129323         Don't use atoi.
129324         * lib/userspec.c: Include sys/param.h and limits.h.
129325         Include xstrtol.h.
129326         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129327         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129328         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129329         UID, GID.  Check range.
129331 2000-09-06  Jim Meyering  <meyering@lucent.com>
129333         * lib/getopt.c (_getopt_internal): Update from glibc.
129335 2000-08-30  Jim Meyering  <meyering@lucent.com>
129337         * lib/strftime.c: Merge in changes from GNU libc.
129339 2000-08-26  Jim Meyering  <meyering@lucent.com>
129341         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129342         * m4/fpending.m4: New file.
129344 2000-08-26  Jim Meyering  <meyering@lucent.com>
129346         * lib/closeout.c: Include "__fpending.h".
129347         (close_stdout_status): Return right away if there's nothing to flush.
129349         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129350         * lib/__fpending.c: New file.
129351         * lib/__fpending.h: New file.
129353 2000-08-20  Jim Meyering  <meyering@lucent.com>
129355         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129356         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129357         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129359 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129361         Improve fileutils installation on systems where running
129362         programs (like install) can't be unlinked.
129363         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129364         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129366 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129368         Standardize on "memory exhausted" instead of "Memory exhausted"
129369         or "virtual memory exhausted".
129370         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129371         "virtual memory exhausted".
129372         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129373         our own message.
129374         * lib/userspec.c (parse_user_spec): Likewise.
129375         * lib/bumpalloc.h: comment fix
129376         * lib/same.c, userspec.c: Include xalloc.h.
129378         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129379         not char *const and pointing to a constant array.
129380         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129381         (xrealloc): Comment fix.
129383         * lib/userspec.c (parse_user_spec):
129384         Don't translate a message until just before returning,
129385         to avoid unnecessary translation.
129387 2000-08-07  Jim Meyering  <meyering@lucent.com>
129389         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129390         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129391         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129392         getgroups.c, gethostname.c, getopt.h, group-member.c,
129393         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129394         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129395         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129396         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129397         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129398         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129399         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129400         yesno.c: Back out Copyright date changes for each file with no change
129401         this year.  This eases coordination with other programs using the same
129402         source code modules.  From Paul Eggert.
129404 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129406         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129407         not char, for compatibility with glibc 2.1.3 strftime.c.
129409 2000-08-03  Greg McGary  <greg@mcgary.org>
129411         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129412         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
129413         (EXTEND_BUFFER): Use them.
129415 2000-08-01  Jim Meyering  <meyering@lucent.com>
129417         * lib/dirname.c (ISSLASH): Define.
129418         (BACKSLASH_IS_PATH_SEPARATOR): Define.
129419         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
129420         both `\' and `/' may be use as path separators.
129421         Based on a patch from Prashant TR.
129423 2000-07-31  Paul Eggert  <eggert@twinsun.com>
129425         * lib/quotearg.c (quotearg_n_options): Don't make the initial
129426         slot vector a constant, since it might get modified.
129428 2000-07-31  Jim Meyering  <meyering@lucent.com>
129430         * lib/xmalloc.c: Use `virtual memory exhausted', not
129431         `Memory exhausted'.
129432         * lib/obstack.c (print_and_abort): Likewise.
129434 2000-07-30  Paul Eggert  <eggert@twinsun.com>
129436         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
129437         buffer, so that the caller can always quote one small
129438         component of a "memory exhausted" message in slot 0.
129439         From a suggestion by Jim Meyering.
129441 2000-07-30  Jim Meyering  <meyering@lucent.com>
129443         * lib/makepath.c (make_path): Quote the other instance, too.
129445         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129446         (STATIC_BUF_SIZE): Define.
129447         (quotearg_n_options): Use only statically allocated storage when
129448         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129449         than STATIC_BUF_SIZE.
129451 2000-07-29  Jim Meyering  <meyering@lucent.com>
129453         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129454         * lib/dirname.c (dir_name): Likewise.
129456         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129457         `/'.
129459         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129460         (dir_name): Assert that there are no trailing slashes.
129462 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129464         * lib/mbswidth.h (mbswidth): Add a flags argument.
129465         (mbswidth): New declaration.
129466         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129467         * lib/mbswidth.c (mbswidth): Add a flags argument.
129468         (mbsnwidth): New function.
129470 2000-07-24  Jim Meyering  <meyering@lucent.com>
129472         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129474 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129476         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129478 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129480         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129481         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129482         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129483         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129484         invoke multibyte primitives.
129486 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129488         * lib/quotearg.c:
129489         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129490         so that mbstate_t is always defined.
129492         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129493         be 1 in at least one GCC installation, and this configuration
129494         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129495         performance on hosts that have mbrtowc but have only unibyte
129496         locales, but I assume these hosts are rare.
129498 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129500         * lib/mbswidth.c (_XOPEN_SOURCE):
129501         Don't define; this causes problems on Solaris 7.
129502         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129504 2000-07-23  Jim Meyering  <meyering@lucent.com>
129506         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129507         too: getgrgid, getpwuid, getuid.
129509 2000-07-23  Jim Meyering  <meyering@lucent.com>
129511         * lib/basename.c (base_name): Add an assertion.
129513 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129515         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129516         shadow its mbsinit function.
129518 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129520         * lib/mbswidth.h: New file.
129521         * lib/mbswidth.c: New file.
129522         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129523         (noinst_HEADERS): Add mbswidth.h.
129525 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129527         * lib/config.charset: Add support for FreeBSD. Improve support for
129528         HP-UX and IRIX 6.
129530 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129532         * m4/mbswidth.m4: New file.
129533         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129535 2000-07-15  Jim Meyering  <meyering@lucent.com>
129537         * lib/makepath.c: Include quote.h.
129538         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129539         corresponding argument in a `quote (...)' call.
129540         Give better diagnostics.
129542         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129543         (noinst_HEADERS): Add quote.h.
129545         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129546         from tar's src/misc.c.
129547         * lib/quote.h: New file.  Prototypes for same.
129549 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129551         From a suggestion by Bruno Haible.
129552         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129553         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129554         to decide whether to define the BeOS workaround macro;
129555         this adjusts to the change to AC_MBSTATE_T.
129557 2000-07-14  Jim Meyering  <meyering@lucent.com>
129559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129560         jm_AC_TYPE_UINTMAX_T.
129562 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129564         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129566         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129567         quotearg_buffer_restyled): Add support for
129568         clocale_quoting_style.  Undo previous change to
129569         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129570         and "{RIGHT QUOTATION MARK}" msgids.
129572 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129574         From a suggestion by Bruno Haible.
129575         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129576         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129577         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129578         and mbstate_t, to a single-part test that simply defines mbstate_t.
129579         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129580         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129582 2000-07-10  Jim Meyering  <meyering@lucent.com>
129584         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129586         * m4/gnu-source.m4: Output to confdefs.h directly.
129587         Suggestion from Akim Demaille.
129589 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129591         The old behavior of quoting `like this' doesn't look good with
129592         newer, ISO-style fonts.  See:
129593         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129595         Instead, quote "like this" by default.  Let the translator
129596         tailor the locale-specific quoting behavior by providing
129597         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129599         * lib/quotearg.c (N_): New macro.
129600         (gettext_default): New function.
129601         (quotearg_buffer_restyled): Use
129602         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129603         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129605 2000-07-09  Jim Meyering  <meyering@lucent.com>
129607         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129608         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129610         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129613 2000-07-09  Jim Meyering  <meyering@lucent.com>
129615         * lib/Most files: Update copyright dates to include 2000.
129617 2000-07-08  Jim Meyering  <meyering@lucent.com>
129619         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129620         if not defined.
129621         (xgethostname): Remove now-unnecessary #ifdef.
129622         Move declaration of `err' into loop where it's used.
129624 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129625         and Bruno Haible  <haible@clisp.cons.org>
129627         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129628         only if the test for an object-type mbstate_t fails.  This
129629         prevents us from mistakenly reporting that mbstate_t is a
129630         system object type after we "#define mbstate_t int" to work
129631         around its lack.
129633 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129634         and Bruno Haible  <haible@clisp.cons.org>
129636         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129638 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129640         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129641         to strerror_r.
129642         Include <ctype.h> for use of isalpha.
129644 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129646         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129647         by allocating a larger buffer. Test the gethostname return value for
129648         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129649         returns an error and ENAMETOOLONG isn't defined.
129651 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129653         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129654         dimension.
129656 2000-07-04  Jim Meyering  <meyering@lucent.com>
129658         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129659         of the deprecated AC_CHECKING.
129661 2000-07-04  Jim Meyering  <meyering@lucent.com>
129663         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129664         Reported by Bruno Haible.
129666 2000-07-04  Jim Meyering  <meyering@lucent.com>
129668         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129669         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129670         lacks mbrtowc.
129672 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129674         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129675         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129677 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129678         and Bruno Haible  <haible@clisp.cons.org>
129680         * lib/quotearg.c (mbrtowc):
129681         Assign to *pwc, and return 1 only if result is nonzero.
129682         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129684 2000-07-03  Jim Meyering  <meyering@lucent.com>
129686         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129688 2000-07-03  Jim Meyering  <meyering@lucent.com>
129690         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129691         This is necessary to get a definition of e.g., UTMP_FILE on
129692         HP-UX 10.20.
129693         From Bob Proulx.
129695 2000-07-02  Jim Meyering  <meyering@lucent.com>
129697         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129699         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129700         AC_LIBOBJ(function_name).
129701         * m4/chown.m4: Likewise.
129702         * m4/fnmatch.m4: Likewise.
129703         * m4/ftruncate.m4: Likewise.
129704         * m4/getgroups.m4: Likewise.
129705         * m4/getline.m4: Likewise.
129706         * m4/group-member.m4: Likewise.
129707         * m4/jm-macros.m4: Likewise.
129708         * m4/lstat.m4: Likewise.
129709         * m4/malloc.m4: Likewise.
129710         * m4/memcmp.m4: Likewise.
129711         * m4/nanosleep.m4: Likewise.
129712         * m4/putenv.m4: Likewise.
129713         * m4/realloc.m4: Likewise.
129714         * m4/regex.m4: Likewise.
129715         * m4/stat.m4: Likewise.
129716         * m4/strftime.m4: Likewise.
129718 2000-07-02  Jim Meyering  <meyering@lucent.com>
129720         * lib/quotearg.c (mbstate_t): Don't define here.
129722 2000-07-02  Jim Meyering  <meyering@lucent.com>
129724         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129726 2000-07-01  Jim Meyering  <meyering@lucent.com>
129728         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129730 2000-07-01  Jim Meyering  <meyering@lucent.com>
129732         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129733         problem.
129735 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129738         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129740 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129742         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129743         per change in ../m4/ls-mntd-fs.m4.
129744         (read_filesystem_list): Ignore symbolic links.
129746 2000-06-29  Jim Meyering  <meyering@lucent.com>
129748         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129749         for declaration of strcmp.
129751         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129753         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129754         Avoid warning by casting result to `char *' to remove `const'.
129756 2000-06-28  Jim Meyering  <meyering@lucent.com>
129758         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129759         included by quotearg.c, for which we perform this test.  From
129760         Bruno Haible.
129762 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129764         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129765         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129766         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129768 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129770         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129772 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129774         savedir now sets errno on failure and invokes xmalloc to get memory.
129775         Fix a couple of other minor bugs while we're at it.
129777         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129778         (NAMLEN): Remove macro.
129779         (malloc, realloc): Remove decls.
129780         (stpcpy): Likewise.
129781         ("xalloc.h"): Include.
129782         (NAME_SIZE_DEFAULT): New macro.
129783         (savedir): Use xmalloc / xrealloc to allocate memory.
129784         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129785         Skip "" directory entries.
129786         Use strlen to calculate directory entry length, since the old method
129787         is rarely used these days and isn't worth supporting.
129788         Don't use a pointer after freeing it.
129789         Check for integer overflow when calculating allocation size.
129790         Use memcpy to copy entries, instead of stpcpy.
129791         Set errno properly when returning NULL.
129792         Check for readdir error.
129794 2000-06-26  Jim Meyering  <meyering@lucent.com>
129796         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129798 2000-06-25  Jim Meyering  <meyering@lucent.com>
129800         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129801         Linux header bug when _XOPEN_SOURCE is defined to 500.
129803 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129805         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129806         deficiency.
129808 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129810         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129811         Include xalloc.h.
129812         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129814 2000-06-24  Jim Meyering  <meyering@lucent.com>
129816         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129817         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129818         for which strerror does return char*, but which lacks a conveniently
129819         accessible declaration of the function.  If the compile-test says
129820         strerror_r doesn't work, then resort to a `run'-test that works on
129821         BeOS and segfaults on DEC Unix.
129823 2000-06-24  Jim Meyering  <meyering@lucent.com>
129825         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129827 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129829         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129830         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129832 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129834         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129835         (mbrtowc, mbstate_t): Define substitutes if
129836         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129837         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129838         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129840 2000-06-23  Jim Meyering  <meyering@lucent.com>
129842         * m4/afs.m4: Add missing AC_MSG_RESULT.
129843         Reported by Bruno Haible.
129845         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129846         Suggestion from Bruno Haible.
129848 2000-06-23  Jim Meyering  <meyering@lucent.com>
129850         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129852 2000-06-21  Jim Meyering  <meyering@lucent.com>
129854         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129856 2000-06-21  Jim Meyering  <meyering@lucent.com>
129858         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129859         (noinst_HEADERS): Add getstr.h.
129861         * lib/getline.c (getstr): Move into a separate file.
129862         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129863         the following changes: new parameter, delim2; both delim[12]
129864         parameters have type `int', not `char'.  The latter would lose
129865         with 8-bit delimiters.
129866         * lib/getstr.h: New file.
129868 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129870         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129871         than 1024, return a memory chunk of least possible size, instead
129872         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129873         Use free/xmalloc instead of xrealloc to avoid copying for very long
129874         paths.
129876 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129878         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129879         the empty string.
129881 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129883         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129884         address, not strdup.  Include <stdlib.h> and don't declare free().
129886 2000-06-19  Jim Meyering  <meyering@lucent.com>
129888         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129890 2000-06-18  Jim Meyering  <meyering@lucent.com>
129892         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129894         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129895         `checking whether...' message to be consistent with that of the
129896         lstat test.
129898 2000-06-18  Jim Meyering  <meyering@lucent.com>
129900         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129901         Besides, these days every porting target provides a mkdir function.
129903         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129904         needed. (this snippet comes from src/system.h).
129906 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129908         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129910 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129912         * lib/human.c (adjust_value): New function.
129913         (human_readable_inexact): Apply rounding style even when
129914         printing approximate values.
129916 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129918         * lib/human.c (human_readable_inexact): Allow an input block
129919         size that is not a multiple of the output block size, and vice versa.
129920         Reported by Piergiorgio Sartor.
129922 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129924         * lib/getdate.y (get_date): Apply relative times after time
129925         zone indicator, not before.  Reported by Todd A. Jacobs.
129927 2000-06-13  Jim Meyering  <meyering@lucent.com>
129929         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129931         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129933 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129935         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129937 2000-06-12  Jim Meyering  <meyering@lucent.com>
129939         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129940         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129941         optional argument.
129942         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129943         the optional argument, `lib'.
129945 2000-06-08  Jim Meyering  <meyering@lucent.com>
129947         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129949 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129951         Rewrite largefile configuration so that we don't need to run
129952         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129953         AC_CANONICAL_HOST in configure.in -- jmm]
129955         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129956         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129957         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129958         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129959         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129960         All uses changed.
129961         Instead of inspecting the output of getconf, try to compile the
129962         test program without and with the macro definition.
129963         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129964         for getconf.  Instead, check for the needed flags by compiling
129965         test programs.
129967 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129969         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129971 2000-06-04  Jim Meyering  <meyering@lucent.com>
129973         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129974         SunOS 4.1.4 for which gid_t is an unsigned type.
129976 2000-06-03  Jim Meyering  <meyering@lucent.com>
129978         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129979         now that autoconf requires that.
129981         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129982         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129983         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129985 2000-06-03  Jim Meyering  <meyering@lucent.com>
129987         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129989 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129991         * m4/glibc21.m4: New file.
129992         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129994 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129996         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129997         newer, don't install charset.alias.
129998         * lib/config.charset: Change the Linux/glibc rules so they become empty
129999         on glibc-2.1 or newer.
130001 2000-06-02  Jim Meyering  <meyering@lucent.com>
130003         * lib/mountlist.c: Back out last change.  Instead, do this...
130004         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130005         me_dummy member using the same `ignore'-testing code.
130006         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130007         fs_type strings.
130008         From Mark D. Roth.
130010 2000-05-29  Jim Meyering  <meyering@lucent.com>
130012         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130013         mounts with the `ignore' attribute.  Based on a patch from
130014         Mark D. Roth.
130016 2000-05-28  Jim Meyering  <meyering@lucent.com>
130018         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130019         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130020         * m4/stat.m4: Likewise.
130021         * m4/lstat.m4: Likewise.
130022         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130024         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130025         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130027 2000-05-26  Jim Meyering  <meyering@lucent.com>
130029         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130031 2000-05-24  Jim Meyering  <meyering@lucent.com>
130033         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130034         autoconf requires that.
130035         * m4/lib-check.m4: Likewise.
130036         * m4/jm-macros.m4: Likewise.
130037         * m4/strftime.m4: Likewise.
130039         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130040         AC_CHECK_DECLS, now that autoconf requires that.
130042 2000-05-22  Jim Meyering  <meyering@lucent.com>
130044         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130045         * m4/lstat.m4: Likewise.
130047 2000-05-22  Jim Meyering  <meyering@lucent.com>
130049         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130051 2000-05-20  Jim Meyering  <meyering@lucent.com>
130053         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130054         (jm_PREREQ): Use it.
130056 2000-05-18  Jim Meyering  <meyering@lucent.com>
130058         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130059         back, too, since it may have been modified by allocate_entry.
130060         (hash_delete): Rewrite to use neither the assignment operator
130061         nor the comma operator in an if-expression.
130063 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130065         * lib/closeout.c:
130066         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130067         Remove; no longer needed.
130068         "quotearg.h": Add include.
130069         (file_name): Do not bother to explicitly initialize to NULL; it's less
130070         efficient on some hosts.
130071         (close_stdout_status): Remove test as to whether stdout was already
130072         closed; it breaks for the case "echo x | sort >&-".
130073         Quote file name colons.
130074         Do not assume that _("write error") lacks format strings.
130076 2000-05-15  Jim Meyering  <meyering@lucent.com>
130078         * lib/version-etc.c (version_etc_copyright): Update the copyright
130079         string used in all --version output.
130081 2000-05-14  Jim Meyering  <meyering@lucent.com>
130083         * lib/closeout.c (close_stdout_set_file_name): New function.
130084         (close_stdout_status): Use new file-scoped global.
130085         Return right away if fstat says the stdout file descriptor is invalid.
130086         * lib/closeout.h (close_stdout_set_file_name): Declare.
130088 2000-05-10  Jim Meyering  <meyering@lucent.com>
130090         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130091         (close_stdout_set_status): New function.
130092         * lib/closeout.h (close_stdout_set_status): Declare.
130094 2000-05-09  Jim Meyering  <meyering@lucent.com>
130096         * m4/gettext.m4: Rename this...
130097         * m4/libintl.m4: ...to this.
130099 2000-05-08  Jim Meyering  <meyering@lucent.com>
130101         * lib/long-options.c: Don't include closeout.h.
130102         (parse_long_options): Don't call close_stdout for --version.
130104 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130106         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130107         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130108         2.1.3 bug.  This avoids a clash when files like regex.c define
130109         _GNU_SOURCE.
130111 2000-05-06  Jim Meyering  <meyering@lucent.com>
130113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130114         (AC_REPLACE_FUNCS): Add strnlen.
130116         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130117         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130119         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130120         AC_SEARCH_LIBS call for nanosleep.
130121         (LIB_NANOSLEEP): Set and AC_SUBST.
130123 2000-05-06  Jim Meyering  <meyering@lucent.com>
130125         * lib/strnlen.c: Undefine __strnlen and strnlen.
130126         [!weak_alias]: Define __strnlen to strnlen.
130128         * lib/atexit.c: New file, from libiberty.
130130 2000-05-06  Jim Meyering  <meyering@lucent.com>
130132         * lib/closeout.c (close_stdout_status): Also check for errors on the
130133         stderr stream.
130135 2000-05-05  Jim Meyering  <meyering@lucent.com>
130137         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130138         AC_SEARCH_LIBS call for clock_gettime.
130139         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130141         * m4/search-libs.m4: Update from autoconf.
130143         su doesn't work on Solaris 2.6.
130144         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130145         <shadow.h>.  Reported by Dragos Harabor.
130147 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130149         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130150         memcpy instead of xmalloc, xrealloc, path_concat.
130151         (locale_charset): Treat empty environment variables as absent.
130152         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130154 2000-05-04  Jim Meyering  <meyering@lucent.com>
130156         * lib/getopt.c: Update from glibc.
130157         * lib/obstack.c: Likewise.
130158         * lib/obstack.h: Likewise.
130159         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130160         file
130162         * lib/regex.h: Likewise.
130163         * lib/strndup.c: Likewise.
130164         * lib/strnlen.c: New file, from glibc.
130166 2000-05-03  Jim Meyering  <meyering@lucent.com>
130168         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130170 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130172         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130173         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130174         compile-time test, rather than inspecting host and OS, to
130175         decide whether to define _LARGEFILE_SOURCE.
130177 2000-05-01  Jim Meyering  <meyering@lucent.com>
130179         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130182         Based on a patch from Bruno Haible.
130184 2000-05-01  Jim Meyering  <meyering@lucent.com>
130186         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130188 2000-04-29  Jim Meyering  <meyering@lucent.com>
130190         * lib/path-concat.c: Declare strdup only if it's not defined.
130191         * lib/canon-host.c: Likewise.
130193 2000-04-28  Jim Meyering  <meyering@lucent.com>
130195         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130196         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130197         is included first, then limits.h is included by locale.h by libintl.h.
130198         From John David Anglin.
130200 2000-04-25  Jim Meyering  <meyering@lucent.com>
130202         * lib/makepath.c (S_IRWXUGO): Define.
130203         (make_path): Always perform explicit chmod if MODE specifies any
130204         of the `special' permission bits.  Prompted by a bug report against
130205         install from Mate Wierdl and Joost van Baal.
130207 2000-04-18  Jim Meyering  <meyering@lucent.com>
130209         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130210         (jm_PREREQ): Use it.
130212 2000-04-18  Jim Meyering  <meyering@lucent.com>
130214         * lib/README: New file.
130216         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130217         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130219 2000-04-17  Jim Meyering  <meyering@lucent.com>
130221         Get it right :-)
130222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130223         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130224         Suggestion from Akim Demaille.
130226 2000-04-17  Jim Meyering  <meyering@lucent.com>
130228         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130229         the definition of it to rpl_strftime also defined-away the system's
130230         declaration.
130232 2000-04-15  Jim Meyering  <meyering@lucent.com>
130234         Use `C' to denote so-called `contiguous' files, the same way
130235         that tar does.
130236         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130237         (ftypelet): Use S_ISCTG.
130238         From Michael Deutschmann.
130240 2000-04-14  Jim Meyering  <meyering@lucent.com>
130242         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130243         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130244         clobbered.
130246 2000-04-14  Jim Meyering  <meyering@lucent.com>
130248         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130250 2000-04-13  Jim Meyering  <meyering@lucent.com>
130252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130253         AH_VERBATIM to insert required #ifndef into config.h.in.
130254         Suggestion from Akim Demaille.
130256 2000-04-12  Jim Meyering  <meyering@lucent.com>
130258         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130259         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130260         Christian Krackowizer.
130262         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130263         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130264         (AC_SYS_LARGEFILE): Require.
130265         (AM_C_PROTOTYPES): Require.
130267 2000-04-08  Jim Meyering  <meyering@lucent.com>
130269         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130270         names don't conflict.  Reported by Eli Zaretskii.
130272 2000-04-07  Jim Meyering  <meyering@lucent.com>
130274         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130275         sys/types.h, to work around system header problems on AIX 3.2.5.
130276         From Bruno Haible.
130278 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130280         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130281         bug.  Deal with the different error behavior of Irix iconv.
130283 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130285         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130286         IRIX if the installer said otherwise.
130288 2000-04-05  Jim Meyering  <meyering@lucent.com>
130290         Portability tweaks required for ultrix4.3.
130291         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130292         (jm_CHECK_DECLS): Add getutent to the list of functions.
130293         (_jm_DECL_HEADERS): Add utmpx.h.
130294         From John David Anglin.
130296         * m4/strftime.m4: Back out the 2000-04-02 change.
130297         Instead of that change, simply undefine putenv in the test program.
130299 2000-04-05  Jim Meyering  <meyering@lucent.com>
130301         Portability tweaks required for ultrix4.3.
130302         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130303         getutent.
130304         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130305         * lib/canon-host.c: Declare strdup.
130306         * lib/path-concat.c: Likewise.
130307         From John David Anglin.
130309 2000-04-04  Jim Meyering  <meyering@lucent.com>
130311         Be more DOS 8.3-friendly.
130312         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130313         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130314         * lib/Makefile.am: Reflect renaming.
130315         Reported by Eli Zaretskii.
130317         Use a temporary file name that won't clash with `charset.alias'
130318         in the DOS 8.3 name space.
130319         * lib/Makefile.am (charset_tmp): Define.
130320         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130321         (uninstall-local): Likewise.
130322         Reported by Eli Zaretskii.
130324 2000-04-03  Jim Meyering  <meyering@lucent.com>
130326         * m4/gettext.m4: Fix typo in comment.
130328         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130329         textutils/configure.in).  Suggestion from Paul Eggert.
130330         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130332 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130334         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130335         variable in the shell rather than using putenv, which isn't
130336         portable.  This avoids the configure-time inter-test dependency
130337         on the potentially-renamed putenv function.
130339 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130342         before checking struct stat.st_blksize, so that
130343         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130345 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130347         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130348         since strftime.c uses HAVE_STRFTIME to decide whether to use
130349         the underlying strftime.
130351 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130353         * lib/time/strftime.c (my_strftime): Make sure we call the system
130354         strftime, not ourselves, when invoking the underlying strftime.
130356 2000-03-24  Jim Meyering  <meyering@lucent.com>
130358         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130359         (charset_alias): Define.
130360         (install-exec-local): Factor out common code.
130361         (uninstall-local): Split lines longer than 80.
130362         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130363         (SUFFIXES): Define.
130364         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130365         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130367 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130369         * lib/config.charset: Output a line containing "Packages using this
130370         file".
130371         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130372         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130373         ref-del.sed): New rules.
130375 2000-03-17  Jim Meyering  <meyering@lucent.com>
130377         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130378         Otherwise, include <strings.h>
130380 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130382         * lib/unicodeio.c (utf8_wctomb): New function.
130383         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130384         format instead of in UCS-4 with platform dependent endianness.
130386 2000-03-10  Jim Meyering  <meyering@lucent.com>
130388         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130389         From Marco Franzen.
130391 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130393         * lib/savedir.c (savedir): Work even if directory size is
130394         negative; this can happen with some screwy NFS configurations.
130396 2000-03-06  Jim Meyering  <meyering@lucent.com>
130398         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130399         if it's NULL (because we ran out of memory).  From Bruno Haible.
130401 2000-03-05  Jim Meyering  <meyering@lucent.com>
130403         * lib/localcharset.c ("path-concat.h"): Include.
130404         (get_charset_aliases): Use path_concat instead of ANSI string
130405         concatenation.
130407         * lib/unicodeio.h (PARAMS): Define.
130408         Use it to guard prototype.
130410 2000-03-04  Jim Meyering  <meyering@lucent.com>
130412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
130413         for lib/localcharset.c.
130415 2000-03-04  Jim Meyering  <meyering@lucent.com>
130417         * lib/Makefile.am (install-exec-local): Create $(libdir) before
130418         installing into it.
130419         (uninstall-local): Uncomment this rule so `make distcheck' works
130420         once again.
130422         * lib/unicodeio.c (<errno.h>): Include it.
130423         (errno): Declare if not defined.
130425         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
130427         * lib/config.charset: New version, incorporating remarks from a linux
130428         i18n mailing list.  From Bruno Haible.
130430 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
130432         * m4/codeset.m4: New file.
130433         * m4/iconv.m4: New file.
130434         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
130436 2000-03-03  Jim Meyering  <meyering@lucent.com>
130438         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130440 2000-03-02  Jim Meyering  <meyering@lucent.com>
130442         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130443         the messages come out on separate lines.
130445         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130446         rather than jm_CHECK_DECLARATIONS.
130447         * m4/decl.m4: Remove now-unused file.
130449         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130450         geteuid.
130452 2000-03-02  Jim Meyering  <meyering@lucent.com>
130454         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130456 2000-03-01  Jim Meyering  <meyering@lucent.com>
130458         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130459         * lib/unicodeio.c: Likewise.
130461 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130463         * lib/config.charset: New file.
130464         * lib/localcharset.c: New file.
130465         * lib/unicodeio.h, lib/unicodeio.c: New files.
130466         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130467         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130468         (noinst_HEADERS): Add unicodeio.h.
130469         (all-local, install-exec-local, charset.alias): New targets.
130471 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130473         * lib/quotearg.c (ALERT_CHAR): New macro.
130474         (quotearg_buffer_restyled): Use it.
130476 2000-02-27  Jim Meyering  <meyering@lucent.com>
130478         * m4/check-decl.m4: Add getenv to the list.
130480 2000-02-27  Jim Meyering  <meyering@lucent.com>
130482         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130483         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130485         * lib/backupfile.c: Guard inclusion of stdlib.h with
130486         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130487         Declare malloc if needed.
130489         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130490         `#ifndef HAVE_DECL..'
130491         now that autoconf always defines the HAVE_DECL_ symbols.
130492         * lib/human.c: Likewise.
130493         * lib/same.c: Likewise.
130494         * lib/strtoumax.c: Likewise.
130496         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130497         declaration check was not run.
130498         * lib/hash.c: Likewise.
130499         * lib/human.c: Likewise.
130500         * lib/same.c: Likewise.
130501         * lib/strtoumax.c: Likewise.
130503         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130504         `.', then first look up the entire `.'-containing string as a login
130505         name.
130507 2000-02-23  Jim Meyering  <meyering@lucent.com>
130509         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130510         in place of my hack.
130512 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130514         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130515         (textint): New typedef.
130516         (parser_control): Member year changed from int to textint.
130517         All uses changed.
130518         (YYSTYPE): Removed; replaced by %union with int and textint members.
130519         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130520         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130521         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130522         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130523         (date, number, to_year): Use width of number in digits, not its value,
130524         to determine whether it's a 2-digit year, or a 2-digit time.
130525         (yylex): Store number of digits of numeric tokens.
130526         Reported by John Kendall.
130528         (parser_control): Changed from struct parser_control to typedef (for
130529         consistency).  All uses changed.
130531         (tID): Removed; not used.
130532         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130534 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130536         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130537         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130539 2000-02-12  Jim Meyering  <meyering@lucent.com>
130541         * lib/userspec.c (ISDIGIT): Define it.
130542         (isdigit): Remove definition.
130543         (is_number): Use ISDIGIT, not isdigit.
130544         <libintl.h>: Include.
130545         (_ and N_): Define.
130546         (parse_user_spec): Mark translatable strings.
130548 2000-02-10  Jim Meyering  <meyering@lucent.com>
130550         With these changes, nanosleep.[ch] are finally enough like the other
130551         lib/* replacement files to compile on a few more losing systems.
130553         * lib/nanosleep.h: Don't include config.h.
130554         Remove prototype from declaration of nanosleep.
130555         (PARAMS): Remove now-unneeded definition.
130556         * lib/nanosleep.c: #undef nanosleep.
130557         (rpl_nanosleep): Rename from nanosleep.
130559 2000-02-10  Jim Meyering  <meyering@lucent.com>
130561         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130562         gnu_nanosleep to rpl_nanosleep.
130564 2000-02-09  Jim Meyering  <meyering@lucent.com>
130566         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130567         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130569 2000-02-08  Akim Demaille  <akim@epita.fr>
130571         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130572         `[' and `]' and remove uses of `changequote'.
130573         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130574         (AC_SYS_LARGEFILE): Likewise.
130575         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130576         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130577         of changequote.
130578         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130579         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130580         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130581         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130583 2000-02-05  Jim Meyering  <meyering@lucent.com>
130585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130586         Remove explicit use of AC_HEADER_TIME.  It is required by
130587         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130588         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130589         in autoconf whereby the expansion of the latter ended up preceding
130590         the expansion of its prerequisite, AC_HEADER_TIME.
130591         Reported by Volker Borchert.
130593 2000-02-03  Jim Meyering  <meyering@lucent.com>
130595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130597 2000-02-03  Jim Meyering  <meyering@lucent.com>
130599         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130600         rather than with `#if HAVE_UTMPNAME'.
130602 2000-02-02  Jim Meyering  <meyering@lucent.com>
130604         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130605         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130606         Reported by Eli Zaretskii.
130608 2000-02-01  Jim Meyering  <meyering@lucent.com>
130610         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130612 2000-01-31  Jim Meyering  <meyering@lucent.com>
130614         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130615         functions.  Add the time.h and sys/time.h headers along with the
130616         AC_REQUIRE'ment of AC_HEADER_TIME.
130618 2000-01-31  Jim Meyering  <meyering@lucent.com>
130620         * lib/nanosleep.h (nanosleep): Guard declaration with
130621         `#if ! HAVE_DECL_NANOSLEEP'.
130622         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130623         the declaration in that vendor's sys/timers.h.
130624         Reported by Christian Krackowizer.
130626         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130627         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130628         (ISPRINT): Likewise.
130629         Reported by Tom Tromey.
130631 2000-01-30  Jim Meyering  <meyering@lucent.com>
130633         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130635         * m4/prereq.m4 (utmp_includes): Define.
130636         Check for ut_user and ut_name members in both struct utmpx
130637         and struct utmp.
130639 2000-01-30  Jim Meyering  <meyering@lucent.com>
130641         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130642         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130643         header files where only utmpx.ut_user is declared.
130645         * lib/readutmp.h (UT_USER): Define.
130647 2000-01-29  Jim Meyering  <meyering@lucent.com>
130649         * m4/lib-check.m4: New file containing library-related checks from
130650         fileutils and sh-utils (textutils had none).
130652 2000-01-28  Jim Meyering  <meyering@lucent.com>
130654         * m4/perl.m4: Change format of warning message to look more like that
130655         from the missing script.  Suggestion from François Pinard.
130657 2000-01-25  Jim Meyering  <meyering@lucent.com>
130659         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130660         well as time.h in the compile check.
130661         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130662         Fix typo in cross-compiling case: s/yes/no/.
130664 2000-01-23  Jim Meyering  <meyering@lucent.com>
130666         * m4/jm-macros.m4: Move df-related tests here from
130667         fileutils/configure.in
130669         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130670         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130672         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130673         s/space/ac_fsusage_space/.
130674         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130676         * m4/ftruncate.m4: New file (derived from part of
130677         fileutils/configure.in).
130678         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130679         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130681         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130682         AC_SUBST these here, rather than just in sh-util/configure.in, so
130683         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130684         all the same.
130685         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130686         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130687         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130688         (AC_SUBST(POW_LIBM)): Likewise.
130689         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130691 2000-01-23  Jim Meyering  <meyering@lucent.com>
130693         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130694         obstack.c.
130696 2000-01-22  Jim Meyering  <meyering@lucent.com>
130698         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130700         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130702         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130703         configure.in
130704         (AC_CHECK_HEADERS): Likewise for sh-utils.
130705         (AC_CHECK_HEADERS): Likewise for textutils.
130706         Merge the three lists of headers.
130708         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130709         from fileutils' configure.in.
130711         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130712         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130713         check-decl.m4.
130715         * m4/check-decl.m4: Use #if rather than #ifdef.
130716         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130717         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130718         (_jm_DECL_HEADERS): Define new function.
130719         (jm_CHECK_DECLARATIONS): Require it.
130721 2000-01-22  Jim Meyering  <meyering@lucent.com>
130723         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130724         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130725         Required for some AIX systems.  Reported by Christian Krackowizer.
130726         [TESTING] (main): New function.
130728         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130729         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130730         letters.
130732         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130733         iswprint.
130735         * lib/strverscmp.c (ISDIGIT): Define.
130736         (strverscmp): Use ISDIGIT, not isdigit.
130738 2000-01-19  Jim Meyering  <meyering@lucent.com>
130740         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130741         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130742         defines `struct timespec' in <sys/time.h>
130744         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130745         Thanks to Akim for explaining.
130747 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130749         * lib/nanosleep.c (nanosleep):
130750         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130751         POSIX.1 doesn't require SA_INTERRUPT and some systems
130752         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130753         it's been part of POSIX.1 since day 1 (in 1988).
130755 2000-01-17  Jim Meyering  <meyering@lucent.com>
130757         * lib/interlock: Remove unused file.  Reported by François Pinard.
130759 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130761         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130762         alert, backslash, formfeed, and vertical tab unnecessarily in
130763         shell quoting style.
130765 2000-01-16  Jim Meyering  <meyering@lucent.com>
130767         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130768         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130769         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130770         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130772 2000-01-16  Jim Meyering  <meyering@lucent.com>
130774         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130775         because the latter didn't work.
130777 2000-01-15  Jim Meyering  <meyering@lucent.com>
130779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130780         (AC_REPLACE_FUNCS): Add memcpy and memset.
130781         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130782         Add strpbrk.
130783         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130785 2000-01-12  Jim Meyering  <meyering@lucent.com>
130787         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130788         (jm_PREREQ): Use it.
130789         (jm_PREREQ_READUTMP): New macro.
130790         (jm_PREREQ): Use it.
130792 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130794         Quote multibyte characters correctly.
130795         * m4/c-bs-a.m4: New file.
130796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130797         (jm_PREREQ): Use it.
130799 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130801         * m4/uintmax_t.m4: Port to autoconf 2.13.
130803 2000-01-08  Jim Meyering  <meyering@ascend.com>
130805         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130806         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130808 2000-01-04  Jim Meyering  <meyering@ascend.com>
130810         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130811         jm_STRUCT_DIRENT_D_TYPE.
130812         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130813         jm_STRUCT_DIRENT_D_INO.
130814         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130815         jm_STRUCT_UTIMBUF.
130816         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130817         renamings.
130818         * m4/utime.m4: Likewise.
130820         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130821         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130823 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130825         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130826         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130828 2000-01-02  Jim Meyering  <meyering@ascend.com>
130830         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130831         remember if this is necessary.
130833 1999-12-26  Jim Meyering  <meyering@ascend.com>
130835         * m4/jm-macros.m4: Use it here.
130836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130838 1999-12-23  Jim Meyering  <meyering@ascend.com>
130840         * m4/jm-macros.m4: Check for clock_gettime (moved from
130841         fileutils/configure.in)
130842         Check for gettimeofday.
130844 1999-12-20  Jim Meyering  <meyering@ascend.com>
130846         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130847         autoconf-2.14a-1999-12-20.
130849 1999-12-19  Jim Meyering  <meyering@ascend.com>
130851         * m4/lstat-slash.m4: New file.
130852         * m4/jm-macros.m4: Use the new macro:
130853         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130855 1999-12-07  Jim Meyering  <meyering@ascend.com>
130857         * m4/perl.m4: Require that File::Compare be available, too.
130858         Too many systems seem to lack it.
130860         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130861         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130863 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130865         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130866         problem with the QNX 4.25 shell, which doesn't propagate exit
130867         status of failed commands inside shell assignments.
130869 1999-11-17  Jim Meyering  <meyering@ascend.com>
130871         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130873 1999-11-07  Jim Meyering  <meyering@ascend.com>
130875         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130877 1999-11-06  Jim Meyering  <meyering@ascend.com>
130879         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130880         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130882 1999-11-05  Jim Meyering  <meyering@ascend.com>
130884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130885         configure.in of textutils, fileutils, and sh-utils into this one
130886         (shared between those packages) file.
130887         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130888         AC_STRUCT_ST_BLKSIZE.
130890 1999-11-03  Jim Meyering  <meyering@ascend.com>
130892         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130893         of AC_CHECK_TYPE checks includes unistd.h.
130894         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130895         Suggestion from Akim Demaille.
130897 1999-10-30  Jim Meyering  <meyering@ascend.com>
130899         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130900         m4-quoted string.
130901         * m4/ls-mntd-fs.m4: Likewise.
130902         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130903         * m4/jm-winsz1.m4: Likewise.
130905         * m4/const.m4: Remove file, since the fix made it into the experimental
130906         version of autoconf.
130907         * m4/mktime.m4: Likewise.
130909         * m4/check-type.m4: Remove file, now that the latest version of
130910         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130912         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130913         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130914         AC_CHECK_TYPE.
130916 1999-10-04  Jim Meyering  <meyering@ascend.com>
130918         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130920 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130922         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130923         2.95.1 bug with HP-UX 10.20.
130925 1999-09-17  Jim Meyering  <meyering@ascend.com>
130927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130928         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130929         due to missing strdup (against sh-utils-2.0).
130931 1999-08-29  Jim Meyering  <meyering@ascend.com>
130933         * m4/jm-macros.m4: Require jm_BISON.
130934         * m4/bison.m4: New file.
130936 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130938         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130939         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130941 1999-08-05  Jim Meyering  <meyering@ascend.com>
130943         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130944         to avoid conflicts with `conftest' on 8+3 filesystems.
130945         Suggestion from Eli Zaretskii.
130947 1999-08-04  Jim Meyering  <meyering@ascend.com>
130949         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130950         fileutils and sh-utils (textutils's getline test was inadequate).
130951         (AM_FUNC_GETLINE): Run this test.
130952         (AC_CHECK_FUNCS): Check for getdelim.
130953         Reported by Bob Proulx.
130955 1999-08-02  Jim Meyering  <meyering@ascend.com>
130957         * m4/jm-macros.m4: Add a comment.
130959 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130961         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130962         <inttypes.h> defines strtoumax as a macro (and not as a
130963         function).
130965 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130967         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130968         that we can shift, multiply and divide unsigned long long
130969         values; Ultrix cc can't do it.
130971 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130973         * m4/mktime.m4: New file, which is a preview of what should appear
130974         in the next public autoconf release.
130976 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130978         * m4/lfs.m4: Remove this file.
130979         * m4/largefile.m4: New file.  It contains the old contents of
130980         lfs.m4, except that all names with prefix AC_LFS have been
130981         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130982         compatible with future autoconf versions.  Also, some minor m4
130983         quoting problems have been fixed.
130985 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130987         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130988         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130989         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130990         and simplify the shell code.
130992 1999-08-01  Jim Meyering  <meyering@ascend.com>
130994         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130995         m4.
130997 1999-07-20  Jim Meyering  <meyering@ascend.com>
130999         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131001 1999-07-15  Jim Meyering  <meyering@ascend.com>
131003         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131005 1999-05-22  Jim Meyering  <meyering@ascend.com>
131007         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131009 1999-05-20  Jim Meyering  <meyering@ascend.com>
131011         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131012         Add a colon after each `then' in case $4 is empty.
131014 1999-05-16  Jim Meyering  <meyering@ascend.com>
131016         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131018 1999-05-10  Jim Meyering  <meyering@ascend.com>
131020         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131022         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131023         AC_FUNC_MKTIME.
131025 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131027         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131029 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131031         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131032         not CPPFLAGS, so that linking works correctly in IRIX.
131034 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131038 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131040         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131041         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131043         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131044         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131046         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131048 1999-04-20  Jim Meyering  <meyering@ascend.com>
131050         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131051         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131052         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131054 1999-04-18  Jim Meyering  <meyering@ascend.com>
131056         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131057         * m4/jm-macros.m4: Use it.
131059 1999-04-06  Jim Meyering  <meyering@ascend.com>
131061         * m4/strftime.m4: Remove test for %f.
131063 1999-03-29  Jim Meyering  <meyering@ascend.com>
131065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131066         superset of the AC_TYPE_* checks in the textutils, fileutils,
131067         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131068         AC_TYPE_PID_T.
131070 1999-03-28  Jim Meyering  <meyering@ascend.com>
131072         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131073         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131074         replaced e.g., in the *.sh files of the sh-utils.
131076 1999-03-20  Jim Meyering  <meyering@ascend.com>
131078         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131079         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131080         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131082 1999-03-19  Jim Meyering  <meyering@ascend.com>
131084         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131086 1999-03-12  Jim Meyering  <meyering@ascend.com>
131088         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131090 1999-03-07  Jim Meyering  <meyering@ascend.com>
131092         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131093         declared.
131095 1999-02-17  Jim Meyering  <meyering@ascend.com>
131097         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131098         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131100 1999-02-07  Jim Meyering  <meyering@ascend.com>
131102         * m4/group-member.m4: New file -- extracted from sh-utils'
131103         configure.in.
131105         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131106         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131108 1999-02-06  Jim Meyering  <meyering@ascend.com>
131110         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131111         * m4/fnmatch.m4: Likewise.
131112         * m4/getgroups.m4: Likewise.
131113         * m4/lstat.m4: Likewise.
131114         * m4/malloc.m4: Likewise.
131115         * m4/putenv.m4: Likewise.
131116         * m4/realloc.m4: Likewise.
131117         * m4/regex.m4: Likewise.
131118         * m4/stat.m4: Likewise.
131119         * m4/strftime.m4: Likewise.
131120         Suggestion from Alain Magloire.
131122         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131123         * m4/fnmatch.m4: Likewise.
131124         * m4/getgroups.m4: Likewise.
131125         * m4/getline.m4: Likewise.
131126         * m4/lstat.m4: Likewise.
131127         * m4/malloc.m4: Likewise.
131128         * m4/memcmp.m4: Likewise.
131129         * m4/putenv.m4: Likewise.
131130         * m4/realloc.m4: Likewise.
131131         * m4/regex.m4: Likewise.
131132         * m4/stat.m4: Likewise.
131133         * m4/strftime.m4: Likewise.
131134         Suggestion from Alain Magloire.
131136         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131137         an argument.
131139         * m4/regex.m4: Add a run-time Test for proper operation of
131140         re_compile_pattern.
131142 1999-01-31  Jim Meyering  <meyering@ascend.com>
131144         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131146 1999-01-30  Jim Meyering  <meyering@ascend.com>
131148         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131150         * m4/jm-mktime.m4: Make this a wrapper around the official
131151         AM_FUNC_MKTIME rather than my private copy, now that the official one
131152         is up to date.
131153         * m4/mktime.m4: Remove file.
131155         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131156         * m4/uptime.m4: Likewise.
131157         * m4/uintmax_t.m4: Likewise.
131159 1999-01-28  Jim Meyering  <meyering@ascend.com>
131161         * m4/jm-macros.m4: Use jm_AFS.
131162         * m4/afs.m4: New file (from fileutils' configure.in).
131164         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131165         * m4/chown.m4: Likewise.
131166         * m4/d-ino.m4: Likewise.
131167         * m4/d-type.m4: Likewise.
131168         * m4/fnmatch.m4: Likewise.
131169         * m4/getgroups.m4: Likewise.
131170         * m4/gettext.m4: Likewise.
131171         * m4/jm-mktime.m4: Likewise.
131172         * m4/jm-winsz2.m4: Likewise.
131173         * m4/lcmessage.m4: Likewise.
131174         * m4/ls-mntd-fs.m4: Likewise.
131175         * m4/malloc.m4: Likewise.
131176         * m4/memcmp.m4: Likewise.
131177         * m4/putenv.m4: Likewise.
131178         * m4/realloc.m4: Likewise.
131179         * m4/st_mtim.m4: Likewise.
131180         * m4/strftime.m4: Likewise.
131182 1999-01-16  Jim Meyering  <meyering@ascend.com>
131184         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131185         (ARGMATCH_DIE_DECL): Define.
131187 1999-01-12  Jim Meyering  <meyering@ascend.com>
131189         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131190         Reported by Lars Hecking.
131192 1999-01-10  Jim Meyering  <meyering@ascend.com>
131194         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131195         gross kludge.
131196         * m4/inttypes_h.m4: Likewise.
131197         * m4/lstat.m4: Likewise.
131198         * m4/malloc.m4: Likewise.
131199         * m4/readdir.m4: Likewise.
131200         * m4/realloc.m4: Likewise.
131201         * m4/st_dm_mode.m4: Likewise.
131202         * m4/stat.m4: Likewise.
131203         * m4/utimbuf.m4: Likewise.
131204         * m4/utimes.m4: Likewise.
131206         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131207         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131208         comments in config.h.in are meaningful.
131210         * m4/jm-macros.m4: Require autoconf-2.13 here.
131212         * m4/regex.m4: By default, don't use the included regex.c on systems
131213         with glibc 2.  Suggestion from Uli Drepper.
131215 1999-01-02  Jim Meyering  <meyering@ascend.com>
131217         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131219 1998-12-18  Jim Meyering  <meyering@ascend.com>
131221         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131222         Based on a suggestion from Lars Hecking.
131224 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131226         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131228 1998-11-16  Jim Meyering  <meyering@ascend.com>
131230         * m4/lfs.m4: Double-quote the `uname...` expression.
131232 1998-11-14  Jim Meyering  <meyering@ascend.com>
131234         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131235         * m4/stat.m4: Likewise.
131237 1998-11-03  Jim Meyering  <meyering@ascend.com>
131239         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131240         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131242 1998-10-18  Jim Meyering  <meyering@ascend.com>
131244         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131246 1998-10-17  Jim Meyering  <meyering@ascend.com>
131248         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131249         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131250         calls for those previously hard-coded headers.  Instead, take a new
131251         parameter.
131252         (jm_CHECK_DECLARATIONS): Reflect interface change.
131253         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131254         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131256         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131258 1998-10-14  Jim Meyering  <meyering@ascend.com>
131260         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131261         instead of "TZ=America/Vancouver".  From Paul Eggert.
131263 1998-10-11  Jim Meyering  <meyering@ascend.com>
131265         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131266         This adds a test for a recently added compatibility fix for mktime.c.
131267         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131269 1998-09-27  Jim Meyering  <meyering@ascend.com>
131271         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131273         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131274         ../configure.in, including a change from Gordon Matzigkeit to allow
131275         cross-compiling for the Hurd.
131277         * m4/glibc.m4: New file/macro to test for the GNU C Library
131278         versions 1 and 2.  From Gordon Matzigkeit.
131279         Indent.
131281 1998-09-21  Jim Meyering  <meyering@ascend.com>
131283         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131285 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131287         Port nanosecond-resolution times to UnixWare 2.1.2 and
131288         pedantic Solaris 2.6.
131290         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131291         AC_STRUCT_ST_MTIM.
131292         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131293         Generate name of ns member, instead of just 1 or undef.
131294         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131296 1998-08-15  Jim Meyering  <meyering@ascend.com>
131298         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131299         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131300         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131301         instead of jm_TYPE_SSIZE_T.
131303 1998-08-12  Jim Meyering  <meyering@ascend.com>
131305         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131307 1998-08-02  Jim Meyering  <meyering@ascend.com>
131309         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131310         in acconfig.h manually.
131312 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131314         * m4/st_mtim.m4: New file.
131316 1998-07-28  Jim Meyering  <meyering@ascend.com>
131318         * m4/utimes.m4: Undef stat.
131320 1998-07-25  Jim Meyering  <meyering@ascend.com>
131322         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131323         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131325 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131327         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131328         uid and gid actually remain unchanged.
131330 1998-07-07  Jim Meyering  <meyering@ascend.com>
131332         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131334 1998-07-04  Jim Meyering  <meyering@ascend.com>
131336         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131337         to prove that this macro can be used in packages without regex.c.
131339 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131341         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131342         is to be used.
131344 1998-07-03  Jim Meyering  <meyering@ascend.com>
131346         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131348         * m4/gettext.m4: New file -- from gettext-0.10.35.
131349         * m4/lcmessage.m4: Likewise.
131350         * m4/progtest.m4: Likewise.
131352         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131353         * m4/jm-macros.m4: Require the new macro.
131355 1998-06-29  Jim Meyering  <meyering@ascend.com>
131357         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131358         for the definition of NGROUPS (used in a system header included
131359         by sys/mount.h).
131361 1998-06-28  Jim Meyering  <meyering@ascend.com>
131363         * m4/ls-mntd-fs.m4: New file.
131364         * m4/fstypename.m4: New file.
131366         * m4/jm-macros.m4: Require the new macro.
131367         * m4/jm-glibc-io.m4: New file.
131369 1998-05-19  Jim Meyering  <meyering@ascend.com>
131371         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131372         * m4/lchown.m4: New file.
131374         * m4/Makefile.am.in: New file.
131375         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131377 1998-05-14  Jim Meyering  <meyering@ascend.com>
131379         * m4/Makefile.am (EXTRA_DIST): Add them.
131380         * m4/jm-macros.m4: New file.
131381         * m4/utimbuf.m4: New file.
131383 1998-05-12  Jim Meyering  <meyering@ascend.com>
131385         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131387 1998-05-11  Jim Meyering  <meyering@ascend.com>
131389         * m4/isc-posix.m4: New file.
131391 1998-05-10  Jim Meyering  <meyering@ascend.com>
131393         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131395 1998-05-09  Jim Meyering  <meyering@ascend.com>
131397         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131398         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131399         with automake.
131401         * m4/ssize_t.m4: New file.
131402         * m4/mktime.m4: Remove file -- the new automake has this now.
131404 1998-04-26  Jim Meyering  <meyering@ascend.com>
131406         * m4/assert.m4: New file.
131407         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131409 1998-04-05  Jim Meyering  <meyering@ascend.com>
131411         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131412         (jm_PREREQ): Use it here.
131414 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
131416         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
131417         in acconfig.h.
131419 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
131421         * m4/prereq.m4: New file.
131422         * m4/error.m4: New file.
131423         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
131425 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
131427         * m4/getline.m4: Don't set am_cv_func_working_getline before the
131428         cache-check for the same variable -- that defeated the purpose of
131429         the test; the test program was never run.  This was a problem only
131430         on systems with losing getline functions -- HP-UX 10.20 is one.
131431         Reported by Bjorn Helgaas.
131433 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
131435         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
131437 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131439         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131441         * m4/const.m4: New file.  Use an initializer in this declaration
131442         typedef int charset[2]; const charset x;
131443         Reported by Bob Glickstein.
131445 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131447         * m4/chown.m4: Fix reversed types on -1 args to chown.
131448         From Kaveh Ghazi.
131450 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131452         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131453         Add lseek and memchr.
131455         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131456         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131457         have a 20-character limit on names.
131459 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131461         * m4/inttypes_h.m4: New file.
131462         * m4/uintmax_t.m4: New file.
131463         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131466         -----
131468         Local Variables:
131469         coding: utf-8
131470         End:
131472         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131474         Copying and distribution of this file, with or without
131475         modification, are permitted provided the copyright notice
131476         and this notice are preserved.